diff --git a/.gitignore b/.gitignore index 434d21c9..65ac8cc5 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,8 @@ /CRM365/Xrm.Framework.CI.Sample/Xrm.Framework.CI.Sample.WFActivities/obj/Debug /CRM365/Xrm.Framework.CI.Sample/Xrm.Framework.CI.Sample.WFActivities/obj/Release /CRM365/Xrm.Framework.CI.Sample/Xrm.Framework.CI.Sample.Plugins/obj +/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/bin/Debug +/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/obj/Debug +/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/obj/Debug +/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/bin/Debug +/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/obj/Debug diff --git a/CRM2013/Xrm.Framework.CI/Build/PostBuild.ps1 b/CRM2013/Xrm.Framework.CI/Build/PostBuild.ps1 new file mode 100644 index 00000000..8cba414e --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Build/PostBuild.ps1 @@ -0,0 +1,30 @@ + +$CIFrameworkDir = $env:TF_BUILD_BINARIESDIRECTORY + "\" + $env:TF_BUILD_BUILDNUMBER +$CIPowerShellDir = $CIFrameworkDir + "\PowerShell" +$CIBuildTemplatesDir = $CIFrameworkDir + "\BuildTemplates" +$CIBuildCustomAssembliesDir = $CIBuildTemplatesDir + "\CustomAssemblies" + +New-Item $CIPowerShellDir -ItemType directory +New-Item $CIBuildTemplatesDir -ItemType directory +New-Item $CIBuildCustomAssembliesDir -ItemType directory + +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.xrm.client.dll") $CIPowerShellDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.xrm.sdk.dll") $CIPowerShellDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.crm.sdk.proxy.dll") $CIPowerShellDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\Xrm.Framework.CI.PowerShell.dll") $CIPowerShellDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\*.ps1") $CIPowerShellDir -Force -Recurse -Verbose + +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.xrm.client.dll") $CIBuildCustomAssembliesDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.xrm.sdk.dll") $CIBuildCustomAssembliesDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.crm.sdk.proxy.dll") $CIBuildCustomAssembliesDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\microsoft.xrm.sdk.deployment.dll") $CIBuildCustomAssembliesDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\CustomActivitiesAndExtensions.xml") $CIBuildCustomAssembliesDir -Force -Recurse -Verbose +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\Xrm.Framework.CI.TeamFoundation.Activities.dll") $CIBuildCustomAssembliesDir -Force -Recurse -Verbose + +Copy-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\DynamicsCRM2013ReleaseTfvcTemplate.12.xaml") $CIBuildTemplatesDir -Force -Recurse -Verbose + +[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" ) +$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal +[System.IO.Compression.ZipFile]::CreateFromDirectory( $CIFrameworkDir, $CIFrameworkDir + ".zip", $compressionLevel, $false ) + +Remove-Item ($env:TF_BUILD_BINARIESDIRECTORY + "\*.*") -exclude "*.zip" -Force -Recurse -Verbose \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Crm.Sdk.Proxy.dll b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Crm.Sdk.Proxy.dll new file mode 100644 index 00000000..1c85e08d Binary files /dev/null and b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Crm.Sdk.Proxy.dll differ diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Crm.Sdk.Proxy.xml b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Crm.Sdk.Proxy.xml new file mode 100644 index 00000000..a55bb101 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Crm.Sdk.Proxy.xml @@ -0,0 +1,7009 @@ + + + + Microsoft.Crm.Sdk.Proxy + + + + Contains integer values that are used for the BusinessUnit.InheritanceMask attribute. + + + The business inherits all inheritance values. Value = 0x3ff. + + + The business inherits competitors from its parent business. Value = 8. + + + The business inherits email templates from its parent business. Value = 2. + + + The business does not inherit from its parent business. Value = 0. + + + All child business units inherit process templates from this business. Value = 1. + + + All child business units inherit referral sources from this business. Value = 4. + + + The business inherits sale processes from its parent business. Value = 0x10. + + + The business inherits competitors from its parent business. Value = 0x100. + + + All child business units inherit email templates from this business. Value = 0x40. + + + The business inherits process templates from its parent business. Value = 0x20. + + + All child business units inherit referral sources from this business. Value = 0x80. + + + The business inherits sale processes from its parent business. Value = 0x200. + + + Contains integer flags that are used for the CalendarRule.ExtentCode attribute. + + + The recurrence duration determines the shadowing of that rule. Use this value to indicate working hours and a full day 24-hour shadow. Value = 1. + + + Only the rule duration is shadowed. Use this value to indicate time off. For example, 4 hours of time off allow working hours to appear before and after. Value = 2. + + + No shadowing of calendar rules. All rules are displayed even if they are shadowed or preceded by other rules. Value = 0. + + + Contains integer flags that are used for the List.MemberType attribute, used to indicate whether a list specifies accounts, contacts, or leads. + + + A list of accounts. Value = 1. + + + A list of contacts. Value = 2. + + + A list of leads. Value = 4. + + + Contains integer values that are used for the Organization.FiscalYearDisplayCode attribute. + + + Displays the fiscal year based on the end date of the fiscal year. Value = 2. + + + Displays the fiscal year based on the start date of the fiscal year. Value = 1. + + + Contains integer values that are used for the SavedQuery.QueryType attribute. + + + An address book filter. Value = 512. + + + An advanced search. Value = 1. + + + A custom view. Value = 16384. + + + A view for a dialog (workflow process). Value = 4096. + + + A lookup view. Value = 64. + + + Specifies the main application view. Value = 0. + + + Specifies the main application view without a subject. Value = 1024. + + + An offline filter for pn_crm_for_outlook_short. Value = 16. + + + An offline template for pn_crm_for_outlook_short. Value = 8192. + + + A filter for pn_crm_for_outlook_short. Value = 256. + + + A template for pn_crm_for_outlook_short. Value = 131072. + + + A quick find query, which defines the columns searched using the Search field in a list view. Value = 4. + + + A reporting query. Value = 8. + + + A saved query used for workflow templates and e-mail templates. Value = 2048. + + + Specifies the service management appointment book view. Value = 128. + + + A sub-grid query. Value = 2. + + + Contains integer values that are used for the SdkMessage.Availability and SdkMessageFilter.Availability attributes. + + + The message is available on both connected and disconnected from the server. Value = 2. + + + The message is available only on the client. Value = 1. + + + The message is available only on the server. Value = 0. + + + Contains integer values that are used for the SdkMessageFilter.Availability attribute. + + + The message is available on both connected and disconnected from the server. Value = 2. + + + The message is available only on the client. Value = 1. + + + The message is available only on the server. Value = 0. + + + internal + + + internal + + + internal + + + internal + + + Contains integer values that are used for the Template.GenerationTypeCode attribute. + + + Bulk delete has completed. Value = 2. + + + Bulk delete has completed, but failures occurred. Value = 3. + + + Bulk delete failed. Value = 4. + + + Bulk duplicate detection has completed. Value = 1. + + + Import has completed. Value = 5. + + + Import has failed. Value = 6. + + + Contains integer values that are used for the UserQuery.QueryType attribute. + + + AAn address book filter. Value = 512. + + + AAn advanced search. Value = 1. + + + A custom view. Value = 16384. + + + A view for a dialog (workflow process). Value = 4096. + + + A lookup view. Value = 64. + + + The main application view. Value = 0. + + + The main application view without a subject. Value = 1024. + + + AAn offline filter for pn_crm_for_outlook_short. Value = 16. + + + A filter for pn_crm_for_outlook_short. Value = 256. + + + A quick find query, which defines the columns searched using the Search field in a list view. Value = 4. + + + A reporting query. Value = 8. + + + A saved query used for workflow templates and e-mail templates. Value = 2048. + + + The service management appointment book view. Value = 128. + + + A sub-grid query. Value = 2. + + + Contains integer values that are used for the UserSettings.AdvancedFindStartupMode attribute. + + + Show the detailed version of advanced find at startup. Value = 2. + + + Show the simple version of advanced find at startup. Value = 1. + + + Contains integer values that are used for the UserSettings.DefaultCalendarView attribute. + + + Show the day by default. Value = 0. + + + Show the month by default. Value = 2. + + + Show the week by default. Value = 1. + + + Contains integer values that are used for the UserSettings.FullNameConventionCode attribute. + + + Show the first and last name. Value = 1. + + + Show the first name, middle initial and last name. Value = 3. + + + Show the first, middle and last names. Value = 5. + + + Show the last name and then the first name. Value = 0. + + + Show the last name first, then the first name and the middle name. Value = 4. + + + Show the last name first, then the first name and the middle initial. Value = 2. + + + Show the last name and then the first name, with no space separating the names. Value = 7. + + + Show the last name and then the first name, with a space separating the names. Value = 6. + + + Contains the possible access rights for a user. + + + The right to append the specified record to another object. Value = 0x10. + + + The right to append another record to the specified object. Value = 16. + + + The right to assign the specified record to another user or team. Value = 0x80000. + + + The right to create a record. Value = 0x20. + + + The right to delete the specified record. Value = 0x10000. + + + No access. Value = 0. + + + The right to read the specified type of record. Value = 1. + + + The right to share the specified record. Value = 0x40000. + + + The right to update the specified record. Value = 2. + + + Contains the data that is needed to add an item to a campaign activity. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the campaign activity. Required. + Type: Returns_GuidThe ID of the campaign activity. + + + Gets or sets the name of the entity type that is used in the operation. Required. + Type: Returns_StringThe name of the entity type that is used in the operation. + + + Gets or sets the ID of the item to be added to the campaign activity. Required. + Type: Returns_GuidThe ID of the item to be added to the campaign activity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the resulting campaign activity item. + Type: Returns_GuidThe ID of the resulting campaign activity item. + + + Contains the data that is needed to add an item to a campaign. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the campaign. Required. + Type: Returns_GuidThe ID of the campaign. + + + Gets or sets the ID of the record to be added to the campaign. Required. + Type: Returns_GuidThe ID of the record to be added to the campaign. + + + Gets or sets the name of the type of entity that is used in the operation. Required. + Type: Returns_String The name of the type of entity that is used in the operation. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the resulting campaign item. + Type: Returns_GuidThe ID of the resulting campaign item. + + + Contains the data that is needed to add members to the list. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the list. Required. + Type: Returns_Guid +The ID of the list. This corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Gets or sets an array of IDs of the members that you want to add to the list. Required. + Type: Returns_Guid[] +The array of IDs of the members that you want to add to the list. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to add a member to a list (marketing list). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the member you want to add to the list. Required. + Type: Returns_Guid +The ID of the member you want to add to the list. + + + Gets or sets the ID of the list. Required. + Type: Returns_Guid +The ID of the list that corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the resulting list member. + Type: Returns_GuidThe ID of the resulting list member that corresponds to the ListMember.ListMemberId property, which is the primary key for the ListMember intersect entity.. + + + Contains the data that is needed to add members to a team. + + + Initializes a new instance of the class. + + + Gets or sets an array of IDs for the users you want to add to the team. Required. + Type: Returns_Guid[] +The array of user IDs to add to the team. Each element of the MemberIds array corresponds to the SystemUser.SystemUserId property, which is the primary key for the SystemUser entity. + + + Gets or sets the ID of the team. Required. + Type: Returns_Guid +The ID of the team, that corresponds to the Team.TeamId attribute, which is the primary key for the Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data to add the specified principal to the list of queue members. If the principal is a team, add each team member to the queue. + + + Initializes a new instance of the class. + + + Gets or sets the principal to add to the queue. Required. + Type: The principal to add to the queue. + + + Gets or sets the ID of the queue. Required + Type: Returns_GuidThe ID of the queue. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Contains the data that is needed to add a set of existing privileges to an existing role. + + + Initializes a new instance of the class. + + + Gets or sets the IDs and depths of the privileges you want to add. Required. + Type: The IDs and depths of the privileges you want to add. + + + Gets or sets the ID of the role for which you want to add the privileges. Required. + Type: Returns_GuidThe ID of the role for which you want to add the privileges. This corresponds to the Role.RoleId attribute, which is the primary key for the Role entity. + + + Contains the response from the class. + + + Initializes a new instance of the AddPrivilegesRoleResponse class. + + + Contains the data that is needed to add a product to a kit. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the kit. Required. + Type: Returns_Guid +The ID of the kit that corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Gets or sets the ID of the product. Required. + Type: Returns_Guid +The ID of the product that corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to add recurrence information to an existing appointment. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the appointment that needs to be converted into a recurring appointment. Required. + Type: Returns_GuidThe ID of the appointment that needs to be converted into a recurring appointment. This corresponds to the Appointment.ActivityId attribute, which is the primary key for the Appointment entity. + + + Gets or sets the target, which is a recurring appointment master record to which the appointment is converted. Required. + Type: The target, which must be an entity reference for a RecurringAppointmentMaster entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the newly created recurring appointment. + Type: Returns_GuidThe ID of the newly created recurring appointment. This corresponds to the RecurringAppointmentMaster.ActivityId attribute, which is the primary key for the RecurringAppointmentMaster entity. + + + Contains the data that is needed to add a solution component to an unmanaged solution. + + + Initializes a new instance of the class. + + + Gets or sets a value that indicates whether other solution components that are required by the solution component that you are adding should also be added to the unmanaged solution. Required. + Type: Returns_Booleantrue if the components that are required by the solution component you are adding should also be added to the unmanaged solution; otherwise, false. + + + Gets or sets the ID of the solution component. Required. + Type: Returns_Guid +The ID of the solution component. + + + Gets or sets the value that represents the solution component that you are adding. Required. + Type: Returns_Int32 +The integer value of the componenttype enumeration. + + + Gets or sets the unique name of the solution you are adding the solution component to. Required. + Type: Returns_String +The unique name of the solution you are adding the solution component to. + + + Contains the response from the message. + + + Initializes a new instance of the class. + + + Returns the ID of the new solution component record. + Type: Returns_Guid +The ID of the new solution component record. This corresponds to the SolutionComponent. SolutionComponentId attribute, which is the primary key for the SolutionComponent entity. + + + deprecated Use the class. Adds a link between two entity instances in a many-to-many relationship. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: Returns_Guid. + + + deprecated Use the class and its members. + Type: Returns_Guid. + + + deprecated Use the class and its associated response class. Contains the response from the class. + + + deprecated Use the class and its associated response class. + + + Contains the data that is needed to move an entity record from a source queue to a destination queue. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the destination queue. Required. + Type: Returns_Guid +The ID of the destination queue that corresponds to the Queue.QueueId attribute, which is the primary key for the Queue entity. + + + Gets or sets the properties that are needed to create a queue item in the destination queue. Optional. + Type: +The properties that are needed to create a queue item in the destination queue. The destination queue must be an instance of the QueueItem class, which is a subclass of the Entity class. + + + Gets or sets the ID of the source queue. Optional. + Type: Returns_Guid +The ID of the source queue that corresponds to the Queue.QueueId attribute, which is the primary key for the Queue entity. + + + Gets or sets the target record to add to the destination queue. Required. + Type: +The target record to add to the destination queue, which must be an entity reference for an entity that is enabled for queues. For more information, see Enabling Entities for Queues/html/a60160f0-6de8-4aed-af92-cb180e883c82.htm#BKMK_Enabling. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the queue item that is created in the destination queue. + Type: Returns_Guid +The ID of the queue item that is created in the destination queue, which corresponds to the QueueItem.QueueItemId attribute, which is the primary key for the QueueItem entity + + + Contains the data that is needed to add a user to the auto created access team for the specified record. + + + Initializes a new instance of the class. + + + Gets or sets the record for which the access team is auto created. Required. + Type: The record for which the access team is auto created, which must be an entity reference for an entity that is enabled for access teams. To enable an entity for the auto created access teams, set the attribute to true. + + + Gets or sets the ID of system user (user) to add to the auto created access team. Required. + Type: Returns_GuidThe ID of the system user (user) that corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Gets or sets the ID of team template which is used to create the access team. Required. + Type: Returns_GuidThe ID of the team template that corresponds to the TeamTemplate.TeamTemplateId attribute, which is the primary key for the TeamTemplate entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the auto created access team. + Type: Returns_GuidThe ID of the auto created access team, which corresponds to the Team.TeamId attribute, which is the primary key for the Team entity. + + + Contains the data that is needed to apply the active routing rule to an incident. + + + Initializes a new instance of the class. + + + Gets or sets the target incident to apply the routing rule to. Required. + Type: The target incident to apply the routing rule to. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Represents a proposed appointment time and date as a result of the message. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the start, end, site ID, site name, and proposal parties. + Type: Returns_Nullable<Returns_DateTime>. The proposed appointment start date and time. + Type: []. An array of parties needed for the proposed appointment. + Type: Returns_Nullable<Returns_DateTime>. The proposed appointment end date and time. + Type: Returns_Guid. The ID of the site for the proposed appointment. + Type: Returns_String. The name of the site for the proposed appointment. + + + Gets or sets the proposed appointment end date and time. + Type: Returns_Nullable<Returns_DateTime>The proposed appointment end date and time. + + + ExtensionData + Type: Returns_ExtensionDataObject + + + Gets or sets an array of parties needed for the proposed appointment. + Type: []The array of parties needed for the proposed appointment. + + + Gets or sets the ID of the site for the proposed appointment. + Type: Returns_Guid +The ID of the site for the proposed appointment. + + + Gets or sets the name of the site for the proposed appointment. + Type: Returns_String +The name of the site for the proposed appointment. + + + Gets or sets the proposed appointment start date and time. + Type: Returns_Nullable<Returns_DateTime>The proposed appointment start date and time. + + + Provides the details of an appointment request for the class. + + + Initializes a new instance of the class. + + + Gets or sets the time offset in minutes, from midnight, when the first occurrence of the appointment can take place. + Type: Returns_Int32The time offset in minutes. + + + Gets or sets the appointments to ignore in the search for possible appointments. + Type: The appointments to ignore in the search for possible appointments. + + + Gets or sets any additional constraints. + Type: +Additional constraints for the appointment. + + + Gets or sets the direction of the search. + Type: +The search direction. + + + Gets or sets the appointment duration, in minutes. + Type: Returns_Int32 +The appointment duration, in minutes. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the number of results to be returned from the search request. + Type: Returns_Int32 +The number of results to be returned from the search request. + + + Gets or sets the scheduling strategy that overrides the default constraints. + Type: +The scheduling strategy that overrides the default constraints. + + + Gets or sets the time, in minutes, for which the appointment recurrence is valid. + Type: Returns_Int32 +The time, in minutes, for which the appointment recurrence is valid. + + + Gets or sets a value to override the time zone that is specified by the property. + Type: Returns_Int32 +A value to override the time zone that is specified by the property. + + + Gets or sets the resources that are needed for this appointment. + Type: +The resources that are needed for this appointment. + + + Gets or sets the recurrence rule for appointment recurrence. + Type: Returns_String +The recurrence rule.Example: "FREQ=WEEKLY;BYDAY=MO;INTERVAL=60";Where: BYDAY means which day = MO,TU,THINTERVAL is an integer valueFREQ="DAILY","WEEKLY"This is similar to the Recurrence Pattern in Asynchronous Job Execution/html/abfb5df5-138b-4c7e-8730-4903aa2be3d3.htm. + + + Gets or sets the date and time for the first possible instance of the appointment. + Type: Returns_Nullable<Returns_DateTime> +The date and time for the first possible instance of the appointment. + + + Gets or sets the date and time to end the search. + Type: Returns_Nullable<Returns_DateTime> +The date and time to end the search. + + + Gets or sets the date and time to begin the search. + Type: Returns_Nullable<Returns_DateTime> +The date and time to begin the search. + + + Gets or sets the ID of the service to search for. + Type: Returns_Guid +The ID of the service, which corresponds to the Service.ServiceId attribute, which is the primary key for the Service entity. + + + Gets or sets the sites where the requested appointment can take place. + Type: Returns_Guid[] +The array of site IDs, where the requested appointment can take place. The site ID corresponds to the Site.SiteId attribute, which is the primary key for the Site entity. + + + Gets or sets the time zone code of the user who is requesting the appointment. + Type: Returns_Int32 +The time zone code of the user who is requesting the appointment. + + + Specifies the appointments to ignore in an appointment request from the class. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the appointments and resource ID. + Type: Returns_Guid[]. The array of IDs of appointments to ignore. + Type: Returns_Guid. The resource for which appointments are to be ignored. + + + Gets or sets an array of IDs of appointments to ignore. + Type: Returns_Guid[] +The array of IDs of appointments to ignore. + + + ExtensionData + Type: Returns_ExtensionDataObject. + + + Gets or sets the resource for which appointments are to be ignored. + Type: Returns_Guid +The resource for which appointments are to be ignored. + + + Contains the data that is needed to assign the specified record to a new owner (user or team) by changing the OwnerId attribute of the record. + + + Initializes a new instance of the class. + + + Gets or sets the user or team for which you want to assign a record. Required. + Type: The reference to a user or team record. + + + Gets or sets the target record to assign to another user or team. Required. + Type: The target record to assign. The value must be an entity reference for an entity that supports this message. For a list of supported entity types, see the class. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + deprecated Use the class. Contains the data that is needed to add a link between two entity instances in a many-to-many relationship. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: The entity reference for the first record. + + + deprecated Use the class and its members. + Type: The entity reference for the second record. + + + deprecated Use the class and its members. + Type: Returns_StringThe name of the relationship between the two entities. + + + deprecated Use the class and its associated response class. Contains the response from the class. + + + deprecated Use the class and its associated response class. + + + Contains the details of changes to entity attributes. + + + Initializes a new instance of the class. + + + Gets a list of deleted attributes. + Type: Returns_DictionaryA dictionary containing the deleted attributes. + + + Gets a collection of attempted attribute changes that are not valid. + Type: The data collection of attempted attribute changes. + + + Gets or sets a collection of new values for an entity attribute. + Type: The collection of new values for an entity attribute. + + + Gets or sets a collection of former values for an entity attribute. + Type: The collection of former values for an entity attribute. + + + Provides a base class for storing the details of data changes. + + + Initializes a new instance of the class. + + + Gets or sets the related Audit record that contains the change details. + Type: The audit record. + + + Gets or sets the structure that contains extra data. Optional. + Type: Returns_ExtensionDataObject. + + + Contains a collection of objects. + + + Initializes a new instance of the class. + + + Adds an object to the collection. + An object that contains change details. + + + Gets the AuditDetail collection. + Type: <>The collection of instances. + + + Indicates the number of elements in the collection. + Type: Returns_Int32The number of elements in the collection. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the element at the specified index. + Type: +The element at the specified index. + Type: Returns_Int32. The element index. + + + Indicates whether more records exist. + Type: Returns_Booleantrue if more records exist; otherwise, false. + + + Gets or sets a paging cookie. + Type: Returns_String +The paging cookie value. + + + Gets or sets the total record count in the collection. + Type: Returns_Int32The total record count in the collection. + + + Identifies a pn_MS_SQL_Server partition that is used to store changes to entity data records. + + + Initializes a new instance of the class. + + + Gets or sets the end date and time for the last audit record in the partition. + Type: Returns_Nullable<Returns_DateTime> +The date and time of the last audit record in the partition. + + + ExtensionData + Type: Returns_ExtensionDataObjectA structure that contains extra data. + + + Gets or sets the sequence (serial) number of the partition. + Type: Returns_Int32The sequence (serial) number of the partition. + + + Gets or sets the size, in bytes, of the partition. + Type: Returns_Int64The size, in bytes, of the partition. + + + Gets or sets the creation date and time of the first audit record in the partition. + Type: Returns_Nullable<Returns_DateTime>The creation date and time of the first audit record in the partition. + + + Contains a data collection of objects. + + + constructor_initializes class. + + + ExtensionData + Returns_String + + + Gets or sets whether the partition change list is a logical collection. + Type: Returns_Booleantrue if the audit partition list is a logical collection; otherwise, false. + + + Contains the data that is needed to generate a new set of attribute mappings based on the metadata. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the entity map to overwrite when the automated mapping is performed. Required. + Type: Returns_GuidThe ID of the entity map. + + + Contains the response from the class. + + + constructor_initializes class. + + + Contains the data that is needed to send email messages asynchronously. + + + Initializes a new instance of the class. + + + Gets or sets the query to find the email activities to send. + Type: The query to find the email activities to send. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting emails. Required. + Type: The collection of resulting emails. + + + Gets a value that indicates whether the email has attachments. Required. + Type: Returns_Booleantrue if the email has attachments; otherwise, false. + + + Contains the data that is needed to schedule or “book” an appointment, recurring appointment, or service appointment (service activity). + + + Initializes a new instance of the Class. + + + Type: Returns_Boolean. + + + Gets or sets the record that is the target of the book operation. Required. + Type:The target of the book operation. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Returns Returns_Object. + + + Gets the appointment validation results. + Type:The appointment validation results. + + + Contains the data that is needed to submit a bulk delete job that deletes selected records in bulk. This job runs asynchronously in the background without blocking other activities. + + + Initializes a new instance of the class. + + + Gets or sets an array of IDs for the system users (users) who are listed in the Cc box of the email notification. Required. + Type: Returns_Guid[] The array of IDs for the system users (users) who are listed in the Cc box of the email notification. + + + Gets or sets the name of an asynchronous bulk delete job. Required. + Type: Returns_StringThe name of the asynchronous bulk delete job. + + + Gets or sets an array of queries for a bulk delete job. Required. + Type: The array of queries for a bulk delete job. + + + Gets or sets the recurrence pattern for the bulk delete job. Optional. + Type: Returns_StringThe recurrence pattern for the bulk delete job. + + + Gets or sets a value that indicates whether an email notification is sent after the bulk delete job has finished running. Required. + Type: Returns_Booleantrue if an email notification should be sent after the bulk deletion is finished or has failed; otherwise, false. + + + Gets or sets the ID of the data import job. Optional. + Type: Returns_Nullable<Returns_Guid> The ID of the data import job that corresponds to the ImportrId property, which is the primary key for the Import entity. + + + Gets or sets the start date and time to run a bulk delete job. Optional. + Type: Returns_DateTimeThe start date and time to run a bulk delete job. + + + Gets or sets an array of IDs for the system users (users) who are listed in the To box of an email notification. Required. + Type: Returns_Guid[] The array of IDs for the system users (users) who are listed in the To box of an email notification. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of an asynchronous bulk delete job that performs a bulk deletion. + Type: Returns_GuidThe ID of an asynchronous bulk delete job that performs a bulk deletion.. + + + Contains the data that is needed to submit an asynchronous system job that detects and logs multiple duplicate records. + + + Initializes a new instance of the class. + + + Gets or sets an array of IDs for the system users (users) who are listed in the Cc box of the email notification. + Type: Returns_Guid[]The array of IDs for the system users (users) who are listed in the Cc box of the email notification. + + + Gets or sets the name of the asynchronous system job that detects and logs multiple duplicate records. Required. + Type: Returns_StringThe name of the asynchronous system job that detects and logs multiple duplicate records. + + + Gets or sets the query criteria for detecting multiple duplicate records. Required. + Type: The query criteria for detecting multiple duplicate records. + + + Gets or sets the recurrence pattern for the asynchronous system job that detects multiple duplicate records. Optional. + Type: Returns_StringThe recurrence pattern for the asynchronous system job that detects multiple duplicate records. + + + Gets or sets the start date and time of an asynchronous system job that detects and logs multiple duplicate records. Optional. + Type: Returns_DateTimeThe start date and time of an asynchronous system job that detects and logs multiple duplicate record. + + + Gets or sets a value that indicates whether an email notification is sent after the asynchronous system job that detects multiple duplicate records finishes running. Required. + Type: Returns_Booleantrue if an email notification should be sent after the job to detect multiple duplicate records is finished running or has failed; otherwise, false. + + + Sets the ID of the template (email template) that is used for the email notification. + Type: Returns_GuidThe ID of the template (email template) that is used for the email notification that corresponds to the TemplateId attribute, which is the primary key for the Template entity.. + + + Gets or sets an array of IDs for the system users (users) who are listed in the To box of the email notification. + Type: Returns_Guid[] The array of IDs for the system users (users) who are listed in the To box of the email notification. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of an asynchronous bulk detect duplicates job that detects and logs duplicate records. + Type: Returns_GuidThe ID of an asynchronous bulk detect duplicates job that detects and logs duplicate records. + + + Contains the possible sources of a bulk operation. + + + The bulk operation is for distributing a campaign activity to members of a list. Value = 1. + + + The bulk operation is to distribute a quick campaign to members of a list of accounts, contacts, or leads that are selected by a query. Value = 0. + + + internal + + + internal + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_Int32 + + + internal + + + internal + + + internal + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + internal + + + Returns . + + + Returns . + + + internal + + + internal + + + Contains the data that is needed to calculate the value of an opportunity that is in the "Won" state. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the opportunity. Required. + Type: Returns_GuidThe ID of the opportunity that corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the actual value of an opportunity. + Type: Returns_DecimalThe actual value of an opportunity. + + + Contains the data that is needed to calculate the total time, in minutes, that you used while you worked on an incident (case). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the incident (case). Required. + Type: Returns_GuidThe ID of the incident (case) that corresponds to the IncidentId.IncidentId attribute, which is the primary key for the Incident entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the total time, in minutes that you use when you work on an incident (case). + Type: Returns_Int64The total time, in minutes that you use when you work on an incident (case). + + + Contains the data that is needed to cancel a contract. + + + Initializes a new instance of the class. + + + Gets or sets the contract cancellation date. Required. + Type: Returns_DateTimeThe contract cancellation date. + + + Gets or sets the ID of the contract. Required. + Type: Returns_GuidThe ID of the contract that corresponds to the Contract.ContractId attribute, which is the primary key for the Contract entity. + + + Gets or sets the status of the contract. Required. + Type: The status of the contract. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to cancel a sales order (order). + + + Initializes a new instance of the class. + + + Gets or sets the close activity that is associated with the sales order (order) that you want to cancel. Required. + Type: The close activity that is associated with the sales order (order) that you want to cancel. This is an instance of the OrderClose class, which is a subclass of the class. + + + Gets or sets the status of the sales order (order). Required. + Type: The status of the sales order (order). + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to check whether the incoming email message is relevant to the pn_microsoftcrm system. + + + Initializes a new instance of the class. + + + Gets or sets the addresses of the blind carbon copy (Bcc) recipients for the email message. + Type: Returns_StringThe addresses of the blind carbon copy (Bcc) recipients for the email message. + + + Gets or sets the addresses of the carbon copy (Cc) recipients for the email message. + Type: Returns_StringThe carbon copy (Cc) recipients for the email message. + + + Type: . + + + Gets or sets the from address for the email message. + Type: Returns_StringThe from address for the email message. + + + Gets or sets the ID of the email message stored in the email header. Required. + Type: Returns_StringThe ID of the email message stored in the email header. + + + Gets or sets the subject line for the email message. Optional. + Type: Returns_StringThe subject line for the email message. + + + Gets or sets the addresses of the recipients of the email message. + Type: Returns_StringThe addresses of the recipients of the email message. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the reason for the result in the property. + Type: Returns_Int32 +The reason for the failure. + + + Gets a value that indicates whether the message should be delivered to pn_microsoftcrm. + Type: Returns_Booleantrue if the message should be delivered to pn_microsoftcrm; otherwise, false. + + + Contains the data that is needed to check whether the incoming email message should be promoted to the pn_microsoftcrm system. + + + Initializes a new instance of the class. + + + Provides the direction of a mail checked for promotion for uniqueness. + Returns . + + + Gets or sets the message ID that is contained in the email header. Required. + Type: Returns_StringThe message ID that is contained in the email header. All email messages have an ID property in their headers. This is similar to a GUID and is used to identify the message and to see if a specific email message has already been promoted (added) to pn_microsoftcrm. + + + Gets or sets the subject of the message. Optional. + Type: Returns_StringThe subject of the message. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the reason for the result in the property. + Type: Returns_Int32The reason for the result in the property. + + + Gets a value that indicates whether the message should be promoted to pn_microsoftcrm. + Type: Returns_BooleanIndicates whether the message should be promoted to pn_microsoftcrm. true, to promote, otherwise, false. + + + internal + + + internal + + + internal + Type: Returns_Guid. + + + internal + Type: Returns_Int32. + + + internal + + + internal + + + Contains the data that is needed to copy an existing contract and its line items. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the contract to be copied. Required. + Type: Returns_GuidThe ID of the contract to be copied that corresponds to the Contract.ContractId attribute, which is the primary key for the Contract entity. + + + Gets or sets a value that indicates whether the canceled line items of the originating contract are to be included in the copy (clone). Required. + Type: Returns_Booleantrue to include canceled line items, otherwise, false (default). + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting contract. + Type: The resulting contract. This is an instance of the Contract class, which is a subclass of the Entity class. + + + Contains the data that is needed to close an incident (case). + + + Initializes a new instance of the class. + + + Gets or sets the incident resolution (case resolution) that is associated with the incident (case) to be closed. Required. + Type: The incident resolution (case resolution) that is associated with the incident (case) to be closed. This is an instance of the IncidentResolution class, which is a subclass of the Entity class. + + + Gets or sets a status of the incident. Required. + Type: The status of the incident. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to close a quote. + + + Initializes a new instance of the class. + + + Gets or sets a quote to be closed. Required. + Type: The quote to be closed. This is an instance of the QuoteClose class, which is a subclass of the Entity class. + + + Gets or sets a status of the quote. Required. + Type: The status of the quote. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Provides additional information about the solution components that are related to a missing component. + + + constructor_initializes class. + + + Gets or sets the display name of the solution component. + Type: Returns_String +The display name of the solution component. + + + Gets or sets the structure that contains extra data. + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the solution component. + Type: Returns_Guid +The ID of the solution component. + + + Gets or sets the display name of the parent solution component. + Type: Returns_String +The display name of the parent solution component. + + + Gets or sets the ID of the parent solution component. + Type: Returns_Guid +The ID of the parent solution component. + + + Gets or sets the schema name of the parent solution component. + Type: Returns_String +The schema name of the parent solution component.. + + + Gets or sets the schema name of the solution component. + Type: Returns_String +The schema name of the solution component. + + + Gets or sets the name of the solution. + Type: Returns_String +The name of the solution. + + + Gets or sets the component type of the solution component. + Type: Returns_Int32 +The component type of the solution component. + + + deprecated Use the class. Creates a compound entity, such as a sales order (order), invoice, quote, or duplicate rule (duplicate detection rule); and its related entity, such as a sales order detail (order product), invoice detail (invoice product), quote detail (quote product), or duplicate rule condition. + + + Initializes a new instance of the class. + + + deprecated + Type: + + + deprecated + Type: + + + deprecated Use the class and its associated response class. + + + deprecated + + + deprecated + Type: Returns_Guid + + + Contains the data that is needed to update a duplicate rule (duplicate detection rule) and its related duplicate rule conditions. + + + Initializes a new instance of the class. + + + Gets or sets a collection of the duplicate rule conditions that you want updated. Required. + Type: The collection of the duplicate rule conditions that you want updated. + + + Gets or sets the duplicate rule that you want updated. Required. + Type: The duplicate rule that you want updated. This is instance of a DuplicateRule class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + deprecated Use the class. Contains the data that is needed to update a compound record, such as a sales order (order), invoice, quote, or duplicate rule (duplicate detection rule); and its related detail record, such as a sales order detail (order product), invoice detail (invoice product), quote detail (quote product), or duplicate rule condition. + + + Initializes a new instance of the class. + + + deprecated + Type: + + + deprecated + Type: + + + deprecated Use the class and its associated response class. Contains the response from the class. + + + Initializes a new instance of the class. + + + Specifies additional constraints to be applied when you select resources for appointments. + + + constructor_initializes class. + + + Initializes a new instance of the class that sets the object ID, constraint type, and constraints. + Type: Returns_String. The set of constraints. + Type: Returns_String. The constraint type. Must be "Resource Selection". + Type: Returns_Guid. The ID of the calendar rule. + + + Gets or sets the set of additional constraints. + Type: Returns_String +The set of additional constraints. + + + Gets or sets the type of constraints. + Type: Returns_String +The type of constraints, which must be "Resource Selection". + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the calendar rule to which the constraint is applied. + Type: Returns_Guid +The ID of the calendar rule to which the constraint is applied. This corresponds to the CalendarRule.CalenderRuleID attribute, which is the primary key for the CalendarRule entity. + + + Contains the data that is needed to convert a kit to a product. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the kit. Required. + Type: Returns_GuidThe ID of the kit that corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to convert a team of type owner to a team of type access. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the owner team to be converted. Required. + Type: Returns_GuidThe ID of the team to be converted that corresponds to the Team.TeamId attribute, which is the primary key for the Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to convert a product to a kit. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the product. Required. + Type: Returns_GuidThe ID of the product that corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to convert a quote to a sales order. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes to retrieve in the resulting sales order (order). Required. + Type: The collection of attributes to retrieve in the resulting sales order (order). + + + Gets or sets the ID of the quote to convert. Required. + Type: Returns_GuidThe ID of the quote to convert that corresponds to the Quote.QuoteId attribute, which is the primary key for the Quote entity.. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting sales order (order). Required. + Type: The resulting sales order (order). This is an instance of the SalesOrder class. + + + Contains the data that is needed to convert a sales order to an invoice. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes to retrieve from the resulting invoice. Required. + Type: The collection of attributes to retrieve from the resulting invoice. + + + Gets or sets the ID of the sales order (order) to convert. Required. + Type: Returns_GuidThe ID of the sales order (order) to convert that corresponds to the SalesOrder.SalesOrderId attribute, which is the primary key for the SalesOrder entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting invoice. + Type:The resulting invoice. This is an instance of the Invoice class. + + + Contains the data that is needed to copy a campaign. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the base campaign to copy from. Required. + Type: Returns_GuidThe ID of the base campaign to copy from that corresponds to the Campaign.CampaignId attribute, which is the primary key for the Campaign entity. + + + Gets or sets a value that indicates whether to save the campaign as a template. Required. + Type: Returns_Booleantrue to save the campaign as a template; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the newly created campaign. + Type: Returns_GuidThe ID of the newly created campaign that corresponds to the Campaign.CampaignId attribute, which is the primary key for the Campaign entity. + + + Contains the data that is needed to create a copy of the campaign response. + + + Initializes a new instance of the class. + + + Gets or sets the campaign response to copy from. Required. + Type: The campaign response to copy from. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the newly created campaign response. + Type: Returns_GuidThe ID of the newly created campaign response that corresponds to the CampaignResponse.ActivityId attribute, which is the primary key for the CampaignResponse entity. + + + Contains the data that is needed to create a static list from the specified dynamic list and add the members that satisfy the dynamic list query criteria to the static list. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the dynamic list. Required. + Type: Returns_GuidThe ID of the dynamic list that corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the created static list. + Type: Returns_GuidThe ID of the created static list that corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Contains the data that is needed to copy the members from the source list to the target list without creating duplicates. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the source list. Required. + Type: Returns_GuidThe ID of the source list that corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Gets or sets the ID of the target list. Required. + Type: Returns_GuidThe ID of the target list that corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to create a new entity form that is based on an existing entity form. + + + Initializes a new instance of the CopySystemFormRequest class + + + Gets or sets the ID value of the form to copy. Required. + Type: Returns_Guid +The ID value of the form to copy. Required. This corresponds to the SystemForm. FormId attribute, which is the primary key for the SystemForm entity. + + + Gets or sets the SystemForm that the original system form should be copied to. Optional. + Returns . + + + Contains the response from the class. + + + Initializes a new instance of the class + + + Gets the ID of the system form that the original was copied to. + Type: Returns_Guid +If no Target was specified, this is the ID of the system form that the original was copied to. It corresponds to the SystemForm.FormId attribute, which is the primary key for the SystemForm entity. + + + Contains the data that is needed to create a quick campaign to distribute an activity to members of a list (marketing list). + + + Initializes a new instance of the class. + + + Gets or sets the activity to be distributed. Required. + Type: The activity to be distributed. + + + Gets or sets a display name for the campaign. Required. + Type: Returns_StringThe display name for the campaign. + + + Gets or sets the ID of the list. Required. + Type: Returns_GuidThe ID of the list that corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Gets or sets the owner for the activity. Required. + Type: The owner for the activity. + + + Gets or sets the propagation ownership options. Required. + Type: The propagation ownership options. + + + Gets or sets a value that indicates whether an asynchronous job is used to distribute an activity, such as an email, fax, or letter, to the members of a list. Required. + Type: Returns_BooleanIndicates whether an asynchronous job is used to distribute an activity, such as an email, fax, or letter, to the members of a list. true if an asynchronous job is used to distribute the activity; false if mail merge is used to distribute the activity. + + + Gets or sets a value that indicates whether the activity is both created and executed. Required. + Type: Returns_BooleanIndicates whether the activity is both created and executed. true if an activity is both created and executed; false if an activity is created but not executed. + + + Gets or sets the ID of the queue to which the created activities are added. Required. + Type: Returns_GuidThe ID of the queue to which the created activities are added that corresponds to the Queue.QueueId attribute, which is the primary key for the Queue entity. + + + Gets or sets a value that indicates whether to send an email about the new activity. Required. + Type: Returns_BooleanIndicates whether to send an email about the new activity. true if you want email messages sent automatically; otherwise, false. + + + Gets or sets the ID of the email template. Required. + Type: Returns_GuidThe ID of the email template that corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the bulk operation created to distribute the campaign activity. + Type Returns_GuidThe ID of the bulk operation created to distribute the campaign activity that corresponds to the BulkOperation.ActivityId attribute, which is the primary key for the BulkOperation entity. + + + Contains the data that is needed to create an exception for the recurring appointment instance. + + + Initializes a new instance of the class. + + + Gets or sets whether the appointment instance is deleted. + Type: Returns_BooleanIndicates if the appointment instance is deleted. true, if deleted, otherwise, false. + + + Gets or sets the original start date of the recurring appointment. + Type: Returns_DateTimeThe original start date of the recurring appointment. + + + Gets or sets the target appointment for the exception. + Type: The target appointment for the exception. This must be an entity reference for an appointment entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the exception appointment. + Type: Returns_GuidThe ID of the exception appointment. This corresponds to the Appointment. AppointmentId attribute, which is the primary key for the Appointment entity. + + + Contains the data that is needed to create future unexpanded instances for the recurring appointment master. + + + Initializes a new instance of the class. + + + Gets or sets the number of instances to be created. Required. + Type: Returns_Int32The number of instances to be created. + + + Gets or sets the target appointment instance to create. Required. + Type: The target appointment instance to create. This is an instance of the Appointment class, which is a subclass of the Entity class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets whether the series can be expanded. + Type: Returns_BooleanIndicates whether the series can be expanded. true if can be expanded, otherwise, false. + + + Contains the data that is needed to create a workflow (process) from a workflow template. + + + Initializes a new instance of the CreateWorkflowFromTemplateRequest class. + + + Gets or sets the name of the new workflow. Required. + Type: Returns_StringThe name of the new workflow. + + + Gets or sets the ID of the workflow template. Required. + Type: Returns_GuidThe ID of the workflow template. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the new workflow. + Type: Returns_GuidThe ID of the new workflow. + + + Contains the data that is needed to delete all audit data records up until a specified end date. + + + Initializes a new instance of the DeleteAuditDataRequest class. + + + Gets or sets the end date and time. Required. + Type: Returns_DateTimeThe end date and time. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the number of deleted audit partitions or the number of deleted Audit records. + Type: Returns_Int32The number of deleted audit partitions or records. + + + Contains the data that is needed to delete instances of a recurring appointment master that have an “Open” state. + + + Initializes a new instance of the class. + + + Gets or sets the end date for the recurring appointment series. Required. + Type: Returns_DateTimeThe end date for the appointment series. + + + Gets or sets the value to be used to set the status of appointment instances that have already passed. Required. + Type: Returns_DateTimeThe status code. The value should be one of the option set values for the RecurringAppointmentMaster.StateCode attribute. For more information, see the metadata for this entity. metadata_browser + + + Gets or sets the target record for the operation. Required. + Type: The record that defines the instances to delete. This must be an entity reference for a RecurringAppointmentMaster entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to create an email activity record from an incoming email message (Track in CRM). + + + Initializes a new instance of the class. + + + Gets or sets a collection of activity mime attachment (email attachment) instances to attach to the email message. Required. + Type: The collection of ActivityMimeAttachment records to attach to the email message. + + + Gets or sets the addresses of the blind carbon copy (Bcc) recipients for the email message. Required. + Type: Returns_StringThe addresses of the blind carbon copy (Bcc) recipients for the email message. + + + Gets or sets the message body for the email. Required. + Type: Returns_StringThe message body for the email. + + + Gets or sets the addresses of the carbon copy (Cc) recipients for the email message. Required. + Type: Returns_StringThe addresses of the carbon copy (Cc) recipients for the email message. + + + Type: . + + + Gets or sets the from address for the email message. Required. + Type: Returns_StringThe from address for the email message. + + + Gets or sets the level of importance for the email message. Required. + Type: Returns_StringThe level of importance for the email message. + + + Gets or sets the ID of the email message stored in the email header. Required. + Type: Returns_StringThe ID of the email message stored in the email header. + + + Gets or sets the time the message was received on. Required. + Type: Returns_DateTimeThe time the message was received on. + + + Gets or sets the subject line for the email message. Optional. + Type: Returns_StringThe subject line for the email message. + + + Gets or sets the email address of the account that is creating the email activity instance. Required. + Type: Returns_StringThe email address of the account that is creating the email activity instance. + + + Gets or sets the addresses of the recipients of the email message. Required. + Type: Returns_StringThe addresses of the recipients of the email message. + + + Type: Returns_Boolean. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the email. + Type: Returns_GuidThe ID of the email. This corresponds to the Email.EmailId attribute, which is the primary key for the Email entity. + + + Contains the data that is needed to create an email activity record from the specified email message (Track in CRM). + + + Initializes a new instance of the class. + + + Gets or sets a collection of activity mime attachment (email attachment) records to attach to the email message. Required. + Type: The collection of attachments, which a collection of ActivityMimeAttachment records.. + + + Gets or sets the addresses of the blind carbon copy (Bcc) recipients for the email message. Required. + Type: Returns_String +The addresses of the BCC recipients. + + + Gets or sets the message body for the email. Required. + Type: Returns_String +The message body. + + + Gets or sets the addresses of the carbon copy (Cc) recipients for the email message. Required. + Type: Returns_String +The addresses of the CC recipients. + + + Gets or sets the ID of the email from which to create the email. Required. + Type: Returns_Guid +The ID of the email, which corresponds to the Email.EmailId attribute, which is the primary key for the Email entity.. + + + Gets or sets the extra properties for the email. Optional. + Type: The extra properties. + + + Gets or sets the from address for the email message. Required. + Type: Returns_String +The from address for the email. + + + Gets or sets the level of importance for the email message. Required. + Type: Returns_String +The level of importance for the email. + + + Gets or sets the ID of the email message stored in the email header. Required. + Type: Returns_String +The the ID of the email message from the email header. + + + Gets or sets the time the message was received on. Required. + Type: Returns_DateTimeThe time the message was received. + + + Gets or sets the subject line for the email message. Optional. + Type: Returns_String +The subject line for the email. + + + Gets or sets the email address of the account that is creating the email activity instance. Required. + Type: Returns_String +The email address of the account that is creating the email activity. + + + Gets or sets the addresses of the recipients of the email message. Required. + Type: Returns_String +The addresses of the recipients of the email message. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the newly created email activity. + Type: Returns_GuidThe ID of the newly created email activity. This corresponds to the Email.EmailId attribute, which is the primary key for the Email entity. + + + Contains the data that is needed to deprovision a language. + + + constructor_initializes class + + + Gets or sets the language to deprovision. Required. + Type: Returns_Int32The language to deprovision. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class + + + deprecated Use the class. Contains the data that is needed to remove a link between two entity instances in a many-to-many relationship. + + + deprecatedInitializes a new instance of the class. + + + deprecated Use the class and its members. + Type: . + + + deprecated Use the class and its members. + Type: . + + + deprecated Use the class and its members. + Type: Returns_String + + + deprecated Use the class and its associated response class. Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to create a bulk operation that distributes a campaign activity. The appropriate activities, such as a phone call or fax, are created for the members of the list that is associated with the specified campaign activity. + + + Initializes a new instance of the class. + + + Gets or sets the activity to be distributed. Required. + Type: The activity to be distributed, which must be instance of an activity class. You can only use activities that specify a recipient: a phone call, appointment, letter, fax, or email. . + + + Gets or sets the ID of the campaign activity for which the activity is distributed. Required. + Type: Returns_GuidThe ID of the campaign activity for which the activity is distributed. This corresponds to the CampaignActivity.ActivityId attribute, which is the primary key for the CampaignActivity entity. + + + Gets or sets the owner for the newly created activity. Required. + Type: The owner for the newly created activity. + + + Gets or sets the ownership options for the activity. Required. + Type: The ownership options for the activity. + + + Gets or sets a value that indicates whether an asynchronous job is used to distribute activities, such as an email, fax, or letter, to the members of a list. Required. + Type: Returns_Booleantrue if an asynchronous job is used to distribute the activity; false if mail merge is used to distribute the activity. + + + Gets or sets a value that indicates whether the activity is both created and executed. Required. + Type: Returns_BooleanIndicates whether the activity is both created and executed. true if an activity is both created and executed; false if an activity is created but not executed. + + + Gets or sets the ID of the queue to which the created activity is added. Optional. + Type: Returns_GuidThe ID of the queue to which the created activity is added. This corresponds to the Queue.QueueId attribute, which is the primary key for the Queue entity. + + + Gets or sets a value that indicates whether to send an email about the new activity. Required. + Type: Returns_Booleantrue if you want emails sent automatically; otherwise, false. Use this property for the email activity. + + + Gets or sets the ID of the email template. Required. + Type: Returns_GuidThe ID of the email template. This corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. Use the email template, if is true. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the bulk operation that is used to distribute the campaign activity. + Type: Returns_GuidThe ID of the bulk operation that is used to distribute the campaign activity. This corresponds to the BulkOperation.ActivityId attribute, which is the primary key for the BulkOperation entity. + + + Contains the data that is needed to download a report definition. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the report to download. + Type: Returns_GuidThe ID of the report to download. This corresponds to the Report.ReportId attribute, which is the primary key for the Report entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the report definition. + Type: Returns_StringThe report definition. Contains a UTF-8 encoded XML document in the form of a string that represents the entire content of the report definition (RDL) file. + + + Describes which members of a bulk operation to retrieve. + + + Retrieve account entities. Value = 0. + + + Retrieve all entities. Value = 3. + + + Retrieve contact entities. Value = 1. + + + Retrieve lead entities. Value = 2. + + + Specifies the results of a scheduling operation using the , , or message. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the error code and resource list. + Type: []. The array of information about a resource that has a scheduling problem for an appointment. + Type: Returns_String. The reason for a scheduling failure. + + + Gets or sets the reason for a scheduling failure. + Type: Returns_StringThe reason for a scheduling failure. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the array of information about a resource that has a scheduling problem for an appointment. + Type: []The array of information about a resource that has a scheduling problem for an appointment. + + + Contains the data that is needed to execute a saved query (view) that has the specified ID. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the saved query (view) to execute. + Type: Returns_GuidThe ID of the saved query (view) to execute. This corresponds to the SavedQuery.SavedQueryId property, which is the primary key for the SavedQuery entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the saved query (view). + Type: Returns_StringThe the results of the saved query (view). + + + Contains the data that is needed to execute the user query (saved view) that has the specified ID. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the user query (saved view) record to be executed. + Type: The ID of the user query (saved view) record to be executed. The ID corresponds to the UserQuery.UserQueryId property, which is the primary key for the UserQuery entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the user query (saved view). + Type: Returns_StringThe results of the user query (saved view). + + + deprecated Use the class. + + + deprecated + + + deprecated + Type: Returns_String + + + deprecated Use the class and its associated response class. + + + deprecated + + + deprecated + Type: Returns_String + + + Contains the data that is needed to execute a workflow. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the record on which the workflow executes. Required. + Type: Returns_Guid. The ID of the record on which the workflow executes. + + + internal + Returns . + + + Gets or sets the ID of the workflow to execute. Required. + Type: Returns_Guid. The ID of the workflow to execute. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the asynchronous operation (system job) that was created. + Type: Returns_GuidThe ID of the asynchronous operation. + + + Contains the data that is needed to convert the calendar rules to an array of available time blocks for the specified period. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the calendar. + Type: Returns_GuidThe ID of the calendar. This corresponds to the Calendar.CalendarId property, which is the primary key for the Calendar entity. + + + Gets or sets the end of the time period to expand. + Type: Returns_DateTimeThe end of the time period to expand. + + + Gets or sets the start of the period to expand. + Type: Returns_DateTimeThe start of the time period to expand. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a set of time blocks with appointment information. + Type:The set of time blocks with appointment information. + + + Contains the data that is needed to export a data map as an XML formatted data. + + + Initializes a new instance of the class. + + + Gets or sets a value that indicates whether to export the entity record IDs contained in the data map. Required. + Type: Returns_BooleanIndicates whether to export the entity record IDs contained in the data map. true to export the record IDs, otherwise, false. + + + Gets or sets the ID of the import map (data map) to export. Required. + Type: Returns_GuidThe ID of the import map (data map) to export. This corresponds to the ImportMap.ImportMapId attribute, which is the primary key for the ImportMap entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the XML representation of the exported data map. + Type: Returns_StringThe XML representation of the exported data map. + + + Contains the data that is needed to export a solution. + + + Initializes a new instance of the class + + + Gets or sets whether auto numbering settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the auto numbering settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether calendar settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the calendar settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether customization settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the customization settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether email tracking settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the email tracking settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether general settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the general settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether ISV.Config settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the ISV.Config settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether marketing settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the marketing settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether outlook synchronization settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the outlook synchronization settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether relationship role settings should be included in the solution being exported. Optional. + Type: Returns_Booleantrue if the relationship role settings should be included in the solution being exported; otherwise, false. + + + Gets or sets whether the solution should be exported as a managed solution. Required. + Type: Returns_Booleantrue if the solution should be exported as a managed solution; otherwise, false. + + + Gets or sets the unique name of the solution to be exported. Required. + Type: Returns_StringThe unique name of the solution to be exported. Required. + + + Get or set a value indicating the version that the exported solution will support. + Type: Returns_StringA value indicating the version that the exported solution will support. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the compressed file that represents the exported solution. + Type: Returns_Byte[] The compressed file that represents the exported solution. + + + Contains the data that is needed to export all translations for a specific solution to a compressed file. + + + Initializes a new instance of the class + + + Gets or sets the unique name for the unmanaged solution to export translations for. Required. + Type: Returns_StringThe unique name for the unmanaged solution to export translations for. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class + + + Gets the file that represents the data that is exported for translation. + Type: Returns_Byte[]The file that represents the data that is exported for translation. + + + Contains the data that is needed to convert a query in FetchXML to a QueryExpression. + + + Initializes a new instance of the class. + + + Gets or sets the query to convert. + Type: Returns_StringThe query to convert. This The string must contain a query that you express in FetchXML. For more information, see FetchXML Schema/html/82cae525-a789-4884-9fc0-a3e874ee1567.htm. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the query conversion. + Type: The results of the query conversion. + + + Contains the data that is needed to find a parent resource group (scheduling group) for the specified resource groups (scheduling groups). + + + Initializes a new instance of the class. + + + Gets or sets an array of IDs of the children resource groups. + Type: Returns_Guid[]The array of IDs of the children resource groups. + + + Gets or sets the ID of the parent resource group. + Type: Returns_GuidThe ID of the parent resource group. This corresponds to the ResourceGroup.ResourceGroupId attribute, which is the primary key for the ResourceGroup entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a value that indicates whether the parent resource group was found. + Type: Returns_BooleanIndicates whether the parent resource group was found. true if the parent resource group was found; otherwise, false. + + + Contains the data that is needed to fulfill the sales order (order). + + + Initializes a new instance of the class. + + + Gets or sets the order close activity associated with the sales order (order) to be fulfilled. Required. + Type: The order close activity associated with the sales order (order) to be fulfilled, which must be an instance of the OrderClose class. + + + Gets or sets a status of the sales order (order). Required. + Type: The status of the sales order (order). + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to generate an invoice from an opportunity. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes to retrieve from the resulting invoice. Required. + Type: The collection of attributes to retrieve from the resulting invoice. + + + Gets or sets the ID of the opportunity to be used as the basis for the new invoice. Required. + Type: Returns_GuidThe ID of the opportunity to be used as the basis for the new invoice. This corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting invoice. + Type: The resulting invoice, which must be an instance of the Invoice class. + + + Contains the data that is needed to generate a quote from an opportunity. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes to retrieve in the resulting quote. Required. + Type: The collection of attributes to retrieve in the resulting quote. + + + Gets or sets the ID of the opportunity to be used as the basis for the new quote. Required. + Type: Returns_GuidThe ID of the opportunity to be used as the basis for the new quote. This corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting quote. + Type: The resulting quote, which must be an instance of the Quote class. + + + Contains the data that is needed to generate a sales order (order) from an opportunity. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes to retrieve from the resulting sales order (order). Required. + Type: The collection of attributes to retrieve from the resulting sales order (order). + + + Gets or sets the ID of the opportunity to be used as the basis for the new sales order (order). Required. + Type: Returns_GuidThe ID of the opportunity to be used as the basis for the new sales order (order). This corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting sales order (order). + Type: The resulting sales order (order), which must be an instance of the SalesOrder class. + + + Contains the data to return an existing social profile record if one exists, otherwise generates a new one and returns it. + + + Initializes a new instance of the class. + + + Gets or sets the SocialProfile to return or generate. + Type: The SocialProfile to return or generate. + + + Contains the response from the message. + + + Initializes a new instance of the class. + + + Gets the social profile returned by the message. + Type: The social profile returned by the message. + + + Contains the data that is needed to retrieve all the time zone definitions for the specified locale and to return only the display name attribute. + + + Initializes a new instance of the class. + + + Gets or sets the locale ID. Required. + Type: Returns_Int32The locale ID. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of the time zone definition (TimeZoneDefinition) records. + Type: The collection of the time zone definition (TimeZoneDefinition) records. + + + internal See . + + + Initializes a new instance of the class. + + + internal + + + Initializes a new instance of the class. + + + Gets the decryption key. + Type: Returns_StringThe decryption key. + + + Contains the data that is needed to retrieve distinct values from the parse table for a column in the source file that contains list values. + + + Initializes a new instance of the class. + + + Gets or sets a column number in the CSV, XML Spreadsheet 2003 (.xml), or text source file for which the distinct values are returned. Required. + Type: Returns_Int32. + + + Gets or sets in ID of the import file that is associated with the source file. Required. + Type: Returns_GuidThe ID of the import file that is associated with the source file. This corresponds to the ImportFile.ImportFileId attribute, which is the primary key for the ImportFile entity. + + + Gets or sets the page number in the source file. Required. + Type: Returns_Int32The page number in the source file. + + + Gets or sets the number of data records per page in the source file. Required. + Type: Returns_Int32The number of data records per page in the source file. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the distinct values for a column in the source file. + Type: Returns_StringThe distinct values for a column in the source file. + + + Contains the data that is needed to retrieve the source-file column headings; or retrieve the system-generated column headings if the source file does not contain column headings. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the import file that is associated with the parse table. Required. + Type: Returns_GuidThe ID of the import file that is associated with the parse table. This corresponds to the ImportFile.ImportFileId attribute, which is the primary key for the ImportFile entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the source file header columns. + Type: Returns_StringThe source file header columns. + + + Contains the data that is needed to retrieve the products from an opportunity and copy them to the invoice. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the invoice. + Type: Returns_GuidThe ID of the invoice. This corresponds to the Invoice.InvoiceId attribute, which is the primary key for the Invoice entity. + + + Gets or sets the ID of the opportunity. + Type: Returns_GuidThe ID of the opportunity. This corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to get the quantity decimal value of a product for the specified entity in the target. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the product. Required. + Type: Returns_GuidThe ID of the product. This corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Gets or sets the target record for this request. Required. + Type: The target record for this request. This must be an entity reference for Invoice, Opportunity, Quote, or Salesorder entity. + + + Gets or sets the ID of the unit of measure (unit). Required. + Type: Returns_GuidThe ID of the unit of measure (unit). This corresponds to the UoM.UoMId attribute, which is the primary key for the UoM entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the quantity decimal value for a product. + Type: Returns_Int32The quantity decimal value for a product. + + + Contains the data that is needed to retrieve the products from an opportunity and copy them to the quote. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the opportunity. + Type: Returns_GuidThe ID of the opportunity. This corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Gets or sets the ID of the quote. + Type: Returns_GuidThe ID of the quote. This corresponds to the Quote.QuoteId attribute, which is the primary key for the Quote entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to retrieve the history limit for a report. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the report. Required. + Type: Returns_GuidThe ID of the report. This corresponds to the Report.ReportId property, which is the primary key for the Report entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the history limit for a report. + Type: Returns_Int32 + + + Contains the data that is needed to retrieve the products from an opportunity and copy them to the sales order (order). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the opportunity. + Type: Returns_GuidThe ID of the opportunity. This corresponds to the Opportunity.OpportunityId attribute, which is the primary key for the Opportunity entity. + + + Gets or sets the ID of the sales order (order). + Type: Returns_GuidThe ID of the sales order (order). This corresponds to the SalesOrder.SalesOrderId attribute, which is the primary key for the SalesOrder entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to retrieve the time zone code for the specified localized time zone name. + + + Initializes a new instance of the class. + + + Gets or sets the locale ID. + Type: Returns_Int32The locale ID. LCID + + + Gets or sets the localized name to search for. + Type: Returns_StringThe localized name to search for. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the time zone code that has the requested localized name. + Type: Returns_Int32The time zone code that has the requested localized name. + + + Contains the data that is needed to return a tracking token that can then be passed as a parameter to the message. + + + Initializes a new instance of the class. + + + Gets or sets the context of the email. Required. + Type: Returns_StringThe context of the email. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the requested tracking token. + Type: Returns_StringThe requested tracking token. This value can be passed as a property in the message. + + + Type: . + + + Type: . + + + Type: . + + + Contains the data that is needed to grant a security principal (user or team) access to the specified record. + + + Initializes a new instance of the class. + + + Gets or sets the team or user that is granted access to the specified record. Required. + Type: The team or user that is granted access to the target record. + + + Gets or sets the entity that is the target of the request to grant access. Required. + Type: The entity reference to the record that is the target of the request to grant access. This property value must be an entity reference for an entity that supports this message. For a list of supported entity types, see . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to import the XML representation of a data map and create an import map (data map) based on this data. + + + Initializes a new instance of the class. + + + Gets or sets an XML representation of the data map. Required. + Type: Returns_StringThe XML representation of the data map. + + + Gets or sets a value that indicates whether to import the entity record IDs contained in the XML representation of the data map. Required. + Type: Returns_BooleanIndicates whether to import the entity record IDs contained in the XML representation of the data map. false to import the entity record IDs, otherwise, true. The imported record IDs are used as primary keys for the entity records created in pn_microsoftcrm. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the newly created import map (data map). + Type: Returns_GuidThe ID of the newly created import map (data map). This corresponds to the ImportMap.ImportMapId attribute, which is the primary key for the ImportMap entity. + + + Contains the data that is needed to submit an asynchronous job that uploads the transformed data into pn_microsoftcrm. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the data import (import) that is associated with the asynchronous import records job. Required. + Type: Returns_GuidThe ID of the data import (import) that is associated with the asynchronous import records job. This corresponds to the Import.ImportId attribute, which is the primary key for the Import entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the asynchronous import records job. + Type: Returns_GuidThe ID of the asynchronous import records job. + + + Contains the data that is needed to import a solution. + + + Initializes a new instance of the class + + + Direct the system to convert any matching unmanaged customizations into your managed solution. Optional. + Type: Returns_Booleantrue if the system should convert any matching unmanaged customizations into your managed solution; otherwise, false. + + + Gets or sets the compressed solutions file to import. Required. + Type: Returns_Byte[]The compressed solutions file to import. Required. + + + Gets or sets the ID of the import job that will be created to perform this import. Required. + Type: Returns_GuidThe the ID of the import job that will be created to perform this import. This corresponds to the ImportJob.ImportJobId attribute, which is the primary key for the ImportJob entity. + + + Gets or sets whether any unmanaged customizations that have been applied over existing managed solution components should be overwritten. Required. + Type: Returns_Booleantrue if the any unmanaged customizations that have been applied over existing managed solution components should be overwritten; otherwise, false. + + + Gets or sets whether any processes (workflows) included in the solution should be activated after they are imported. Required. + Type: Returns_Booleantrue if the any processes (workflows) included in the solution should be activated after they are imported; otherwise, false. + + + Gets or sets whether enforcement of dependencies related to product updates should be skipped. + Type: Returns_Booleantrue if enforcement of dependencies related to product updates should be skipped; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to import translations from a compressed file. + + + Initializes a new instance of the class + + + Gets or sets the ID of the import job that will be created to perform this import. Required. + Type: Returns_GuidThe the ID of the import job that will be created to perform this import. This corresponds to the ImportJob.ImportJobId attribute, which is the primary key for the ImportJob entity. + + + Gets or sets the compressed translations file. Required. + Type: Returns_Byte[]The compressed translations file. Required. + + + Contains the response from the class. + + + Initializes a new instance of the T:Microsoft.Crm.Sdk.Messages.ImportTranslationResponse class + + + Contains the data that is needed to initialize a new record from an existing record. + + + Initializes a new instance of the class. + + + Gets or sets the record that is the source for initializing. + Type: The record that is the source for initializing. + + + Gets or sets the logical name of the target entity. + Type: Returns_StringThe logical name of the target entity. + + + Gets or sets which attributes are to be initialized in the initialized instance. + Type: Indicates which attributes are to be initialized in the initialized instance. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the initialized instance. + Type: The initialized instance. To create a record, pass this value to the method or to a message. + + + Type: + Type: + + + Type: . + + + Type: . + + + Type: . + + + Type: . + Type: + + + Contains the data that is needed to install the sample data. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to instantiate a set of filters for pn_crm_for_outlook_short for the specified user. + + + Initializes a new instance of the class. + + + Gets or sets the set of filters to instantiate for the user. + Type: The set of filters to instantiate for the user. This must be a collection of entity references for the SavedQuery entity and the SavedQuery.Type attribute value for each must be or . + + + Gets or sets the ID of the user that will own the user query records created. + Type: Returns_GuidThe user that will own the user query records created. This corresponds to the SystemUser.SystemUserId property, which is the primary key for the SystemUser entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the parameters that are needed to create an email message from a template (email template). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the record that the email is regarding. Required. + Type: Returns_Guid +The ID of the record that the email is regarding. This must be the ID of an entity that has a relationship to the ActivityPointer entity. + + + Gets or sets the type of entity that is represented by the property. Required. + Type: Returns_String +The logical name of the entity. + + + Gets or sets the ID of the template. Required. + Type: Returns_Guid +The ID of the template that corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the instantiated email records. + Type: The collection of the instantiated email records. + + + deprecated Checks whether pn_Great_Plains_9 is installed. + + + deprecated + + + deprecated + + + deprecated + + + deprecated + Type: Returns_Boolean + + + Contains the data that is needed to determine whether a solution component is customizable. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the solution component. Required. + Type: Returns_GuidThe ID of the solution component. This corresponds to the SolutionComponent. SolutionComponentId attribute, which is the primary key for the SolutionComponent entity. + + + Gets or sets the value that represents the solution component. Required. + Type: Returns_Int32The value that represents the solution component. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the value that indicates whether a solution component is customizable. + Type: Returns_Booleanthe value that indicates whether a solution component is customizable. + + + Contains the data that is needed to validate the state transition. + + + Initializes a new instance of the class. + + + Gets or sets the entity reference for the record whose transition state is validated. + Type: The entity reference for the record whose transition state is validated. + + + Gets or sets the proposed new state for the record. + Type: Returns_StringThe proposed new state for the record. + + + Gets or sets the proposed new status for the record. + Type: Returns_Int32The proposed new status for the record. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the value that indicates whether the state transition is valid. + Type: Returns_BooleanIndicates whether the state transition is valid.true if the state transition is valid; otherwise, false. + + + Contains the data that is needed to retrieve the local time for the specified Coordinated Universal Time (UTC). + + + Initializes a new instance of the class. + + + Gets or sets the time zone code. + Type: Returns_Int32The time zone code. + + + Gets or sets the Coordinated Universal Time (UTC). + Type: Returns_DateTimeThe Coordinated Universal Time (UTC). + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the time that is represented as local time. + Type: Returns_DateTimeThe time that is represented as local time. + + + Contains the data that is needed to lock the total price of products and services that are specified in the invoice. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the invoice. + Type: Returns_GuidThe ID of the invoice. This corresponds to the Invoice.InvoiceId attribute, which is the primary key for the Invoice entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to lock the total price of products and services that are specified in the sales order (order). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the sales order. + Type: Returns_GuidThe ID of the sales order. This corresponds to the SalesOrder.SalesOrderId attribute, which is the primary key for the SalesOrder entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + internal + + + internal + + + internal + Type: Returns_String + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_String + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + + + internal + + + internal + + + internal + + + internal + Type: Returns_String + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + + + internal + + + Contains the data that is needed to set the state of an opportunity to Lost. + + + Initializes a new instance of the class. + + + Gets or sets the opportunity close activity. Required. + Type: The opportunity close activity. This is an instance of the OpportunityClose class. + + + Gets or sets a status of the opportunity. Required. + Type: The a status of the opportunity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + deprecated Use the class. + + + deprecated + + + deprecated + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated + + + deprecated Use the class. + + + deprecated + + + deprecated + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated + + + deprecated Use the class. + + + deprecated + + + deprecated + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated + + + deprecated Use the class. + + + deprecated + + + deprecated + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated + + + Contains the data that is needed to merge the information from two entity records of the same type. + + + Initializes a new instance of the class. + + + Gets or sets a value that indicates whether to check if the parent information is different for the two entity records. Required. + Type: Returns_BooleanIndicates whether to check if the parent information is different for the two entity records. True to check if the parent information is different for the two entity records, otherwise, false. + + + Gets or sets the ID of the entity record from which to merge data. Required. + Type: Returns_GuidThe ID of the entity record from which to merge data. + + + Gets or sets the target of the merge operation. Required. + Type: The target of the merge operation. + + + Gets or sets additional entity attributes to be set during the merge operation for accounts, contacts, or leads. This property is not applied when merging Incidents. Optional. + Type: The additional entity attributes to be set during the merge operation. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data to describe a solution component that is required by a solution but not found in the system. + + + Initializes a new instance of the class. + + + Gets or sets information about the solution component in the solution file that is dependent on a missing solution component. + Type: Information about the solution component in the solution file that is dependent on a missing solution component.. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets information about the required solution component that is missing. + Type: Information about the required solution component that is missing.. + + + Contains the data that is needed to replace the access rights on the target record for the specified security principal (user or team). + + + Initializes a new instance of the class. + + + Gets or sets the team or user whose access to the specified record is modified. Required. + Type: The team or user whose access to the specified record is modified. + + + Gets or sets the entity that is the target of the request to modify access. Required. + Type: The entity that is the target of the request to modify access. This must be an entity reference to an entity that supports this message. For a list of supported entity types, see the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that describes the scheduling strategy for an and that overrides the default constraints. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: Returns_Guid. The ID of the resource specification. + Type: Returns_String. The search strategy to use in the appointment request. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the search strategy to use in the appointment request for the message. + Type: Returns_StringThe search strategy to use in the appointment request. + + + Gets or sets the ID of the resource specification. + Type: Returns_GuidThe ID of the resource specification. The property corresponds to the ResourceSpec.ResourceSpecId property, which is the primary key for the resource specification entity. + + + Contains data regarding the resources used by an organization. + + + Initializes a new instance of the OrganizationResources class. + + + Gets the current number of active users. + Type: Returns_Int32the current number of active users. + + + Gets the current number of custom entities. + Type: Returns_Int32the current number of custom entities. + + + Gets the current number of non-interactive users. + Type: Returns_Int32the current number of non-interactive users. + + + Gets the current number of published workflows. + Type: Returns_Int32the current number of published workflows. + + + Gets the current storage used by the organization. + Type: Returns_Int32the current storage used by the organization. + + + ExtensionData + Type: Returns_ExtensionDataObject. + + + Gets the maximum number of active users. + Type: Returns_Int32The maximum number of active users. + + + Gets the maximum number of custom entities. + Type: Returns_Int32the maximum number of custom entities. + + + Gets the maximum number of non-interactive users. + Type: Returns_Int32The maximum number of non-interactive users. + + + Gets the maximum number of published workflows. + Type: Returns_Int32The maximum number of published workflows. + + + Gets the maximum storage allowed for the organization. + Type: Returns_Int32The maximum storage allowed for the organization. + + + Contains the data that is needed to submit an asynchronous job that parses all import files that are associated with the specified import (data import). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the import (data import) that is associated with the asynchronous job that parses all import files for this import. Required. + Type: Returns_GuidThe ID of the import (data import) that is associated with the asynchronous job that parses all import files for this import. This corresponds to the Import.ImportId attribute, which is the primary key for the Import entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an ID of the asynchronous job that parses the import files for this import. + Type: Returns_GuidID of the asynchronous job that parses the import files for this import. + + + Contains the data that is needed to assign a queue item to a user and optionally remove the queue item from the queue. + + + Initializes a new instance of the class. + + + Gets or sets the + Type: Returns_Guid +The QueueItem. This corresponds to the QueueItem.QueueItemId attribute, which is the primary key for the QueueItem entity. + + + Gets or sets whether the queue item should be removed from the queue. + Type: Returns_Booleantrue if the queue item should be removed from the queue; otherwise, false. + + + Gets or sets the user to assign the queue item to. Required. + Type: Returns_Guid +The User. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Contains access rights information for the security principal (user or team). + + + Initializes a new instance of the class. + + + Gets or sets the access rights of the security principal (user or team). + Type: The access rights of the security principal (user or team). + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the security principal (user or team). + Type: The security principal (user or team). + + + Contains the possible values for the depth of a privilege within a role. This enumeration is used to compare and set values in records returned from Fetch or QueryExpression queries. If you use LINQ, the privilege depth is returned as a bit mask. In this case you can use the following constants to determine the privilege depth. public const int BASIC_MASK = 0x00000001; public const int LOCAL_MASK = 0x00000002; public const int DEEP_MASK = 0x00000004; public const int GLOBAL_MASK = 0x00000008; + + + Indicates basic privileges. Users who have basic privileges can only use privileges to perform actions on objects that are owned by, or shared with, the user. Value = 0. + + + Indicates deep privileges. Users who have deep privileges can perform actions on all objects in the user's current business units and all objects down the hierarchy of business units. Value = 2. + + + Indicates global privileges. Users who have global privileges can perform actions on data and objects anywhere within the organization regardless of the business unit or user to which it belongs. Value = 3. + + + Indicates local privileges. Users who have local privileges can only use privileges to perform actions on data and objects that are in the user's current business unit. Value = 1. + + + Contains the data that is needed to process the email responses from a marketing campaign. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the inbound email activity. + Type: Returns_GuidThe ID of the inbound email activity. This corresponds to the ActivityPointer.ActivityId attribute, which is the primary key for the ActivityPointer entity. Alternatively, it can be the ActivityID for any activity entity type, including custom activity entities. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + internal + + + internal + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + Type: + + + internal + + + internal + + + internal + Type: Returns_Int32 + + + Contains the data that is needed to create a quick campaign to distribute an activity to accounts, contacts, or leads that are selected by a query. + + + Initializes a new instance of the class. + + + Gets or sets the activity to be distributed. Required. + Type: The activity to be distributed. + + + Gets or sets a value that indicates whether the activity is both created and executed. Required. + Type: Returns_BooleanIndicates whether the activity is both created and executed. true if an activity is both created and executed; false if an activity is created but not executed. + + + Gets or sets the user-identifiable name for the campaign. Required. + Type: Returns_StringThe user-identifiable name for the campaign. + + + Gets or sets the owner for the activity. Required. + Type: The owner for the activity. + + + Gets or sets the ownership options for propagation. Required. + Type: The ownership options for propagation. + + + Gets or sets a value that indicates whether an asynchronous job is used to distribute an activity, such as an email, fax, or letter, to the members of a list. Required. + Type: Returns_BooleanIndicates whether an asynchronous job is used to distribute an activity, such as an email, fax, or letter, to the members of a list. true if an asynchronous job is used to distribute the activity; false if mail merge is used to distribute the activity. + + + Gets or sets the query criteria to select accounts, contacts, or leads for which activities are created. Required. + Type: The query criteria to select accounts, contacts, or leads for which activities are created. + + + Gets or sets the ID of the queue to which the created activities are added. Optional. + Type: Returns_GuidThe ID of the queue to which the created activities are added. This corresponds to the Queue.QueueId attribute, which is the primary key for the Queue entity. + + + Gets or sets a value that indicates whether to send an email about the new activity. Required. + Type: Returns_BooleanIndicates whether to send an email about the new activity. true to automatically send email messages; otherwise, false. Primarily used for the email activity. + + + Gets or sets the ID of the email template. Required. + Type: Returns_GuidThe ID of the email template. This corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. Use the email template, if is true.Use the email template, if is true.Use the email template, if is true.Use the email template, if is true. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the bulk operation that is created to distribute the campaign activity. Required. + Type: Returns_GuidThe ID of the bulk operation that is created to distribute the campaign activity. This corresponds to the BulkOperation.ActivityId attribute, which is the primary key for the BulkOperation entity. + + + Contains the possible values for propagation ownership options. + + + All created activities are assigned to the caller of the API. Value = 1. + + + Created activities are assigned to respective owners of target members. Value = 2. + + + There is no change in ownership for the created activities. Value = 0. + + + Represents a party (user, team, or resource) that is needed for the proposed appointment. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class that sets the resource and resource specification IDs, the display and entity names, and the required effort, as measured by percentage of time. + Type: Returns_Double. The percentage of time that is required to perform the service. + Type: Returns_Guid. The ID of the resource specification that is represented by this party. + Type: Returns_String. The logical name of the type of entity that is represented by this party. + Type: Returns_String. The display name for the party. + Type: Returns_Guid. The ID of the resource that is represented by this party. + + + Gets or sets the display name for the party. + Type: Returns_StringThe display name for the party. + + + Gets or sets the percentage of time that is required to perform the service. + Type: Returns_DoubleThe percentage of time that is required to perform the service. + + + Gets or sets the logical name of the type of entity that is represented by this party. + Type: Returns_StringThe logical name of the type of entity that is represented by this party. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the resource that is represented by this party. + Type: Returns_Guid +The ID of the resource that is represented by this party. This corresponds to the Resource.ResourceId attribute, which is the primary key for the Resource entity. + + + Gets or sets the ID of the resource specification that is represented by this party. + Type: Returns_Guid +The ID of the resource specification that is represented by this party. This corresponds to the ResourceSpec.ResourceSpecId attribute, which is the primary key for the ResourceSpec entity. + + + Contains the data that is needed to provision a new language. + + + constructor_initializes class + + + Gets or sets the language to provision. Required. + Type: Returns_Int32The language to provision. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to publish all changes to solution components. + + + Initializes a new instance of the PublishAllXmlRequest class + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to submit an asynchronous job to publish a duplicate rule. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the duplicate rule to be published. Required. + Type: Returns_GuidThe ID of the duplicate rule to be published. This corresponds to the DuplicateRule.DuplicateRuleId attribute, which is the primary key for the DuplicateRule entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the asynchronous job for publishing a duplicate detection rule. + Type: Returns_GuidThe ID of the asynchronous job for publishing a duplicate detection rule. + + + Contains the data that is needed to publish specified solution components. + + + Initializes a new instance of the class + + + Gets or sets the XML that defines which solution components to publish in this request. Required. + Type: Returns_Stringthe XML that defines which solution components to publish in this request. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to qualify a lead and create account, contact, and opportunity records that are linked to the originating lead record. + + + Initializes a new instance of the class. + + + Gets or sets a value that indicates whether to create an account from the originating lead. Required. + Type: Returns_BooleanIndicates whether to create an account from the originating lead. True, to create an account; otherwise, false. + + + Gets or sets a value that indicates whether to create a contact from the originating lead. Required. + Type: Returns_BooleanIndicates whether to create a contact from the originating lead. True, to create a contact; otherwise, false. + + + Gets or sets a value that indicates whether to create an opportunity from the originating lead. Required. + Type: Returns_BooleanIndicates whether to create an opportunity from the originating lead. True, to create an opportunity; otherwise, false. + + + Gets or sets the ID of the lead that is qualified. Required. + Type: The ID of the lead that is qualified. This corresponds to the Lead.LeadId attribute, which is the primary key for the Lead entity. + + + Gets or sets the currency to use for this opportunity. Required. + Type: The currency to use for this opportunity. + + + Gets or set the account or contact that is associated with the opportunity. Required. + Type: The account or contact that is associated with the opportunity. + + + Gets or sets the source campaign that is associated with the opportunity. Required. + Type: The source campaign that is associated with the opportunity. + + + Gets or sets the status of the lead. Required. + Type: The status of the lead. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of references to the newly created account, contact, and opportunity records. + Type: The collection of references to the newly created account, contact, and opportunity records. + + + Contains the data that is needed to qualify the specified list and either override the list members or remove them according to the specified option. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the list to qualify. Required. + Type: Returns_GuidThe ID of the list to qualify. This corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Gets or sets an array of IDs of the members to qualify. Required. + Type: Returns_Guid[]The array of IDs of the members to qualify. + + + Gets or sets a value that indicates whether to override or remove the members from the list. Required. + Type: Returns_BooleanIndicates whether to override or remove the members from the list. true, to override; false, to remove. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to convert a query, which is represented as a QueryExpression class, to its equivalent query, which is represented as FetchXML. + + + Initializes a new instance of the the class. + + + Gets or sets the query to convert. + Type: The query to convert. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the query conversion. + Type: Returns_StringThe results of the query conversion. This returned value conforms to the schema for FetchXML. + + + Contains the data that is needed to search multiple resources for available time block that match the specified parameters. + + + Initializes a new instance of the class. + + + Gets or sets the end time for the scheduled block of time. Required. + Type: Returns_DateTimeThe end time for the scheduled block of time. + + + Gets or sets the IDs of the resources. Required. + Type: Returns_GuidThe IDs of the resources. Each element of the array corresponds to the Resource.ResourceId attribute, which is the primary key for the Resource entity. The number of resource IDs and time codes must match. + + + Gets or sets the start of the time slot. Required. + Type: Returns_DateTimeThe start of the time slot. + + + Gets or sets the time codes to look for: Available, Busy, Unavailable, or Filter, which correspond to the resource IDs. Required. + Type: The time codes to look for: Available, Busy, Unavailable, or Filter, which correspond to the resource IDs. The number of resource IDs and time codes must match. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the search, which is a set of possible time block for each resource. + Type: The results of the search. Contains an array of possible time slots for each of the specified resource IDs in the class. + + + Contains the data that is needed to search the specified resource for an available time block that matches the specified parameters. + + + Initializes a new instance of the class. + + + Gets or sets the end of the time slot. + Type: Returns_DateTimeThe end of the time slot. + + + Gets or sets the ID of the resource. + Type: Returns_GuidThe ID of the resource. This corresponds to the Resource.ResourceId attribute, which is the primary key for the Resource entity. + + + Gets or sets the start of the time slot. + Type: Returns_DateTimeThe start of the time slot. + + + Gets or sets the time codes to look for: Available, Busy, Unavailable, or Filter. + Type: The time codes to look for: Available, Busy, Unavailable, or Filter. + + + Contains response from . + + + Initializes a new instance of the class. + + + Gets the results of the search, a set of possible time slots for the resource. + Type: The results of the search. Contains an array of possible time slots for each of the resource IDs specified in the request class. + + + Contains the data that is needed to reassign all records that are owned by the security principal (user or team) to another security principal (user or team). + + + Initializes a new instance of the class. + + + Gets or sets the security principal (user or team) for which to reassign all records. + Type: The security principal (user or team) for which to reassign all records. This must be an entity reference for the SystemUser entity or Team entity. + + + Gets or sets the security principal (user or team) that will be the new owner for the records. + Type: The security principal (user or team) that will be the new owner for the records. This must be an entity reference for the SystemUser entity or Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to reassign all records that are owned by a specified user to another security principal (user or team). + + + Initializes a new instance of the class. + + + Gets or sets the security principal (user or team) that is the new owner for the records. + Type: The security principal (user or team) that is the new owner for the records. This must be an entity reference for the SystemUser entity or Team entity. + + + Gets or sets the ID of the user for which you want to reassign all records. + Type: Returns_GuidThe ID of the user for which you want to reassign all records. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to recalculate system-computed values for rollup fields in the goal hierarchy. + + + Initializes a new instance of the class. + + + Gets or sets the target record for the recalculate operation. Required. + Type: The target record for the recalculate operation. This must be an entity reference for the Goal entity. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + Contains the audited details of a change in a relationship. + + + Initializes a new instance of the RelationshipAuditDetail class. + + + Gets or sets the relationship name before the change occurs. + Type: Returns_StringThe relationship name. + + + Provides the collection of relationship records that were added or removed. + Type: <>The collection of records. + + + Contains the data that is needed to assign a queue item back to the queue owner so others can pick it. + + + Initializes a new instance of the class. + + + Gets or sets the id of the queue item. Required. + Type: Returns_Guid +The queue item. This corresponds to the QueueItem.QueueItemId attribute, which is the primary key for the QueueItem entity. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Contains the data that is needed to remove a queue item from a queue. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the queue item to remove from the queue. Required.The QueueItemId property corresponds to the QueueItem.QueueItemId attribute, which is the primary key for the QueueItem entity. + Type: Returns_Guid +The QueueItemId. This corresponds to the QueueItem.QueueItemId attribute, which is the primary key for the QueueItem entity. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Contains the data that is needed to remove an item from a campaign activity. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the campaign activity. Required. + Type: Returns_GuidThe ID of the campaign activity. This corresponds to the CampaignActivity.ActivityId attribute, which is the primary key for the CamaignActivity entity. + + + Gets or sets the ID of the item to be removed from the campaign activity. Required. + Type: Returns_GuidThe ID of the item to be removed from the campaign activity. This corresponds to the CampaignActivityItem.CampaignActivityItemId property, which is the primary key for the CampaignActivityItem intersect entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to remove an item from a campaign. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the campaign. Required. + Type: Returns_GuidThe ID of the campaign. This corresponds to the Campaign.CampaignId attribute, which is the primary key for the Camaign entity. + + + Gets or sets the ID of the item to be removed from the campaign. Required. + Type: Returns_GuidThe ID of the item to be removed from the campaign. This corresponds to the CampaignItem.CampaignItemId property, which is the primary key for the CampaignItem intersect entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to remove a member from a list (marketing list). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the member to be removed from the list. Required. + Type: Returns_GuidThe ID of the member to be removed from the list. This corresponds to the ListMember.ListMemberId attribute, which is the primary key for the ListMember intersect entity. + + + Gets or sets the ID of the list. Required. + Type: Returns_GuidThe ID of the list. This corresponds to the List.ListId attribute, which is the primary key for the List entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to remove members from a team. + + + constructor_initializes class. + + + Gets or sets an array of IDs of the users to be removed from the team. + Type: Returns_Guid[]The array of IDs of the users to be removed from the team. Each element of the MemberIds array corresponds to the SystemUser.SystemUserId property, which is the primary key for the SystemUser entity. + + + Gets or sets the ID of the team. + Type: Returns_GuidThe ID of the team. This corresponds to the Team.TeamId property, which is the primary key for the Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the RemoveMembersTeamResponse class. + + + Contains the data that is needed to remove the parent for a system user (user) record. + + + Initializes a new instance of the class. + + + Gets or sets the target systemuser (user) record for the operation. + Type: The target systemuser (user) record for the operation. This must be an entity reference to a systemuser (user) record. + + + Contains the response from the class. + + + Initializes a new instance of the RemoveParentResponse class. + + + Contains the data that is needed to remove a privilege from an existing role. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the privilege that is to be removed from the existing role. + Type: Returns_GuidThe ID of the privilege that is to be removed from the existing role. This corresponds to the Privilege.PrivilegeId property, which is the primary key for the Privilege entity. + + + Gets or sets the ID of the role from which the privilege is to be removed. + Type: Returns_GuidThe ID of the role from which the privilege is to be removed. This corresponds to the Role.RoleId property, which is the primary key for the Role entity. + + + Contains the response from the class. + + + Initializes a new instance of the RemovePrivilegeRoleResponse class. + + + Contains the data that is needed to remove a product from a kit. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the kit from which the product is to be removed. + Type: Returns_GuidThe ID of the kit from which the product is to be removed. This corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Gets or sets the ID of the product being removed from the kit. + Type: Returns_GuidThe ID of the product being removed from the kit. This corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + Use the class. Contains the data that is needed to remove the relationship between the specified records for specific relationships. + + + Initializes a new instance of the class. + + + Gets or sets the target records from which you want to remove specific related records. + Type: The the target records from which you want to remove specific related records. This array must contain a set of entity references where the entities participate in a relationship. + + + Contains the response from the class. + + + Initializes a new instance of the RemoveRelatedResponse class. + + + Contains the data that is needed to remove a component from an unmanaged solution. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the solution component. Required. + Type: Returns_GuidThe ID of the solution component. This corresponds to the SolutionComponent.SolutionComponentId attribute, which is the primary key for the SolutionComponent entity. + + + Gets or sets the value that represents the solution component that you want to add. Required. + Type: Returns_Int32The value that represents the solution component that you want to add. Required. + + + Gets or sets the value of the Solution.UniqueName attribute of the solution for which you want to add the solution component. Required. + Type: Returns_StringThe value of the Solution.UniqueName attribute of the solution for which you want to add the solution component. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID value of the solution component that was removed. + Type: Returns_GuidThe ID value of the solution component that was removed. This corresponds to the SolutionComponent.SolutionComponentId attribute, which is the primary key for the SolutionComponent entity. + + + deprecated Use the class. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: Returns_Guid + + + deprecated Use the class and its members. + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + + + Contains the data that is needed to remove a user from the auto created access team for the specified record. + + + Initializes a new instance of the class. + + + Gets or sets the record for which the access team is auto created. Required. + Type: The record for which the access team is auto created, which must be an entity reference for an entity that is enabled for access teams. To enable an entity for the auto created access teams, set the attribute to true. + + + Gets or sets the ID of system user (user) to remove from the auto created access team. Required. + Type: Returns_GuidThe ID of the system user (user) that corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Gets or sets the ID of team template which is used to create the access team. Required. + Type: Returns_GuidThe ID of the team template that corresponds to the TeamTemplate.TeamTemplateId attribute, which is the primary key for the TeamTemplate entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the auto created access team. + Type: Returns_GuidThe ID of the auto created access team, which corresponds to the Team.TeamId attribute, which is the primary key for the Team entity. + + + Contains the data that is needed to renew a contract and create the contract details for a new contract. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the contract to be renewed. Required. + Type: Returns_GuidThe ID of the contract to be renewed. This corresponds to the Contract.ContractId attribute, which is the primary key for the Contract entity. + + + Gets or sets a value that indicates whether the canceled line items of the original contract should be included in the renewed contract. Required. + Type: Returns_BooleanIndicates whether the canceled line items of the original contract should be included in the renewed contract. true to include canceled line items; otherwise, false. The default is false. + + + Gets or sets the status of the contract. + Type: Returns_Int32The status of the contract. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting contract. + Type: The resulting contract. This is an instance of the Contract class. + + + Contains the data that is needed to renew an entitlement. + + + Initializes a new instance of the class. + + + Gets or sets the id of the entitlement to renew. + Type: Returns_Guid +The Entitlement Id. This corresponds to the Entitlement.EntitlementId attribute, which is the primary key for the Entitlement entity. + + + Gets or sets the StatusCode value for the renewed Entitlement. + Type: Returns_Int32 +The status value for the renewed Entitlement. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Gets the renewed entitlement. + Type: The renewed entitlement. + + + Contains the data that is needed to replace the privilege set of an existing role. + + + Initializes a new instance of the class. + + + Gets or sets an array that contains the IDs and depths of the privileges that replace the existing privileges. + Type: The array that contains the IDs and depths of the privileges that replace the existing privileges. + + + Gets or sets the ID of the role for which the privileges are to be replaced. + Type: Returns_GuidThe ID of the role for which the privileges are to be replaced. This corresponds to the Role.RoleId property, which is the primary key for the Role entity. + + + Contains the response from the class. + + + Initializes a new instance of the ReplacePrivilegesRoleResponse class. + + + Specifies a resource that is required for a scheduling operation. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the resource and resource specification IDs. + Type: Returns_Guid. The ID of the required resource specification. + Type: Returns_Guid. The ID of the required resource. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the required resource. + Type: Returns_Guid +The ID of the required resource. This corresponds to the Resource.ResourceId attribute, which is the primary key for the Resource entity. + + + Gets or sets the ID of the required resource specification. + Type: Returns_Guid +The ID of the required resource specification. This corresponds to the ResourceSpec.ResourceSpecId attribute, which is the primary key for the ResourceSpec entity. + + + Contains the data that is needed to reschedule an appointment, recurring appointment, or service appointment (service activity). + + + Initializes a new instance of the class. + + + Type: Returns_Boolean. + + + Gets or sets the target of the reschedule operation. + Type: The the target of the reschedule operation. This is an entity reference for an entity that supports this message. For a list of supported entity types, see . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Type: Returns_Object. + + + Gets the validation results for the appointment, recurring appointment master, or service appointment (service activity). + Type: The validation results for the appointment, recurring appointment master, or service appointment (service activity). + + + Contains the data that is needed to reset the offline data filters for the calling user to the default filters for the organization. + + + Initializes a new instance of the class. + + + Gets or sets the type of filters to set. Required. + Type: Returns_Int32The type of filters to set. Use, or . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains information about a resource that has a scheduling problem for an appointment. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class that sets the ID, entity name, and display name. + Type: Returns_String. The display name for the resource. + Type: Returns_String. The logical name of the entity. + Type: Returns_Guid. The ID of the record that has a scheduling problem. + + + Gets or sets the display name for the resource. + Type: Returns_String +The display name for the resource found in the Resource.Name attribute. + + + Gets or sets the logical name of the entity. + Type: Returns_String +The logical name of the entity. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the record that has a scheduling problem. + Type: Returns_Guid +The ID of the record that has a scheduling problem. + + + Contains the data that is needed to retrieve the absolute URL and the site collection URL for a pn_SharePoint_short location record in pn_microsoftcrm. + + + Initializes a new instance of the class. + + + Gets or sets the target for which the data is to be retrieved. Required. + Type: The target for which the data is to be retrieved. This property must be a reference to a record of the SharepointDocumentLocation entity or the SharepointSite entity type. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the absolute URL of the object that is specified in the request. + Type: Returns_String +The absolute URL of the object that is specified in the request. + + + Gets the pn_SharePoint_short site collection URL of the object that is specified in the request. + Type: Returns_String +The pn_SharePoint_short site collection URL of the object that is specified in the request. + + + Contains the data that is needed to retrieve the collection of users that report to the specified system user (user). + + + Initializes a new instance of the class. + + + Gets or sets the set of attributes to retrieve. Required. + Type: The set of attributes to retrieve. + + + Gets or sets the ID of the system user (user). + Type: Returns_GuidThe ID of the system user (user). This corresponds to the SystemUser.SystemUserId property, which is the primary key for the SystemUser entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of all users that report to the specified system user. + Type: The resulting collection of all users that report to the specified system user. + + + Contains the data that is needed to retrieve the data that defines the content and behavior of the application ribbon. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a compressed file that defines the ribbon. + Type: Returns_Byte[]a compressed file that defines the ribbon. + + + Contains the data that is needed to retrieve all metadata changes to a specific attribute. + + + Initializes a new instance of the RetrieveAttributeChangeHistoryRequest class. + + + Gets or sets the attribute’s logical (schema) name. Required. + Type: Returns_StringThe logical name of the attribute. + + + Gets or sets the paging information. Optional. + Type: The paging information. + + + Gets or sets the target audit record for which to retrieve attribute change history. Required. + Type: The target record. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the attribute change history that results in a collection of audit details. + Type: The collection of audit details. + + + Contains the data that is needed to retrieve the full audit details from an Audit record. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the Audit record to retrieve. Required. + Type: Returns_GuidThe ID of the record to retrieve. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the details of the audited data changes. + Type: The audit details. + + + Contains the data that is needed to retrieve the list of database partitions that are used to store audited history data. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of audit partition details. + Type: The collection of audit partition details. + + + Contains the data that is needed to retrieve the list of language packs that are installed and enabled on the server. + + + constructor_initializes class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of locale ID values representing the language packs that are installed on the server. + Type: Returns_Int32[]An array of locale id values representing the language packs that are installed on the server. + + + Contains the data that is needed to retrieve all business units (including the specified business unit) from the business unit hierarchy. + + + Initializes a new instance of the class. + + + Gets or sets the set of attributes to retrieve. Required. + Type: The set of attributes to retrieve. + + + Gets or sets the ID of the business unit. Required. + Type: Returns_GuidThe ID of the business unit. This corresponds to the BusinessUnit.BusinessUnitId property, which is the primary key for the BusinessUnit entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of all business units in the business unit hierarchy. + Type: The the resulting collection of all business units in the business unit hierarchy. + + + Contains the data that is needed to retrieve all resources that are related to the specified resource group (scheduling group). + + + Initializes a new instance of the class. + + + Gets or sets the query for the operation. + Type: The query for the operation. + + + Gets or sets the ID of the resource group. + Type: Returns_GuidThe ID of the resource group. This corresponds to the ResourceGroup.ResourceGroupId property, which is the primary key for the ResourceGroup entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of all resources that are related to the specified resource group. + Type: The resulting collection of all resources that are related to the specified resource group. + + + Contains the data that is needed to retrieve the resource groups (scheduling groups) that contain the specified resource. + + + Initializes a new instance of the class. + + + Gets or sets the query for the operation. + Type: The query for the operation. + + + Gets or sets the ID of the resource. + Type: Returns_GuidThe ID of the resource. This corresponds to the Resource.ResourceId property, which is the primary key for the Resource entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of all resource groups (scheduling groups) that contain the specified resource. + Type: The resulting collection of all resource groups (scheduling groups) that contain the specified resource. + + + Contains the data that is needed to retrieve the collection of services that are related to the specified set of resources. + + + Initializes a new instance of the class. + + + Gets or sets the query for the operation. + Type: The query for the operation. + + + Gets or sets an array of IDs for the specified set of services. + Type: Returns_Guid[]The array of IDs for the specified set of services. Each element of the ResourceIds array corresponds to the Resource.ResourceId property, which is the primary key for the Resource entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of all related services for the specified set of services. + Type: The resulting collection of all related services for the specified set of services. + + + Contains the data that is needed to retrieve the top-ten articles about a specified product from the knowledge base of articles for your organization. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the product. Required. + Type: Returns_GuidThe ID of the product. This corresponds to the Product.ProductId attribute, which is the primary key for the Product entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of articles about the specified product from the knowledge base of articles for your organization. + Type: The resulting collection of articles about the specified product from the knowledge base of articles for your organization. + + + Contains the data that is needed to retrieve the top-ten articles about a specified subject from the knowledge base of articles for your organization. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the subject. Required. + Type: Returns_GuidThe ID of the subject. This corresponds to the Subject. SubjectId attribute, which is the primary key for the Subject entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of knowledge base articles about the specified subject. + Type: The resulting collection of knowledge base articles about the specified subject. + + + Contains the data that is needed to retrieve a collection of dependency records that describe any solution components that would prevent a solution component from being deleted. + + + Initializes a new instance of the class. + + + Gets or sets the value for the component type that you want to delete. Required. + Type: Returns_Int32The value for the component type that you want to delete. Required. + + + Gets or sets the ID of the solution component that you want to delete. Required. + Type: Returns_GuidThe ID of the solution component that you want to delete. This corresponds to the SolutionComponent.SolutionComponentId attribute, which is the primary key for the SolutionComponent entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent those components that can prevent the solution component from being deleted. + Type: The collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent those components that can prevent the solution component from being deleted.. + + + Contains the data that is needed to retrieve a list of the solution component dependencies that can prevent you from uninstalling a managed solution. + + + Initializes a new instance of the class. + + + Gets or sets the name of the managed solution. Required. + Type: Returns_StringThe name of the managed solution. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent the components that can prevent you from deleting the solution. + Type: A collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent the components that can prevent you from deleting the solution. + + + Contains the data that is needed to retrieves a list dependencies for solution components that directly depend on a solution component. + + + Initializes a new instance of the class. + + + Gets or sets the value that represents the solution component. Required. + Type: Returns_Int32The value that represents the solution component. Required. + + + Gets or sets the ID of the solution component that you want to check. Required. + Type: Returns_GuidThe ID of the solution component that you want to check. This corresponds to the SolutionComponent.SolutionComponentId attribute, which is the primary key for the SolutionComponent entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent the components that can prevent you from deleting the solution component. + Type: A collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent the components that can prevent you from deleting the solution component. + + + Contains the data that is needed to retrieve the type of license for a deployment of pn_microsoftcrm. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the license type. + Type: Returns_StringThe license type. + + + Contains the data that is needed to retrieve a list of language packs that are installed on the server that have been disabled. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of locale ID values representing disabled language packs that are installed on the server. + Type: Returns_Int32[]An array of locale ID values representing disabled language packs that are installed on the server. + + + Contains the data that is needed to detect and retrieve duplicates for a specified record. + + + Initializes a new instance of the class. + + + Gets or sets a record for which the duplicates are retrieved. Required. + Type: The record for which the duplicates are retrieved. + + + Gets or sets a name of the matching entity type. Required. + Type: Returns_StringThe name of the matching entity type. + + + Gets or sets a paging information for the retrieved duplicates. Required. + Type: The paging information for the retrieved duplicates. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a collection of duplicate entity instances. + Type: The collection of duplicate entity instances. + + + Contains the data that is needed to retrieve ribbon definitions for an entity. + + + Initializes a new instance of the class. + + + Gets or sets the logical name of an entity in order to retrieve a ribbon definition. Required. + Type: Returns_StringThe logical name of an entity in order to retrieve a ribbon definition. Required. + + + Gets or sets a filter to retrieve a specific set of ribbon definitions for an entity. Required. + Type: A filter to retrieve a specific set of ribbon definitions for an entity. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a compressed file that contains the ribbon definitions. + Type: Returns_Byte[]A compressed file that contains the ribbon definitions.. + + + Contains the data that is needed to retrieve the exchange rate. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the currency. Required. + Type: Returns_GuidThe ID of the currency. This corresponds to the TransactionCurrency.TransactionCurrencyId attribute, which is the primary key for the TransactionCurrency entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the exchange rate for the currency. + Type: Returns_DecimalThe exchange rate for the currency. + + + Contains the data that is needed to retrieve the entity forms that are available for a specified user. + + + Initializes a new instance of the class. + + + Gets or sets the logical name for the entity. Required. + Type: Returns_StringThe logical name for the entity. Required. + + + Gets or sets the type of form. Required. + Type: The type of form. Required. + + + Gets or sets the ID of the user. Required. + Type: Returns_GuidThe ID of the user. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a collection of SystemForm entity references. + Type: A collection of SystemForm entity references. + + + Contains the data that is needed to retrieve the formatted results from an import job. + + + Initializes a new instance of the class. + + + Gets or sets the GUID of an import job. Required. + Type: Returns_GuidThe GUID of an import job. This corresponds to the ImportJob.ImportJobId attribute, which is the primary key for the ImportJob entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the formatted results of the import job. + Type: Returns_StringThe formatted results of the import job. + + + internal + + + Initializes a new instance of the class. + + + internal + Type: Returns_Stringinternal + + + internal + + + Initializes a new instance of the class. + + + internal + Type: Returns_Int32internal + + + internal + Type: Returns_Int32internal + + + internal + Type: Returns_Stringinternal + + + internal + Type: Returns_Guidinternal + + + Contains the data that is needed to retrieve the list of language packs that are installed on the server. + + + constructor_initializes class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of locale ID values that represent the installed language packs. + Type: Returns_Int32[]An array of locale ID values that represent the installed language packs. + + + Contains the data that is needed to retrieve the version of an installed language pack. + + + Initializes a new instance of the class. + + + Gets or sets the value that represents the locale ID for the language pack. Required. + Type: Returns_Int32The value that represents the locale ID for the language pack. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the version number of the installed language pack. + Type: Returns_StringThe version number of the installed language pack. + + + Contains the data that is needed to retrieve the number of used and available licenses for a deployment of pn_microsoftcrm. + + + Initializes a new instance of the class. + + + Gets or sets the access mode for retrieving the license information. + Type: Returns_Int32The access mode for retrieving the license information. Use one of the option set values for SystemUser.AccessMode. For a list of these values, the metadata for this entity. metadata_browser + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the number of unused licenses. + Type: Returns_Int32The number of unused licenses. + + + Gets the number of licenses that have been granted to users. + Type: Returns_Int32The number of licenses that have been granted to users. + + + Contains the data that is needed to retrieve localized labels for a limited set of entity attributes. + + + Initializes a new instance of the class. + + + Gets or sets the name of the attribute for which to retrieve the localized labels. Required. + Type: Returns_StringThe name of the attribute for which to retrieve the localized labels. Required. + + + Gets or sets the entity. Required. + Type: The entity. Required. + + + Gets or sets whether to include unpublished labels. Required. + Type: Returns_Booleantrue if unpublished labels should be included; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the label for the requested entity attribute. + Type: The label for the requested entity attribute. + + + Contains the data that is needed to retrieve the members of a bulk operation. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the bulk operation. Required. + Type: Returns_GuidThe ID of the bulk operation. This corresponds to the BulkOperation.BulkOperationId attribute, which is the primary key for the BulkOperation entity. + + + Gets or sets the source for a bulk operation. Required. + Type:Returns_Int32The source for a bulk operation. The return value for this property is a enumeration type. + + + Gets or sets which members of a bulk operation to retrieve. Required. + Type: Returns_Int32Describes which members of a bulk operation to retrieve. The return value for this property is an type. + + + Gets or sets the query for the retrieve operation that can be used to break up large data sets into pages. Optional. + Type: The query for the retrieve operation that can be used to break up large data sets into pages. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of members of a bulk operation. + Type: The collection of members of a bulk operation. + + + deprecated Use the class. + + + deprecated + + + deprecated + Type: Returns_Guid + + + deprecated + Type: + + + deprecated Use the class and its associated response class. Contains the response from the class. + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + Type: + + + Contains the data that is needed to retrieve a list of missing components in the target organization. + + + Initializes a new instance of the class. + + + Gets or sets a file for a solution. Required. + Type: Returns_Byte[]A file for a solution + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of MissingComponent records. + Type: []An array of MissingComponent records. + + + Contains the data that is needed to retrieve any required solution components that are not included in the solution. + + + constructor_initializes class + + + Gets or sets the name of the solution. Required. + Type: Returns_StringThe name of the solution. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an entity collection that represents the solution components that the solution requires in the target system. + Type: An entity collection that represents the solution components that the solution requires in the target system. + + + Contains the data that is needed to retrieve the resources that are used by an organization. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the data that describes the resources used by an organization. + Type: The data that describes the resources used by an organization. + + + Contains the data needed to retrieve the collection of the parent resource groups of the specified resource group (scheduling group). + + + Initializes a new instance of the class. + + + Gets or sets the query for the operation. + Type: The query for the operation. + + + Gets or sets the ID of the resource group. + Type: Returns_GuidThe ID of the resource group. This corresponds to the ResourceGroup.ResourceGroupId property, which is the primary key for the ResourceGroup entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of parent resource groups for the specified resource group (scheduling group). + Type: The resulting collection of parent resource groups for the specified resource group (scheduling group). + + + Contains the data that is needed to retrieve the data from the parse table. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the import file that is associated with the parse table. Required. + Type: Returns_GuidThe ID of the import file that is associated with the parse table. This property corresponds to the ImportFile.ImportFileId attribute, which is the primary key for the ImportFile entity. + + + Gets or sets the paging information for the retrieved data. Required. + Type: The paging information for the retrieved data. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the parsed data. + Type: Returns_StringThe parsed data. The returned data has the same column order as the column order in the source file. + + + Contains the data that is needed to retrieve pages of posts, including comments for each post, for all records that the calling user is following. + + + Initializes a new instance of the class. + + + Gets or sets, for retrieval, the number of comments per post. Required. + Type: Returns_Int32The number of comments per post to retrieve. The maximum number of retrieved comments, per post, is 50; the minimum number is 0. + + + Gets or sets the end date and time of the posts that you want to retrieve. Optional. + Type: Returns_DateTimeThe end date and time of the posts that you want to retrieve. If specified, the posts that were created on or before the specified end date and time are retrieved. + + + Gets or sets, for retrieval, a specific page of posts that is designated by its page number. Required. + Type: Returns_Int32The specific page of posts that is designated by its page number. The page number for the first page is 1. If you specify a value of 0, it is treated as a value of 1. + + + Gets or sets, for retrieval, the number of posts per page. Required. + Type: Returns_Int32The number of posts per page. The maximum number of retrieved posts, per page, is 100; the minimum number is 1. + + + Gets or sets a value that specifies the source of the post. Optional. + Type: The value that specifies the source of the post. + + + Gets or sets the start date and time of the posts that you want to retrieve. Optional. + Type: Returns_DateTimeThe start date and time of the posts that you want to retrieve. If specified, only the posts that were created on or after the specified date and time are retrieved. + + + Reserved for future use. + Type: . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of posts with their associated comments and the calculated attribute values. + Type: The collection of posts with their associated comments and the calculated attribute values. + + + Contains the data that is needed to retrieve the access rights of the specified security principal (team or user) to the specified record. + + + Initializes a new instance of the class. + + + Gets or sets the security principal (team or user) for which to return the access rights to the specified record. + Type: The security principal (team or user) for which to return the access rights to the specified record. The entity reference must be a SystemUser or Team entity. + + + Gets or sets the target record for which to retrieve access rights. + Type: The target record for which to retrieve access rights. This must be an entity reference for an entity that supports this message. For a list of supported entity types, see . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the access rights that the security principal (team or user) has to the specified record. + Type: The access rights that the security principal (team or user) has to the specified record. + + + Contains the data that is needed to retrieves all the secured attribute privileges a user or team has through direct or indirect (through team membership) associations with the FieldSecurityProfile entity. + + + Initializes a new instance of the class. + + + Gets or sets the security principal (user or team) for which to retrieve attribute privileges. Required. + Type: The security principal (user or team) for which to retrieve attribute privileges. This must be a reference to a SystemUser or Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of attribute privileges for the security principal (user or team). + Type: The collection of attribute privileges for the security principal (user or team). + + + Contains the data needed to retrieve the set of privileges defined in the system. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of privileges. + Type: The resulting collection of privileges. + + + Contains the data that is needed to retrieve the version of a provisioned language pack. + + + Initializes a new instance of the class + + + Gets or sets the Locale Id for the language. Required. + Type: Returns_Int32The Locale Id for the language. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the version number of the installed language pack. + Type: Returns_StringThe version number of the installed language pack. + + + Contains the data that is needed to retrieve the list of provisioned languages. + + + Initializes a new instance of the RetrieveProvisionedLanguagesRequest class + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of locale ID values that represent the provisioned languages. + Type: Returns_Int32[] An array of locale ID values that represent the provisioned languages.. + + + Contains the data that is needed to retrieve all attribute data changes for a specific entity. + + + Initializes a new instance of the class. + + + Gets or sets the paging information for the retrieved data. Required. + Type: The paging information for the retrieved data. + + + Gets or sets the target audit record. Required. + Type: . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the history of data changes for the target entity. + Type: The history of data changes for the target entity. + + + Contains the data that is needed to retrieve pages of posts, including comments for each post, for a specified record. + + + Initializes a new instance of the class. + + + Gets or sets, for retrieval, the number of comments per post. Required. + Type: Returns_Int32The number of comments per post to retrieve. The maximum number of retrieved comments, per post, is 50; the minimum number is 0. + + + Gets or sets the end date and time of the posts that you want to retrieve. Optional. + Type: Returns_DateTimeThe end date and time of the posts that you want to retrieve. If specified, the posts that were created on or before the specified end date and time are retrieved. + + + Gets or sets the record for which to retrieve the wall. Required. + Type: The record for which to retrieve the wall. This must be an entity reference for an entity that is enabled for activity feeds. + + + Gets or sets, for retrieval, a specific page of posts that is designated by its page number. Required. + Type: Returns_Int32The specific page of posts that is designated by its page number. The page number for the first page is 1. If you specify a value of 0, it is treated as a value of 1. + + + Gets or sets, for retrieval, the number of posts per page. Required. + Type: Returns_Int32The number of posts per page. The maximum number of retrieved posts, per page, is 100; the minimum number is 1. + + + Gets or sets a value that specifies the source of the post. Optional. + Type: The value that specifies the source of the post. + + + Gets or sets the start date and time of the posts that you want to retrieve. Optional. + Type: Returns_DateTimeThe start date and time of the posts that you want to retrieve. If specified, only the posts that were created on or after the specified date and time are retrieved. + + + Reserved for future use. + Type: . + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of posts with their associated comments and the calculated attribute values. + Type: The collection of posts with their associated comments and the calculated attribute values. + + + Contains the data that is needed to retrieve a collection of solution components that are required for a solution component. + + + Initializes a new instance of the class. + + + Gets or sets the value that represents the solution component. Required. + Type: Returns_Int32The value that represents the solution component. Required. + + + Gets or sets the ID of the solution component that you want to check. Required. + Type: Returns_GuidThe ID of the solution component that you want to check. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent those components that the solution component requires. + Type: a collection of Dependency records where the DependentComponentObjectId and DependentComponentType attributes represent those components that the solution component requires. + + + Contains the data that is needed to retrieve the privileges that are assigned to the specified role. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the role for which the privileges are to be retrieved. + Type: Returns_GuidThe ID of the role for which the privileges are to be retrieved. This corresponds to the Role.RoleId property, which is the primary key for the Role entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array that contains the IDs and depths of the privileges that are held by the specified role. + Type: The array that contains the IDs and depths of the privileges that are held by the specified role. + + + Contains the data that is needed to retrieve all security principals (users or teams) that have access to, and access rights for, the specified record. + + + Initializes a new instance of the class. + + + Gets or sets the target record for which you want to retrieve security principals (users and teams) and their access rights. + Type: The target record for which you want to retrieve security principals (users and teams) and their access rights. This property must be an entity reference for an entity that supports this message. For a list of supported entity types, see the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the requested security principals (teams and users) for the specified record. + Type: The requested security principals (teams and users) for the specified record. + + + Contains the data that is needed to retrieve the collection of child resource groups from the specified resource group (scheduling group). + + + Initializes a new instance of the class. + + + Gets or sets the query for the operation. + Type: The query for the operation. + + + Gets or sets the ID of the resource group. + Type: Returns_GuidThe ID of the resource group. This corresponds to the ResourceGroup.ResourceGroupId property, which is the primary key for the ResourceGroup entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the resulting collection of child resource groups for the specified resource group (scheduling group). + Type: The resulting collection of child resource groups for the specified resource group (scheduling group). + + + deprecated Use the class.Contains the data needed to retrieve a collection of entity instances based on the specified query criteria. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: . + + + deprecated Use the class and its members. + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + Type: + + + deprecated Use the class.Contains the data needed to retrieve all user information from the child business units of the specified business unit. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: + + + deprecated Use the class and its members. + Type: Returns_Guid + + + deprecated Use the class and its associated response class.Contains the response from the message. + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + Type: + + + Contains the data that is needed to retrieve the privileges for a team. + + + Initializes a new instance of the class. + + + Gets or sets the team for which you want to retrieve privileges. + Type: Returns_GuidThe team for which you want to retrieve privileges. This corresponds to the Team.TeamId attribute, which is the primary key for the Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the list of privileges that the team holds for a record. + Type: array. The list of privileges that the team holds for a record. + + + deprecated Use the class.Contains the data needed to retrieve the list of teams of which the specified user is a member. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: + + + deprecated Use the class and its members. + Type: Returns_Guid + + + deprecated Use the class and its associated response class.Contains the response from the message. + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + Type: + + + Contains the data that is needed to retrieve a collection of unpublished organization-owned records that satisfy the specified query criteria. + + + Initializes a new instance of the class. + + + Gets or sets the query criteria defining the records to retrieve.Required. + Type: The query criteria defining the records to retrieve. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of records that satisfy the query in the request. + Type: The collection of records that satisfy the query in the request. + + + Contains the data that is needed to retrieve an unpublished record. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes for which non-null values are returned from a query. Required. + Type: The collection of attributes for which non-null values are returned from a query. Required.. + + + Gets or sets the target record for the operation. Required. + Type: the target record for the operation. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the unpublished record that is specified in the request. + Type: The unpublished record that is specified in the request. + + + Contains the data needed to retrieve the privileges a system user (user) has through his or her roles in the specified business unit. + + + Initializes a new instance of the class. + + + Gets or sets the user to retrieve privileges for. + Type: Returns_GuidThe user to retrieve privileges for. This corresponds to the User.UserId attribute, which is the primary key for the User entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of privileges that the user holds. + Type: arrayThe array of privileges that the user holds. + + + Contains the data needed to retrieve all private queues of a specified user and optionally all public queues. + + + Initializes a new instance of the class. + + + Gets or sets whether the response should include public queues. + Type: Returns_Booleantrue if the response should include public queues; otherwise, false. + + + Type: Returns_Guid +The id of the user. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the response from the message. + + + Initializes a new instance of the class. + + + deprecated Use the class.Contains the data needed to retrieve the user settings for the specified system user (user). + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: + + + deprecated Use the class and its members. + Type: Returns_Guid + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + Type: + + + Contains the data that is needed to retrieve the version number of the pn_microsoftcrm_server. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the version number of the pn_microsoftcrm_server. + Type: Returns_StringThe version number of the pn_microsoftcrm_server. + + + Contains the data that is needed to set the state of a quote to Draft. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes to retrieve in the revised quote. Required. + Type: The the collection of attributes to retrieve in the revised quote. + + + Gets or sets the ID of the original quote. Required. + Type: Returns_GuidThe the ID of the original quote. This corresponds to the Quote.QuoteId attribute, which is the primary key for the Quote entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the revised quote. + Type: The revised quote. This is instance of the Quote class, which is a subclass of the Entity class. + + + Contains the data that is needed to replace the access rights on the target record for the specified security principal (user or team). + + + Initializes a new instance of the class. + + + Gets or sets a security principal (team or user) whose access you want to revoke. Required. + Type: The security principal (team or user) whose access you want to revoke. + + + Gets or sets the target record for which you want to revoke access. Required. + Type: The target record for which you want to revoke access. This property value must be an entity reference for an entity that supports this message. For a list of supported entity types, see the class. + + + Contains the response from the class. + + + constructor_initializes class. + + + Contains the values for ribbon filters for an entity. + + + Retrieve all Ribbons. Equivalent to Default. Value = 7. + + + Retrieve all Ribbons. Equivalent to All. Value = 7. + + + Retrieve just the form ribbon. Value = 1. + + + Retrieve just the ribbon displayed for entity grids. Value = 2. + + + Retrieve just the ribbon displayed when the entity is displayed in a subgrid or associated view. Value = 4. + + + Contains information about a privilege. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class by setting the depth, privilege ID, and business unit ID. + Type: . The depth of the privilege. + Type: Returns_Guid. The ID of the privilege. + Type: Returns_Guid. The ID of the business unit. + + + Initializes a new instance of the class by setting the depth and the privilege ID. + Type: Returns_Int32. The depth of the privilege. + Type: Returns_Guid. The ID of the privilege. + + + Initializes a new instance of the class by setting the depth (as an integer), the privilege ID, and the business unit ID. + Type: Returns_Int32. The depth of the privilege. + Type: Returns_Guid. The ID of the privilege. + Type: Returns_Guid. The ID of the business unit. + + + Gets or sets the ID of the business unit. + Type: Returns_Guid +The ID of the business unit, which corresponds to the BusinessUnit.BusinessUnitID attribute, which is the primary key for the BusinessUnit entity.. + + + Gets or sets the depth of the privilege. + Type: The depth of the privilege. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the privilege. + Type: Returns_Guid +The ID of the privilege, which corresponds to the Privilege.PrivilegeID attribute, which is the primary key for the Privilege entity.. + + + Represents audited changes to the privileges of a security role. + + + Initializes a new instance of the RolePrivilegeAuditDetail class. + + + Gets the collection of invalid privileges for the role. + Type: <Returns_Guid>The collection of invalid privileges for the role. + + + Gets or sets the role’s new privileges. + Type: The new privileges for the role. + + + Gets or sets the role’s old privileges. + Type: The old privileges for the role. + + + Contains the data that is needed to retrieve all the entity records that are related to the specified record. + + + Initializes a new instance of the class. + + + Gets or sets the query criteria for the rollup operation. Required. + Type: The query criteria for the rollup operation. + + + Gets or sets the rollup type. Required. + Type: The the rollup type. Use the enumeration for this property. + + + Gets or sets the target record for the rollup operation. Required. + Type The target record for the rollup operation, which must be an entity reference for an account, contact, or opportunity entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of records that are related to the specified record. + Type:The collection of records that are related to the specified record. + + + Contains the possible values for the property in the class, which you use to retrieve all the entity records for a specified record. + + + A rollup record that is directly related to a parent record and to any descendent record of a parent record, for example, children, grandchildren, and great-grandchildren records. Value = 2. + + + A rollup record is not requested. This member only retrieves the records that are directly related to a parent record. Value = 0. + + + A rollup record that is directly related to a parent record and to any direct child of a parent record. Value = 1. + + + Contains the data that is needed to route a queue item to a queue, a user, or a team. + + + Initializes a new instance of the class. + + + Gets or sets the id of the queue item to route. Required + Type: Returns_Guid +The QueueItem id. This corresponds to the QueueItem.QueueItemId attribute, which is the primary key for the QueueItem entity. + + + Gets or sets the target record to route the queue item to. Required. + Type: The target record to route the queue item to. + + + Contains the response from the message.This message was added with pn_crm_2013_service_pack_1_op_short and pn_v6_online_ur1_shortest. + + + Initializes a new instance of the class. + + + Contains the data that is needed to search for knowledge base articles that contain the specified body text. + + + Initializes a new instance of the class. + + + Gets or sets the query criteria to find knowledge base articles with specified body text. Required. + Type: The query criteria to find knowledge base articles with specified body text. + + + Gets or sets the text contained in the body of the article. Required. + Type: Returns_StringThe text contained in the body of the article. + + + Gets or sets the ID of the knowledge base article subject. Required. + Type: Returns_GuidThe ID of the knowledge base article subject. This corresponds to the Subject.SubjectId attribute, which is the primary key for the Subject entity. + + + Gets or sets a value that indicates whether to use inflectional stem matching when searching for knowledge base articles with a specified body text. Required. + Type: Returns_BooleanIndicates whether to use inflectional stem matching when searching for knowledge base articles with a specified body text. true, to use inflectional stem matching, otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of knowledge base articles that contain the specified body text. + Type: The collection of knowledge base articles that contain the specified body text. + + + Contains the data that is needed to search for knowledge base articles that contain the specified keywords. + + + Initializes a new instance of the class. + + + Gets or sets the query criteria to find knowledge base articles with specified keywords. Required. + Type: The query criteria to find knowledge base articles with specified keywords. + + + Gets or sets the keywords in the article. Required. + Type: Returns_StringThe keywords in the article. + + + Gets or sets the ID of the knowledge base article subject. Required. + Type: Returns_GuidThe ID of the knowledge base article subject. This corresponds to the Subject.SubjectId attribute, which is the primary key for the Subject entity. + + + Gets or sets a value that indicates whether to use inflectional stem matching when searching for knowledge base articles with the specified keywords. Required. + Type: Returns_BooleanIndicates whether to use inflectional stem matching when searching for knowledge base articles with the specified keywords. true, to use inflectional stem matching, otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of knowledge base articles that contain the specified keywords. + Type: The collection of knowledge base articles that contain the specified keywords. + + + Contains the data that is needed to search for knowledge base articles that contain the specified title. + + + Initializes a new instance of the class. + + + Gets or sets the query criteria to find knowledge base articles with the specified title. Required. + Type: The query criteria to find knowledge base articles with the specified title. + + + Gets or sets the title in the articles. Required. + Type: Returns_StringThe title of the article. + + + Gets or sets the ID of the subject for the knowledge base article. Required. + Type: Returns_GuidThe ID of the knowledge base article subject. This corresponds to the Subject.SubjectId attribute, which is the primary key for the Subject entity. + + + Gets or sets a value that indicates whether to use inflectional stem matching when you search for knowledge base articles by a specific title. Required. + Type: Returns_BooleanIndicates whether to use inflectional stem matching when searching for knowledge base articles with a specified title. true, to use inflectional stem matching, otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of knowledge base articles that contain the specified title. + Type: The collection of knowledge base articles that contain the specified title. + + + Contains the possible values for the search direction in an appointment request. + + + Search backward in the calendar. Value = 1. + + + Search forward in the calendar. Value = 0. + + + Contains the data needed to search for available time slots that fulfill the specified appointment request. + + + Initializes a new instance of the class. + + + Gets or sets the appointment request. + Type: The appointment request. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the search. + Type: The results of the search. + + + Contains the results from the message. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the proposals and trace info properties. + The set of proposed appointments that meet the appointment request criteria. + The results of the search. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe the structure that contains extra data. + + + Gets the set of proposed appointments that meet the appointment request criteria. + Type: The set of proposed appointments that meet the appointment request criteria. + + + Gets information regarding the results of the search. + Type: The information regarding the results of the search. + + + Contains the data that is needed to send bulk email messages. + + + Initializes a new instance of the class. + + + Gets or sets the query to retrieve the recipients for the email messages. + Type: The query to retrieve the recipients for the email messages. + + + Gets or sets the ID of the record with which the email messages are associated. + Type: Returns_GuidThe ID of the record with which the email messages are associated. + + + Gets or sets the type of the record with which the email messages are associated. + Type: Returns_StringThe type of the record with which the email messages are associated. + + + Gets or sets the sender of the email messages. + Type: The sender of the email messages. + + + Gets or sets the ID of the email template to use. + Type: Returns_GuidThe ID of the email template to use. This corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to send an email message using a template. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the record with which the email message is associated. + Type: Returns_GuidThe ID of the record with which the email message is associated. + + + Gets or sets the type of the record with which the email message is associated. + Type: Returns_StringThe type of the record with which the email message is associated. + + + Gets or sets the email record to send. + Type: The the email record to send. This is an instance of an Email entity. + + + Gets or sets the ID of the email template to use for the email. + Type: Returns_GuidThe ID of the email template to use for the email. This corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the email record that was sent. + Type: Returns_GuidThe ID of the email record that was sent. This corresponds to the Email.EmailId property, which is the primary key for the Email entity. + + + Contains the data that is needed to send an email message. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the email to send. + Type: Returns_Guid +The ID of the email to send, which corresponds to the Email.EmailId attribute, which is the primary key for the Email entity. + + + Gets or sets whether to send the email, or to just record it as sent. + Type: Returns_Booleantrue if the email should be sent; otherwise, false, just record it as sent. + + + Gets or sets the tracking token. + Type: Returns_StringThe tracking token, which is used to correlate an email with a context. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the subject line for the email message. + Type: Returns_StringThe subject line for the email message. + + + Contains the data that is needed to send a fax. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the fax to send. + Type: Returns_GuidThe ID of the fax to send. This corresponds to the Fax.FaxId attribute, which is the primary key for the Fax entity. + + + Gets or sets whether to send the e-mail, or to just record it as sent. + Type: Returns_BooleanIndicates whether to send the e-mail, or to just record it as sent. true, to send the e-mail, otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to send a bulk email message that is created from a template. + + + Initializes a new instance of the class. + + + Type: . + + + Gets or sets the array that contains the list of recipients for the email. Required. + Type: Returns_Guid[] +The array of recipients for the email. The recipients must be of the same entity type that is specified in the property. + + + Gets or sets the type of entity that is represented by the list of recipients. Required. + Type: Returns_StringThe name of the entity that is represented by the list of recipients. Set this property to the name of the entity type for the recipient list that is specified in the property. + + + Gets or sets the ID of a record that the email is regarding. Required. + Type: Returns_Guid +The ID of a record that the email is regarding. This property is the ID of a record that is valid for the Email.RegardingObjectId attribute. The property must contain the logical name of the entity type for this record. + + + Gets or sets the type of entity that is represented by the regarding ID. Required. + Type: Returns_String +The name of entity that is represented by the regarding ID. This property is the logical entity name of the record that is specified in the property. + + + Gets or sets the sender of the email. + Type: The sender of the email. The property contains the ID of a record and an entity type. The return value of this property must be a system user. + + + Gets or sets the ID of the template to be used for the email. Required. + Type: Returns_Guid +The the ID of the template to be used for the email, which corresponds to the Template.TemplateId attribute, which is the primary key for the Template entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to assign equipment (facility/equipment) to a specific business unit. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the business unit. + Type: Returns_GuidThe ID of the business unit. This corresponds to the BusinessUnit.BusinessUnitId attribute, which is the primary key for the BusinessUnit entity. + + + Gets or sets the ID of the equipment (facility/equipment). + Type: Returns_GuidThe ID of the equipment (facility/equipment). This corresponds to the Equipment.EquipmentId attribute, which is the primary key for the Equipment entity. + + + Contains the response from the class. + + + Initializes a new instance of the SetBusinessEquipmentResponse class. + + + Contains the data that is needed to move a system user (user) to a different business unit. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the business unit to which the user is moved. Required. + Type: Returns_GuidThe ID of the business unit to which the user is moved. This corresponds to the BusinessUnit.BusinessUnitId attribute, which is the primary key for the BusinessUnit entity. + + + Gets or sets the target security principal (user) to which the instances of entities previously owned by the user are to be assigned. Required. + Type: The target security principal (user) to which the instances of entities previously owned by the user are to be assigned. If this property is set to null or an empty string, an error occurs. + + + Gets or sets the ID of the user. Required. + Type: Returns_GuidThe ID of the user. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the response from the class. + + + Initializes a new instance of the SetBusinessSystemUserResponse class. + + + Contains the data that is needed to set localized labels for a limited set of entity attributes. + + + Initializes a new instance of the class + + + Gets or sets the name of the attribute. Required. + Type: Returns_StringThe name of the attribute. Required. + + + Gets or sets the entity. Required. + Type: The entity. Required. + + + Gets or sets the label. Required. + Type: The label. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to set the parent business unit for a business unit. + + + Initializes a new instance of the SetParentBusinessUnitRequest class. + + + Gets or sets the ID of the business unit. + Returns . + + + Gets or sets the ID of the new parent business unit. + Returns . + + + Contains the response from the class. + + + Initializes a new instance of the SetParentBusinessUnitResponse class. + + + Contains the data needed to set a new parent system user (user) for the specified user. + + + Initializes a new instance of the class. + + + Gets or sets whether the child users are to be retained. Required. + Type: Returns_BooleanIndicates whether the child users are to be retained. Use true to retain the child users reporting to the original user, otherwise, use false (default) to update the child users to report to the original manager of the user. + + + Gets or sets the ID of the new parent user. Required. + Type: Returns_GuidThe ID of the new parent user. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Gets or sets the ID of the user. Required. + Type: Returns_GuidThe ID of the user. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the response from the class. + + + Initializes a new instance of the SetParentSystemUserResponse class. + + + Contains the data needed to set the parent business unit of a team. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the business unit to which to move the team. Required. + Type: Returns_GuidThe ID of the business unit to which to move the team. This corresponds to the BusinessUnit.BusinessUnitId attribute, which is the primary key for the BusinessUnit entity. + + + Gets or sets the ID of the team. Required. + Type: Returns_GuidThe ID of the team. This corresponds to the Team.TeamId attribute, which is the primary key for the Team entity. + + + Contains the response from the class. + + + Initializes a new instance of the SetParentTeamResponse class. + + + Contains the data needed to create a relationship between a set of records that participate in specific relationships. + + + Initializes a new instance of the class. + + + Gets or sets the target records of the set related action. Required. + Type: The target records of the set related action. This array must contain a set of entity references where the entities participate in a relationship. + + + Contains the response from the class. + + + Initializes a new instance of the SetRelatedResponse class. + + + Contains the data needed to link an instance of a report entity to related entities. + + + Initializes a new instance of the class. + + + Gets or sets an array of report category codes. Required. + Type: Returns_Int32[]The array of report category codes. + + + Gets or sets an array of entity type codes for the related entities. Required. + Type: Returns_Int32[]The array of entity type codes for the related entities. + + + Gets or sets the ID of the report. Required. + Type: Returns_GuidThe ID of the report. This corresponds to the Report.ReportId attribute, which is the primary key for the report entity. + + + Gets or sets an array of report visibility codes. Required. + Type: Returns_Int32[]The array of report visibility codes. + + + Contains the response from . + + + Initializes a new instance of the class. + + + Contains the data that is needed to set the state of an entity record. + + + Initializes a new instance of the class. + + + Gets or sets the entity. Required. + Type: The entity. + + + Gets or sets the state of the entity record. Required. + Type: The state of the entity record. + + + Gets or sets the status that corresponds to the State property. Required. + Type: The status that corresponds to the State property. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Represents a shared audit detail record. + + + constructor_initializesShareAuditDetail class. + + + Gets or sets the privileges of the user after a change. + Type: The privileges of the user after a change. + + + Gets or sets the privileges of the user before a change. + Type: The privileges of the user before a change. + + + Gets or sets the security principal (user or team) that shares the audit detail record. + Type: The user or team that shares the record. + + + internal + + + internal + + + internal + Type: Returns_Guid + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_Int32 + + + internal + + + internal + + + Contains the possible values for a subcode, used in scheduling appointments. + + + A block of time that is already scheduled for an appointment. Value = 7. + + + A block of time that cannot be committed due to a scheduled break. Value = 4. + + + A block of time that is committed to perform an action. Value = 2. + + + A block of time that cannot be scheduled due to a scheduled holiday. Value = 5. + + + Specifies the capacity of a resource for the specified time interval. Value = 10. + + + A restriction for a resource for the specified service. Value = 9. + + + Specifies to filter a resource start time. Value = 8. + + + A schedulable block of time. Value = 1. + + + An override to the service cost for the specified time block. Value = 12. + + + Specifies that a service is restricted during the specified block of time. Value = 11. + + + A block of time that is tentatively scheduled but not committed. Value = 3. + + + Specifies free time with no specified restrictions. Value = 0. + + + A block of time that cannot be scheduled due to a scheduled vacation. Value = 6. + + + Indicates the attribute type for the target of the message. + + + Initialize all possible attribute values. Value = 0. + + + Initialize the attribute values that are valid for create. Value = 1. + + + Initialize the attribute values that are valid for read. Value = 3. + + + initialize the attribute values that are valid for update. Value = 2. + + + Contains the possible values for a time code, used when querying a schedule. + + + The time is available within the working hours of the resource. Value = 0. + + + The time is committed to an activity. Value = 1. + + + Use additional filters for the time block such as service cost or service start time. Value = 3. + + + The time is unavailable. Value = 2. + + + Specifies a set of time blocks with appointment information. + + + Initializes a new instance of theTimeInfo class. + + + Gets or sets the status of the activity. + Type: Returns_Int32The activity status code. + + + Gets or sets the ID of the calendar for this block of time. + Type: Returns_Guid +The the ID of the calendar for this block of time, which corresponds to the Calendar.CalendarId attribute, which is the primary key for the Calendar entity. + + + Gets or sets the display text shown in the calendar for the time block. + Type: Returns_StringThe display text shown in the calendar for the time block.. + + + Gets or sets the amount of effort required for this block of time. + Type: Returns_Double +The amount of effort required for this block of time. + + + Gets or sets the end time for the block. + Type: Returns_Nullable<Returns_DateTime> +The end time for the block. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the value that indicates whether the block of time refers to an activity. + Type: Returns_Booleantrue if the block of time refers to an activity; otherwise, false. + + + Gets or sets the ID of the record referred to in the time block. + Type: Returns_Guid +The ID of the record, which corresponds to the primary key for the entity. + + + Gets or sets the type of entity referred to in the time block. + Type: Returns_Int32 +The entity type code. + + + Gets or sets the start time for the block. + Type: Returns_Nullable<Returns_DateTime> +The start time for the block. + + + Gets or sets information about the time block such as whether it is an appointment, break, or holiday. + Type: The information about the time block. + + + Gets or sets the value that indicates whether the time block is available, busy, filtered or unavailable. + Type: The time code. + + + Specifies the results of a scheduling operation using the , , , or messages. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: []. The list of error information for the scheduling operation. + + + Gets or sets the list of error information for the scheduling operation. + Returns []The the list of error information for the scheduling operation. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Contains the data that is needed to submit an asynchronous job that transforms the parsed data. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the import (data import) that is associated with the asynchronous job that transforms the imported data. Required. + Type: Returns_GuidThe ID of the import (data import) that is associated with the asynchronous job that transforms the imported data. This corresponds to the Import.ImportId attribute, which is the primary key for the Import entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the asynchronous job that transforms the parsed data for this import. + Type: Returns_GuidThe ID of the asynchronous job that transforms the parsed data for this import. + + + Contains the data that is needed to validate the configuration of a windows_azure_service_bus solution’s service endpoint. + + + Initializes a new instance of the TriggerServiceEndpointCheck class. + + + Gets or sets the ServiceEndpoint record that contains the configuration. Required. + Type: The entity reference of the service endpoint record. + + + Contains the response from the . + + + Initializes a new instance of the TriggerServiceEndpointCheckResponse class. + + + Contains the data that is needed to unlock pricing for an invoice. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the invoice. + Type: Returns_GuidThe ID of the invoice. This corresponds to the Invoice.InvoiceId attribute, which is the primary key for the Invoice entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to unlock pricing for a sales order (order). + + + Initializes a new instance of the class. + + + Gets or sets the ID of the sales order (order). + Type: Returns_GuidThe ID of the sales order (order). This corresponds to the SalesOrder.SalesOrderId attribute, which is the primary key for the SalesOrder entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to submit an asynchronous job to unpublish a duplicate rule. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the duplicate rule to be unpublished. Required. + Type: Returns_GuidThe ID of the duplicate rule to be unpublished. This corresponds to the DuplicateRule.DuplicateRuleId attribute, which is the primary key for the DuplicateRule entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + deprecated Use the class. + + + deprecated Use the class and its members. + + + deprecated Use the class and its members. + Type: . + + + deprecated Use the class and its members. + Type: . + + + deprecated Use the class and its associated response class. + + + deprecated Use the class and its associated response class. + + + internal + + + Initializes a new instance of the class. + + + internal + Type: Returns_DateTime + + + internal + Type: Returns_Int32 + + + Contains the data that is needed to retrieve the Coordinated Universal Time (UTC) for the specified local time. + + + Initializes a new instance of the class. + + + Gets or sets the local time. Required. + Type: Returns_DateTimeThe the local time. + + + Gets or sets the time zone code. Required. + Type: Returns_Int32The time zone code. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the local time and expresses it in Coordinated Universal Time (UTC) time. + Type: Returns_DateTimeThe local time expressed as Coordinated Universal Time (UTC) time. + + + Contains the data that is needed to validate a rule for a recurring appointment. + + + Initializes a new instance of the class. + + + Gets or sets the recurrence rule record to validate. + Type: The recurrence rule record to validate. This is an instance of the RecurrenceRule entity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the description. + Type: Returns_StringThe description. + + + Contains the data that is needed to verify that an appointment or service appointment (service activity) has valid available resources for the activity, duration, and site, as appropriate. + + + Initializes a new instance of the class. + + + Gets or sets the activities to validate. + The activities to validate. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the results of the validate operation. + Type: The results of the validate operation. + + + Contains the data that is needed to validate a saved query (view). + + + Initializes a new instance of the class. + + + Gets or sets the FetchXML query string to be validated. + Type: Returns_String +The FetchXML query string to be validated. + + + Gets or sets the type of the query. + Type: Returns_Int32 +The query type, which should be one of the values in the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the result from the , , or messages. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class, setting the success, traceinfo and activityid properties. + Type: Returns_Boolean. The value that indicates whether the appointment or service appointment was validated successfully. + Type: Returns_Guid. The ID of the validated activity. + Type: . The reasons for any scheduling failures. + + + Gets or sets the ID of the validated activity. + Type: Returns_Guid +The ID of the validated activity. This corresponds to the ActivityPointer.ActivityPointerId attribute, which is the primary key for the ActivityPointer entity. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the reasons for any scheduling failures. + Type: The reasons for any scheduling failures. + + + Gets or sets the value that indicates whether the appointment or service appointment was validated successfully. + Type: Returns_Booleantrue if the appointment or service appointment was validated successfully; otherwise, false. + + + internal + + + Initializes a new instance of the class. + + + internal + Type: Returns_String + + + internal + Type: + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Type: Returns_Boolean + + + Contains the data that is needed to retrieve the system user ID for the currently logged on user or the user under whose context the code is running. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the business to which the logged on user belongs. + Type: Returns_GuidThe ID of the business to which the logged on user belongs. This corresponds to the BusinessUnit.BusinessUnitId attribute, which is the primary key for the BusinessUnit entity. + + + Gets the ID of the organization that the user belongs to. + Type: Returns_GuidID of the organization that the user belongs to. This corresponds to the Organization.OrganizationId attribute, which is the primary key for the Organization entity. + + + Gets the ID of the user who is logged on. + Type: Returns_GuidThe ID of the user who is currently logged on or the user under whose context the executed code is running. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the SystemUser entity. + + + Contains the data that is needed to set the state of an opportunity to Won. + + + Initializes a new instance of the class. + + + Gets or sets the opportunity close activity associated with this state change. Required. + Type: The opportunity close activity associated with this state change. This must be an instance of the OpportunityClose class, which is a subclass of the Entity class. + + + Gets or sets a new status of the opportunity. Required. + Type: The status of the opportunity. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to set the state of a quote to Won. + + + Initializes a new instance of the class. + + + Gets or sets the quote close activity associated with this state change. Required. + Type: The quote close activity associated with this state change. This must be an instance of the QuoteClose class, which is a subclass of the Entity class. + + + Gets or sets a new status of the quote. Required. + Type: The new status of the quote. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Client.dll b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Client.dll new file mode 100644 index 00000000..8f9629aa Binary files /dev/null and b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Client.dll differ diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Client.xml b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Client.xml new file mode 100644 index 00000000..4d73e4fa --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Client.xml @@ -0,0 +1,3288 @@ + + + + Microsoft.Xrm.Client + + + + Provides a connection to the server using a connection string. (Developer Extensions) + + + Initializes a new instance of the CrmConnection class. + + + Initializes a new instance of the CrmConnection class , setting the connection string. + The connection string. + + + Initializes a new instance of the CrmConnection class , setting the connection string name. + The connection string name. + + + Builds a text value that is unique to the connection values. + Returns . + + + Parses a string in the DbConnectionStringBuilder format. + Returns . + The connection string to parse. + + + Serialize an object using the DataContractJsonSerializerhttp://msdn2.microsoft.com/en-us/library/bb908432. + Returns . + + + Gets or sets the GUID of the user for whom SDK calls are made on behalf of. + Returns . + + + The user credentials. + Returns . + + + The Windows Live ID device credentials. + Returns . + + + The URI of the cross realm STS metadata endpoint. + Returns . + + + The assembly containing the strong proxy types. + Returns . + + + Determines if the strong proxy types should be returned by the service. + Returns . + + + The mode for instantiating the service configuration. + Returns . + + + The organization service URL. + Returns . + + + The service timeout value. + Returns . + + + The time offset prior to the user token expiration when the user token should be refreshed. + Returns . + + + The base class of an entity class from Developer Extensions for Microsoft Dynamics CRM 2011, derived from the core Microsoft.Xrm.Sdk.Entity class. + + + Initializes a new instance of the CrmEntity class. + The name of the entity. + + + Occurs when an attribute or relationship is set. + + + Occurs when an attribute or relationship is set. + + + Verifies that the logical name of an entity is the expected name. + The entity instance. + The expected entity name. + + + Deep clones an instance of the Entity class. + Returns . + The entity instance. + Specifies whether related entities should be included in the cloned entity. + + + Retrieves the value of a sequence attribute. + Returns . + The logical name of the attribute. + + + Retrieves the value of an attribute. + Returns . + The entity instance. + The logical name of the attribute. + + + Retrieves the value of an attribute. + Returns . + The logical name of the attribute. + + + Retrieves attribute values for EntityReference attributes. + Returns . + The entity instance. + The logical name of the attribute. + + + Retrieves the collection of related entities for a specific relationship. + Returns . + The entity instance. + The relationship instance. + The service context. + + + Retrieves the collection of related entities for a specific relationship. + Returns . + The role that the entity plays in the relationship, referencing or referenced. + The entity instance. + The service context. + The schema name of the relationship. + + + Gets the collection of related entity instances for the specified relationship. + Returns . + The role that the entity plays in the relationship, referencing or referenced. + The schema name of the relationship. + + + Retrieves the collection of related entities for a specific relationship. + Returns . + The entity instance. + The relationship instance. + + + Retrieves the collection of related entities for a specific relationship. + Returns . + The entity instance. + + + Retrieves the related entity for a specific relationship. + Returns . + The entity instance. + The relationship instance. + The service context. + + + Retrieves the related entity for a specific relationship. + Returns . + The role that the entity plays in the relationship, referencing or referenced + The entity instance. + The service context. + The schema name of the relationship. + + + Gets the related entity instance for the specified relationship. + Returns . + The role that the entity plays in the relationship, referencing or referenced. + The schema name of the relationship. + + + Retrieves the related entity for a specific relationship. + Returns . + The entity instance. + The relationship instance. + + + Modifies the value of a sequence attribute. + The name of the property to set. + The value of the property. + The logical name of the attribute. + + + Modifies the value of a sequence attribute. + The entity instance. + The attribute value. + The logical name of the attribute. + + + Modifies the value of an attribute. + The entity instance. + The attribute value. + The logical name of the entity. + The logical name of the attribute. + + + Modifies the value of an attribute. + The name of the property to set. + The attribute value. + The logical name of the attribute. + + + Modifies the value of an attribute. + The name of the property to set. + The attribute value. + The logical name of the entity. + The logical name of the attribute. + + + Modifies the value of an attribute. + The entity instance. + The attribute value. + The logical name of the attribute. + + + Modifies the value of a primary key attribute. + The name of the property to set. + The value of the property. + The logical name of the attribute. + + + Sets the collection of related entity instances for the specified relationship. + The name of the property. + The schema name of the relationship. + The set of entities to be related. + + + Sets the collection of related entity instances for the specified relationship. + The role that the entity plays in the relationship, referencing or referenced. + The name of the property. + The schema name of the relationship. + The set of entities to be related. + + + Modifies the collection of related entities for a specific relationship. + The entity instance. + The relationship instance. + The collection of entity instance to be related. + + + Modifies the collection of related entities for a specific relationship. + The entity instance. + The schema name of the relationship. + The collection of entity instance to be related. + + + Sets the related entity for a specific relationship. + The entity to be related. + The name of the property. + The schema name of the relationship. + + + Sets the related entity for a specific relationship. + The role that the entity plays in the relationship, referencing or referenced. + The entity to be related. + The name of the property. + The schema name of the relationship. + + + Modifies a related entity for a specific relationship. + The entity instance. + The relationship instance. + The entity instance to be related. + + + Modifies a related entity for a specific relationship. + The entity instance. + The entity instance to be related. + The schema name of the relationship. + + + Contains a reference to a specific record (entity instance). (Developer Extensions) + + + Initializes an instance of the CrmEntityReference class. + + + Initializes an instance of the CrmEntityReference class. + The ID of the record (entity instance). + The logical name of the entity. + + + Returns true if the specified object is equal to this entity reference, otherwise returns false. + Returns . + The entity reference to compare. + + + Gets a hash value for this type. + Returns . + + + Returns . + + + Returns . + + + The ID of the record (entity instance). + Returns . + + + The logical name of the entity. + Returns . + + + The name of the entity. + Returns . + + + The Developer Extensions for Microsoft Dynamics CRM 2011 version of the runtime context of the data service that is used to track Microsoft Dynamics CRM 2011 entities and that sends and receives entities from the server. + + + Initializes a new instance of the CrmOrganizationServiceContext class. + + + Initializes a new instance of the CrmOrganizationServiceContext class. + + + Initializes a new instance of the CrmOrganizationServiceContext class. + + + Initializes a new instance of the CrmOrganizationServiceContext class. + + + Adds an item to a campaign. The item added must be one of the following entity types: campaign, list, product, or salesliterature. (Developer Extensions) + Returns a that contains the ID of the resulting campaign activity item. + The organization service context. + The ID of the campaign. + The entity name for entityId. + The ID of the entity to add to the campaign. + + + Adds an item to a campaign activity. (Developer Extensions) + Returns a that contains the ID of the resulting campaign item. + The organization service context. + The ID of the campaign activity. + The entity name itemId. + The ID of the record to add to the campaign activity. + + + Adds a link between two entity instances. + The role that the entity plays in the relationship, referencing or referenced. + The service context. + The schema name of the relationship for the link. + The target entity instance. + The source entity instance. + + + Adds a link between two entity instances. + The service context. + The target entity instance. + The source entity instance. + + + Adds a list of members to a list. (Developer Extensions) + An array of the IDs of the members to add to the list. + The organization service context. + The ID of the list. + + + Adds a member to a list. The member added must be one of the following entity types: account, contact, or lead. (Developer Extensions) + Returns a that contains the ID of the resulting list member. + The organization service context. + The ID of the record to add to the list. + The ID of the list. + + + Adds members to a team. (Developer Extensions) + The organization service context. + The ID of the team. + An array of the IDs of the members to add to the team. + + + Adds a set of existing privileges to an existing role. (Developer Extensions) + The ID of the role. + The privileges to add to the role. + The organization service context. + + + Adds a product to a kit. (Developer Extensions) + The organization service context. + The ID of the product to add to the kit. + The ID of the kit. + + + Adds recurrence information to an existing appointment to make it a recurring appointment master. (Developer Extensions) + Returns a , the ID of the newly created recurring appointment. + The ID of the appointment that needs to be converted into a recurring appointment. + The organization service context. + The recurring appointment master record to which the appointment is converted. + + + The role that the entity plays in the relationship, referencing or referenced. + The service context. + The schema name of the relationship. + The target entity instance. + The source entity instance. + + + The service context. + The target entity instance. + The source entity instance. + + + The service context. + The target entity instance. + The source entity instance. + + + Adds a solution component to an unmanaged solution. (Developer Extensions) + Returns a , the ID of the new solution component record. + Indicates whether the solution components that are required by the solution component that you are adding are also added to the unmanaged solution. + The value that represents the solution component that you are adding. + The organization service context. + The unique name of the solution for which you want to add the solution component. + The ID of the solution component. + + + deprecated Establishes an association between a product and a substitute product. Use . (Developer Extensions) + The organization service context. + The ID of the product. + The ID of the substitute product. + + + Moves a record from a source queue to a destination queue. (Developer Extensions) + Returns a , the ID of the queue item that is created in the destination queue. + The properties that are needed to create a queue item in the destination queue. + The organization service context. + The ID of the destination queue. + The target record to add to the destination queue. + The ID of the source queue. + + + Assigns the specified record to a new security principal (user). This changes the ownerid attribute of the instance. (Developer Extensions) + The organization service context. + The user or team for which you want to assign a record. + The target record to assign. + + + Creates a link between records (entity instances). (Developer Extensions) + The name of the relationship to be used to create the link. + The logical name of the entity specified in the entityId parameter. + The ID of the record to which the related records will be associated. + A collection of entity references (references to records) to be associated. + + + deprecated Adds a link between two records in a many-to-many relationship. Use . (Developer Extensions) + The organization service context. + + + Clones an arbitrary source entity and attaches it to the context. + Returns . + The entity instance. + The service context. + Specifies whether to include related entity instances. + + + Attaches a two entity instances. + The role that the entity plays in the relationship, referencing or referenced. + The service context. + The schema name of the relationship. + The target entity instance. + The source entity instance. + + + Attaches a two entity instances. + The service context. + The target entity instance. + The source entity instance. + + + Creates the attribute mappings between two entities. (Developer Extensions) + The ID of the entity map to overwrite when the automated mapping is performed. + The organization service context. + + + Sends an email asynchronously. (Developer Extensions) + Returns . + The organization service context. + The query to find the email activities to send. + + + Schedules or "books" an appointment. (Developer Extensions) + Returns . + The organization service context. + The appointment to book. + + + Submits an asynchronous bulk delete job. (Developer Extensions) + Returns a , the ID of an asynchronous bulk delete job that performs a bulk deletion. + An array of queries for a bulk delete job. + The recurrence pattern for the bulk delete job. + The organization service context. + An array of IDs for the system users (users) who are listed in the Cc box of the email notification. + The name of an asynchronous bulk delete job. + Indicates whether an email notification is sent after the bulk delete job has finished running. + + + Submits an asynchronous duplicates detection job. (Developer Extensions) + Returns a , the ID of an asynchronous bulk detect duplicates job that detects and logs duplicate records. + The recurrence pattern for the asynchronous system job that detects multiple duplicate records. Optional. + The name of the asynchronous system job that detects and logs multiple duplicate records. Required. + The organization service context. + The start date and time of an asynchronous system job that detects and logs multiple duplicate records. Optional. + An array of queries to detect multiple duplicate records. Required. + The the template (email template) that is used for the email notification. + An array of IDs for the system users (users) who are listed in the To box of the email notification. + An array of IDs for the system users (users) who are listed in the Cc box of the email notification. + A value that indicates whether an email notification is sent after the asynchronous system job that detects multiple duplicate records finishes running. Required. + + + For internal use only. (Developer Extensions) + The organization service context. + + + Calculates the value of an opportunity that is in the "Won" state. (Developer Extensions) + Returns a, the actual value of an opportunity. + The ID of the opportunity. Required. + The organization service context. + + + Calculates the total number of minutes spent on an incident (case). (Developer Extensions) + Returns an , the total time, in minutes that you use when you work on an incident (case). + The ID of the incident (case). Required. + The organization service context. + + + Cancels a contract. (Developer Extensions) + The contract cancelation date. Required. + The organization service context. + The status of the contract. Required. + The ID of the contract. Required. + + + Cancels a sales order. (Developer Extensions) + The close activity that is associated with the sales order (order) that you want to cancel. Required. + The organization service context. + The status of the sales order (order). Required. + + + Checks whether the incoming email message is relevant to the Microsoft Dynamics CRM system. (Developer Extensions) + Returns an + The subject line for the email message. Optional. + The addresses of the blind carbon copy (Bcc) recipients for the email message. + The organization service context. + The ID of the email message stored in the email header. Required. + The addresses of the recipients of the email message. + The addresses of the carbon copy (Cc) recipients for the email message. + The from address for the email message. + + + Checks whether the incoming email message should be promoted to the Microsoft Dynamics CRM system. (Developer Extensions) + Returns . + The subject of the message. Optional. + The organization service context. + The message ID that is contained in the email header. Required. + + + For internal use only. (Developer Extensions) + The organization service context. + + + Copies an existing contract and its line items. (Developer Extensions) + Returns an , the resulting contract. + The organization service context. + A value that indicates whether the canceled line items of the originating contract are to be included in the copy (clone). Required. + The ID of the contract to be copied. Required. + + + Closes an incident (case). (Developer Extensions) + The organization service context. + The incident resolution (case resolution) that is associated with the incident (case) to be closed. Required. + A status of the incident. Required. + + + Closes an incident (case). (Developer Extensions) + The organization service context. + The incident resolution (case resolution) that is associated with the incident (case) to be closed. Required. + A status of the incident. Required. + + + Closes a quote. (Developer Extensions) + The organization service context. + A quote to be closed. Required. + A status of the quote. Required. + + + deprecated Creates a compound entity (salesorder, invoice, quote, or duplicaterule) and its related entity (salesorderdetail, invoicedetail, quotedetail, or duplicaterulecondition). Use . (Developer Extensions) + Returns . + The organization service context. + + + deprecated Updates a compound record (salesorder, invoice, quote or duplicaterule) and its related detail record (salesorderdetail, invoicedetail, quotedetail or duplicaterulecondition). Use . (Developer Extensions) + The organization service context. + + + Updates a duplicate rule (duplicate detection rule) and its related duplicate rule conditions. (Developer Extensions) + The organization service context. + The duplicate rule that you want updated. Required. + A collection of the duplicate rule conditions that you want updated. Required. + + + Converts a kit to a product. (Developer Extensions) + The organization service context. + The the ID of the kit. Required. + + + Converts a product to a kit. (Developer Extensions) + The organization service context. + The the ID of the product. Required. + + + Converts a quote to a sales order. (Developer Extensions) + Returns a , the resulting sales order (order). Required. + The ID of the quote to convert. Required. + The the collection of attributes to retrieve in the resulting sales order (order). Required. + The organization service context. + + + Converts a sales order to an invoice. (Developer Extensions) + Returns an , the resulting invoice. + The collection of attributes to retrieve from the resulting invoice. Required. + The organization service context. + The ID of the sales order (order) to convert. Required. + + + Copies a campaign. (Developer Extensions) + Returns a , the ID of the newly created campaign. + The organization service context. + The ID of the base campaign to copy from. Required. + A value that indicates whether to save the campaign as a template. Required. + + + Copies the information from one campaign response to another, and optionally creates a campaign response template. (Developer Extensions) + Returns a , ID of the newly created campaign response. + The organization service context. + The campaign response to copy from. Required. + + + Creates a static list from the specified dynamic list and adds the members that satisfy the dynamic list query criteria to the static list. (Developer Extensions) + Returns a , the created static list. + The ID of the dynamic list. Required. + The organization service context. + + + Copies the members from the source list to the target list without creating duplicates. (Developer Extensions) + The ID of the source list. Required. + The organization service context. + The ID of the target list. Required. + + + Creates a new entity form that is based on an existing entity form. (Developer Extensions) + Returns a , the ID value of the system form that the original was copied to.. + The organization service context. + The ID of the target list. Required. + The ID value of the form to copy. + + + Creates a record. (Developer Extensions) + Returns . + An entity instance that contains the properties to set in the newly created record. + + + Creates the activities for a list. (Developer Extensions) + Returns a , the ID of the bulk operation created to distribute the campaign activity. + The owner for the activity. Required. + The activity to be distributed. Required. + The propagation ownership options. Required. + The ID of the list. Required. + The organization service context. + A user-identifiable name for the campaign. Required. + A value that indicates whether an asynchronous job is used to create the activities. Required. + The ID of the email template. Required. + A value that indicates whether to send an email about the new activity. Required. + The ID of the queue to which the created activities are added. Required. + A value that indicates whether the activity is created and executed. Required. + + + Creates an exception for the recurring appointment instance. (Developer Extensions) + Returns a , the ID of the exception appointment. + The organization service context. + A value that indicates whether the appointment instance is deleted. + The original start date of the recurring appointment. + + + Creates future unexpanded instances of a recurring appointment master. (Developer Extensions) + Returns a , that indicates whether the series can be expanded. + The number of instances to be created. Required. + The organization service context. + The target appointment instance to create. Required. + + + Creates a workflow from a workflow template. (Developer Extensions) + Returns a , the ID of the new workflow. + The name for the new workflow. Required. + The organization service context. + The ID of the workflow template. Required. + + + Deletes a record. (Developer Extensions) + The logical name of the entity specified in the entityId parameter. + The ID of the record to delete. + + + Deletes all partitions containing audit data created before a given end date. (Developer Extensions) + Returns an , the number of deleted audit partitions or the number of deleted Audit records. + The organization service context. + The end date and time. + + + The source entity instance. + The service context. + The target entity instance. + The role that the entity plays in the relationship, referencing or referenced. + The schema name of the relationship. + + + The source entity instance. + The service context. + The target entity instance. + + + Deletes instances of a recurring appointment master that have an Open state. (Developer Extensions) + The end date for the recurring appointment series. Required. + The organization service context. + The target record for the operation. Required. + The value to be used to set the status of appointment instances that have already passed. Required. + + + Creates an email activity record from an incoming email message. (Developer Extensions) + Returns a , the ID of the email. + The subject line for the email message. Optional. + The level of importance for the email message. Required. + The addresses of the blind carbon copy (Bcc) recipients for the email message. Required. + The time the message was received on. Required. + The organization service context. + A collection of activity mime attachment (email attachment) instances to attach to the email message. Required. + The ID of the email message stored in the email header. Required. + The email address of the account that is creating the email activity instance. Required. + The addresses of the recipients of the email message. Required. + The addresses of the carbon copy (Cc) recipients for the email message. Required. + The from address for the email message. Required. + The message body for the email. Required. + + + Creates an email activity instance from the specified email message (Track in CRM). (Developer Extensions) + Returns a , the ID of the newly created email activity. + The subject line for the email message. Optional. + The level of importance for the email message. Required. + The addresses of the blind carbon copy (Bcc) recipients for the email message. Required. + The time the message was received on. Required. + The organization service context. + A collection of activity mime attachment (email attachment) instances to attach to the email message. Required. + The ID of the email message stored in the email header. Required. + Extra properties. Optional. + The email address of the account that is creating the email activity instance. Required. + The addresses of the recipients of the email message. Required. + The addresses of the carbon copy (Cc) recipients for the email message. Required. + The from address for the email message. Required. + The message body for the email. Required. + + + Deprovisions a language. (Developer Extensions) + The organization service context. + The language to deprovision. Required. + + + Returns . + The service context. + The collection of entity instances to detach. + + + Detaches a two entity instances. + Returns . + The source entity instance. + The service context. + The target entity instance. + The role that the entity plays in the relationship, referencing or referenced. + The schema name of the relationship. + + + Detaches a two entity instances. + Returns . + The source entity instance. + The service context. + The target entity instance. + + + Deletes a link between records. (Developer Extensions) + The name of the relationship to be used to remove the link. + The ID of the record from which the related records will be disassociated. + A collection of entity references (references to records) to be disassociated. + The logical name of the entity specified in the entityId parameter. + + + deprecated Removes a link between two records in a many to many relationship. Use . (Developer Extensions) + The organization service context. + + + Disposes the service context. + + + Creates a bulk operation to distribute the activity, creating the appropriate activity for each member in the list for the specified campaign activity. (Developer Extensions) + Returns a , the ID of the bulk operation that is used to distribute the campaign activity. + The ID of the campaign activity for which the activity is distributed. Required. + The activity to be distributed. Required. + A value that indicates whether the activity is both created and executed. Required. + The ownership options for the activity. Required. + The organization service context. + the ID of the email template. Required. + The owner for the newly created activity. Required. + A value that indicates whether to send an email about the new activity. Required. + The ID of the queue to which the created activity is added. Optional. + + + Downloads a report definition. (Developer Extensions) + Returns . + The organization service context. + + + Returns . + The service context. + + + Returns . + + + Executes a saved query (view) that has the specified ID. (Developer Extensions) + Returns . + The organization service context. + + + Executes the user query (saved view) that has the specified ID. (Developer Extensions) + Returns . + The organization service context. + + + deprecated Executes the specified Fetch XML query. Use . (Developer Extensions) + Returns . + The organization service context. + + + Executes a workflow. (Developer Extensions) + Returns . + The organization service context. + + + Converts the calendar rules to an array of available time blocks for the specified period. (Developer Extensions) + Returns . + The organization service context. + + + Exports a managed or unmanaged solution. (Developer Extensions) + Returns . + The organization service context. + + + Exports all translations for a specific solution to a compressed file. (Developer Extensions) + Returns . + The organization service context. + + + Converts a query in Fetch XML to a QueryExpression. (Developer Extensions) + Returns . + The organization service context. + + + Returns . + + + Finds a parent resource group (scheduling group) for the specified resource groups (scheduling groups). (Developer Extensions) + Returns . + The organization service context. + + + Fulfills a sales order (order). (Developer Extensions) + The organization service context. + + + Generates an invoice from an opportunity. (Developer Extensions) + Returns . + The organization service context. + + + Generates a quote from an opportunity. (Developer Extensions) + Returns . + The organization service context. + + + Generates a sales order from an opportunity. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all the time-zone definitions for the specified locale returning only the display name attribute. (Developer Extensions) + Returns . + The organization service context. + + + Gets a decryption key. (Developer Extensions) + Returns . + The organization service context. + + + Returns distinct values for a column in the source file that contains list values. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the source-file column headings, or system-generated column headings, if the source file does not contain column headings. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the products from an opportunity and copies them to the specified invoice. (Developer Extensions) + The organization service context. + + + Gets the quantity decimal value for a product. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the products from an opportunity and copies them to the quote. (Developer Extensions) + The organization service context. + + + Gets the history limit for a report. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the products from an opportunity and copies them to the sales order. (Developer Extensions) + The organization service context. + + + Retrieves the time-zone code for the specified localized time-zone name. (Developer Extensions) + Returns . + The organization service context. + + + Returns a tracking token that can be then passed in as a parameter to the method. (Developer Extensions) + Returns . + The organization service context. + + + Grants a security principal (user or team) access to the specified record. (Developer Extensions) + The organization service context. + + + Imports XML mappings and creates an import data map. (Developer Extensions) + Returns . + The organization service context. + + + Imports a managed or unmanaged solution. (Developer Extensions) + The organization service context. + + + Imports all translations from a compressed file. (Developer Extensions) + The organization service context. + + + Initializes custom settings. + + + Initializes a new record from an existing record. (Developer Extensions) + Returns . + The organization service context. + + + Installs sample data for an organization. (Developer Extensions) + The organization service context. + + + Instantiates a filter. (Developer Extensions) + The organization service context. + + + Creates an email message from a template. (Developer Extensions) + Returns . + The organization service context. + + + Determines whether a relationship is attached and therefore being tracked by the OrganizationServiceContext. + The source entity instance. + The service context. + The target entity instance. + The role that the entity plays in the relationship, referencing or referenced. + The schema name of the relationship. + + + Determines whether a relationship is attached and therefore being tracked by the OrganizationServiceContext. + Returns . + The source entity instance. + The service context. + The target entity instance. + + + Determines whether a relationship is attached and therefore being tracked by the OrganizationServiceContext. + Returns . + The source entity instance. + The service context. + The target entity instance. + + + deprecated Checks if Microsoft Great Plains is installed. (Developer Extensions) + Returns . + The organization service context. + + + Determines whether a solution component is customizable. (Developer Extensions) + Returns . + The organization service context. + + + Determines whether a relationship has been deleted. + The source entity instance. + The service context. + The target entity instance. + The role that the entity plays in the relationship, referencing or referenced. + The schema name of the relationship. + + + Determines whether a relationship has been deleted. + Returns . + The source entity instance. + The service context. + The target entity instance. + + + Checks to see if the state transition is valid. (Developer Extensions) + Returns . + The organization service context. + + + Loads the related entity collection for the specified relationship. + The service context. + The role that the entity plays in the relationship, referencing or referenced. + The entity instance. + The schema name of the relationship. + + + Loads the related entity collection for the specified relationship. + The service context. + The entity instance. + + + Retrieves the local time for the specified Universal Time Coordinate (UTC) time. (Developer Extensions) + Returns . + The organization service context. + + + Locks the total price of products and services specified in the invoice. When the invoice pricing is locked, changes to underlying price lists (price levels) do not affect the prices for an invoice. (Developer Extensions) + The organization service context. + + + Locks the total price of products and services specified in the sales order (order). When the sales order pricing is locked, changes to underlying price lists (price levels) do not affect the prices for a sales order (order). (Developer Extensions) + The organization service context. + + + For internal use only. (Developer Extensions) + The organization service context. + + + For internal use only. (Developer Extensions) + The organization service context. + + + Sets the state of an opportunity to Lost. (Developer Extensions) + The organization service context. + + + Sets the state of an opportunity to Lost. (Developer Extensions) + The organization service context. + + + deprecated Makes the report available to all users in the organization. Use . (Developer Extensions) + The organization service context. + + + deprecated Makes the specified email template available to the entire organization. Use . (Developer Extensions) + The organization service context. + + + deprecated Makes the report unavailable to all users in the organization. Use . (Developer Extensions) + The organization service context. + + + deprecated Makes the specified email template no longer available to the entire organization. Use . (Developer Extensions) + The organization service context. + + + Merges the information from two records of the same type. (Developer Extensions) + The organization service context. + + + Clones an arbitrary source entity and attaches it to the context. + Returns . + The service context. + Specifies whether to include related entity instances. + The entity instance. + + + Replaces the access rights on the target record for the specified security principal (user or team). (Developer Extensions) + The organization service context. + + + Submits an asynchronous job that parses all import files associated with the specified data import (import). (Developer Extensions) + Returns . + The organization service context. + + + Processes marketing campaign email responses. (Developer Extensions) + The organization service context. + + + For internal use only. (Developer Extensions) + Returns . + The organization service context. + + + Distributes an activity to a quick campaign. (Developer Extensions) + Returns . + The organization service context. + + + Provisions a language. (Developer Extensions) + The organization service context. + + + Publishes all customizations. (Developer Extensions) + The organization service context. + + + Submits an asynchronous job to publish a duplicate rule. (Developer Extensions) + Returns . + The organization service context. + + + Publishes the customizations for the specified entities. (Developer Extensions) + The organization service context. + + + Qualifies a lead and creates an account, contact, or opportunity records that are linked to the originating lead. (Developer Extensions) + Returns . + The organization service context. + + + Qualifies the specified member list and either overrides the list members or removes them according to the specified option. (Developer Extensions) + The organization service context. + + + Converts a query represented as a QueryExpression class to the equivalent query represented as FetchXML. (Developer Extensions) + Returns . + The organization service context. + + + Searches multiple resources for an available time slot matching the specified parameters. This is similar to the method but it works for multiple resources at one time. (Developer Extensions) + Returns . + The organization service context. + + + Searches the specified resource for an available time slot matching the specified parameters. (Developer Extensions) + Returns . + The organization service context. + + + Reassigns all records that are owned by the security principal (user or team) to another security principal (user or team). (Developer Extensions) + The organization service context. + + + Reassigns all records that are owned by the user to another security principal (user or team). (Developer Extensions) + The organization service context. + + + Resets the EntityState of an entity before attaching it to the context. + The service context. + The entity instance + + + Recalculates the rollup attribute values for all goals in the goal hierarchy that contain a specified goal. (Developer Extensions) + The organization service context. + + + Removes an item from a campaign. (Developer Extensions) + The organization service context. + + + Removes an item from a campaign activity. (Developer Extensions) + The organization service context. + + + Removes a member from a list. (Developer Extensions) + The organization service context. + + + Removes members from a team. (Developer Extensions) + The organization service context. + + + Removes the parent for a record. (Developer Extensions) + The organization service context. + + + Removes a privilege from an existing role. (Developer Extensions) + The organization service context. + + + Removes a product from a kit. (Developer Extensions) + The organization service context. + + + deprecated Removes the relationship between two records as defined by the target classes listed below. For example, remove the relationship between an invoice and a contact. (Developer Extensions) + The organization service context. + + + Removes a solution component to an unmanaged solution. (Developer Extensions) + Returns . + The organization service context. + + + deprecated Removes the association between a product and a substitute product. Use . (Developer Extensions) + The organization service context. + + + Renews a contract. (Developer Extensions) + Returns . + The organization service context. + + + Replaces the privilege set of an existing role. This effectively deletes all existing privileges from the role and adds the new specified privileges. (Developer Extensions) + The organization service context. + + + Reschedules an appointment, service appointment or recurring appointment. (Developer Extensions) + Returns . + The organization service context. + + + Resets the offline data filters for the calling user to the default filters for the organization. (Developer Extensions) + The organization service context. + + + Retrieves a record. (Developer Extensions) + Returns . + A query that specifies the set of columns, or attributes, to retrieve. + The logical name of the entity specified in the entityId parameter. + The ID of the record you want to retrieve. + + + Retrieves the absolute (complete) URL and the site collection URL of a SharePoint document location or SharePoint site. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves a collection of system users who report to the specified system user. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the metadata for all entities. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the core application ribbons including the entity template. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the metadata for the specified attribute. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all changes to a specific attribute. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the full audit details of a particular audit record. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the list of auditing partitions. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the list of available languages. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all the business units in the business unit hierarchy. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all the resource groups to which the specified resource belongs. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the resource groups that contain the specified resource. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves a collection of services related to the specified set of services. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the top ten knowledge base articles for the product specified. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the top ten knowledge base articles for the subject specified. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the dependencies for solution components that will prevent a solution component from being deleted. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the dependencies for solution components that could prevent uninstalling a managed solution. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all components that depend on the specified component. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the type of license for a deployment of Microsoft Dynamics CRM. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the list of language packs installed on the server that have been disabled. (Developer Extensions) + Returns . + The organization service context. + + + Detects and retrieves duplicate records for the specified record, provided duplicate detection is enabled and there are published duplicate detection rules for the entity. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the metadata for the specified entity. (Developer Extensions) + Returns . + The organization service context. + + + Returns . + + + Returns . + + + Retrieves the ribbon definition used for a specific entity. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the exchange rate. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the system forms for the specified user. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the formatted results from an import job. (Developer Extensions) + Returns . + The organization service context. + + + For internal use only. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the list of language packs installed on the server. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the version of an installed language pack. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the number of licenses for a deployment of Microsoft Dynamics CRM. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the localized labels for the specified attribute. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the members of a bulk operation. (Developer Extensions) + Returns . + The organization service context. + + + deprecated Retrieves the members of a team. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves a list of missing components for the target organization. (Developer Extensions) + Returns . + The organization service context. + + + Verifies whether any solution components are not included in the solution but possibly should be for a complete solution to be exported. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves a collection of records. (Developer Extensions) + Returns . + A query that determines the set of records to retrieve. + + + Retrieves a collection of records. The query can be specified using a query expression or a FetchXML query. (Developer Extensions) + Returns . + The organization service context. + + + Returns . + + + Retrieves the resources used by an organization. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves a collection of the parent resource groups of the specified resource group (scheduling group). (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the data from the parse table. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the access rights the specified security principal (user or team) has to a record. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all the secured attribute privileges a user or team has through direct or indirect (through team membership) associations with the FieldSecurityProfile entity. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the set of privileges defined in the system. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the version of the language packs installed on the server. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the list of language packs installed on the server that are enabled. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all changes to a specific entity. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all components that this component requires. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the privileges that are assigned to the specified role. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all the security principals (users or teams) that have access to a record, together with their access rights to the record. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves a collection of the child resource groups of the specified resource group (scheduling group). (Developer Extensions) + Returns . + The organization service context. + + + deprecated Retrieves all the team information for child business units of the specified business unit. Use . (Developer Extensions) + Returns . + The organization service context. + + + deprecated Retrieves all system users for the child business units of the specified business unit. Use . (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the privileges for a team. (Developer Extensions) + Returns . + The organization service context. + + + deprecated Retrieves a collection of teams of which the specified system user is a member. Use . (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the current saved definition of a Web resource, organization-owned chart, or organization-owned dashboard, whether it has been published or not. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the current saved definitions of Web resources, organization-owned charts, or organization-owned dashboards, whether they have been published or not. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves all the privileges a system user (user) has through his or her roles in the specified business unit. (Developer Extensions) + Returns . + The organization service context. + + + deprecated Retrieves the system user settings for the specified system user. Use . (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the version number of the Microsoft Dynamics CRM server. (Developer Extensions) + Returns . + The organization service context. + + + Sets the state of a quote to Draft. (Developer Extensions) + Returns . + The organization service context. + + + Removes all access to a record for the specified security principal (user or team). (Developer Extensions) + The organization service context. + + + Retrieves all the records related to the specified record (account or contact). This applies to all activity entities, annotation (note), contract, incident (case), invoice, opportunity, quote and sales order (order) entities. (Developer Extensions) + Returns . + The organization service context. + + + Searches for available time slots that fulfill the specified appointment request. (Developer Extensions) + Returns . + The organization service context. + + + Finds all the document indexes that contain the specified text in the body. (Developer Extensions) + Returns . + The organization service context. + + + Finds all the document indexes that contain the specified keywords. (Developer Extensions) + Returns . + The organization service context. + + + Finds all the document indexes that contain the specified text in the title. (Developer Extensions) + Returns . + The organization service context. + + + Sends bulk email messages. (Developer Extensions) + The organization service context. + + + Sends an email message. (Developer Extensions) + Returns . + The organization service context. + + + Sends an email message using a template. (Developer Extensions) + Returns . + The organization service context. + + + Sends a fax. (Developer Extensions) + The organization service context. + + + Sends a bulk email message that is created from a template. (Developer Extensions) + The organization service context. + + + Sets the business that owns the equipment. (Developer Extensions) + The organization service context. + + + Sets the business unit for the specified system user. (Developer Extensions) + The organization service context. + + + Sets the localized labels for the specified attribute. (Developer Extensions) + The organization service context. + + + Sets the parent (manager) for the specified business unit. (Developer Extensions) + The organization service context. + + + Sets the parent (manager) for the specified system user. (Developer Extensions) + The organization service context. + + + Sets the parent (manager) for the specified team. (Developer Extensions) + The organization service context. + + + deprecated Creates a link between an opportunity and an account, contact, or competitor. Use . (Developer Extensions) + The organization service context. + + + Specifies in which areas of Microsoft Dynamics CRM the report can be run and viewed. (Developer Extensions) + The organization service context. + + + Sets the state of a record. (Developer Extensions) + The organization service context. + + + Sets the state of a record. (Developer Extensions) + The organization service context. + + + Sets the state of a record. (Developer Extensions) + The organization service context. + + + For internal use only. (Developer Extensions) + The organization service context. + + + Submits an asynchronous job to transform the parsed data. (Developer Extensions) + Returns . + The organization service context. + + + Validates the configuration of a Windows Azure platform AppFabric solution’s service endpoint. (Developer Extensions) + The organization service context. + + + Tries to perform an action on the underlying IOrganizationServiceCache if applicable. + Returns . + The service context. + The action. + + + Removes an entity from cache if it is applicable to the context. + Returns . + The service context. + The entity instance. + + + Removes an entity from cache if it is applicable to the context. + Returns . + The service context. + The entity instance. + + + Removes a request/response from cache if it is applicable to the context. + Returns . + The service context. + The request instance. + + + Removes an item from cache if it is applicable to the context. + Returns . + The service context. + + + Removes an entity from cache if it is applicable to the context. + Returns . + The logical name of the entity. + The service context. + The ID of the entity instance. + + + Uninstalls sample data for an organization. (Developer Extensions) + The organization service context. + + + Unlocks the price per unit for the products in the specified invoice. (Developer Extensions) + The organization service context. + + + Unlocks the price per unit for the products in the specified sales order (order). (Developer Extensions) + The organization service context. + + + Unpublishes a duplicate rule. (Developer Extensions) + The organization service context. + + + Updates an existing record. (Developer Extensions) + An entity instance that has one or more properties set to be updated in the record. + + + deprecated Updates the user settings for a system user. Use Update. (Developer Extensions) + The organization service context. + + + Retrieves the UTC time for the specified local time. (Developer Extensions) + Returns . + The organization service context. + + + Validates that all the constraints of an appointment or service appointment are met. (Developer Extensions) + Returns . + The organization service context. + + + Validates a recurrence rule for a recurring appointment. (Developer Extensions) + Returns . + The organization service context. + + + Validates a saved query. (Developer Extensions) + The organization service context. + + + For internal use only. (Developer Extensions) + Returns . + The organization service context. + + + Retrieves the user information for the logged on user. (Developer Extensions) + Returns . + The organization service context. + + + Changes the state of an opportunity to Won. (Developer Extensions) + The organization service context. + + + Changes the state of an opportunity to Won. (Developer Extensions) + The organization service context. + + + Changes the state of a quote to Won. (Developer Extensions) + The organization service context. + + + Extensions to the date/time class. (Developer Extensions) + + + Returns the largest discrete value less than or equal to the specified value. + Returns . + The date/time. + The value to round to. + + + Returns the largest discrete value less than or equal to the specified value. + Returns . + The date/time offset. + The value to round to. + + + Rounds a value to the nearest discrete value. + Returns . + The date/time value. + The value to round to. + + + Rounds a value to the nearest discrete value. + Returns . + The date/time value. + The value to round to. + + + Extensions to the core Entity class. (Developer Extensions) + + + Deep clones an instance of the Entity class. + Returns . + Specifies whether related entities should be included in the cloned entity. + + + Returns . + The entity instance. + + + Retrieves the value of an attribute. + Returns . + The logical name of the attribute. + The entity instance. + + + Retrieves a formatted attribute value. + Returns . + The logical name of the attribute. + The entity instance. + + + Retrieves the collection of related entities for a specific relationship. + Returns . + The schema name of the relationship. + The role that the entity plays in the relationship, referencing or referenced + The entity instance. + + + Retrieves the collection of related entities for a specific relationship. + Returns . + The service context. + The entity instance. + + + Retrieves the related entity for a specific relationship. + Returns . + The schema name of the relationship. + The role that the entity plays in the relationship, referencing or referenced + The entity instance. + + + Retrieves the related entity for a specific relationship. + Returns . + The service context. + The entity instance. + + + Retrieves the related entity for a specific relationship. + Returns . + The entity instance. + + + Modifies the value of an attribute. + The attribute value. + The logical name of the attribute. + The entity instance. + + + Modifies the value of an attribute. + The logical name of the entity. + The attribute value. + The logical name of the attribute. + The entity instance. + + + Modifies the collection of related entities for a specific relationship. + The schema name of the relationship. + The role that the entity plays in the relationship, referencing or referenced + The collection of entity instance to be related. + The entity instance. + + + Modifies the collection of related entities for a specific relationship. + The collection of entity instance to be related. + The entity instance. + + + Modifies a related entity for a specific relationship. + The entity instance to be related. + The schema name of the relationship. + The role that the entity plays in the relationship, referencing or referenced + The entity instance. + + + Modifies a related entity for a specific relationship. + The entity instance to be related. + The entity instance. + + + Gets the service. + + + The organization service. + Returns . + + + Extensions to the core OrganizationServiceContext class. + + + Contains utility methods. + + + For internal use only. + Returns . + + + Extensions for working with relationships. (Developer Extensions) + + + Converts a relationship schema name to a relationship. + Returns . + The relationship instance. + The role that the entity plays in the relationship, referencing or referenced. + + + Converts a relationship into a relationship schema name. + Returns . + The relationship instance. + + + Enumerations used for rounding date/time values. + + + Round to the day. Value = 3. + + + Round to the hour. Value = 2. + + + Round to the minute. Value = 1. + + + Round to the month. Value = 4. + + + Round to the second. Value = 0. + + + Enumeration values for the server configuration instance mode. + + + Value = 3. + + + Value = 2. + + + Value = 1. + + + Value = 0. + + + Extensions for working with string values. (Developer Extensions) + + + Calls the Format(IFormatProvider, String, Object[])http://msdn2.microsoft.com/en-us/library/1ksz8yb7 method with the InvariantCulturehttp://msdn2.microsoft.com/en-us/library/1781h47s provider. + Returns . + + + Converts an integer value into an Enumhttp://msdn2.microsoft.com/en-us/library/1zt1ybx4 value. + Returns . + + + Parses a name value into an Enumhttp://msdn2.microsoft.com/en-us/library/1zt1ybx4 value. + Returns . + + + Extensions to help working with types. (Developer Extensions) + + + Returns a collection of custom attributes for a given type. + Returns . + The type. + + + Returns the logical name value of the attribute associated to the class type. + Returns . + The type. + + + Returns the first custom attribute of a given type. + Returns . + The type. + + + Retrieves a type object by name and by searching through all available assemblies. + Returns . + The type name. + + + Retrieves the underlying type if the type is nullable, otherwise returns the current type. + Returns . + The type. + + + Determines if the input reference type is assignable from this type. + Returns . + The type. + The reference type. + + + Determines if the input reference type is assignable from this type. + Returns . + The type. + + + Cache item detail. + + + Constructor initializes an instance of the CacheItemDetail class. + The policy of the cache item. + The associated cache item. + + + The key of the related cache item. + Returns . + + + The creation date of the cache item. + Returns . + + + The policy of the cache item. + Returns . + + + The last updated date of the cache item. + Returns . + + + Extended object cache. + + + Removes all cache items. + + + Removes all cache items that are local to the application. + + + Removes a cache item that is local to the application.< + Returns . + + + Object cache manager. + + + Removes all items from the cache. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Retrieves the associated for a cache item. + Returns . + + + Retrieves the cache key of the associated for a cache item. + Returns . + + + Builds a CacheItemPolicyhttp://msdn2.microsoft.com/en-us/library/dd988752 from a configuration element. + Returns . + + + Builds a CacheItemPolicyhttp://msdn2.microsoft.com/en-us/library/dd988752 from a configuration element and adds a single ChangeMonitorhttp://msdn2.microsoft.com/en-us/library/dd780597 to the policy.. + Returns . + + + Builds a CacheItemPolicyhttp://msdn2.microsoft.com/en-us/library/dd988752 from a configuration element and adds a set of CacheEntryChangeMonitorhttp://msdn2.microsoft.com/en-us/library/dd988729 objects to the policy. + Returns . + + + Builds a CacheItemPolicyhttp://msdn2.microsoft.com/en-us/library/dd988752 from a configuration element. + Returns . + + + Builds a CacheEntryChangeMonitorhttp://msdn2.microsoft.com/en-us/library/dd988729 from a set of cache keys. + Returns . + + + Retrieves a configured ObjectCachehttp://msdn2.microsoft.com/en-us/library/dd780630. + Returns . + + + Inserts an object into cache along with an associated . + + + Inserts an object into cache along with an associated . + + + Removes all items from the cache by invoking the if it is available. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Contains a collection of configuration elements. + + + constructor_initializes class. + + + Type: Returns_Type. The element to add to the collection. + + + Creates a new ConfigurationElement. + Type: Returns_ConfigurationElement +The new configuration element. + + + Type: Returns_ConfigurationElement. + + + Retrieves the selected element or falls back to the default. + Type: Returns_Type. + Type: bool. + Type: string. + + + Type: Returns_String. + Type: int. + + + Type: Returns_Type. + + + Type: Returns_String + + + Type: int. + + + Gets all the keys in the + Type: [] +The array of keys. + + + Gets or sets the name of the element collection. + Type: Returns_String +The name of the collection. + + + Gets the selected or default element. + Type: Returns_String +The selected or default element. + + + Gets or sets the default element name. + Type: Returns_String +The name of the default element. + + + Gets the element name. + Type: Returns_String +The name of the element. + + + Gets or sets the element with the specified key. + Type: Returns_Object +. + Type: Returns_Int32. The value of the key. + + + Gets or sets the element with the specified key. + Type: Returns_Object +. + Type: Returns_String. The value of the key. + + + Gets the property collection. + Type: ConfigurationPropertyCollectionhttp://msdn.microsoft.com/en-us/library/system.configuration.configurationpropertycollection.aspx +The property collection. + + + Gets the configured CacheItemPolicyhttp://msdn2.microsoft.com/en-us/library/dd988752. + Returns . + + + Creates and caches connection strings by name. + Returns . + + + Retrieves the configured instance. + Returns . + + + Retrieves the configured instance. + Returns . + + + Retrieves the configured instance. + Returns . + + + Retrieves the configured instance. + Returns . + + + Retrieves the configured instance. + Returns . + + + Retrieves the configured instance. + Returns . + + + Retrieves the connection string name from the context name. + Returns . + + + Retrieves the configuration section. + Returns . + + + Retrieves the cached objects. + Returns . + + + Resets the cached dependencies. + + + Represents a collection of site configuration nodes and settings for all sites in general. + + + constructor_initializes class. + + + The element name of the section. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + constructor_initializes class. + + + Adds a setting. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Initializes the dependency object. + Returns . + + + The dependency type. + Returns . + + + The name of the configuration element. + Returns . + + + The attributes of the configuration element. + Returns . + + + The dependency type name. + Returns . + + + constructor_initializes class. + + + Gets or sets the default element name. + + + Returns . + + + Creates an object. + Returns . + + + Gets or sets the cache policy absolute expiration date. + Returns . + + + Gets or sets the cache policy cache duration. + Returns . + + + Gets or sets the instance mode. + Returns . + + + Gets or sets the element name. + Returns . + + + Gets or sets the name of the from which the cache profile duration is obtained. + Returns . + + + Gets or sets the cache policy priority. + Returns . + + + Gets or sets the ache policy sliding expiration. + Returns . + + + Gets or sets the dependency type name. + Returns . + + + constructor_initializes class. + + + Gets or sets the name of the element collection. + + + Gets or sets the name of the element collection. + Returns . + + + Value = 2. + + + Value = 1. + + + Value = 0. + + + constructor_initializes class. + + + Creates a object. + Returns . + + + Gets or sets the caching behavior mode. + Returns . + + + Gets or sets the cache region name. + Returns . + + + Gets or sets the element name. + Returns . + + + Gets or sets the name of the nested configuration. + Returns . + + + Gets or sets whether the query used to construct the cache key is to be hashed or left as a readable string. + Returns . + + + Gets or sets the cache retrieval mode. + Returns . + + + Gets or sets the dependency type name. + Returns . + + + constructor_initializes class. + + + The name of the element collection. + + + Gets or sets the name of the element collection. + Returns . + + + constructor_initializes + + + Creates a object. + Returns . + + + Gets or sets the name of the service connection string. + Returns . + + + Gets or sets the element name. + Returns . + + + Gets or sets the name of the nested configuration. + Returns . + + + Gets or sets the dependency type name. + Returns . + + + constructor_initializes class. + + + The name of the element collection. + + + Gets or sets the name of the element collection. + Returns . + + + constructor_initializes class. + + + Creates an object. + Returns . + + + Gets or sets the instance mode. + Returns . + + + Gets or sets the element name. + Returns . + + + Gets or sets the name of the nested configuration. + Returns . + + + Gets or sets the name of the nested configuration. + Returns . + + + Gets or sets the dependency type name. + Returns . + + + constructor_initializes class. + + + The name of the element collection. + + + Gets or sets the name of the element collection. + Returns . + + + Contains values to specify how will adjust its instantiation behavior. + + + Return a new instance on each call. Value = 3. + + + Return a single instance for each configuration element specified. Value = 1. + + + Return the same first instance in the context of a Web request, For example, one instance for each HttpContext instance. Value = 2. + + + Always return the same static instance. Value = 0. + + + Returns . + + + Returns . + + + Returns . + + + Extensions for the core OrganizationServiceContext class. + + + Retrieves a collection of records. The query can be specified using a query expression or a FetchXML query. (Developer Extensions) + Returns . + The organization service context. + + + Provides additional information about an attribute. + + + Creates an instance of the class. + Type: Returns_PropertyInfo. The property. + Type: . The property attribute. + + + Retrieves the value of the property for an entity instance. + Type: Returns_Object +The value of the property. + Type: Returns_Object. The entity instance (Entity). + + + Gets the logical name annotation of the attribute property. + Type: +The logical name annotation of the attribute property. + + + Gets the PropertyInfohttp://msdn2.microsoft.com/en-us/library/8z852kf5 reflection object for the attribute property. + Type: Returns_PropertyInfo +The reflection object. + + + Creates an instance of the EntityAttribute class. + + + Gets or sets the plural name of the static entity. + Returns . + + + Provides information about an entity. + + + Creates an instance of the EntityInfo class. + + + A lookup of AttributeInfo keyed by the attribute logical name. + Returns . + + + A lookup of AttributeInfo keyed by the attribute property name. + Returns . + + + The entity set annotation of the Entity. + Returns . + + + The logical name annotation of the Entity. + Returns . + + + The type of the Entity. + Returns . + + + The AttributeInfo of the primary key property. + Returns . + + + A lookup of RelationshipInfo keyed by the relationship property name. + Returns . + + + A lookup of RelationshipInfo keyed by the relationship schema name. + Returns . + + + Provides information about an entity set. + + + Creates an EntitySetInfo class. + + + Gets the EntityInfo reflection object for the corresponding entity type. + Returns . + + + Gets the PropertyInfohttp://msdn2.microsoft.com/en-us/library/8z852kf5 reflection object for the entity set property. + Returns . + + + Provides information about the organization service context. + + + Creates an instance of the OrganizationServiceContextInfo class. + + + Returns an OrganizationServiceContextInfo from a custom OrganizationServiceContext class and an entity. + Returns . + + + Returns an OrganizationServiceContextInfo from a custom OrganizationServiceContext class. + Returns . + + + Returns an OrganizationServiceContextInfo from a custom OrganizationServiceContext class and an entity logical name. + Returns . + + + The custom OrganizationServiceContext class. + Returns . + + + A lookup of EntitySetInfo keyed by the entity logical name. + Returns . + + + A lookup of EntitySetInfo keyed by the entity set property name. + Returns . + + + Provides information about a relationship. + + + Creates a RelationshipInfo class. + + + The annotation for the relationship property. + Returns . + + + Indicates that the relationship property returns a collection of entities. + Returns . + + + The reflection object for the relationship property. + Returns . + + + Deserialize an object using the DataContractJsonSerializerhttp://msdn2.microsoft.com/en-us/library/bb908432. + Returns . + + + Value = 1. + + + Value = 0. + + + constructor_initializes class. + + + Asserts that the current user has the requested right to an entity. + + + Asserts that the current user has the requested right to a set of entities. + + + Initializes custom settings. + + + Asserts that the current user has the requested right to an entity. + Returns . + + + Asserts that the current user has the requested right to a set of entities. + Returns . + + + Asserts that the current user has the requested right to an entity. + + + Asserts that the current user has the requested right to a set of entities. + + + Asserts that the current user has the requested right to an entity. + Returns . + + + Asserts that the current user has the requested right to a set of entities. + Returns . + + + A wrapper class around the that manages the details of setting up an or other arbitrary objects. When paired with an object, becomes a cached service. + + + constructor_initializes class. + The connection object. + + + constructor_initializes class. + The cache object. + The connection object. + + + constructor_initializes class. + The organization service. + + + constructor_initializes class. + The organization service. + The cache object. + + + constructor_initializes class. + The connection ID. + The organization service. + + + constructor_initializes class. + The connection string name. + + + constructor_initializes class. + The connection string name. + The cache object. + + + Creates a record. (Developer Extensions) + Returns a , which is the ID of the newly created record.. + An entity instance that contains the properties to set in the newly created record. + + + Deletes a record. (Developer Extensions) + The logical name of the entity specified in the entityId parameter. + The ID of the record to delete. + + + Executes a message in the form of a request, and returns a response. (Developer Extensions) + Returns . You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + A request instance that defines the action to be performed. + + + Executes a message in the form of a request, and returns a response. (Developer Extensions) + Returns . You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + A request instance that defines the action to be performed. + + + Retrieves a record. (Developer Extensions) + Returns . + A query that specifies the set of columns, or attributes, to retrieve. + The logical name of the entity specified in the entityId parameter. + The ID of the record you want to retrieve. + + + Retrieves a collection of records. (Developer Extensions) + Returns . + A query that determines the set of records to retrieve. + + + Updates an existing record. (Developer Extensions) + An entity instance that has one or more properties set to be updated in the record. + + + The cache. + Returns . + + + A wrapper class around the that manages the details of setting up an . + + + constructor_initializes class. + + + constructor_initializes class. + + + constructor_initializes class. + + + Checks to see if the token has expired. + Returns . + + + Returns . + + + Returns . + + + Executes a message in the form of a request, and returns a response. + Returns . You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + A request instance that defines the action to be performed. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Creates a cache item policy. + Returns . + + + Returns . + + + Removes an entity from the cache. + + + Removes an entity from the cache. + + + Removes a request from the cache. + + + Removes a specific cache item. + + + Removes an entity from the cache. + + + Gets or sets the caching behavior mode. + Returns . + + + Gets or sets the cache retrieval mode. + Returns . + + + constructor_initializes class. + + + constructor_initializes class. + + + Gets or sets a custom key value that is unique to the current request. + Returns . + + + Gets or sets the underlying request. + Returns . + + + This API supports the .NET Framework infrastructure and is not intended to be used directly from your code. Creates an array of Type objects that contain the types of individual profile properties. + + + The types for serializing an instance. + + + The types for serializing a instance. + + + A wrapper class around the that manages the details of setting up an or other arbitrary objects. When paired with an object, becomes a cached service. + + + constructor_initializes class. + + + constructor_initializes class. + + + constructor_initializes class. + + + Creates a link between records. (Developer Extensions) + property_relationshipname to be used to create the link. + property_entityid to which the related records are associated. + property_relatedentities to be associated. + property_logicalname that is specified in the entityId parameter. + + + Returns . + + + Creates a record. (Developer Extensions) + Returns a , the ID of the newly created record. + An entity instance that contains the properties to set in the newly created record. + + + Returns . + + + Returns . + + + Deletes a record. (Developer Extensions) + property_logicalname that is specified in the entityId parameter. + property_entityid that you want to delete. + + + Deletes a link between records. (Developer Extensions) + property_relationshipname to be used to remove the link. + property_entityid from which the related records are disassociated. + property_relatedentities to be disassociated. + property_logicalname that is specified in the entityId parameter. + + + Executes a message in the form of a request, and returns a response. (Developer Extensions) + Returns . You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + A request instance that defines the action to be performed. + + + Returns . + + + Returns . + + + Returns . + + + Retrieves a record. (Developer Extensions) + Returns the requested . + A query that specifies the set of columns, or attributes, to retrieve. + property_logicalname that is specified in the entityId parameter. + property_entityid that you want to retrieve. + + + Retrieves a collection of records. (Developer Extensions) + Returns . + A query that determines the set of records to retrieve. + + + Returns . + + + Returns . + + + Updates an existing record. (Developer Extensions) + An entity instance that has one or more properties set to be updated in the record. + + + Returns . + + + An abstracted data caching service that caches the results of operations. Automatically sets up cache item dependencies and performing update operations invalidates dependent cache items. + + + constructor_initializes class. + + + constructor_initializes class. + + + constructor_initializes class. + + + constructor_initializes class. + + + constructor_initializes class. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Value = 2. + + + Value = 1. + + + Value = 0. + + + Value = 1. + + + Value = 0. + + + constructor_initializes class. + + + constructor_initializes class. + + + constructor_initializes class. + + + Gets or sets the prefix string used for constructing the CacheEntryChangeMonitorhttp://msdn2.microsoft.com/en-us/library/dd988729 objects assigned to the cache items. + Returns . + + + Gets or sets the cache region name. + Returns . + + + Gets or sets a key value for uniquely distinguishing the connection. + Returns . + + + Gets or sets a factory for creating CacheItemPolicyhttp://msdn2.microsoft.com/en-us/library/dd988752 objects. + Returns . + + + Gets or sets whether the query used to construct the cache key is to be hashed or left as a readable string. + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Contains error codes that can occur when registering a device. + + + The password was blank. Value = 6. + + + The device already exists. Value = 13. + + + The interface is disabled. Value = 1. + + + An internal error occurred. Value = 11. + + + The specified credentials contain invalid characters. Value = 9. + + + The parameter values contain incorrect syntax. Value = 8. + + + The registration request is invalid. Value = 3. + + + The device, user name or password is missing. Value = 7. + + + An unknown error occurred. Value = 0. + + + The client version is unknown. Value = 4. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Contains values for the the type of authentication used. + + + Active directory authentication. Value = 1. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Contains values that describe a connection to an instance of Microsoft Dynamics CRM. + + + The connection was canceled. Value = 1. + + + The connection was made successfully. Value = 0. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.Deployment.dll b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.Deployment.dll new file mode 100644 index 00000000..2cea0c8d Binary files /dev/null and b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.Deployment.dll differ diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.Deployment.xml b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.Deployment.xml new file mode 100644 index 00000000..66423e8b --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.Deployment.xml @@ -0,0 +1,1818 @@ + + + + Microsoft.Xrm.Sdk.Deployment + + + + Contains the data that is needed to add a deployment administrator. The user must already exist in Active Directory. + + + Initializes a new instance of the class. + + + Gets or sets the name of the deployment administrator to be added. Required. + Type: Returns_StringThe name of the deployment administrator to be added, which string must be in the format domain\userid. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + The address scheme: http or https. + + + The address scheme is hypertext transfer protocol. + + + The address scheme is secure hypertext transfer protocol. + + + Contains setting values that can be changed to tune a pn_microsoftcrm deployment. + + + Initializes a new instance of the class. + + + Gets or sets the interval used to query to see if there are any organization maintenance jobs that have timed out. + Type: Returns_Int32 +The interval at which the service will determine if any job has been running longer than . + + + Gets or sets a value used for organization maintenance jobs to determine if a job has timed out. + Type: Returns_Int32 +The timeout value for organization maintenance jobs. + + + Gets or sets the number of times an asynchronous job will retry before it fails or suspends. + Type: Returns_Int32 +The number of retries for an asynchronous job. + + + Gets or sets the maximum number of times a database operation will be attempted before failure. + Type: Returns_Int32 +The number of retries for a database operation. + + + Gets or sets the interval used to query to see if there is a pending organization maintenance job. + Type: Returns_Int32 +The query interval for organization maintenance jobs. + + + Gets or sets the default rate of retries for failed asynchronous operations. + Type: Returns_Int32 +The retry rate for failed asynchronous operations. + + + Gets or sets the root domain used for calls into the pn_microsoftcrm service from the asynchronous service. + Type: Returns_String +The root domain. + + + Gets or sets the interval used to determine if new asynchronous operations should be loaded into memory. + Type: Returns_Int32 +The interval for loading asynchronous operations into memory. + + + Gets or sets the throttling configuration. + Type: Returns_String +The throttling configuration. Example: "BulkDelete=15;Workflow=1;Event=1". + + + Gets or sets the interval used to query to see if there are any asynchronous operations that have timed out. + Type: Returns_Int32 +The query interval. + + + Contains a collection of attributes. + + + Initializes a new instance of the class. + + + Contains the data that is needed to initiate the asynchronous operation to create an organization. + + + Initializes a new instance of the class. + + + Gets or sets the organization instance to be created. Required. + Type: The organization instance to be created. + + + Gets or sets the name of the system administrator for the new organization. Required. + Type: Returns_StringThe name of the system administrator for the new organization. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Contains the data that is needed to begin the asynchronous operation to import an organization. + + + Initializes a new instance of the class. + + + Gets or sets the database name for the organization. Required. + Type: Returns_StringThe database name for the organization. + + + Gets or sets the sets display name, or long name, of the organization database. Optional. + Type: Returns_StringThe sets display name, or long name, of the organization database. + + + Gets or sets the name of the pn_MS_SQL_Server where the pn_microsoftcrm organization database is located. Required. + Type: Returns_StringThe name of the pn_MS_SQL_Server where the pn_microsoftcrm organization database is located. + + + Gets or sets the URL of the pn_MS_SQL_Server on which the pn_Connector_for_SRS_short is installed. Required. + Type: Returns_StringThe URL of the pn_MS_SQL_Server on which the pn_Connector_for_SRS_short is installed. + + + Gets or sets the unique name for the organization. Optional. + Type: Returns_StringThe unique name for the organization. + + + Gets or sets the mapping method to use to map user accounts from the original server to the new server. Optional. + Type: The mapping method to use to map user accounts from the original server to the new server. + + + Gets or sets the XML user account mapping rules. Optional. + Type: Returns_StringThe XML user account mapping rules. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + Contains the data that is needed to begin the asynchronous operation to update an organization. + + + Initializes a new instance of the class. + + + Gets or sets the ID or instance tag of the organization to update. Required. + Type: +The ID or instance tag of the organization to update. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Contains the data that is needed to begin the asynchronous operation to upgrade an organization. + + + Initializes a new instance of the class. + + + Gets or sets the ID or the instance tag of the organization to upgrade. Required. + Type: +The ID or the instance tag of the organization to upgrade. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Contains information about a certificate. + + + Initializes a new instance of the class. + + + Gets or sets the certificate type. + Type: Returns_StringThe certificate type. + + + Gets or sets the certificate data. + Type: Returns_StringThe certificate data. + + + Gets or sets the certificate ID. + Type: Returns_GuidThe certificate ID. + + + Gets or sets the certificate name. + Type: Returns_StringThe certificate name. + + + Gets or sets the store find type. + Type: Returns_StringThe store find type. + + + Gets or sets the store location. + Type: Returns_StringThe store location. + + + Gets or sets the store name. + Type: Returns_StringThe store name. + + + Contains the settings for claims based authentication. + + + Initializes a new instance of the class. + + + Gets or sets whether or not claims is enabled. + Type: Returns_Booleantrue if the claims is enabled; otherwise, false. + + + Gets or sets the encryption certificate name. + Type: Returns_StringThe encryption certificate name. + + + Gets or sets the federation metadata URL. + Type: Returns_StringThe federation metadata URL. + + + Gets or sets the federation provider type. + Type: Returns_Int32The provider type. + + + Gets or sets the lifetime for the token session security (in hours). + Type: Returns_Int32The token lifetime in hours. + + + Contains attributes for a specific table in the configuration database. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attribute values. + Type: The collection of attribute values. + + + Gets or sets the ID of the configuration entity. + Type: Returns_GuidThe ID of the configuration entity. + + + Gets or sets the logical name of the configuration entity. + Type: Returns_StringThe logical name of the configuration entity. + + + Server level settings that control use of custom code. + + + constructor_initializes class. + + + Gets or sets whether XAML workflows are allowed on the server. + Type: Returns_Booleantrue if XAML workflows are allowed on the server; otherwise, false. + + + Gets or sets whether plug-ins and custom workflow activities can be registered on the server. + Type: Returns_Booleantrue if the plug-ins and custom workflow activities can be registered on the server; otherwise, false. + + + Server level dashboard settings. + + + Initializes a new instance of the class. + + + Gets or sets the maximum number of controls allowed on dashboards for the server. + Type: Returns_Int32 +The maximum number of controls allowed on dashboards for the server. + + + Contains information about an error that occurred with a deferred operation. + + + Initializes a new instance of the class. + + + Gets or sets the error code. + Type: Returns_Int32The error code. + + + Gets or sets the detailed error information. + Type: The collection of error information. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the error message. + Type: Returns_StringThe error message. + + + Base class for all asynchronous requests for the deployment Web service. + + + constructor_initializes class. + + + Base class for all asynchronous responses for the deployment Web service. + + + Initializes a new instance of the class. + + + Gets the ID of the asynchronous request. + Type: Returns_GuidThe ID of the asynchronous request. + + + Describes the possible states for an asynchronous operation. + + + Specifies that the operation has completed. Value = 3. + + + Specifies that the operation has failed. Value = 4. + + + Specifies that the operation is in progress. Value = 2. + + + Specifies that the operation is queued but has not been started. Value = 1. + + + Specifies that the operation state is unknown. Value = 0. + + + Contains information about the status of a deferred operation. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the deployment entity instance associated with this deferred operation. + Type: The ID of the deployment entity instance associated with this deferred operation. + + + Gets or sets the time that the deferred operation processing completed. + Type: Returns_DateTimeThe time that the deferred operation processing completed. + + + Gets or sets the error information for the deferred operation. + Type: The error information for the deferred operation. + + + Gets or sets the time that the deferred operation processing started. + Type: Returns_DateTimeThe time that the deferred operation processing started. + + + Gets or sets the current state of the deferred operation. + Type: The current state of the deferred operation. + + + Gets or sets the time that the deferred operation processing was submitted. + Type: Returns_DateTimeThe time that the deferred operation processing was submitted. + + + Contains the data that is needed to delete a deployment record. + + + Initializes a new instance of the class. + + + Gets or sets the type of deployment entity to be deleted. + Type: the type of deployment entity to be deleted. + + + Gets or sets the ID or the instance tag for the deployment record to be deleted. + Type: The ID or the instance tag for the deployment record to be deleted. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + Contains information about a deployment administrator in a pn_microsoftcrm deployment. + + + Initializes a new instance of the class. + + + Gets the ID of the deployment administrator. + Type: Returns_GuidThe ID of the deployment administrator. + + + Gets or sets the domain name and user ID of the deployment administrator. + Type: Returns_String +The domain name and user ID of the deployment administrator. + + + Base class for configuration settings entities. + + + constructor_initializes class. + + + Base class for deployment entities. + + + Initializes a new instance of the class. + + + Describes the type of deployment entity. + + + The asynchronous settings entity. Value = 0. + + + The certificate entity. Value = 0x11. + + + The claims settings entity. Value = 1. + + + The custom code settings entity. Value = 13. + + + The dashboard settings entity. Value = 2. + + + The deferred operation status entity. Value = 0x16. + + + The deployment administrator entity. Value = 0x12. + + + The duplicate detection settings entity. Value = 3. + + + The ETM settings entity. Value = 4. + + + The Internet-facing deployment (IFD) settings entity. Value = 5. + + + The data import settings entity. Value = 6. + + + The license properties entity. Value = 0x15. + + + The marketplace settings entity. Value = 12. + + + The monitoring settings entity. Value = 0x17. + + + The multi-entity quick find settings entity. Value = 15. + + + The organization entity. Value = 20. + + + The quick find settings entity. Value = 10. + + + The server entity. Value = 0x13. + + + The server side synchronization ACT settings entity. Value = 0x1b. + + + The server side synchronization email settings entity. Value = 0x19. + + + The server side synchronization queue settings entity. Value = 0x1a. + + + The service quality metrics (SQM) settings entity. Value = 11. + + + The team settings entity. Value = 14. + + + The throttle settings entity. Value = 7. + + + The trace settings entity. Value = 8. + + + The web address settings entity. Value = 9. + + + The workflow settings entity. Value = 10. + + + The Yammer settings entity. Value = 0x18. + + + Contains information about an error with the deployment web service. + + + An error occurred. Value = 4. + + + Information about the operation. Value = 1. + + + An operation was skipped. Value = 2. + + + The operation succeeded. Value = 0. + + + A warning about the operation. Value = 3. + + + Base class for deployment Web service entities and settings. + + + Initializes a new instance of the class. + + + ExtensionData + + + + Implements interface and provides an authenticated WCF channel to the deployment service.. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: Returns_Binding. The binding. + Type: Returns_EndpointAddress. The address of the remote endpoint. + + + Initializes a new instance of the class. + Type: Returns_String. The name of the endpoint configuration. + + + Initializes a new instance of the class. + Type: Returns_String. The name of the endpoint configuration. + Type: Returns_EndpointAddress. The address of the remote endpoint. + + + Initializes a new instance of the class. + Type: Returns_String. The name of the endpoint configuration. + Type: Returns_String. The address of the remote endpoint. + + + Deletes a deployment record. + Type: . The ID of the deployment record to delete. + Type: . The type of deployment entity specified by the id parameter. + + + Executes a deployment service message in the form of a request, and returns a response. + Type: +The response from the request. + Type: . A request instance that defines the action to be performed. + + + Retrieves a deployment record. + Type: The deployment record. + Type: . The ID of the deployment record to retrieve. + Type: . The type of deployment entity specified by the id parameter. + + + Retrieves all deployment records for the specified deployment entity type. + Type: <>The collection of all deployment records. + Type: . The type of deployment entity for which to retrieve all records. + + + Updates a deployment record. + Type: . An instance of a deployment record with all values populated. See Remarks. + + + Represents a deployment service fault. + + + Initializes a new instance of the the class. + + + Gets or sets the error code. + Type: Returns_Int32The error code. + + + Gets or sets the collection of detailed information about the error. + Type: The collection of error information. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the fault instance that caused the current fault. + Type: The fault instance. + + + Gets or sets the error message. + Type: Returns_StringThe error message. + + + Gets or sets the date/time value when the error occurred. + Type: Returns_DateTimeThe date/time of the error. + + + Contains the data that is needed to execute a request and the base class for all deployment service requests. + + + constructor_initializes class. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Contains the response from the request and the base class for all deployment Web service responses. + + + Initializes a new instance of the class. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Contains duplicate detection settings that can be used to tune a deployment. + + + Initializes a new instance of the class. + + + Gets or sets the bulk duplicate detection batch size. + Type: Returns_Int32 +The batch size. + + + Gets or sets the length of the match code. + Type: Returns_Int32 +The length of the match code. + + + Gets or sets the persistence interval for the match code. + Type: Returns_Int32 +The persistence interval. + + + Gets or sets the maximum number of published rules. + Type: Returns_Int32 +The maximum number of published rules. + + + Gets or sets the polling interval for the asynchronous job. + Type: Returns_Int32 +The polling interval. + + + Gets or sets the page size for results. + Type: Returns_Int32 +The page size. + + + Contains the information needed to identify a deployment entity record: deployment entity type and ID. + + + Initializes a new instance of the class. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the record. + Type: Returns_Guid +The ID of the record. + + + Gets or sets the name of the deployment entity. + Type: Returns_String +The name of the deployment entity. + + + Contains the collection of error details. + + + Initializes a new instance of the class. + + + Contains Enterprise Transaction Monitor (ETM) settings. + + + Initializes a new instance of the EtmSettings class. + + + Gets or sets whether Enterprise Transaction Monitor (ETM) is enabled. + Type: Returns_BooleanFlag indicating whether Enterprise Transaction Monitor (ETM) is enabled. + + + Gets or sets whether Enterprise Transaction Monitor (ETM) throttling is enabled. + Type: Returns_BooleanFlag indicating whether Enterprise Transaction Monitor (ETM) throttling is enabled. + + + Provides programmatic access to deployment information. + + + Deletes a deployment record. + Type: . The ID of the deployment record to delete. See Remarks. + Type: . The type of deployment entity specified by the id parameter. + + + Executes a message in the form of a request, and returns a response. + Type: The response from the request. You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter + Type: . A request instance that defines the action to be performed. + + + Retrieves a deployment record. + Type: The deployment record. + Type: . The ID of the deployment record to retrieve. See Remarks. + Type: . The type of deployment entity specified by the id parameter. + + + Retrieves all deployment records for the specified deployment entity type. + Type: <>The collection of all deployment records. + Type: . The type of deployment entity for which to retrieve all records. + + + Updates a deployment record. + Type: . An instance of a deployment record with all values populated. See Remarks. + + + Interface for the deployment web service channel. + + + Contains settings for configuring Internet-facing deployments (IFDs). + + + Initializes a new instance of the class. + + + Gets or sets the discovery web service domain. + Type: Returns_String +The discovery web service domain. + + + Gets or sets a value that indicates whether Internet-facing deployment (IFD) is enabled. + Type: Returns_Booleantrue if Internet-facing deployment (IFD) is enabled; otherwise, false. + + + Gets or sets the external domain value for Internet-facing deployment (IFD). + Type: Returns_String +The external domain value for IFD. + + + Gets or sets a value that indicates whether intranet access is enabled. + Type: Returns_Booleantrue if intranet access is enabled; otherwise, false. + + + Gets or sets the organization web service domain. + Type: Returns_String +The organization web service domain. + + + Gets or sets the web application server domain. + Type: Returns_String +The web application server domain. + + + Contains settings that can be changed to tune data import. + + + Initializes a new instance of the ImportSettings class. + + + Gets or sets the number of items to process in a batch. + Type: Returns_Int32The number of items to process in a batch. + + + Gets or sets the size of the content buffer. + Type: Returns_Int32The size of the content buffer. + + + Gets or sets the batch size for import count updates. + Type: Returns_Int32The batch size for import count updates. + + + Gets or sets the maximum number of columns in an import file. + Type: Returns_Int32The maximum number of columns in an import file. + + + Gets or sets the maximum number or retries. + Type: Returns_Int32The maximum number or retries. + + + Gets or sets the default size of the parsed column. + Type: Returns_Int32The default size of the parsed column. + + + Gets or sets the batch size for picklist import. + Type: Returns_Int32The batch size for picklist import. + + + Defines the possible methods for mapping users when importing an organization. + + + Specifies to automatically map the users' pn_Active_Directory account names to pn_microsoftcrm accounts. Value = 1. + + + Specifies custom user account matching options in an XML string. Value = 2. + + + Specifies to keep the existing user mappings in the organization database. Typically, you select this option if you are importing an organization database that is located in the same pn_Active_Directory domain as the pn_microsoftcrm Server where the organization is to be imported. For users external to the pn_Active_Directory domain, who were added with their UPN, the user information will be mapped across without any changes or validation. Value = 0. + + + Contains information about a license for pn_CRM_2011. + + + Initializes a new instance of the class. + + + Gets or sets the edition of pn_CRM_2011 for this license. + Type: The edition of pn_CRM_2011 for this license. + + + Gets or sets the ID of the product. + Type: Returns_Int32The ID of the product. + + + Indicates the type of license. + + + Microsoft Dynamics CRM Enterprise Edition. Value = 2. + + + Microsoft Dynamics CRM Online Edition. Value = 4. + + + Microsoft Dynamics CRM Professional Edition. Value = 1. + + + Microsoft Dynamics CRM Small Business Edition. Value = 0. + + + Microsoft Dynamics Partner Hosted CRM Edition. Value = 3. + + + Contains settings for the sdk_Dynamics_Marketplace. + + + Initializes a new instance of the class. + + + Gets or sets the proxy server and port used for outgoing internet requests. + Type: Returns_StringThe proxy server and port. + + + Gets or sets whether the solutions marketplace is enabled. + Type: Returns_Boolean + + + Contains settings used to manage or configure the monitoring service and the tests executed by the service. + + + Initializes a new instance of the class. + + + Gets or sets the threshold of the certificate lifetime remaining at which to begin reporting expiration notifications. + Type: Returns_Int32The threshold of the certificate lifetime remaining at which to begin reporting expiration notifications. Specified as an integral percentage. + + + Gets or sets the number of monitoring results to keep + Type: Returns_Int32The number of results to keep. + + + Contains settings for multi-entity quick find (finds records of different types). + + + Initializes a new instance of the class. + + + Gets or sets the maximum degree of parallelism for multi-entity search queries. Required. + Type: Returns_Int32The maximum degree of parallelism for multi-entity search queries. The default value for this setting is 5. + + + Gets or sets the upper limit for the number of entities that can participate in a multi-entity search query. Required. + Type: Returns_Int32The upper limit for the number of entities that can participate in a multi-entity search query. The default value for this setting is 10. + + + Gets or sets the maximum number of concurrent ExecuteQuickFind requests per organization per server. Required. + Type: Returns_Int32The maximum number of concurrent ExecuteQuickFind requests per organization per server. The default value is -1, which means that the requests are not throttled. + + + Gets or sets the maximum number of concurrent ExecuteQuickFind requests per server. Required. + Type: Returns_Int32The maximum number of concurrent ExecuteQuickFind requests per server. The default value is -1, which means that the requests are not throttled. + + + Contains information about an organization in a pn_microsoftcrm deployment. + + + Initializes a new instance of the class. + + + Gets or sets the base currency code for the organization. + Type: Returns_String +The base currency code for the organization. + + + Gets or sets the base currency name for the organization. + Type: Returns_String +The base currency name for the organization. + + + Gets or sets the number of decimal places that can be used for the base currency. + Type: Returns_Int32 +The number of decimal places for the currency for the organization. + + + Gets or sets the base currency symbol for the organization. + Type: Returns_String +The base currency symbol for the organization. + + + Gets or sets the base language code for the organization. + Type: Returns_Int32 +The base language code for the organization. + + + Gets or sets the database name for the organization. + Type: Returns_String +The database name for the organization. + + + Gets or sets the display name, or long name, of the organization database. + Type: Returns_String +The display name, or long name, of the organization database. + + + Gets the organization ID. + Type: Returns_GuidThe organization ID. + + + Gets or sets the SQL collation property that the organization will use to sort and compare data characters. + Type: Returns_String +The SQL collation property that the organization will use to sort and compare data characters. + + + Gets or sets the name of the SQL server on which the organization database is installed. + Type: Returns_String +The name of the SQL server on which the organization database is installed. + + + Gets or sets whether information is being collected for the customer experience improvement program. + Type: Returns_Booleantrue if information is being collected for the customer experience improvement program; otherwise, false. + + + Gets or sets the URL of the pn_MS_SQL_Server on which the pn_Connector_for_SRS_short is installed. + Type: Returns_String +The URL of the pn_MS_SQL_Server on which the pn_Connector_for_SRS_short is installed. + + + Gets or sets the organization state. + Type: The organization state. + + + Gets or sets the unique name for the organization. + Type: Returns_String +The unique name for the organization. + + + Gets the current updated version of organization. + Type: Returns_String +The current updated version of organization. + + + Describes the state of the organization. + + + Specifies that the organization is disabled. Value = 0. + + + Specifies that the organization is enabled. Value = 1. + + + Specifies that the organization is in a failure state. Value = 3. + + + Specifies that the organization is undergoing maintenance. Value = 4. + + + Specifies that the organization is pending. Value = 2. + + + Contains information about a user in an organization. + + + constructor_initializes class. + + + Gets or sets the type of client access license for the user. + Type: Returns_Int32The license type. + + + Gets or sets the domain name for the user. + Type: Returns_StringThe domain name. + + + ExtensionData + Type: Returns_ExtensionDataObject + + + Gets or sets the full name of the user. + Type: Returns_Int32The user’s full name. + + + Contains settings for quick find (finds records of one type). + + + Initializes a new instance of the class. + + + Gets or sets the maximum number of the attributes used in the quick find search query, after which the QuickFind indexes are not created. Required. + Type: Returns_Int32The maximum number of the attributes used in the quick find search query, after which the QuickFind indexes are not created. The default value for this setting is 20. + + + Gets or sets the maximum number of records that match the quick find query criteria before an exception error is thrown. This is needed for faster execution of the quick find searches. Required. + Type: Returns_Int32The maximum number of records that match the quick find query criteria before an exception error is thrown. The default value for this setting is 10000. + + + internal + + + Initializes a new instance of the class. + + + internal + Type: Returns_String + + + internal + Type: + + + internal + Type: Returns_String + + + Contains the data that is needed to retrieve advanced settings from the configuration database. internal + + + Initializes a new instance of the class. + + + Gets or sets the set of columns or attributes to be retrieved. + Type: The set of columns or attributes to be retrieved. + + + Gets of sets the name of the configuration entity. + Type: Returns_StringThe name of the configuration entity. + + + Gets or sets the ID of the record to be retrieved. + Type: Returns_GuidThe ID of the record to be retrieved. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Gets or sets the configuration entity that was retrieved. + Returns The configuration entity that was retrieved. + + + Contains the data that is needed to retrieve all deployment records of the specified deployment entity type. + + + Initializes a new instance of the class. + + + Gets or sets the type of deployment entity to be retrieved. + Type: The type of deployment entity to be retrieved. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + Gets or sets the collection of IDs or instance tags for all the deployment records retrieved. + Type: <>The collection of IDs or instance tags for all the deployment records retrieved. + + + Contains the data that is needed to retrieve a deployment entity or configuration settings record. + + + Initializes a new instance of the class. + + + Gets or sets the type of deployment entity to be retrieved. + Type: The type of deployment entity to be retrieved. + + + Gets or sets the ID or instance tag of the deployment record to be retrieved. + Type: The ID or instance tag of the deployment record to be retrieved. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Gets or sets the record that was retrieved. + Type: The record that was retrieved. + + + Contains information about a server in a pn_microsoftcrm deployment. + + + Initializes a new instance of the class. + + + Gets or sets the full name of the server. + Type: Returns_String +The name of the server. + + + Gets the organization ID. + Type: Returns_GuidThe organization ID. + + + Gets the name of the server. + Type: Returns_String +The name of the server. + + + Gets the set of roles configured for the server. + Type: The set of roles configured for the server. + + + Gets or sets the state of the server. + Type: The state of the server. + + + Gets the version number of the server. + Type: Returns_String +The version number of the server. + + + Describes specific server functionality, components, and services. + + + Internal. Value = 0x2000. + + + The role that allows programmatic access to the organization Web service. Value = 0x8000. + + + The role that runs the Web application server that is used to connect users to Microsoft Dynamics CRM data. Value = 1. + + + The role that allows processing of queued asynchronous events, such as workflows, asynchronous plug-ins, bulk e-mail, or data import. Value = 2. + + + Internal. Value = 0x10000. + + + Internal. Value = 0x20000. + + + The role that allows the use of the pn_deploymentmanager and pn_PowerShell cmdlets. pn_microsoftcrm administrators can use the pn_PowerShell cmdlets to automate Deployment Manager tasks. pn_deploymentmanager is a Microsoft Management Console (MMC) snap-in that system administrators can use to manage organizations, servers, and licenses for deployments of pn_microsoftcrm. Value = 0x4000000. + + + The role that allows programmatic access to deployment management. Value = 0x200000. + + + The role that allows discovery of organizations. Value = 8. + + + Internal. Value = 0x4000. + + + The role for the email connector. Value = 0x40000000. + + + Internal. Value = 0x10. + + + Internal. Value = 0x100000. + + + The role that makes pn_microsoftcrm help available to users. Value = 0x40000. + + + Internal. Value = 0x800. + + + Indicates no roles. Value = 0. + + + Internal. Value = 0x8000000. + + + Internal. Value = 0x10000000. + + + Internal. Value = 0x40. + + + Internal. Value = 0x200. + + + Internal. Value = 0x400. + + + The role that enables an isolated environment for the execution of custom code, such as plug-ins. This isolated environment reduces the possibility of custom code affecting the operation of the organizations. Value = 0x1000000. + + + Internal. Value = 0x800000. + + + Internal. Value = 0x400000. + + + The role that installs the configuration database (MSCRM_CONFIG) on the SQL Server. Value = 0x100. + + + The role that provides reporting functionality by interfacing with the pn_microsoftcrm system and pn_SQL_Server_Reporting. Value = 4. + + + Internal. Value = 0x80000. + + + Internal. Value = 0x1000. + + + Internal. Value = 0x20000000. + + + Obsolete. Value = 0x20. + + + Internal. Value = 0x80. + + + Initializes the class. + + + Defines the maximum duration, in seconds, after which the service checks an active mailbox for appointments, contacts, or tasks. + Type: Returns_Int32The maximum duration. + + + Defines the minimum duration, in seconds, after which the service checks an active mailbox for appointments, contacts, or tasks. + Type: Returns_Int32The minimum duration. + + + Defines the maximum duration, in seconds, after which the service checks an idle mailbox for appointments, contacts, or tasks. + Type: Returns_Int32The maximum duration. + + + Defines the minimum duration, in seconds, after which the service checks an idle mailbox for appointments, contacts, or tasks. + Type: Returns_Int32The minimum duration. + + + Defines the duration, in seconds, to postpone synchronizing appointments, contacts, or tasks for a mailbox on an Exchange server request time-out. + Type: Returns_Int32The duration. + + + Defines the duration, in seconds, to postpone synchronizing appointments, contacts, or tasks for a mailbox after encountering a transient error. + Type: Returns_Int32The duration. + + + Defines the maximum number of appointments, contacts, or tasks processed by an Exchange server in a cycle. + Type: Returns_Int32The maximum number. + + + Defines the maximum number of transient failures that can occur before a mailbox is disabled for synchronizing appointments, contacts, or tasks. + Type: Returns_Int32The maximum number. + + + Defines the maximum number of attempts allowed to synchronize an appointment, contact, or task. + Type: Returns_Int32The maximum number. + + + Defines the batch size for retrieving appointments, contacts, tasks from an Exchange server. + Type: Returns_Int32The batch size. + + + Defines the maximum duration, in seconds, after which the service checks an active mailbox for the user’s email. + Type: Returns_Int32The maximum duration. + + + Defines the minimum duration, in seconds, after which the service checks an active mailbox for the user’s email. + Type: Returns_Int32The minimum duration. + + + Allows pn_Active_Directory based authentication to connect with email servers. The default value for pn_CRM_Online is false, and for pn_microsoftcrm on premises the default value is true. + Type: Returns_Boolean. + + + Controls whether pn_microsoftcrm is allowed to connect to an email server on a non-secure channel using Basic/Clear Text authentication, for both outgoing and incoming email. + Type: Returns_Boolean. + + + Allows entering the user credentials via a non-secure channel. + Type: Returns_Boolean. + + + Controls whether pn_microsoftcrm is allowed to connect to an email server on a non-secure channel, for both outgoing and incoming email. + Type: Returns_Boolean. + + + Defines the maximum number of parallel migration processes on the server for an organization. Any migration request exceeding this value is rejected. + Type: Returns_Int32. + + + Defines the maximum batch size for discovering Exchange Web Services URL in a single request. + Type: Returns_Int32. + + + Defines the maximum redirects honored in an Exchange Web Services autodiscover request. + Type: Returns_Int32. + + + Defines the maximum duration, in seconds, after which the service checks an idle mailbox for the user’s email. + Type: Returns_Int32. + + + Defines the minimum duration, in seconds, after which the service checks an idle mailbox for the user’s email. + Type: Returns_Int32. + + + Defines the email retrieval batch size of the Exchange server. + Type: Returns_Int32. + + + Defines the maximum limit, in bytes, for the incoming message size. This settings applies to email received from an Exchange or POP3 email server type. + Type: Returns_Int32. + + + Defines the maximum number of messages that an incoming provider can process in a cycle. + Type: Returns_Int32. + + + Enables logging of Exchange Web Services response headers in pn_microsoftcrm traces. + Type: Returns_Boolean. + + + Defines the duration, in seconds, that sending or receiving email is postponed for a mailbox when a request to the email server times out. + Type: Returns_Int32. + + + Defines the duration, in seconds, to postpone sending or receiving email for a mailbox after a transient error occurs. + Type: Returns_Int32. + + + Defines the duration, in minutes, that sending email from a mailbox is postponed when the Exchange submission quota is exceeded. + Type: Returns_Int32. + + + Defines the maximum number of attempts that can be made to send an email. + Type: Returns_Int32. + + + Defines the maximum size of response, in KB, from Exchange using Exchange Web Services. + Type: Returns_Int32. + + + Defines the number of transient failures that can occur before the mailbox is automatically disabled. + Type: Returns_Int32. + + + Defines the capacity of the message ID cache for server-side synchronization. + Type: Returns_Int32. + + + Defines the time, in minutes, that the email message ID is retained in the cache. + Type: Returns_Int32. + + + Defines the interval in minutes after which an email in pending send status is picked up for retry. + Type: Returns_Int32. + + + Defines the maximum number of days before the current date or time that server-side synchronization can be configured to process email. This information is provided in an email server profile record in pn_microsoftcrm. + Type: Returns_Int32. + + + Defines the interval, in minutes, after which an email in sending status is picked up for retry. + Type: Returns_Int32. + + + Defines the interval, in minutes, to attempt the email test configuration again. + Type: Returns_Int32. + + + Initializes the class. + + + Controls the number of activities to be removed from a queue per asynchronous event. + Type: Returns_Int32 . + + + Defines the upper limit of the number of activity batches held in memory at any point of time. + Type: Returns_Int32. + + + Defines the lower limit beyond which the service will stop removing activity batches held in memory from the queue. + Type: Returns_Int32. + + + Defines the maximum percentage of worker threads to be used for running asynchronous operations. + Type: Returns_Double. + + + Defines the maximum number of threads per CPU to be used for running asynchronous operations. + Type: Returns_Int32. + + + Defines how frequently to poll the organization database activity pointer table to check for any new outgoing emails that have to be sent. + Type: Returns_Int32. + + + Controls the number of mailboxes to be removed from a queue per asynchronous event. + Type: Returns_Int32. + + + Defines the upper limit on the number of mailbox batches held in memory at any point in time. + Type: Returns_Int32. + + + Defines the limit on the number of mailbox batches held in memory, beyond which the service will stop removing more mailboxes from the queue. + Type: Returns_Int32. + + + Defines the maximum percentage of worker threads for running asynchronous operations. + Type: Returns_Double. + + + Defines the maximum number of threads per CPU for running asynchronous operations. + Type: Returns_Int32. + + + Defines the recurrence period, in seconds, of removing mailboxes from the queue in the database. + Type: Returns_Int32. + + + Defines the number of minutes after which a locked mailbox record is checked again for incoming email processing in case of a service crash. + Type: Returns_Int32. + + + Controls the maximum number of activities that can be removed from the queue for an organization per select interval. + Type: Returns_Int32. + + + Defines the maximum time allowed for any call to the email server to complete. If a response isn’t received from the email server within this time period, the request is aborted. This setting applies to both Exchange and POP3/SMTP. + Type: Returns_Int32. + + + Describes the state of a server. + + + Specifies that the server is disabled. Value = 0. + + + Specifies that the server is enabled. Value = 1. + + + Specifies that no server state. Value = -1. + + + Contains settings about the Microsoft customer experience improvement program. + + + Initializes a new instance of the class. + + + Gets or sets the value that indicates whether collection of information for the customer experience improvement program is enabled. + Type: Returns_Booleantrue if the information collection for the customer experience program is enabled; otherwise, false. + + + Contains settings for the auto created (system-managed) access teams. + + + Initializes a new instance of the class. + + + Gets or sets the maximum number of auto created (system-managed) access teams per entity. Required. + Type: Returns_Int32The maximum number of auto created (system-managed) access teams per entity. The default value for this setting is 2. + + + Gets or sets the maximum number of entities that can be enabled for auto created (system-managed) access teams. Required. + Type: Returns_Int32The maximum number of entities that can be enabled for auto created (system-managed) access teams. The default value for this setting is 5. + + + Contains information about service throttling. + + + Initializes a new instance of the class. + + + Gets or sets the maximum number of concurrent asynchronous execute operations per organization. + Type: Returns_Int32The maximum number. + + + Gets or sets the maximum number of concurrent execute multiple operations per organization per server. + Type: Returns_Int32The maximum number.. + + + Gets or sets the maximum number of concurrent execute multiple operations per organization. + Type: Returns_Int32The maximum number of concurrent execute multiple operations per organization. + + + Gets or sets the maximum number of concurrent execute multiple operations per organization per server. + Type: Returns_Int32The maximum number of concurrent execute multiple operations per organization per server. + + + internal + Type: Returns_Int32 + + + internal + Type: Returns_Int32 + + + Gets or sets the server setting to control the maximum number of MAPI sync operations. + Type: Returns_Int32The maximum number of MAPI sync operations. + + + Gets or sets the server setting to control the maximum number of MAPI sync operations per organization. + Type: Returns_Int32The maximum number of MAPI sync operations per organization. + + + Gets or sets the Server setting to control the maximum number of background email send operations per organization. + Type: Returns_Int32The maximum number of background email send operations per organization. + + + Gets or sets the server setting to control the maximum number of background email send operations. + Type: Returns_Int32The maximum number of background email send operations. + + + Gets or sets the maximum number of pn_ms_SharePoint_long threads allowed per organization. + Type: Returns_Int32The maximum number of threads allowed. + + + Gets or sets the maximum number of pn_ms_SharePoint_long threads allowed per user. + Type: Returns_Int32The maximum number of threads allowed. + + + Gets or sets the server setting to control the maximum number of offline sync operations. + Type: Returns_Int32Gets or sets the server setting to control the maximum number of offline sync operations. + + + Gets or sets the Server setting to control the maximum number of offline sync operations per organization. + Type: Returns_Int32The maximum number of offline sync operations per organization. + + + Gets or sets the server setting to control the maximum number of pn_crm_for_outlook_short sync operations. + Type: Returns_Int32The maximum number of sync operations. + + + Gets or sets the server setting to control the maximum number of pn_crm_for_outlook_short sync operations per organization. + Type: Returns_Int32The maximum number of sync operations per organization. + + + Contains trace settings for a deployment. + + + Initializes a new instance of the class. + + + Gets or sets whether to save the call stack. + Type: Returns_Booleantrue if saving the call stack is enabled; otherwise, false. + + + Gets or sets the categories to trace. + Type: Returns_String +The categories to trace. + + + Gets or sets the directory for the trace files. + Type: Returns_String +The directory for the trace files. + + + Gets or sets whether tracing is enabled. + Type: Returns_Booleantrue if tracing is enabled; otherwise, false. + + + Gets or sets the trace file size limit (MB). + Type: Returns_Int32 +The size limit of the trace file in MB. + + + Describes the type of license. + + + An administrative client access license (CAL). Value = 2. + + + A basic client access license. Value = 3. + + + A device basic client access license. Value = 5. + + + A device enterprise client access license. Value = 6. + + + A device essential client access license. Value = 13. + + + A device professional client access license. Value = 4. + + + An enterprise client access license. Value = 12. + + + An enterprise client access license (CAL). Value = 9. + + + An essential client access license. Value = 1. + + + An online server client access license (CAL). Value =11 . + + + A professional client access license. Value = 0. + + + A professional server client access license (CAL). Value = 8. + + + A service provider licensing agreement (SPLA) client access license (CAL). Value = 10. + + + A workgroup server client access license (CAL). Value = 7. + + + Contains the data that is needed to track the licenses for a deployment. + + + constructor_initializes class. + + + Gets or sets the end date for the license. + Type: Returns_DateTimeThe end date. + + + Gets or sets the type of license. + Type: The type of license. + + + Gets or sets the start date for the license. + Type: Returns_DateTimeThe start date. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Gets or sets the servers for the license request. + Type: <Returns_String>The collection of servers. + + + Gets or sets the users for the license request. + Type:<>The collection of users. + + + Contains the data that is needed to update advanced settings from the configuration database. internal + + + Initializes a new instance of the class. + + + Gets or sets the configuration entity to be updated. + Type: The configuration entity to be updated. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update a product key. + + + Initializes a new instance of the class. + + + Gets or sets the product key to update. + Type: Returns_StringThe product key to update. + + + Contains the response from the . + + + Initializes a new instance of the class. + + + Contains the data that is needed to update a deployment record. + + + Initializes a new instance of the class. + + + Gets or sets the configuration entity to be updated. + Type: The configuration entity to be updated. + + + Contains the response from the. + + + Initializes a new instance of the class. + + + Contains deployment specific root domain address values. + + + Initializes a new instance of the class. + + + Gets or sets the root domain for the deployment Web service (SDK). + Type: Returns_StringThe root domain for the deployment Web service (SDK). + + + Gets or sets the root domain for the discovery Web service. + Type: Returns_StringThe root domain for the discovery Web service. + + + Gets or sets the URL for help content server. + Type: Returns_StringThe URL for help content server. + + + Gets or sets whether network load balancing (NLB) is enabled. + Type: Returns_Booleantrue if network load balancing (NLB) is enabled; otherwise, false. + + + Gets or sets the root domain scheme: http or https. + Type: The root domain scheme: http or https. + + + Gets or sets the root domain for the organization Web service (SDK). + Type: Returns_StringThe root domain for the organization Web service (SDK). + + + Gets or sets the secured sockets layer (SSL) header. + Type: Returns_StringThe secured sockets layer (SSL) header. + + + Gets or sets the root domain for the Web application. + Type: Returns_StringThe root domain for the Web application. + + + Contains workflow setting values which can be changed to tune a pn_microsoftcrm deployment. + + + Initializes a new instance of the WorkflowSettings class. + + + Gets or sets the maximum depth for a workflow. + Type: Returns_Int32The maximum depth for a workflow. + + + Gets or sets the maximum number of seconds a workflow can be inactive. + Type: Returns_Int32The maximum number of seconds a workflow can be inactive. + + + Contains settings for pn_yammer. + + + Initializes a new instance of the class. + + + Gets or sets the application ID. + Type: Returns_StringThe application ID. The application ID is retrieved from yammer.com when you register your application on pn_yammer. + + + Gets or sets the application secret. + Type: Returns_StringThe application secret. The application secret is provided by yammer.com when you register your application on pn_yammer. + + + Provides helper methods to create a deployment service client class. + + + Gets the timeout for sending requsts to the web service. + + + Creates a deployment web service client, setting the URL. + Returns . + Type: Returns_URI. The URL for the deployment Web service. + + + Creates a deployment web service client, setting the URL and the timeout. + Returns . + Type: Returns_TimeSpan. The timeout value. + Type: Returns_URI. The URL for the deployment Web service. + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.dll b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.dll new file mode 100644 index 00000000..4581dd41 Binary files /dev/null and b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.dll differ diff --git a/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.xml b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.xml new file mode 100644 index 00000000..59a4a64b --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Lib/CrmSdk/Microsoft.Xrm.Sdk.xml @@ -0,0 +1,6991 @@ + + + + Microsoft.Xrm.Sdk + + + + Used to return aggregate, group by, and aliased values from a query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: Returns_Object. The value returned by the query. + Type: Returns_String. The attribute on which the aggregate, group by, or select operation was performed. + Type: Returns_String. The name of the entity the attribute belongs to. + + + Gets the name of the attribute on which the aggregate, group by, or select operation was performed. + Type: Returns_String +The name of the attribute on which the aggregate, group by, or select operation was performed. + + + Gets the name of the entity the attribute belongs to. + Type: Returns_String +The name of the entity the attribute belongs to. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets the value returned by the query. + Type: Returns_ObjectThe value returned by the query. + + + Provides a collection of attributes for an entity. + + + Initializes a new instance of the class. + + + Used by the code generation tool to create classes based on entities. + + + constructor_initializes class + Type: Returns_String. +The logical name of an attribute. + + + Gets the logical name of an attribute. + Type: Returns_String +The logical name of an attribute. + + + Specifies the field level security privileges allowed for an attribute. + + + constructor_initializes class. + + + Initializes a new instance of the class setting the attribute Id, and whether it is valid to create, read and update the attribute value. + Type: Returns_Int32. Whether the attribute value can be read. + Type: Returns_Int32. Whether the attribute value can be specified on create. + Type: Returns_Guid. The attribute ID. + Type: Returns_Int32. Whether the attribute value can be updated. + + + Gets the ID of the attribute. + Type: Returns_GuidThe ID of the attribute. + + + Gets whether create of the attribute value is allowed. + Type: Returns_Int32. + + + Gets whether read of the attribute value is allowed. + Type: Returns_Int32. + + + Gets whether update of the attribute value is allowed. + Type: Returns_Int32. + + + ExtensionData + Type: Returns_ExtensionDataObject +The extension data. + + + Specifies a collection of field level security privileges allowed for the specified attributes. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class, setting the list property. + Type: Returns_IList<>. The list of attribute privileges. + + + Represents a service fault. + + + Initializes a new instance of the BaseServiceFault class. + + + Gets or sets the fault error code. + Type: Returns_Int32The fault error code. + + + Gets or sets the details of the fault. + Type: The collection of details about the fault. + + + Gets or sets a structure that contains extra data. + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the message for the fault. + Type: Returns_StringThe message for the fault. + + + Gets or sets the date and time when the fault occurred. + Type: Returns_DateTimeThe date and time when the fault occurred. + + + Defines a managed property that stores a Boolean value. + + + constructor_initializes class + + + Initializes a new instance of the class + Type: Returns_Boolean. +true if the value is true; otherwise, false. + + + Identifies a user as the owner of all data changes made by calls to a Web service. + + + constructor_initializesCallerImpersonationScope class. + Type: . Specifies an organization service object. + Type: Returns_Guid. Specifies the ID of the user that owns any data changes made by a call to the service. + + + Disposes the CallerImpersonationScope object. + + + Identifies the types of claims that are supported or may be supported in a future product release. + + + An entity logical name claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/EntityLogicalName + + + An initiating user claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/InitiatingUser + + + An organization claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/Organization + + + A plug-in assembly claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/PluginAssembly + + + A plug-in publisher claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/PluginPublisher + + + A request name claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/RequestName + + + A security token claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/SecurityToken + + + A user claim. Value = http://schemas.microsoft.com/xrm/2011/Claims/User + + + Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. Extends Returns_Collection. + + + Adds the elements of the specified collection to the end of the . + Type: Returns_Type[]. +The array whose elements should be added to the end of the . The array itself cannot be null, but it can contain elements that are null, if type T is a reference type. + + + Adds the elements of the specified collection to the end of the DataCollection. + Type: Returns_IEnumerable_Generic. +The collection whose elements should be added to the end of the . The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type. + + + Copies the elements of the to a new array. + Type: Returns_Type[] +An array containing copies of the elements of the . + + + Represents a collection of keys and values. + + + Initializes a new instance of the class. + + + Adds the specified key and value to the dictionary. + Type: TValue. The value of the element to add. + Type: TKey. The key of the element to add. + + + Adds the specified key and value to the dictionary. + Type: Returns_KeyValuePair<TKey, TValue>. The key and value to add. + + + Adds the elements of the specified collection to the end of the . + Type: Returns_IEnumerable<Returns_KeyValuePair<TKey, TValue>>. +The collection whose elements should be added to the end of the . The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type. + + + Adds the elements of the specified collection to the end of the . + Type: Returns_KeyValuePair<TKey, TValue>[]. +The array whose elements should be added to the end of the . The array itself cannot be null, but it can contain elements that are null, if type T is a reference type. + + + Removes all items from the . + + + Determines whether the contains a specific value. + Type: Returns_Booleantrue if item is found in the ; otherwise, false. + Type: TKey. The key to locate in the collection. + + + Determines whether the contains a specific value. + Type: Returns_Booleantrue if item is found in the ; otherwise, false. + Type: Returns_KeyValuePair<TKey, TValue>. The key value pair to locate in the collection. + + + Determines whether the contains a specific key value. + Type: Returns_Booleantrue if item is found in the ; otherwise, false. + Type: TKey. The key to locate in the collection. + + + Type: Returns_Int32. Copies the entire to a compatible one-dimensional array, starting at the specified index of the target array. + Type: Returns_KeyValuePair<TKey, TValue>[]. The + + + Returns an enumerator that iterates through a collection. + Type: Returns_IEnumerator_Generic<Returns_KeyValuePair<TKey, TValue>> +An Returns_IEnumerator_Generic object that can be used to iterate through the collection. + + + Removes the first occurrence of a specific object from the . + Type: Returns_Booleantrue if the object was found and removed; otherwise, false. + Type: TKey. The object to remove from the . + + + Removes the first occurrence of a specific object from the . + Type: Returns_Booleantrue if the object was found and removed; otherwise, false. + Type: Returns_KeyValuePair<TKey, TValue>. +The object to remove from the . + + + Returns an enumerator that iterates through the collection. + Type: Returns_IEnumerator +An Returns_IEnumerator object that can be used to iterate through the collection. + + + Gets the value associated with the specified key. + Type: Returns_Booleantrue if the contains an element with the specified key; otherwise, false. + Type: TValue%. When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized. + Type: TKey. The key of the value to get. + + + Gets the number of elements in the collection. + Type: Returns_Int32 +The number of elements in the collection. + + + Gets a value indicating whether the is read-only. + Type: Returns_Booleantrue if the is read-only; otherwise, false. + + + Gets or sets the value associated with the specified key. + Type: TValue +The value associated with the specified key. + Type: TKey. The key of the value to get or set. + + + Gets a collection containing the keys in the . + Type: Returns_ICollection_Generic<TKey> +A collection containing the keys in the . + + + Gets a collection containing the values in the . + Type: Returns_ICollection_Generic<TValue> +A collection containing the values in the . + + + Represents a discovery service fault. + + + Initializes a new instance of the DiscoveryServiceFault class. + + + Gets or sets the fault instance that caused the current fault. + Type: The fault instance that caused the current fault. + + + Represents an instance of an entity (a record). + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the entity name. + Type: Returns_String. The name of the entity. + + + Checks to see if there is a value present for the specified attribute. + Type: Returns_Booleantrue if the contains an attribute with the specified name; otherwise, false. + Type: Returns_String. The logical name of the attribute. + + + Gets the value of the attribute. + Type: Returns_Type +The value of the attribute. + Type: Returns_String. The logical name of the attribute. + + + Gets the formatted value of the attribute. + Type: Returns_String +The formatted value of the attribute. + Type: Returns_String. The logical name of the attribute. + + + Gets the collection of related entity instances for the specified relationship. + Type: Returns_IEnumerableThe collection of related entity instances for the specified relationship. + Type: Returns_String. The schema name of the relationship. + The role of the primary entity in the relationship (referenced or referencing). + + + Gets the related entity instance for the specified relationship. + Type: The collection of related entity instances for the specified relationship. + Type: Returns_String. The name of the relationship. + Type: . The role of the primary entity in the relationship (referenced or referencing). + + + Sets the value of an attribute. + Type: Returns_Object. The value to set. + Type: Returns_String. The logical name of the attribute. + + + Sets the collection of related entity instances for the specified relationship. + Type: Returns_String. The schema name of the relationship. + Type: . The role of the primary entity in the relationship (referenced or referencing). + Type: Returns_IEnumerable. The collection of entity instances to set. + + + Sets the related entity instance for the specified relationship. + Type: Returns_String. The schema name of the relationship. + Type: . The role of the primary entity in the relationship (referenced or referencing). + Type: . The entity instance to set. + + + Gets the entity as the specified type. + Type: The entity as the specified type. + + + Gets an entity reference for this entity instance. + Type: The entity reference for the entity. + + + Gets or sets the collection of attributes for the entity. + Type: +The collection of attributes for the entity. + + + Gets or sets the state of the entity. + Type: . +The state of the entity. + + + ExtensionData + Type: Returns_ExtensionDataObjectExtensionData + + + Gets of sets the collection of formatted values for the entity attributes. + Type: +The collection of formatted values for the entity attributes. + + + Gets or sets the ID of the record represented by this entity instance. + Type: Returns_Guid +The ID of the record (entity instance). + + + Provides an indexer for the attribute values. + Type: Returns_ObjectThe attribute specified by the attributeName parameter. + Type: Returns_String. The logical name of the attribute. + + + Gets or sets the logical name of the entity. + Type: Returns_Stringthe logical name of the entity. + + + Gets or sets a collection of entity references (references to records). + Type: +a collection of entity references (references to records). + + + Contains a collection of entity instances. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the list of entities. + Type: Returns_IList<>. A list of entities. + + + Gets the collection of entities. + Type: <>The collection of entities. + + + Gets or sets the logical name of the entity. + Type: Returns_Stringthe logical name of the entity. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets an item in the collection. + Type: The item at the specified index. + Type: Returns_Int32. The index of the item. + + + Gets or sets the lowest active row version value. + Type: Returns_StringThe lowest active row version value. + + + Gets or sets whether there are more records available. + Type: Returns_Booleantrue if there are more records available; otherwise, false. This is used in conjunction with the when working with large record sets. + + + Gets or sets the current paging information. + Type: Returns_String +The current paging information. This is used in conjunction with when working with large record sets. + + + Gets the total number of records in the collection. was true when the query was executed . + Type: Returns_Int32The total number of records in the collection. + + + Gets or sets whether the results of the query exceeds the total record count. + Type: Returns_Booleantrue if the results of the query exceeds the total record count; otherwise, false.. + + + Contains a collection of image objects. + + + Initializes a new instance of the class. + + + Identifies a record. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the logical name and entity ID. + Type: Returns_String. The logical name of the entity. + Type: Returns_Guid. The ID of the record. + + + Determines whether two instances are equal. + Type: Returns_Booleantrue if the specified is equal to the object; otherwise, false. + Type: Returns_Object. The to compare with the current . + + + Serves as a hash function for this type. + Type: Returns_Int32 +The hash code for the current . + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the ID of the record. + Type: Returns_Guid +The ID of the record. + + + Gets or sets the logical name of the entity. + Type: Returns_StringThe logical name of the entity. + + + Gets or sets the value of the primary attribute of the entity. + Type: Returns_StringThe value of the primary attribute of the entity. + + + Contains a collection of entity references. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the list of entity references. + Type: Returns_IList<>. A list of entity references. + + + Contains values to indicate the role the entity plays in a relationship. + + + Specifies that the entity is the referenced entity. Value = 1. + + + Specifies that the entity is the referencing entity. Value = 0. + + + Indicates the state of an entity as tracked by the and indicates to the server the operation that should be performed for a related entity. + + + The entity was changed since the last call to . Value = 2. + + + The entity was created since the last call to . Value = 1. + + + The entity is unchanged since the last call to . Value = 0. + + + Contains a collection of objects that provide details on an error. + + + Initializes a new instance of the class. + + + Contains the response from execution of a message request. + + + Initializes a new instance of the class. + + + Gets or sets the structure that contains extra data. + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the organization service fault that occurred when a message request was executed. + Type: The organization service fault. + + + Gets or sets the numerical position of a message request in a request collection. + Type: Returns_Int32The position of a message request in a request collection, starting at zero. + + + Gets or sets the response that is returned from executing a message request. + Type: The message response. + + + Contains a collection of instances. + + + Initializes a new instance of the class. + + + Defines the execution behavior of . + + + Initializes a new instance of the class. + + + Gets or sets a value indicating whether further execution of message requests in the collection should continue if a fault is returned for the current request being processed. + Type: Returns_Booleantrue if message request processing should continue; otherwise, false. + + + Gets or sets the structure that contains extra data. + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets a value indicating if a response for each message request processed should be returned. + Type: Returns_Booleantrue if responses should be returned for each message request processed; otherwise, false. + + + Defines the possible field permission types. + + + The action is allowed. Value = 4. + + + The action is not allowed. Value = 0. + + + Validates the field permission value. + Type: Returns_Int32. The value to validate. + + + Contains a collection of formatted values for the attributes for an entity. + + + Initializes a new instance of the class. + + + Base interface that defines the contextual information passed to a plug-in or custom workflow activity at run-time. + + + Gets the GUIDGUID of the business unit that the user making the request, also known as the calling user, belongs to. + Type: Returns_GuidThe GUID of the business unit. This property corresponds to the BusinessUnitId property, which is the primary key for the BusinessUnit entity. + + + Gets the GUID for tracking plug-in or custom workflow activity execution. + Type: Returns_GuidThe GUID for tracking plug-in or custom workflow activity execution. + + + Gets the current depth of execution in the call stack. + Type: Returns_Int32T the current depth of execution in the call stack. + + + Gets the GUID of the system user account under which the current pipeline is executing. + Type: Returns_GuidThe GUID of the system user account under which the current pipeline is executing. This property corresponds to the SystemUserId property, which is the primary key for the SystemUser entity. + + + Gets the parameters of the request message that triggered the event that caused the plug-in to execute. + Type: The parameters of the request message that triggered the event that caused the plug-in to execute. + + + Gets whether the plug-in is executing from the pn_crm_outlook_offline_access client while it is offline. + Type: Returns_Booleantrue if the plug-in is executing from the pn_crm_outlook_offline_access client while it is offline; otherwise, false. + + + Gets a value indicating if the plug-in is executing within the database transaction. + Type: Returns_Booleantrue if the plug-in is executing within the database transaction; otherwise, false. + + + Gets a value indicating if the plug-in is executing as a result of the pn_crm_outlook_offline_access client transitioning from offline to online and synchronizing with the pn_microsoftcrm server. + Type: Returns_Booleantrue if the the plug-in is executing as a result of the pn_crm_outlook_offline_access client transitioning from offline to online; otherwise, false. + + + Gets a value indicating if the plug-in is executing in the sandbox. + Type: Returns_Int32Indicates if the plug-in is executing in the sandbox. + + + Gets the name of the Web service message that is being processed by the event execution pipeline. + Type: Returns_StringThe name of the Web service message being processed by the event execution pipeline. + + + Gets the mode of plug-in execution. + Type: Returns_Int32The mode of plug-in execution. + + + Gets the date and time that the related System Job was created. + Type: Returns_DateTimeThe date and time that the related System Job was created. + + + Gets the GUID of the related System Job. + Type: Returns_GuidThe GUID of the related System Job. This corresponds to the AsyncOperationId attribute, which is the primary key for the System Job entity. + + + Gets the GUID of the organization that the entity belongs to and the plug-in executes under. + Type: Returns_GuidThe GUID of the organization that the entity belongs to and the plug-in executes under. This corresponds to the OrganizationId attribute, which is the primary key for the Organization entity. + + + Gets the unique name of the organization that the entity currently being processed belongs to and the plug-in executes under. + Type: Returns_StringThe unique name of the organization that the entity currently being processed belongs to and the plug-in executes under. + + + Gets the parameters of the response message after the core platform operation has completed. + Type: The parameters of the response message after the core platform operation has completed. + + + Gets a reference to the related SdkMessageProcessingingStep or ServiceEndpoint. + Type: A reference to the related SdkMessageProcessingingStep or ServiceEndpoint.entity. + + + Gets the properties of the primary entity after the core platform operation has been completed. + Type: The properties of the primary entity after the core platform operation has been completed. + + + Gets the properties of the primary entity before the core platform operation has begins. + Type: The properties of the primary entity before the core platform operation has begins. + + + Gets the GUID of the primary entity for which the pipeline is processing events. + Type: Returns_GuidThe GUID of the primary entity for which the pipeline is processing events. For example, if the event pipeline is processing an account, this corresponds to the AccountId attribute, which is the primary key for the Account entity. + + + Gets the name of the primary entity for which the pipeline is processing events. + Type: Returns_StringThe name of the primary entity for which the pipeline is processing events. + + + Gets the GUID of the request being processed by the event execution pipeline. + Type: Returns_Nullable<Returns_Guid>The GUID of the request being processed by the event execution pipeline. This corresponds to the property, which is the primary key for the class from which specialized request classes are derived. + + + Gets the name of the secondary entity that has a relationship with the primary entity. + Type: Returns_StringThe name of the secondary entity that has a relationship with the primary entity. + + + Gets the custom properties that are shared between plug-ins. + Type: The custom properties that are shared between plug-ins. + + + Gets the GUID of the system user for whom the plug-in invokes web service methods on behalf of. + Type: Returns_GuidThe GUID of the system user for whom the plug-in invokes web service methods on behalf of. This property corresponds to the SystemUserId property, which is the primary key for the SystemUser entity. + + + Represents an exception that occurred during plug-in execution. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class with an operation status. + Type: . The status of the operation. + + + Initializes a new instance of the class with an operation status, an error code, and an error message. + Type: Returns_String. The error message that explains the reason for the exception. + Type: . The status of the operation. + Type: Returns_Int32. The error code that identifies the specific error. + + + Initializes a new instance of the class with an operation status and an error message. + Type: Returns_String. The error message that explains the reason for the exception. + Type: . The status of the operation. + + + Initializes a new instance of the class with an error message. + Type: Returns_String. The error message that explains the reason for the exception. + + + Initializes a new instance of the class with a reference to the inner exception that is the cause of this exception. + Type: Returns_Exception. The inner exception that is the cause of this exception. + Type: Returns_String. The error message that explains the reason for the exception. + + + Sets the SerializationInfohttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.serializationinfo.aspx with information about the exception. + Type: StreamingContexthttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.streamingcontext.aspx. The contextual information about the source or destination. + Type: SerializationInfohttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.serializationinfo.aspx. The serialized object data about the exception being thrown. + + + Gets the numeric code that identifies a specific error condition. + Type: Returns_Int32The error code. + + + Gets the status of the plug-in exception. + Type: The status of the plug-in exception. + + + Provides programmatic access to the metadata and data for an organization. + + + Creates a link between records. + Type: . property_relatedentities to be associated. + Type: . The name of the relationship to be used to create the link. + Type: Returns_String. The logical name of the entity that is specified in the entityId parameter. + Type: Returns_Guid. property_entityid to which the related records are associated. + + + Creates a record. + Type:Returns_Guid +The ID of the newly created record. + Type: . An entity instance that contains the properties to set in the newly created record. + + + Deletes a record. + Type: Returns_Guid. The ID of the record that you want to delete. + Type: Returns_String. The logical name of the entity that is specified in the entityId parameter. + + + Deletes a link between records. + Type: . A collection of entity references (references to records) to be disassociated. + Type: . The name of the relationship to be used to remove the link. + Type: Returns_String. The logical name of the entity that is specified in the entityId parameter. + Type: Returns_Guid. The ID of the record from which the related records are disassociated. + + + Executes a message in the form of a request, and returns a response. + Type: The response from the request. You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + Type: . A request instance that defines the action to be performed. + + + Retrieves a record. + Type: +The requested entity. + Type: Returns_Guid. The ID of the record that you want to retrieve. + Type: . A query that specifies the set of columns, or attributes, to retrieve. + Type: Returns_String. The logical name of the entity that is specified in the entityId parameter. + + + Retrieves a collection of records. + Type: The collection of entities returned from the query. + Type: . A query that determines the set of records to retrieve. + + + Updates an existing record. + Type: . An entity instance that has one or more properties set to be updated in the record. + + + Represents a factory for creating instances. + + + Returns an instance for the organization that the specified user is a member of. + Type: An organization service factory object. + Type: Returns_Nullable<Returns_Guid>. Specifies the system user that calls to the service are made for. A null value indicates the SYSTEM user. When called in a plug-in, a Guid.Empty value indicates the same user as . . When called in a custom workflow activity, a Guid.Empty value indicates the same user as IWorkflowExecutionContext.. Any other value indicates a specific system user. + + + Base interface for a plug-in. + + + Executes plug-in code in response to an event. + Type: Returns_IServiceProvider. A container for service objects. Contains references to the plug-in execution context (), tracing service (), organization service (), and notification service (). + + + Defines the contextual information passed to a plug-in at run-time. Contains information that describes the run-time environment that the plug-in is executing in, information related to the execution pipeline, and entity business information. + + + Gets the execution context from the parent pipeline operation. + Type: The execution context from the parent pipeline operation. + + + Gets the stage in the execution pipeline that a synchronous plug-in is registered for. + Type: Returns_Int32. Valid values are 10 (pre-validation), 20 (pre-operation), 40 (post-operation), and 50 (post-operation, deprecated). + + + Provides the early-bound entity types assembly that was created using the CrmSvcUtil utility. + + + Gets or sets the assembly that contains the early-bound entity types. + Type: Returns_AssemblyThe assembly. + + + Posts the plug-in execution context to the windows_azure_service_bus. + + + Posts the execution context to the specified service endpoint in the cloud. + Type: Returns_StringThe result. Only a two-way or REST listener will return a string back to the caller. + Type: . The event execution context. + Type: . The service endpoint to post to in the cloud. + + + Defines a plug-in that implements the service behavior of a windows_azure_service_bus listener. + + + Executes plug-in code in response to an event. + Type: . Defines the contextual information passed to a plug-in at run-time. + + + Provides a method of logging run-time trace information for plug-ins. + + + Logs trace information. + Type: Returns_String. Information to be logged. + Type: Returns_Object[]. Not documented at this time. + + + Defines a plug-in that implements the service behavior of a windows_azure_service_bus listener. + + + Executes plug-in code in response to an event. + Type: Returns_String The response from the request. + Type: . Defines the contextual information passed to a plug-in at run-time. + + + Defines a plug-in that implements the service behavior of a windows_azure_service_bus listener. + + + Executes plug-in code in response to an event. + Type: Returns_String The response from the request. + Type: . Defines the contextual information passed to a plug-in at run-time. + + + Resolves known organization message request and response types for the SDK contracts. + + + Initializes a new instance of the class. + + + Enables users to map a xsi:type name to any type. + Type: Returns_Type +The type the xsi:type name and namespace is mapped to. + Returns_String. The xsi:type namespace to map. + Returns_String. The xsi:type name to map. + Returns_Type. The type declared in the data contract. + System.Runtime.Serialization.DataContractResolverhttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractresolver.aspx. The known type resolver. + + + Maps any type to a new xsi:type representation. + Type: Returns_Booleantrue if mapping succeeded; otherwise, false. + System.Xml.XmlDictionaryStringhttp://msdn.microsoft.com/en-us/library/system.xml.xmldictionarystring.aspx. The xsi:type namespace. + System.Runtime.Serialization.DataContractResolverhttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractresolver.aspx. The known type resolver. + Returns_Type. The type to map. + Returns_Type. The type declared in the data contract. + System.Xml.XmlDictionaryStringhttp://msdn.microsoft.com/en-us/library/system.xml.xmldictionarystring.aspx. The xsi:type name. + + + Contains a collection of translations for a label. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: . The label for the language of the current user. + Type: []. An array of localized labels. + + + Initializes a new instance of the class. + Type: Returns_String. The string for the user localized label. + Type: Returns_Int32. The language code for the label. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets the collection of localized labels. + Type: The collection of localized labels. + + + Gets or set the label for the language of the current user. + Type: The label for the language of the current user. + + + Contains a localized label, including the label string and the language code. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the label string and the language code. + Type: Returns_String +The localized label string.. + Type: Returns_Int32 +The language code for the label. + + + Gets or sets whether the label is managed. + Type: Returns_Nullable<Returns_Boolean>true if the label is managed; otherwise, false. + + + Gets or sets the localized label string. + Type: Returns_String +The localized label string.. + + + Gets or sets the language code for the label. + Type: Returns_Int32 +The language code for the label.. + + + Defines a collection of . + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_IList<>. Sets a list of localized labels. + + + Represents a strongly typed managed property. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String. The logical name for the managed property. + + + Gets or sets whether the managed property value can be changed. + Type: Returns_Booleantrue if the managed property value can be changed; otherwise, false. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets the logical name for the managed property. + Type: Returns_String +The logical name for the managed property. + + + Gets or sets the value of the managed property. + Type: Returns_String +The value of the managed property. + + + Contains the value for a money attribute. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the value. + Type: Returns_Decimal. The value of the attribute. + + + Determines whether two instances are equal. + Type: Returns_Booleantrue if the specified is equal to the object; otherwise, false. + Type: Returns_Object. The to compare with the current . + + + Returns a hash code value for this type. + Type: Returns_Int32 +The hash code for the current Money. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the value of the attribute. + Type: Returns_DecimalThe value of the attribute. + + + Represents the current state of an operation. + + + The operation has been canceled. Value = 1. + + + The operation has failed. Value = 0. + + + The operation is being retried. Value = 2. + + + The operation has succeeded. Value = 4. + + + The operation has been suspended. Value = 3. + + + Represents a value for an attribute that has an option set. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_Int32. The option set value. + + + Returns true if the specified OptionSetValue is equal to this OptionSetValue value, otherwise returns false. + Type: Returns_Booleantrue if the specified is equal to this value; otherwise, false. + Type: , The to compare. + + + Gets a hash code for the value. + Type: Returns_Int32 +The hash code for the value. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the current value. + Type: Returns_Int32 +The current value. + + + Contains the data needed to execute a request and the base class for all organization requests. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the request name parameter. + Type: Returns_String. The name of the request. + + + ExtensionData Optional. + Type: Returns_ExtensionDataObject +The extension data. + + + Gets or sets the indexer for the Parameters collection. + Type: Returns_Object +The indexer for the request. + Type: Returns_String. The name of the parameter. + + + Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes. + Type: The collection of parameters for the request. Required, but is supplied by derived classes. + + + Gets or sets the ID of an asynchronous operation (system job). Optional. + Type: Returns_Nullable<Returns_Guid>The ID of an asynchronous operation (system job). + + + Gets or sets the name of the request. Required, but is supplied by derived classes. + Type: Returns_StringThe name of the request. + + + Contains a collection of organization requests. + + + Initializes a new instance of the class. + + + Contains the response from a request and the base class for all organization responses. + + + Initializes a new instance of the class. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets an indexer for the Results collection. + Type: Returns_ObjectThe indexer for the collection. + Type: Returns_String. The name of the parameter. + + + Gets or sets the name of the response. + Type: Returns_StringThe name of the response. + + + Gets the results of the request that was performed. + Type: The results of the request that was performed. + + + Represents an organization service fault. + + + Initializes a new instance of the class. + + + Gets the fault instance that caused the current fault. + Type: The fault instance that caused the current fault. + + + Gets the text of the fault trace. + Type: Returns_StringThe text of the fault trace. + + + Provides a collection of parameters for a request. + + + Initializes a new instance of the class. + + + internal + + + internal + + + internal + + + internal + Returns_String + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + Returns . + + + internal + Returns_Int32 + + + internal + Returns_ExtensionDataObject + + + internal + + + internal + + + Contains a collection of related entities. + + + Initializes a new instance of the class. + + + Gets a value indicating whether the is read-only. + Type: Returns_Booleantrue if the is read-only; otherwise, false. + + + Represents a relationship between two entities. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the schema name property. + Type: Returns_String. The name of the relationship. + + + Determines whether two instances are equal. + Type: Returns_Booleantrue if the specified Relationship is equal to the Relationship Object; otherwise, false. + Type: Returns_Object. The Relationship to compare with the current Relationship. + + + Serves as a hash function for this type. + Type: Returns_Int32 +The hash code for the current Relationship. + + + Returns a String that represents the current Relationship. + Type: Returns_String +The name of the current Relationship. + + + ExtensionData + Type: +The extension data. + + + Gets or sets the entity role: referenced or referencing. + Type: <> +The entity role. + + + Gets or sets the name of the relationship. + Type: Returns_String +The name of the relationship as defined defined in the property. + + + Provides a collection of relationship queries. + + + Initializes a new instance of the class. + + + Used by the code generation tool to create classes based on entities. + + + Initializes a new instance of the class + Type: Returns_String +The schema name for the entity relationship. + + + Initializes a new instance of the class + Type: The entity role for the entity. + Type: Returns_String +The schema name for the entity relationship. + + + Gets the entity role for the entity. + Type: The entity role for the entity. + + + Gets the schema name for the entity relationship. + Type: Returns_String +The schema name for the entity relationship. + + + Defines the contextual information sent to a remote service endpoint at run-time. + + + Initializes a new instance of the RemoteExecutionContext class. + + + Gets the global unique identifier of the business unit that the entity currently being processed by the event execution pipeline belongs to. + Type: Returns_GuidThe global unique identifier of the business unit. + + + Gets the global unique identifier for tracking plug-in execution. + Type: Returns_GuidThe global unique identifier for tracking plug-in execution. + + + Gets the current depth of execution in the call stack. + Type: Returns_Int32The current depth of execution in the call stack. + + + A structure that contains extra data. + Type: Returns_ExtensionDataObjectA structure that contains extra data. + + + Gets the global unique identifier of the system user account under which the current pipeline is executing. + Type: Returns_GuidThe global unique identifier of the system user account. + + + Gets the parameters of the request message that triggered the event that caused the plug-in to execute. + Type: The parameters of the request message that triggered the event. + + + Gets a value indicating if the plug-in is executing from the pn_crm_outlook_offline_access client while it is offline. + Type: Returns_Booleantrue if the client is offline; otherwise false. + + + Gets a value indicating if the plug-in is executing within the database transaction. + Type: Returns_Booleantrue if the plug-in is executing within the database transaction; otherwise, false. + + + Gets a value indicating if the plug-in is executing as a result of the pn_crm_outlook_offline_access client transitioning from offline to online and synchronizing with the pn_microsoftcrm server. + Type: Returns_Booleantrue if the plug-in is executing as a result of the client synchronizing with the pn_microsoftcrm server; otherwise, false. + + + Gets a value indicating if the plug-in is executing in the sandbox. + Type: Returns_Int32A value indicating if the plug-in is executing in the sandbox. Valid values are 1 (none) or 2 (sandbox). + + + Gets the name of the Web service message that is being processed by the event execution pipeline. + Type: Returns_StringThe name of the Web service message. + + + internal + Type: . + + + Gets the mode of plug-in execution. + Type: Returns_Int32The mode of plug-in execution. Valid values are 0 (synchronous) and 1 (asynchronous). + + + Gets the date and time that the related System Job was created. + Type: Returns_DateTimeThe date and time the related System Job was created. + + + Gets the global unique identifier of the related System Job. + Type: Returns_GuidThe global unique identifier of the related System Job. + + + Gets the global unique identifier of the organization that the entity belongs to and the plug-in executes under. + Type: Returns_GuidThe global unique identifier of the organization. + + + Gets the unique name of the organization that the entity currently being processed belongs to and the plug-in executes under. + Type: Returns_StringThe unique name of the organization. + + + Gets the parameters of the response message after the core platform operation has completed. + Type: The parameters of the response message. + + + Gets a reference to the related SdkMessageProcessingingStep or ServiceEndpoint. + Type: The reference to the related SdkMessageProcessingingStep or ServiceEndpoint. + + + Gets the remote execution context from the parent operation. + Type: The remote execution context from the parent operation. + + + Gets the properties of the primary entity after the core platform operation has been completed. + Type: The properties of the primary entity. + + + Gets the properties of the primary entity before the core platform operation has begins. + Type: The properties of the primary entity. + + + Gets the global unique identifier of the primary entity for which the pipeline is processing events. + Type: Returns_GuidThe global unique identifier of the primary entity. + + + Gets the name of the primary entity for which the pipeline is processing events. + Type: Returns_StringThe name of the primary entity. + + + Gets the global unique identifier of the request being processed by the event execution pipeline. + Type: Returns_Nullable<Returns_Guid>The global unique identifier of the request. + + + Gets the name of the secondary entity that has a relationship with the primary entity. + Type: Returns_StringThe name of the secondary entity. + + + Gets the custom properties that are shared between plug-ins. + Type: The custom properties that are shared between plug-ins. + + + Gets the stage in the execution pipeline that a synchronous plug-in is registered for. + Type: Returns_Int32. Valid values are 10, 20, 40, and 50The stage in the execution pipeline that a synchronous plug-in is registered for. + + + Gets the global unique identifier of the system user for whom the plug-in invokes Web service methods on behalf of. + Type: Returns_GuidThe global unique identifier of the system user. + + + Represents an exception that occurred when saving changes to the . + + + Initializes a new instance of the class. + + + Initializes a new instance of the class using method call results. + Type: . The results returned from a call. + + + Initializes a new instance of the class using an inner exception and method call results. + Type: Returns_Exception. The inner exception that is the cause of this exception. + Type: . The results returned from a call. + + + Initializes a new instance of the class with an error message. + Type: Returns_String. The error message that explains the reason for the exception. + + + Initializes a new instance of the class using an error message and method call results. + Type: Returns_String. The error message that explains the reason for the exception. + Type: . The results returned from a call. + + + Initializes a new instance of the class with and error message and an inner exception. + Type: Returns_Exception. The inner exception that is the cause of this exception. + Type: Returns_String. The error message that explains the reason for the exception. + + + Initializes a new instance of the class with and error message, an inner exception, and method call results. + Type: Returns_Exception. The inner exception that is the cause of this exception. + Type: Returns_String. The error message that explains the reason for the exception. + Type: . The results returned from a call. + + + Sets the SerializationInfohttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.serializationinfo.aspx with information about the exception. + Type: StreamingContexthttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.streamingcontext.aspx. The contextual information about the source or destination. + Type: SerializationInfohttp://msdn.microsoft.com/en-us/library/system.runtime.serialization.serializationinfo.aspx. The serialized object data about the exception being thrown. + + + Gets the results from a method call. + Type: The collection of results. + + + Contains the result of the save changes operation returned from the organization web service. + + + Gets the exception that occurred when a message request was processed by the organization web service. + Type: Returns_ExceptionThe exception that occurred. + + + Gets the message request that was submitted to the organization web service. + Type: The request instance that was submitted. + + + Gets the result of a successful operation against the organization web server. + Type: The response to the request. + + + Provides a collection of results for a save changes operation. + + + Gets whether there is an error. + Type: Returns_Booleantrue if there is an error; otherwise, false. + + + Gets how the method behaves when an error occurs. + Type: +The option that describes the save changes behavior. + + + Represents a fault at a service endpoint in the cloud. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class with the specified fault reason. + Type: Returns_String. The reason for the fault. + + + Gets the details of the fault. + Type: The details of the fault. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets the message for the fault. + Type: Returns_StringThe message for the fault. + + + Represents client-side user logon credentials. + + + Initializes a new instance of the AuthenticationCredentials class. + + + Gets or sets the scope that a security token request applies to, as defined in the WS-Trust specification. + Type: Returns_URI The scope that a security token request applies to. + + + Gets or sets the service credential authentication settings for use on the client side of communication. + Type: Returns_ClientCredentials The service credential authentication settings. + + + Gets or sets the identity provider address. + Type: Returns_URI The identity provider address. + + + Gets or sets the security token response. + Type: The security token response. + + + Gets or sets additional credentials required by the site. + Type: The additional credentials required by the site. + + + Gets or sets the UPN that is an internet-style login name for a user based on the Internet standard RFC 822. + Type: Returns_StringThe UPN. + + + internal + + + Identifies the type of identity provider used for authentication. + + + An Active Directory identity provider. Value = 1. + + + A federated claims identity provider. Value = 2. + + + A pn_Windows_Live_ID identity provider. Value = 3. + + + No identity provider. Value = 0. + + + An online (pn_Office_365) federated identity provider. Value = 4. + + + Contains arguments for a cancel event. + + + Initializes a new instance of the CancelEventArgs class. + + + Gets or sets whether the event is cancelled. + Type: Returns_Booleantrue if the event is cancelled, otherwise false. + + + Contains arguments for a WCF channel event. + + + Initializes a new instance of the ChannelEventArgs class using a message. + Type: Returns_String. The message describing the event. + + + Gets the message describing the event. + Type: Returns_StringThe message describing the event. + + + Contains arguments for a faulted WCF channel event. + + + Initializes a new instance of the ChannelFaultedEventArgs class using an exception. + Type: Returns_Exception. An exception or null. + + + Initializes a new instance of the ChannelFaultedEventArgs class using message and an exception. + Type: Returns_Exception. An exception or null. + Type: Returns_String. A message describing the event. + + + Gets the exception related to the event. + Type: Returns_Exceptionthe exception related to the event. + + + Gets the message describing the event. + Type: Returns_StringThe message describing the event. + + + Contains a policy configuration that identifies a Secure Token Service for use with claims authentication. + + + Specifies the type of authentication used by a client application. + + + Kerberos authentication. Value = 0. + + + A security token for use with claims authentication. Value = 1. + + + Contains a collection of objects. + + + constructor_initializes class. + + + Gets or sets the issuer endpoint dictionary. + Returns . + Type: Returns_URI. Specifies the key used to retrieve a object from the collection. + + + Implements and provides an authenticated WCF channel to the discovery service endpoint. + + + Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and a security token response. + Type: . A service configuration. + Type: . A security token response. + + + Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and client credentials. + Type: . A service configuration. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Initializes a new instance of the DiscoveryServiceProxy class using a service management and a security token response. + Type: . A service management. + Type: . A security token response. + + + Initializes a new instance of the DiscoveryServiceProxy class using a service management and client credentials. + Type: . A service management. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Initializes a new instance of the DiscoveryServiceProxy class using a discovery service URI, home realm URI, and client and device credentials. + Type: Returns_ClientCredentials. The pn_Windows_Live_ID device credentials. + Type: Returns_URI. This parameter is set to a non-null value when a second ADFS instance is configured as an identity provider to the ADFS instance that pn_CRM_2011 has been configured with for claims authentication. The parameter value is the URI of the WS-Trust metadata endpoint of the second ADFS instance. + Type: Returns_URI. The URI of the discovery service. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + See IDiscoveryService. + Type: The response from executing the discovery service request. + Type: . A discovery service request. + + + Identifies the new and previous service endpoint URL’s for an organization. + + + Gets the new service endpoint URL for an organization. + Type: Returns_URI The new service endpoint URL for an organization. + + + Gets the previous service endpoint URL for an organization. + Type: Returns_URI The previous service endpoint URL for an organization. + + + Identifies the logical name of an entity. + + + Initializes a new instance of the class. + Type: Returns_String. The logical name of the entity + + + Gets the logical name of the entity. + Type: Returns_String The logical name of the entity. + + + Represents an identity provider. + + + Initializes a new instance of the IdentityProvider class. + + + The type of identity provider used by an endpoint. + Type: The identity provider type. Value = 0 (ADFS), 1 (LiveId), 2 (OrgId). + + + Specifies the URL of the identity provider service. + Type: Returns_URI The URL of the identity provider service. + + + A collection of identity providers. + + + Initializes an instance of the class. + + + Contains the configuration information required to use an identity provider. + + + Gets or sets the scope that a security token request applies to, as defined in the WS-Trust specification. + Type: Returns_StringThe scope that a security token request applies to, as defined in the WS-Trust specification. + + + Gets the endpoint of the identity provider. + Type: Returns_URI The endpoint of the identity provider. + + + Gets or sets the scope that a pn_Windows_Live_ID security token request applies to, as defined in the WS-Trust specification. + Type: Returns_String The scope that a pn_Windows_Live_ID security token request applies to, as defined in the WS-Trust specification. + + + Gets or sets a policy configuration that identifies a Secure Token Service (STS). + Type: Returns_String The policy configuration that identifies a Secure Token Service (STS). + + + Specifies the supported types of identity providers. + + + pn_Active_Directory Federation Services. Value = 0. + + + pn_Windows_Live ID. Value = 1. + + + OrgId, also known as User Id. Value = 2. + + + Contains the available identity providers for a pn_microsoftcrm service. + + + Initializes a new instance of the IdentityProviderTypeDictionary class. + + + Represents the switching of a web service endpoint for an organization from a primary URL to an alternate URL. + + + Notification event that a failover has completed and the organization’s current endpoint has been switched to an alternate endpoint. + + + Notification event that a failover has occurred and a switch from the organization’s current endpoint to an alternate endpoint is required. + + + Checks if the specified endpoint URI is different from the organization’s alternate endpoint URI. + Type: Returns_Booleantrue if the two URIs are different and an endpoint switch can be attempted, otherwise false. + Type: Returns_URI. Specifies an endpoint URI. + + + Fires the event, then if is true, switches the organization’s endpoints by calling . + Type: Returns_Booleantrue if the endpoint switch was successful, otherwise false. + + + Switches the organization’s current endpoint to an alternate endpoint. + + + Gets the alternate web service endpoint for accessing an organization, if one exists. + Type: Returns_URIThe alternate web service endpoint. + + + Gets or sets whether automatic switching from the current endpoint of the web service to an alternate endpoint is enabled. + Type: Returns_Booleantrue if the automatic switching is enabled; otherwise, false. + + + Gets whether the organization’s current endpoint is the primary endpoint. + Type: Returns_Booleantrue if the current endpoint is the primary endpoint; otherwise, false. + + + Gets the primary web service endpoint for accessing an organization. + Type: Returns_URIThe primary web service endpoint. + + + Represents a configured pn_microsoftcrm service. + + + Authenticates against the trusted pn_microsoftcrm Secure Token Service using a security token. + Type: The security token response. + Type: Returns_SecurityToken. A security token retrieved from an identity provider other than the trusted pn_microsoftcrm Secure Token Service (when in federation mode). + + + Authenticates against the trusted pn_microsoftcrm Secure Token Service using client credentials. + Type: The security token response. + Type: Returns_ClientCredentials. Specifies a client credential instance containing either Windowshttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.clientcredentials.windows.aspx credentials or UserNamehttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.clientcredentials.username.aspx credentials. + + + Authenticates against pn_Windows_Live_ID using client credentials and a security token response. + Type: The security token response. + Type: . A security token response received from authenticating the user's device with pn_Windows_Live_ID. + Type: Returns_ClientCredentials. Specifies a client credential instance containing UserNamehttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.clientcredentials.username.aspx credentials where the UserName and Password properties are set. + + + Authenticates against a remote Secure Token Service (STS) using a security token retrieved from an identity provider (when in federation mode). + Type: +The security token response. + Type: Returns_URI. Specifies the URI of the cross realm STS metadata endpoint. + Type: Returns_String. Specifies the identifier of the STS to authenticate on behalf of. + Type: Returns_SecurityToken. Specifies a security token issued from an identity provider. + + + Authenticates against a remote Secure Token Service (STS) using client credentials. + Type: The security token response. + Type: Returns_URI. Specifies the URI of the cross realm STS metadata endpoint. + Type: Returns_String. Specifies the identifier of the STS to authenticate on behalf of. + Type: Returns_ClientCredentials. Specifies a client credentials instance with the Windows credentials or the UserName (.UserName and .Password) set. + + + Authenticates a registered device against pn_Windows_Live_ID. + Type: +The security token response. + Type: Returns_ClientCredentials. Specifies a client credential instance. + + + Creates a client factory that uses the default Kerberos credentials. + Type: Returns_ChannelFactory_Generic<TService>The channel factory. + + + Creates a WCF channel factory with a specified type of authentication. + Type: Returns_ChannelFactory_Generic<TService>The channel factory. + Type: . Specifies the type of authentication. + + + Creates a WCF channel factory that supports passing the client credentials, regardless of whether in federation authentication mode or not. + Type: Returns_ChannelFactory_Generic< TService>The channel factory. + Type: Returns_ClientCredentials. Specifies client authentication credentials. + + + Returns the identity provider used for a specified user when accessing a service. + Type: The identity provider. + Type: Returns_String. Specifies a user principal name (UPN). + + + Gets the type of authentication in use by the identity provider of the service. + Type: Thee type of authentication being used. + + + Gets the available endpoints of the user’s home realm identity provider. + Type: The available endpoints. + + + Gets or sets the endpoint used by the Secure Token Service (STS) to issue the trusted token. + Type: The endpoint used by the Secure Token Service (STS) to issue the trusted token. + + + Gets or sets the current endpoint in use by a service. + Type: Returns_ServiceEndpointThe current endpoint in use by a service. + + + Gets the available endpoints of the security token service (STS). + Type: The available endpoints of the security token service (STS). + + + Gets the policy configuration that identifies a Secure Token Service (STS). + Type: The policy configuration. + + + Gets the available endpoints of the service. + Type: The available endpoints of the service. + + + An interface which provides a simpler authentication experience. + + + Authenticates the logged on user with the service. + Type: The user’s authentication credentials, including the final security token. + Type: . Specifies the user’s logon credentials. + + + Creates a WCF channel factory that uses the default Kerberos credentials. + Type: Returns_ChannelFactory_Generic<TService> where TService: or The WCF channel factory. + + + Creates a WCF channel factory with a specified type of authentication. + Type: Returns_ChannelFactory_Generic<TService> where TService: or The WCF channel factory. + Type: . Specifies the type of authentication. + + + Creates a WCF channel factory using specified client credentials. + Type: Returns_ChannelFactory_Generic<TService> where TService: or The WCF channel factory. + Type: Returns_ClientCredentials. Specifies the client credentials to use. + + + Returns the identity provider used for a specified user when accessing a service. + Type: The identity provider used for a specified user when accessing a service. + Type: Returns_String. Specifies a user principal name (UPN). + + + Gets the type of authentication in use by the identity provider of the service. + Type: The type of authentication used by the identity provider. + + + Gets the available endpoints of the user’s home realm identity provider. + Type: The available endpoints of the user’s home realm identity provider. + + + Gets or sets the current endpoint in use by a service. + Type: Returns_ServiceEndpointThe current endpoint in use by a service. + + + Gets the available endpoints of the security token service (STS). + Type: The available endpoints of the security token service (STS). + + + Gets the policy configuration that identifies a Secure Token Service (STS). + Type: The policy configuration that identifies a Secure Token Service (STS). + + + Represents an issuer endpoint. + + + Initializes a new instance of the class. + + + Gets or sets the type of credentials the endpoint supports. + Type: The type of credentials the endpoint supports. + + + Gets or sets the actual URL that provides authentication for a particular credential type. + Type: Returns_EndpointAddress The actual URL that provides authentication for a particular credential type. + + + Gets or sets the binding information used to construct a channel to the issuer endpoint from a client. + Type: Returns_Binding The binding information used to construct a channel to the issuer endpoint from a client. + + + Gets or sets the URL that provides metadata about the set of issuer endpoints hosted by a Secure Token Service (STS). + Type: Returns_EndpointAddress The URL that provides metadata about the set of issuer endpoints hosted by a Secure Token Service (STS). + + + Gets or sets the WS-Trust standard, either 1.3 or 2005, that is supported on the endpoint. + Type: Returns_TrustVersionThe WS-Trust standard, either 1.3 or 2005, that is supported on the endpoint. + + + Contains a dictionary of objects. + + + Initializes a new instance of the IssuerEndpointDictionary class. + + + Obtains the issuer endpoint from a Secure Token Service. + Type: The issuer endpoint from a Secure Token Service. + Type: . Specifies the credential type used by the issuer endpoint. + + + Contains identity provider configuration information specific to pn_Windows_Live_ID. + + + Gets the endpoint of the pn_Windows_Live_ID identity provider. + Type: Returns_URI The endpoint of the pn_Windows_Live_ID identity provider. + + + Contains a policy configuration that identifies a Secure Token Service for use with pn_Windows_Live_ID authentication. + + + Represents an Active Directory Federation Services (ADFS) based identity provider. + + + Initializes a new instance of the LocalIdentityProvider class. + + + Describes the synchronization option for sending or receiving entity data to or from a data service using the . + + + New pn_microsoftcrm entities are appended. Existing entities or their original values are not be modified. No client-side changes are lost in this merge. This is the default behavior. Value = 0. + + + pn_microsoftcrm entities are always loaded from persisted storage. Any attribute changes made to entities in the are overwritten by the data source values. Value = 3. + + + All current values on the client are overwritten with current values from the Web service regardless of whether they have been changed on the client. Value = 1. + + + Current values that have been changed on the client are not modified, but any unchanged values are updated with current values from the Web service. No client-side changes are lost in this merge. Value = 2. + + + Contains pn_MS_Online_Services specific information for connecting to the pn_crm_online server. + + + Represents a pn_MS_Online_Services based identity provider. + + + Initializes a new instance of the OnlineIdentityProvider class. + + + Contains general information used when connecting to pn_CRM_Online. + + + Contains the available identity providers for the pn_CRM_Online service. + Type: The available identity providers for the pn_CRM_Online service. + + + Represents the runtime context of the data service that is used to track pn_microsoftcrm entities and that sends and receives entities from the server. + + + Creates a new instance of the class. + Type: . The service that provides access to organization data. + + + Adds the specified link to the set of objects the is tracking. + Type: . The entity related to the source entity by the new link. + Type: . The navigation property or attribute on the source object that returns the related object. + Type: . The source entity for the new link. + + + Adds the specified entity to the set of entities that the is tracking. + Type: . The entity to be tracked by the . + + + Adds a related entity to the and creates the link that defines the relationship between the two entities in a single request. + Type: . The related object that is being added. + Type: . The name of the attribute or navigation property that returns the related object based on an association between the two entities. + Type: . The parent entity that is being tracked by the context. + + + Notifies the to start tracking the specified entity. + Type: . The entity to be tracked. + + + Notifies the to start tracking the specified link that defines a relationship between entity objects. + Type: . The target entity in the link that is bound to the source entity specified in this call. + Type: . The name of the attribute or navigation property on the source object that represents the link between the source and target object. + Type: . The source entity in the new link. + + + Clears all tracking of entities by the . + + + Creates a web service pn_LINQ query for the specified entity. + Type: Returns_IQueryable_Generic<>.The query of the specified entity. + Type: Returns_String. The logical name of the entity to be queried. + + + Creates a Web service pn_LINQ query for the specified entity. + Type: Returns_IQueryable_Generic<>The query of the specified entity. + + + Creates a web service pn_LINQ query for the specified entity. + Type: Returns_IQueryable_Generic<>The query of the specified entity type.. + Type: Returns_IQueryProvider. The provider of the Web service. + Type: Returns_String. The logical name of the entity to be queried. + + + Changes the state of the link to deleted in the list of links being tracked by the . + Type: . The target entity involved in the link that is bound to the source entity. + Type: . The name of the attribute or navigation property on the source entity that is used to access the target entity. + Type: . The source entity in the link to be marked for deletion. + + + Changes the state of the specified entity to be deleted in the . + Type: . The tracked entity to be changed to the deleted state. + + + Changes the state of the specified entity to be deleted in the . + Type: . The tracked entity to be changed to the deleted state. + Type: Returns_Boolean. true to specify entities to be deleted recursively, otherwise false. + + + Removes the entity from the set of entities that the is tracking. + Type: Returns_Boolean. true if the specified entity was detached; otherwise false. + Type: . The entity to be removed from the set of entities that the is tracking. + + + Removes the entity from the set of entities that the is tracking. + Type: Returns_Boolean. Returns true if the specified entity was detached; otherwise false. + Type: . The entity to be removed from the set of entities that the is tracking. + Type: Returns_Boolean. true to specify entities to be detached recursively, otherwise false. + + + Removes the specified link from the list of links being tracked by the . + Type: Returns_Boolean. true if the specified entity was detached; otherwise false. + Type: . The target entity involved in the link that is bound to the source object. + Type: . The name of the attribute or navigation property on the source entity that represents the source in the link between the source and the target. + Type: . The source entity participating in the link to be marked for deletion. + + + Disposes of the service context. + + + Disposes of the service context. + Type: Returns_Boolean. + + + Executes a message in the form of a request, and returns a response. + Type: . The response returned from processing the organization request. + Type: . The request to be sent. + + + Destructor for the class. + + + Gets an enumerable collection of the entities attached to the . + Type: Returns_IEnumerable_Generic<>. + + + Determines whether an entity is attached and therefore being tracked by the . + Type: Returns_Boolean. true if the specified entity is attached to the ; otherwise, false. + Type: . The entity to be determined if it is attached. + + + Determines whether an entity relationship is attached and therefore being tracked by the . + Type: Returns_Boolean. true if the specified entity is attached to the ; otherwise, false. + Type: . The target entity in the link. + Type: . The name of the attribute or navigation property on the source entity that represents the link between the source and target entity. + Type: . The source entity in the link. + + + Determines whether an entity has been deleted. + Type: Returns_Boolean. true if the specified entity is deleted; otherwise, false. + Type: . The entity to be determined if it is deleted. + + + Determines whether a relationship has been deleted. + Type: Returns_Boolean. true if the specified entity is deleted; otherwise, false. + Type: . The target entity in the link. + Type: . The name of the attribute or navigation property on the source entity that represents the link between the source and target entity. + Type: . The source entity in the link. + + + Loads the related entity collection for the specified relationshp. + Type: . The entity with the relationship to be loaded. + Type: . The name of the attribute or navigation property on the entity that represents the relationship to be retrieved. + + + Loads deferred content for a specified property from the Web service. + Type: . The entity that contains the property to load. + Type: Returns_String. The name of the property of the specified entity to load. + + + Virtual (Overridable) method called when entity tracking begins. + Type: . The entity to be tracked by the . + + + Virtual (Overridable) method called when link tracking begins. + Type: . The target entity in the link that is bound to the source entity specified in this call. + Type: . The name of the attribute or navigation property on the source object that represents the link between the source and target object. + Type: . The navigation property or attribute on the source object that returns the related object. + + + Virtual (Overridable) method called after entity tracking ends. + Type: . The entity to be tracked by the . + + + Virtual (Overridable) method called after link tracking ends. + Type: . The navigation property or attribute on the source object that returns the related object. + Type: . The name of the attribute or navigation property on the source object that represents the link between the source and target object. + Type: . The target entity in the link that is bound to the source entity specified in this call. + + + Virtual (Overridable) method called after is called and before a response is returned. + Type: . The response that is to be returned from processing the request. + Type: . The request being processed. + + + Virtual (Overridable) method called after is called and before an exception is re-thrown. + Type: Returns_Exception. The exception thrown from processing the request. + Type: . The request being processed. + + + Virtual (Overridable) method called before is called. + Type: . The request being processed. + + + Virtual (Overridable) method called after an attempt to save data changes. + Type: . The results of the save changes operation. + + + Virtual (Overridable) method called before an attempt to save changes is performed. + Type: . Save changes options. + + + Saves the changes that the is tracking to pn_microsoftcrm. + Type: A that contains status, headers, and errors that result from the call to . + + + Saves the changes that the is tracking to pn_microsoftcrm. + Type: A that contains status, headers, and errors that result from the call to . + Type: . Indicates how changes are saved. + + + Changes the state of the specified entity in the to Modified. + Type: . The tracked entity to be assigned to the Modified state. + + + Changes the state of the specified entity in the to Modified. + Type: . The tracked entity to be assigned to the Modified state. + Type: Returns_Boolean. true if operation should be recursive; otherwise false. + + + Gets or sets the synchronization option for receiving entities from the Web service. + Type: The synchronization option for receiving entities from the Web service. + + + Gets the query provider. + Type: Returns_IQueryProviderThe query provider. + + + Gets or sets the values that are used by the method. + Type: The values that are used by the method. + + + Implements and provides an authenticated WCF channel to the organization service. + + + Initializes a new instance of the class using a service configuration and a security token response. + Type: <>. A service configuration. + Type: . A security token response. + + + Initializes a new instance of the class using a service configuration and client credentials. + Type: <>. A service configuration. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Initializes a new instance of the class using a service management and a security token response. + Type: <>. A service management. + Type: . A security token response. + + + Initializes a new instance of the class using a service configuration and client credentials. + Type: <>. A service management. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Initializes a new instance of the class using a organization service URI, home realm URI, and client and device credentials. + Type: Returns_ClientCredentials. The Windows Live ID device credentials. + Type: Returns_URI. This parameter is set to a non-null value when a second ADFS instance is configured as an identity provider to the ADFS instance that pn_CRM_2011 has been configured with for claims authentication. The parameter value is the URI of the WS-Trust metadata endpoint of the second ADFS instance. + Type: Returns_URI. The URI of the organization service. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Creates a link between records. + Type: . A collection of entity references (references to records) to be associated. + Type: . The name of the relationship to be used to create the link. + Type: Returns_String. The logical name of the entity specified in the entityId parameter. + Type: Returns_Guid. The ID of the record to which the related records will be associated. + + + internal + + + Creates a record. + Type: Returns_GuidThe ID of the created entity. + Type: . An entity instance that contains the properties to set in the newly created record. + + + internal + Type: Returns_GuidThe ID of the created entity. + + + Deletes a record. + Type: Returns_Guid. The ID of the record of the record to delete. + Type: Returns_String. The logical name of the entity specified in the entityId parameter. + + + internal + + + Deletes a link between records. + Type: . A collection of entity references (references to records) to be disassociated. + Type: . The name of the relationship to be used to remove the link. + Type: Returns_String. The logical name of the entity specified in the entityId parameter. + Type: Returns_Guid. The ID of the record from which the related records will be disassociated. + + + internal + + + Enables support for the early-bound entity types. + + + Enables support for the early-bound entity types exposed in a specified assembly. + Type: Returns_Assembly. An assembly containing early-bound entity types. + + + Executes a message in the form of a request, and returns a response. + Type: . You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + Type: . An instance of a request class that defines the action to be performed. + + + internal + Type: . + + + Retrieves a record. + Type: .The requested entity. + Type: Returns_Guid. The ID of the record you want to retrieve. + Type: . A query that specifies the set of columns, or attributes, to retrieve. + Type: Returns_String. The logical name of the entity specified in the entityId parameter. + + + internal + Type: . + + + Retrieves a collection of records. + Type: .A collection of entity records. + Type: . A query that determines the set of records to retrieve. + + + internal + Type: . + + + Updates an existing record. + Type: . An entity instance that has one or more properties set to be updated in the record. + + + internal + + + Gets or sets the ID of the user for whom SDK calls are made on behalf of. + Type: Returns_Guid.The ID of the user for whom SDK calls are made on behalf of. + + + Gets or sets the version of the client. + Type: Returns_String.The version of the client. + + + internal + Type: Returns_String. + + + Contains identity provider configuration information specific to pn_MS_Online_Services ID. + + + Gets the endpoint of the User ID identity provider. + Type: Returns_URI The endpoint of the User ID identity provider. + + + Gets the name of the identity service. + Type: Returns_URIThe name of the identity service. + + + The pn_Windows_Live ID provider that has a trust relationship with the OrgId provider. This is related to the transition of pn_Windows_Live ID organizations to the pn_ms_online_services_environment. + Type: Returns_StringThe identifier of the pn_Windows_Live provider. + + + Contains a policy configuration that identifies a Secure Token Service (STS). + + + Gets an identifier of a Secure Token Service (STS) provider. + Type: Returns_StringThe identifier of a Secure Token Service (STS) provider. + + + Indicates that the assembly contains early-bound types generated by the CrmSvcUtil utility. + + + Initializes a new instance of the class. + + + Enables early-bound entity types on a service proxy. + + + Initializes a new instance of the ProxyTypesBehavior class. + + + Initializes a new instance of the ProxyTypesBehavior class using an assembly containing proxy types generated by the CrmSvcUtil utility. + Type: Returns_Assembly. An assembly containing proxy types. + + + Refer to the IEndpointBehavior Interfacehttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.iendpointbehavior.aspx. + Type: Returns_ServiceEndpoint. A service endpoint. + Type: Returns_BindingParameterCollection. A collection of binding parameters that store information used by binding elements to build factories. + + + Refer to the IEndpointBehavior Interfacehttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.iendpointbehavior.aspx. + Type: Returns_ServiceEndpoint. A service endpoint. + Type: Returns_ClientRuntime. The insertion point for classes that extend the functionality of Windows Communication Foundation (WCF) client objects. + + + Refer to the IEndpointBehavior Interfacehttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.iendpointbehavior.aspx. + Type: Returns_ServiceEndpoint. A service endpoint. + Type: Returns_EndpointDispatcher. The run-time object that exposes properties that enable the insertion of run-time extensions or modifications for messages in service applications. + + + Refer to the IEndpointBehavior Interfacehttp://msdn.microsoft.com/en-us/library/system.servicemodel.description.iendpointbehavior.aspx. + Type: Returns_ServiceEndpoint. A service endpoint. + + + internal + + + internal + + + internal + Type: Returns_Boolean. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + internal + Type: Returns_Int32. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + internal + Type: Returns_Int32. + + + internal + Type: Returns_Boolean. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + Type: Returns_String. + + + internal + Type: Returns_Int32. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + internal + Type: Returns_String. + + + Indicates the name of the message request, represented by the entity, to which the request corresponds. + + + Initializes a new instance of the class. + Type: Returns_String. Specifies the name of the message request. + + + Gets the name of the message request. + Type: Returns_String The name of the message request. + + + Indicates the name of the message response, represented by the entity, to which the response corresponds. + + + Initializes a new instance of the class. + Type: Returns_String. Specifies the name of the message response. + + + Gets the name of the message response. + Type: Returns_String The name of the message response. + + + Describes how the method behaves when an error occurs while updating data in pn_microsoftcrm. + + + The method should continue applying changes to tracked entities in pn_microsoftcrm even if an action fails. Value = 1. + + + The method should throw an exception when an error occurs while updating data in pn_microsoftcrm. Value = 0. + + + Contains a security token response. + + + Initializes a new instance of the SecurityTokenResponse class. + + + Gets or sets the security token request response. + Type: Returns_RequestSecurityTokenResponseThe security token request response. + + + Gets or sets the security token. + Type: Returns_SecurityTokenThe security token. + + + Represents a communication channel to a pn_microsoftcrm service. + + + Initializes a new instance of the class using a channel factory. internal + Type: Returns_ChannelFactory_Generic. A channel factory. + + + Occurs when a service channel transitions into the closed state. + + + Occurs when a service channel transitions into the faulted state. + + + Occurs when a service channel transitions into the opened state. + + + Causes a service channel to transition immediately from its current state into the closing state. + + + Causes a service channel to transition from its current state into the closed state. + + + Creates a new WCF channel. + Type: Returns_IOutputChannel or Returns_IRequestChannelThe new WCF channel associated with the service channel. + + + Disposes the service channel. + + + Finalizes the service channel. + + + Inserts processing on a service channel after it transitions to the closing state due to the invocation of a synchronous close operation. + Type: . Channel event arguments. + + + Inserts processing on a service channel after it transitions to the faulted state due to the invocation of a synchronous operation. + Type: . Channel faulted event arguments. + + + Inserts processing on a service channel after it transitions into the opening state which must complete within a specified interval of time. + Type: . Channel event arguments. + + + Causes a service channel to transition from the created state into the opened state. + + + Gets the WCF channel that is associated with the service channel. + Type: Returns_IOutputChannel or Returns_IRequestChannel The WCF channel associated with the service channel. + + + Gets the communication object that is associated with the service channel. + Type: Returns_ICommunicationObjectThe communication object associated with the service channel. + + + Gets the channel factory associated with the service channel. + Type: Returns_ChannelFactory_GenericThe channel factory associated with the service channel. + + + Represents a client factory for creating service configurations. + + + Creates a service configuration. + Returns . + Specifies the service’s URI. + + + Creates a service management. + Returns . + Specifies the service’s URI. + + + Contains a dictionary of Returns_ServiceEndpoint objects. + + + constructor_initializes class. + + + Container class for metadata information about a service. + + + Initializes a new instance of the class. + + + Gets the errors that occurred during metadata retrieval from the service. + Type: Returns_Collection The errors that occurred during metadata retrieval from the service. + + + Gets the service endpoint URIs. + Type: The service endpoint URIs. + + + Gets the WSDL metadata for the service. + Type: Returns_MetadataSetThe WSDL metadata for the service. + + + Gets the primary and alternate URLs for the service. + Type: The primary and alternate URLs for the service. + + + Provides an abstract base class to encapsulate service connection operations and user authentication management. + + + Initializes a new instance of the class using a service configuration and security token response. + Type: . A service configuration. + Type: . A security token response. + + + Initializes a new instance of the class using a service configuration and client logon credentials. + Type: . A service configuration. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Initializes a new instance of the class using a service management and security token response. + Type: . A service management. + Type: . A security token response. + + + constructor_initializes class using a service management and client logon credentials. + Type: . A service management. + Type: Returns_ClientCredentials. The logon credentials of the client. + + + Initializes a new instance of the class using a service URI, a home realm URI, client logon credentials, and pn_Windows_Live device credentials. + Type: Returns_ClientCredentials. The credentials of a device registered with pn_Windows_Live. Only required when authenticating with pn_CRM_Online, otherwise use null. + Type: Returns_URI. The URI of the WS-Trust metadata endpoint of a second ADFS instance. + Type: Returns_URI. The URI of the service. + Type: Returns_ClientCredentials. The client’s logon credentials. + + + Occurs when a failover recovery has completed and the organization’s current endpoint has been switched to an alternate endpoint. + + + Occurs when a failover has occurred and a switch from the organization’s current endpoint to an alternate endpoint is required. + + + Occurs when a channel factory is closed. + + + Occurs when a channel factory is faulted. + + + Occurs when a channel factory is opened. + + + Closes the service channel and channel factory if they are open, and then invokes . + + + Authenticates the client with a service. + + + Invokes . + Type: A security token response. + + + Authenticates a user in a realm other than the realm that the pn_microsoftcrm server is located in. + Type: A security token response. + + + Invokes . + Type: A security token response. + + + Authenticates a device with pn_Windows_Live. + Type: A security token response. + + + Closes a validated service channel. + Type: Returns_Boolean. true if the service channel should be forced to close; otherwise, false. + + + Custom implementation of Dispose that disposes the service channel and channel factory. + + + Custom implementation of Dispose that disposes the service channel and channel factory. + Type: Returns_Boolean. + + + Implicitly frees allocated service channel and service factory resources. + + + Event handler virtual method for a channel factory that is in a closed state. + Type: . Channel events arguments. + + + Event handler virtual method for a channel factory that is in a faulted state. + Type: . Faulted channel event arguments. + + + Event handler virtual method for a channel factory that is in an opened state. + Type: . Channel event arguments. + + + The maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding. + Type: Returns_TimeSpan.A send operation timespan. + Type: Returns_Binding. The target channel binding. + Type: Returns_TimeSpan. An open operation timespan. + Type: Returns_TimeSpan.A close operation timespan. + + + Checks a message security exception to determine if a service call should be attempted again. + Type: Returns_Nullable<Returns_Boolean>true if the service call should be tried again; otherwise, false or null. + Type: Returns_Nullable<Returns_Boolean>. null if this is the first time the check is performed; otherwise, this is the second time and a retry should not be performed. + Type: Returns_MessageSecurityException. The exception to check. + + + Switches the organization’s current endpoint to an alternate endpoint, if one is available. + Type: Returns_Booleantrue if the switch was successful; otherwise, false. + + + Authenticates the client and creates a new service channel. + + + Gets a WCF channel factory that manages a single channel instance. + Type: Returns_ChannelFactory_GenericA WCF channel factory. + + + Gets the login credentials of the client. + Type: Returns_ClientCredentialsThe login credentials of the client. + + + Gets the pn_Windows_Live credentials of a registered device. + Type: Returns_ClientCredentialsThe pn_Windows_Live credentials of a registered device.. + + + Gets or sets a value that enables automatic switching from the organization’s current endpoint to an alternate endpoint. + Type: Returns_Booleantrue to enable automatic switching from the organization’s current endpoint to an alternate endpoint; otherwise, false. + + + Gets the endpoint switch information from the web service configuration. + Type: The endpoint switch information from the web service configuration. + + + Gets the security token response of the home realm. + Type: The security token response of the home realm. + + + Gets the home realm URI. + Type: Returns_URIThe home realm URI. + + + Gets a value indicating if the WCF channel has been authenticated. + Type: Returns_Booleantrue if the created WCF channel has been authenticated, otherwise false. + + + Gets the security token response. + Type: The security token response. + + + Gets the communication channel used to access a pn_microsoftcrm service. + Type: The communication channel used to access a pn_microsoftcrm service. + + + Gets a service configuration. + Type: A service configuration. + + + Gets a service management. + Type: A service management. + + + Gets or sets the maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding. + Type: Returns_TimeSpanThe maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding. + + + Gets or sets the UPN that is an Internet-style login name for a user based on the Internet standard RFC 822. + Type: Returns_StringThe UPN that is an Internet-style login name for a user based on the Internet standard RFC 822. + + + Contains the primary and alternate endpoints of an organization. + + + Initializes a new instance of the class. + + + Gets or sets the alternate endpoint of an organization. + Type: Returns_URI The alternate endpoint of an organization. + + + Gets a value that indicates if the primary endpoint was generated from the alternate endpoint. + Type: Returns_Booleantrue if the the primary endpoint was generated from the alternate endpoint; otherwise, false. + + + Gets or sets the primary endpoint of an organization. + Type: Returns_URIThe primary endpoint of an organization. + + + Defines the kinds of credentials accepted by a security token service. + + + An asymmetric credential token. Value =4. + + + A bearer token. Value = 7. + + + A certificate configured for user identification. Value = 5. + + + A Kerberos credential. Value = 2. + + + No credential endpoint is found. Value = 0. + + + A symmetric credential token. Value = 3. + + + A username and password credential. Value = 1. + + + An integrated Windows authentication credential. Value = 6. + + + Contains a policy configuration that identifies an Active Directory provider. + + + internal + + + internal + + + Initializes a new instance of the ClientInfo class. + + + Gets or sets the type of client that is querying for patches. + Type: The type of client that is querying for patches. + + + Gets or sets the pn_microsoftcrm version that the client is running. + Type: Returns_StringThe version. + + + Gets or sets the language code for which the client has been configured. + Type: Returns_Int32The language code. + + + Gets or sets the version of pn_MS_Office installed on the client machine. + Type: Returns_StringThe pn_MS_Office version. + + + Gets or sets the ID of the organization for which the client has been configured. + Type: Returns_GuidThe ID of the organization. + + + Gets or sets the operating system version that the client is running. + Type: Returns_StringThe version of the operating system. + + + Gets or sets the list of patches that the client has installed. + Type: Returns_GuidThe list of patched applied. + + + Gets or sets the pn_microsoftcrm system user ID of the client. + Type: Returns_GuidThe ID of the user. + + + internal + + + Initializes a new instance of the class. + + + Type: Returns_Int32 + + + Type: Returns_String + + + Type: Returns_Boolean + + + Type: Returns_String + + + Type: Returns_Guid + + + Type: Returns_String + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + Contains the data that is needed to execute a request and the base class for all discovery service requests. + + + Initializes a new instance of the DiscoveryRequest class. + + + Gets or sets the structure that contains extra data. Optional. + Type: Returns_ExtensionDataObjectThe extension data. + + + Contains the response from the request and is the base class for all discovery service responses. + + + Initializes a new instance of the DiscoveryResponse class. + + + Gets or sets the structure that contains extra data. + Type: Returns_ExtensionDataObjectThe extension data. + + + Indicates the type of network access an endpoint has. + + + Default access. The actual access is determined by the endpoint URL. Value = 0. + + + Internet access. Value = 1. + + + Intranet access. Value = 2. + + + A collection of service endpoints. + + + Initializes a new instance of the class. + + + Identifies the type of service available at an endpoint. + + + The organization data service. Value = 1. + + + The organization service. Value = 0. + + + The Web application service. Value = 2. + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + Provides programmatic access to organization and user information. + + + Executes a discovery service message in the form of a request, and returns a response. + Type: . The response from processing the request. You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter. + Type: . A request instance that defines the action to be performed. + + + Provides detailed information on an organization. + + + Initializes a new instance of the OrganizationDetail class. + + + Gets a collection that identifies the service type and address for each endpoint of the organization. + Type: The collection that identifies the service type and address for each endpoint of the organization. + + + Gets or sets extra data of the organization. + Type: Returns_ExtensionDataObject Extra data of the organization. + + + Gets or sets the friendly name of the organization. + Type: Returns_String The friendly name of the organization. + + + Gets or sets global unique identifier of the organization. + Type: Returns_GuidThe global unique identifier of the organization. + + + Gets or sets the version of the organization. + Type: Returns_String The version of the organization. + + + Gets or sets the state of the organization. + Type: The state of the organization. + + + Gets or sets the unique name of the organization. + Type: Returns_StringThe unique name of the organization. + + + Gets or sets the organization name used in the URL for the organization Web service. + Type: Returns_String The organization name used in the URL for the organization Web service. + + + Provides a collection of instances. + + + Initializes a new instance of the class. + + + Describes the release of an organization. + + + The current release. Value = 0. + + + The pn_CRM_2011 release. Value = 1. + + + Describes the current state of an organization. + + + The organization is disabled. Value = 1. + + + The organization is enabled. Value = 0. + + + Contains the data that is needed to retrieve information about an organization. + + + Initializes a new instance of the RetrieveOrganizationRequest class. + + + Gets or sets the access type of the organization’s service endpoint. + Type: The access type. + + + Indicates the applicable version of pn_microsoftcrm. + Type: The release to retrieve. + + + Gets or sets the unique name of the organization. + Type: Returns_StringThe organization unique name. + + + Contains the response from processing . + + + Initializes a new instance of the RetrieveOrganizationResponse class. + + + Contains detailed information about the target organization. + Type: The details about the organization. + + + Contains the data that is needed to retrieve information on all organizations that the logged on user belongs to. + + + Initializes a new instance of the RetrieveOrganizationsRequest class. + + + Gets or sets the access type of the organizations’ service endpoint. + Type: The access type of the organizations’ service endpoint. + + + Indicates the applicable version of pn_microsoftcrm. + Type: The release to retrieve. + + + Contains the response from processing . + + + Initializes a new instance of the RetrieveOrganizationsResponse class. + + + Contains detailed information about the target organizations. + Type: The details about the organization. + + + Contains the data that is needed to retrieve the pn_crmv6 or pn_CRM_Online system user ID that is associated with a given identity provider ID.For pn_crmv6 (IFD), the identity provider is typically pn_Active_Directory_Fed_Svc2 (ADFS). For pn_CRM_Online, the identity provider can be pn_Windows_Live_ID or pn_MS_Online_Services. + + + Initializes a new instance of the RetrieveUserIdByExternalIdRequest class. + + + Gets or sets the pn_Windows_Live_ID of the target user. + Type: Returns_StringThe external ID of the user to retrieve. + + + Gets or sets the ID of the organization that the target system user is a member of. + Type: Returns_GuidThe ID of the organization that the target system user is a member of. + + + Gets or sets the unique name of the organization that the target system user is a member of. + Type: Returns_StringThe unique name of the organization that the target system user is a member of. + + + Gets or sets the release version of the pn_microsoftcrm product. + Type: Returns_StringThe release version of the pn_microsoftcrm product. + + + Contains the response from processing . + + + Initializes a new instance of the RetrieveUserIdByExternalIdResponse class. + + + Gets or sets the ID of the pn_CRM_Online system user. + Type: Returns_GuidThe ID of the user. + + + Contains the data that is needed to create a link between records. + + + Initializes a new instance of the class. + + + Gets or sets the collection of entity references (references to records) to be associated. Required. + Type: +The collection of entity references (references to records) to be associated. + + + Get or sets the relationship name to be used for an association. Required. + Type: The relationship name to be used for an association. + + + Gets or sets the target that is the record to which the related records are associated. Required. + Type: +The target that is the record to which the related records are associated. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to check whether the specified entity can be the primary entity (one) in a one-to-many relationship. + + + Initializes a new instance of the class. + + + Gets or sets the logical entity name to check whether it can be the primary entity in a one-to-many relationship. Required. + Type: Returns_String +The logical entity name to check whether it can be the primary entity in a one-to-many relationship. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the result of the request to see whether the entity can be the primary entity (one) in a one-to-many relationship. + Type: Returns_Booleantrue if the entity can be the primary entity (one) in a one-to-many relationship; otherwise, false. + + + Contains the data that is needed to check whether an entity can be the referencing entity in a one-to-many relationship. + + + Initializes a new instance of the class. + + + Gets or sets the logical entity name. Required. + Type: Returns_String +The the logical entity name. Required.. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the result of the request to see whether the entity can be the referencing entity (many) in a one-to-many relationship. + Type: Returns_Booleantrue if the entity can be the referencing entity (many) in a one-to-many relationship.; otherwise, false. + + + Contains the data that is needed to check whether an entity can participate in a many-to-many relationship. + + + Initializes a new instance of the class. + + + Gets or sets the logical entity name. Required + Type: Returns_String +The logical entity name. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the result of the request to see whether the entity can participate in a many-to-many relationship. + Type: Returns_Booleantrue if the the entity can participate in a many-to-many relationship.; otherwise, false. + + + Contains the data that is needed to create a new attribute, and optionally, to add it to a specified unmanaged solution. + + + Initializes a new instance of the class. + + + Gets or sets the definition of the attribute type that you want to create. Required. + Type: The definition of the attribute type that you want to create. Required. + + + Gets or sets the name of the entity for which you want to create an attribute. Required. + Type: Returns_String +The name of the entity for which you want to create an attribute. Required. + + + Gets or sets the name of the unmanaged solution to which you want to add this attribute. Optional. + Type: Returns_String +The name of the unmanaged solution to which you want to add this attribute. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the of the attribute that is created. + Type: Returns_Guid +The of the attribute that is created. This is the unique identifier of the attribute. + + + Contains the data that is needed to create a custom entity, and optionally, to add it to a specified unmanaged solution. + + + Initializes a new instance of the class. + + + Gets or sets the metadata for the custom entity that you want to create. Required. + Type The metadata for the custom entity that you want to create. Required. + + + Gets or sets whether a custom entity is created that has a special relationship to activity entities and is a valid regarding object for the activity. Optional. + Type: Returns_Booleantrue if the custom entity that you create has a special relationship to activity entities; otherwise, false. The default is false. + + + Gets or sets whether the custom entity that is created has a special relationship to the annotation entity. Optional. + Type: Returns_Booleantrue if the custom entity that is created has a special relationship to the annotation entity; otherwise, false. The default is false. + + + Gets or sets the metadata for the primary attribute for the new entity. Required. + Type: The metadata for the primary attribute for the new entity. Required.. + + + Gets or sets the name of the unmanaged solution to which you want to add this custom entity. Optional. + Type: Returns_String +The name of the unmanaged solution to which you want to add this custom entity. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the of the primary attribute for the newly created entity. + Type: Returns_Guid +The of the primary attribute for the newly created entity. + + + Gets the of the newly created entity. + Type: Returns_Guid +The of the newly created entity. + + + Contains the data that is needed to create a new Many-to-Many (N:N) entity relationship. + + + Initializes a new instance of the class. + + + Gets or sets the name of the intersect entity to be created for this entity relationship. Required. + Type: Returns_StringThe name of the intersect entity to be created for this entity relationship. Required. + + + Gets or sets the definition of the Many-to-Many entity relationship to be created. Required. + Type: The definition of the Many-to-Many entity relationship to be created. Required. + + + Gets or sets the name of the unmanaged solution you want to add this many-to-many entity relationship to. Optional. + Type: Returns_StringThe name of the unmanaged solution you want to add this many-to-many entity relationship to. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the many-to-many entity relationship that is created. + Type: Returns_Guid The ID of the many-to-many entity relationship that is created. This corresponds to the . + + + Contains the data that is needed to create a new One-to-Many (1:N) entity relationship. + + + Initializes a new instance of the class. + + + Gets or sets the metadata for the lookup field used to store the ID of the related record. Required. + Type: The metadata for the lookup field used to store the ID of the related record. Required. + + + Gets or sets the metadata for the relationship. Required. + Type: The metadata for the relationship. Required. + + + Gets or sets the name of the unmanaged solution you want to add this one-to-Many entity relationship to. Optional. + Type: Returns_StringThe name of the unmanaged solution you want to add this one-to-Many entity relationship to. Optional.. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the of the that is created. + Type: Returns_GuidThe of the that is created.. + + + Gets the of the that is created. + Type: Returns_GuidThe of the that is created.. + + + Contains the data that is needed to create a new global option set. + + + Initializes a new instance of the class. + + + Gets or sets the definition of the global option set. Required. + Type: The definition of the global option set. Required. + + + Gets or sets the name of the unmanaged solution you want to add this global option set to. Optional. + Type: Returns_StringThe name of the unmanaged solution you want to add this global option set to. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the of the newly created . + Type: Returns_GuidThe of the newly created . + + + Contains the data that is needed to create a record. + + + Initializes a new instance of the class. + + + Gets or sets an instance of an entity that you can use to create a new record. Required. + Type: +The entity instance. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the ID of the newly created record. + Type: Returns_GuidThe ID of the newly created record. + + + Contains the data that is needed to delete an attribute. + + + Initializes a new instance of the class + + + Gets or sets the logical name of the entity that contains the attribute. Required. + Type: Returns_StringThe logical name of the entity that contains the attribute. Required. + + + Gets or sets the logical name of the attribute to delete. Required. + Type: Returns_StringThe logical name of the attribute to delete. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to delete an entity. + + + Initializes a new instance of the class. + + + Gets or sets the logical name of the entity. Required. + Type: Returns_StringThe logical name of the entity. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to delete a global option set. + + + Initializes a new instance of the class + + + Gets or sets the name of the global option set to delete. Required. + Type: Returns_StringThe name of the global option set to delete. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to delete an option value in a global or local option set. + + + constructor_initializes class + + + Gets or sets the logical name of the attribute from which to delete the option value. Optional. + Type: Returns_StringThe logical name of the attribute from which to delete the option value. Optional. + + + Gets or sets the logical name of the entity that contains the attribute. Optional. + Type: Returns_StringThe logical name of the entity that contains the attribute. Optional. + + + Gets or sets the name of the option set that contains the value. Optional. + Type: Returns_StringThe name of the option set that contains the value. Optional. + + + Gets or sets the solution name associated with this option value. Optional. + Type: Returns_StringThe solution name associated with this option value. Optional. + + + Gets or sets the value of the option to delete. Required. + Type: Returns_Int32The value of the option to delete. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to delete an entity relationship. + + + Initializes a new instance of the class + + + Gets or sets the name of the relationship to delete. Required. + Type: Returns_StringThe name of the relationship to delete. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to delete a record. + + + Initializes a new instance of the class. + + + Gets or sets the reference to the record that you want to delete. Required. + Type: +The reference to the record that you want to delete. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to delete a link between records. + + + Initializes a new instance of the class. + + + Gets or sets the collection of entity references (references to records) to be disassociated. Required. + Type: +The collection of entity references (references to records) to be disassociated. + + + Get or sets the name of the relationship to be used for the disassociation. Required. + Type: +The name of the relationship to be used for the disassociation. + + + Gets or sets the target, which is the record from which the related records will be disassociated. Required. + Type: +The target, which is the record from which the related records will be disassociated. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to execute a message asynchronously. + + + Initializes a new instance of the class. + + + Gets or sets the request to execute asynchronously. + Returns The request to execute asynchronously. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets or sets the ID of the asynchronous job that was started from processing the . + Type: Returns_GuidThe ID of the asynchronous job. + + + Contains the data that is needed to execute one or more message requests as a single batch operation, and optionally return a collection of results. + + + Initializes a new instance of the . + + + Gets or sets the collection of message requests to execute. + Type: The collection of message requests to execute. + + + Gets or sets the settings that define whether execution should continue if an error occurs and if responses for each message request processed are to be returned. + Type: Settings that define whether execution should continue if an error occurs and if responses are to be returned. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets a value that indicates if processing at least one of the individual message requests resulted in a fault. + Type: Returns_Booleantrue if at least one of the individual message requests resulted in a fault; otherwise, false. + + + Gets the collection of responses. + Type: The collection of responses. + + + Contains the data that is needed to retrieve a list of all the entities that can participate in a Many-to-Many entity relationship. + + + Initializes a new instance of the GetValidManyToManyRequest class + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of logical entity names that can have many-to-many entity relationships. + Type: Returns_String[]An array of logical entity names that can have many-to-many entity relationships. + + + Contains the data that is needed to retrieve a list of entity logical names that are valid as the primary entity (one) from the specified entity in a one-to-many relationship. + + + constructor_initializes class + + + Gets or sets the logical name of the entity to get valid referenced entities. Optional. + Type: Returns_StringThe logical name of the entity to get valid referenced entities. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the array of valid entity names that can be the primary entity in a many-to-many relationship. + Type: Returns_String[]The array of valid entity names that can be the primary entity in a many-to-many relationship. + + + Contains the data that is needed to retrieve the set of entities that are valid as the related entity (many) to the specified entity in a one-to-many relationship. + + + Initializes a new instance of the class + + + Gets or sets the name of the entity that would be the primary entity in the relationship. Optional. + Type: Returns_StringThe name of the entity that would be the primary entity in the relationship. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the array of valid entity names that can be the related entity in a many-to-many relationship. + Type: Returns_String[]The array of valid entity names that can be the related entity in a many-to-many relationship. + + + Contains the data that is needed to insert a new option value for a global or local option set. + + + Initializes a new instance of the class + + + Gets or sets the name of the attribute when updating a local option set in a picklist attribute. Optional. + Type: Returns_StringThe name of the attribute when updating a local option set in a picklist attribute. Optional. + + + Gets or sets a description for the option. Optional. + Type: A description for the option. + + + Gets or sets the logical name of the entity when updating the local option set in a picklist attribute. Optional. + Type: Returns_StringThe logical name of the entity when updating the local option set in a picklist attribute. Optional. + + + Gets or sets the label for the option. Required. + Type: The label for the option. Required.. + + + Gets or sets the name of the global option set. Optional. + Type: Returns_StringThe name of the global option set. Optional. + + + Gets or sets the unique name of the unmanaged solution when updating a global option set. Optional. + Type: Returns_StringThe unique name of the unmanaged solution when updating a global option set. Optional. + + + Gets or sets the value for the option. Optional. + Type: Returns_Nullable<Returns_Int32>The value for the option. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the option value for the new option. + Type: Returns_Int32The option value for the new option. + + + Contains the data that is needed to insert a new option into a attribute. + + + Initializes a new instance of the class + + + Gets or sets the logical name of the status attribute. Optional. + Type: Returns_StringThe logical name of the status attribute. Optional. + + + Gets or sets a description for the option. Optional. + Type: The description for the option. Optional. + + + Gets or sets the logical name of the entity that contains the attribute. Optional. + Type: Returns_StringThe logical name of the entity that contains the attribute. Optional. + + + Gets or sets the label for the new status. Required. + Type: The label for the new status. Required.. + + + Reserved for future use. Optional. + Type: Returns_StringReserved for future use. Optional. + + + Gets or sets the solution that this attribute should be added to. Optional. + Type: Returns_StringThe solution that this attribute should be added to. Optional. + + + Gets or sets the state code for the new status. Required. + Type: Returns_Int32The state code for the new status. Required. + + + Gets or sets the value for the new status. Optional. + Type: Returns_Nullable<Returns_Int32>the value for the new status. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the option value for the new option. + Type: Returns_Int32The option value for the new option. + + + Contains the data that is needed to check if data encryption is currently running (active or inactive). + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets whether data encryption is active or not. + Type: Returns_Stringtrue if data encryption is active; otherwise, false. + + + Contains the data that is needed to set the order for an option set. + + + Initializes a new instance of the class + + + Gets or sets the logical name of the attribute. Optional. + Type: Returns_StringThe logical name of the attribute. Optional. + + + Gets or sets the logical name of the entity that contains the attribute. Optional. + Type: Returns_StringThe logical name of the entity that contains the attribute. Optional. + + + Gets or sets the name of the global option set you want to edit options for. Optional. + Type: Returns_StringThe name of the global option set you want to edit options for. Optional. + + + Gets or sets the name of the solution you want to add the solution component to. Optional. + Type: Returns_StringThe name of the solution you want to add the solution component to. Optional. + + + Gets or sets the array of option values in the wanted order. Required. + Type: Returns_Int32The array of option values in the wanted order. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to retrieve metadata information about all the entities. + + + Initializes a new instance of the class + + + Gets or sets a filter to control how much data for each entity is retrieved. Required. + Type: A filter to control how much data for each entity is retrieved. Required. + + + Gets or sets whether to retrieve the metadata that has not been published. Required. + Type: Returns_Booleantrue if the metadata that has not been published should be retrieved; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of instances. + Type: []an array of instances.. + + + Gets a time stamp that represents the time when the data was retrieved. + Type: Returns_StringA time stamp that represents the time when the data was retrieved. + + + Contains the data that is needed to retrieve all managed property definitions + + + Initializes a new instance of the RetrieveAllManagedPropertiesRequest class + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of managed property definitions. + Type: []An array of managed property definitions. + + + Contains the data that is needed to retrieve information about all global option sets. + + + Initializes a new instance of the class + + + Gets or sets whether to retrieve the metadata that has not been published. Required. + Type: Returns_Booleantrue if the metadata that has not been published should be retrieved; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets an array of definitions for each global option set. + Type: []An array of definitions for each global option set. + + + Contains the data that is needed to retrieve attribute metadata. + + + Initializes a new instance of the class + + + Gets or sets a column number value to identify an attribute from the Audit.AttributeMask property. Optional. + Type: Returns_Int32A column number value to identify an attribute from the Audit.AttributeMask property. Optional. + + + Gets or sets the logical name of the entity that contains the attribute. Optional. + Type: Returns_StringThe logical name of the entity that contains the attribute. Optional. + + + Gets or sets the logical name of the attribute to be retrieved. Optional. + Type: Returns_StringThe logical name of the attribute to be retrieved. Optional. + + + The unique identifier for the attribute. Optional. + Type: Returns_GuidThe unique identifier for the attribute. This corresponds to the .. + + + Gets or sets whether to retrieve the metadata that has not been published. Required. + Type: Returns_Booleantrue if the metadata that has not been published should be retrieved; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the metadata for the requested attribute. + Type: The metadata for the requested attribute. + + + Contains the data that is needed to retrieve the data encryption key value. + + + Initializes a new instance of the class. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets or sets the encryption key. + Type: Returns_String. The value returned is the decrypted data encryption key. + + + Contains the data that is needed to retrieve entity metadata. + + + Initializes a new instance of the class. + + + Gets or sets a filter to control how much data for the entity is retrieved. Required. + Type: a filter to control how much data for the entity is retrieved. Required. + + + Gets or sets the logical name of the entity to be retrieved. Optional. + Type: Returns_StringThe logical name of the entity to be retrieved. Optional. + + + A unique identifier for the entity. Optional. + Type: Returns_GuidThe A unique identifier for the entity. This corresponds to the . for the entity. + + + Gets or sets whether to retrieve the metadata that has not been published. Required. + Type: Returns_Booleantrue if the metadata that has not been published should be retrieved; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the metadata for the requested entity. + Type: The metadata for the requested entity. + + + Contains the data that is needed to retrieve a managed property definition. + + + Initializes a new instance of the class + + + Gets or sets the name of the managed property. Optional. + Type: Returns_StringThe name of the managed property. Optional. + + + Gets or sets the ID of the managed property. Required, + Type: Returns_GuidThe ID of the managed property. This corresponds to the . for the managed property. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the definition of the managed property. + Type: The definition of the managed property. + + + Contains the data that is needed to to retrieve a collection of metadata records that satisfy the specified criteria. The returns a timestamp value that can be used with this request at a later time to return information about how metadata has changed since the last request. + + + Initializes a new instance of the class. + + + Gets or sets a timestamp value representing when the last request was made. + Type: Returns_String +A timestamp value representing when the last request was made. + + + Gets or sets a value to filter what deleted metadata items will be returned. + Type: A value to filter what deleted metadata items will be returned. + + + Gets or sets the query representing the metadata to return. + Type:The query representing the metadata to return. + + + Contains the response from the message. + + + Initializes a new instance of the class. + + + Gets the deleted metadata since the last request. + Type: The deleted metadata since the last request. + + + Gets the metadata defined by the request. + Type: The metadata defined by the request. + + + Gets a timestamp identifier for the metadata retrieved. + Type: Returns_String +A timestamp identifier for the metadata retrieved.. + + + Contains the data that is needed to retrieve a collection of records that satisfy the specified query criteria. + + + Initializes a new instance of the class. + + + Gets or sets the query criteria for the retrieval. Required. + Type: The query criteria for the retrieval. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the collection of records that satisfy the query in the request. + Type: The collection of records that satisfy the query in the request. + + + Contains the data that is needed to retrieve a global option set. + + + Initializes a new instance of the class + + + Gets or sets the of the to be retrieved. Optional. + Type: Returns_GuidThe of the to be retrieved. Optional. + + + Gets or sets the name for the global option set to be retrieved. Optional. + Type: Returns_String The name for the global option set to be retrieved.. Optional.. + + + Gets or sets whether to retrieve the metadata that has not been published. Required. + Type: Returns_Booleantrue if the the unpublished metadata should be retrieved; otherwise, false.. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the metadata for the global option set. + Type: The metadata for the global option set. + + + Contains the data that is needed to retrieve entity relationship metadata. + + + Initializes a new instance of the class + + + Gets or sets the of the to be retrieved. Optional. + Type: Returns_Guid The of the to be retrieved. Optional. + + + Gets or sets the unique name for the entity relationship to be retrieved. Optional. + Type: Returns_StringThe unique name for the entity relationship to be retrieved. Optional.. + + + Gets or sets whether to retrieve the metadata that has not been published. Required. + Type: Returns_Booleantrue if the unpublished metadata should be retrieved; otherwise, false. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the metadata for the entity relationship. + Type: The metadata for the entity relationship. + + + Contains the data that is needed to retrieve a record. + + + Initializes a new instance of the class. + + + Gets or sets the collection of attributes for which non-null values are returned from a query. Required. + Type: The collection of attributes for which non-null values are returned from a query. + + + Gets or sets the query that describes the related records to be retrieved. Optional. + Type: The query that describes the related records to be retrieved. + + + Gets or sets the target, which is the record to be retrieved. Required. + Type: The target, which is the record to be retrieved. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the specified record from the request. + Type: The specified record from the request. + + + Contains the data that is needed to retrieves a time stamp for the metadata. + + + Initializes a new instance of the RetrieveTimestampRequest class + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Gets the time stamp of the metadata. + Type: Returns_StringThe time stamp of the metadata. + + + Contains the data that is needed to set or restore the data encryption key. + + + Initializes a new instance of the class. + + + Gets or sets the operation to perform with the data encryption key. + Type: Returns_Booleantrue indicates to set (change) the data encryption key; otherwise, false indicates to restore the data encryption key. + + + Gets or sets the value of the data encryption key. + Type: Returns_String. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update the definition of an attribute. + + + Initializes a new instance of the class + + + Gets or sets the attribute metadata to be updated. Required. + Type: The attribute metadata to be updated. Required. + + + Gets or sets the logical name of the entity to which the attribute belongs. Required. + Type: Returns_StringThe logical name of the entity to which the attribute belongs. Required. + + + Gets or sets whether the label metadata will be merged or overwritten. Required. + Type: Returns_Booleantrue if the label metadata will be merged or overwritten; otherwise, false. + + + Gets or sets the name of the solution to associate the entity with. Optional. + Type: Returns_StringThe name of the solution to associate the entity with. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update the definition of an entity. + + + Initializes a new instance of the class + + + Gets or sets the metadata for the entity. Required. + Type: the metadata for the entity. Required. + + + Gets or sets whether the entity will have a special relationship to activity entities and is a valid regarding object for the activity. Optional. + Type: Returns_Nullable<Returns_Boolean>true if the entity will have a special relationship to activity entities and is a valid regarding object for the activity; otherwise, false. + + + Gets or sets whether the entity will have a special relationship to the annotation entity. Optional. + Type: Returns_Nullable<Returns_Boolean>true if the entity will have a special relationship to the annotation entity; otherwise, false. + + + Gets or sets whether to merge the new labels with any existing labels. Required. + Type: Returns_Booleantrue if the new labels should be merged with any existing labels; otherwise, false. + + + Gets or sets the unique name of the unmanaged solution that this entity should be associated with. Optional. + Type: Returns_StringThe unique name of the unmanaged solution that this entity should be associated with. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update the definition of a global option set. + + + Initializes a new instance of the class + + + Gets or sets whether the label metadata will be merged or overwritten. Required. + Type: Returns_Booleantrue if the label metadata will be merged or overwritten; otherwise, false. + + + Gets or sets the metadata for the global option set. Required. + Type: the metadata for the global option set. Required. + + + Gets or sets the name of a solution to associate the global option set with. Optional. + Type: Returns_StringThe name of a solution to associate the global option set with. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update an option value in a global or local option set. + + + Initializes a new instance of the class + + + Gets or sets the name of the attribute when updating a local option set in a picklist attribute. Optional. + Type: Returns_StringThe name of the attribute when updating a local option set in a picklist attribute. Optional. + + + Gets or sets a description for the option. Optional. + Type:The description for the option. Optional. + + + Gets or sets the logical name of the entity when updating the local option set in a picklist attribute. Optional. + Type: Returns_StringThe logical name of the entity when updating the local option set in a picklist attribute. Optional. + + + Gets or sets the label for the option. Optional. + Type: The label for the option. Optional. + + + Gets or sets whether to keep text defined for languages not included in the Label. Required. + Type: Returns_Booleantrue if the text defined for languages not included in the Label is kept; otherwise, false. + + + Gets or sets the name of the global option set. Optional. + Type: Returns_StringThe name of the global option set. Optional. + + + Gets or sets the name of the unmanaged solution that this global option set should be associated with. Optional. + Type: Returns_StringThe name of the unmanaged solution that this global option set should be associated with. Optional. + + + Gets or sets the value for the option. Required. + Type: Returns_Int32The value for the option. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update the definition of an entity relationship. + + + Initializes a new instance of the class + + + Gets or sets whether to merge the new labels with any existing labels. Required. + Type: Returns_Booleantrue if the new labels will be merged with any existing labels; otherwise, false. + + + Gets or sets the relationship metadata to be updated. Required. + Type: The relationship metadata to be updated. Required.. + + + Gets or sets the unique name of the unmanaged solution that this entity relationship should be associated with. Optional. + Type: Returns_StringThe unique name of the unmanaged solution that this entity relationship should be associated with. Optional. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update an existing record. + + + Initializes a new instance of the class. + + + Gets or sets an instance of an entity that is used to update a record. Required. + Type: The entity instance used to update the record. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Contains the data that is needed to update an option set value in for a attribute. + + + Initializes a new instance of the class. + + + Gets or sets the logical name of the attribute. Optional. + Type: Returns_StringThe logical name of the attribute. Optional. + + + Gets or sets the default value for the statuscode (status reason) attribute when this statecode value is set. Optional. + Type: Returns_Nullable<Returns_Int32>The default value for the statuscode (status reason) attribute when this statecode value is set. Optional. + + + Gets or sets the description label for the statecode option that is specified in the property. Optional. + Type: the description label for the statecode option that is specified in the property. Optional. + + + Gets or sets the name of the entity that has this statecode attribute. Optional. + Type: Returns_StringThe name of the entity that has this statecode attribute. Optional. + + + Gets or sets the display label for this statecode option that is specified by the property. Optional. + Type: The display label for this statecode option that is specified by the property. Optional. + + + Gets or sets whether to merge the current label with any existing labels that are already specified for this attribute. Required. + Type: Returns_Booleantrue if any newly defined labels should only overwrite existing labels when their language code matches; otherwise, false. + + + internal + Type: Returns_Stringinternal + + + Gets or sets the statecode attribute options to update. Required. + Type: Returns_Int32The statecode attribute options to update. Required. + + + Contains the response from the class. + + + Initializes a new instance of the class. + + + Describes the behavior of the associated menu for a one-to-many relationship. + + + Do not show the associated menu. Value = 2. + + + Use the collection name for the associated menu. Value = 0. + + + Use the label for the associated menu. Value = 1. + + + Defines how the associated records are displayed for an entity relationship. + + + constructor_initializes class. + + + Gets or sets the behavior of the associated menu for an entity relationship. + Type: Returns_Nullable<> +One of the enumeration values that specify the behavior of the associated menu for a one-to-many relationship. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the group for the associated menu for an entity relationship. + Type: Returns_Nullable<> +One of the enumeration values that specify the group in which to display the associated menu for an entity relationship. + + + Gets or sets the label for the associated menu. + Type: +A string that contains the menu label. + + + Gets or sets the order for the associated menu. + Type: Returns_Nullable<int> +An integer that controls the relative position of navigation items in the group. + + + Describes the group in which to display the associated menu for an entity relationship + + + Show the associated menu in the details group. Value = 0. + + + Show the associated menu in the marketing group. Value = 3. + + + Show the associated menu in the sales group. Value = 1. + + + Show the associated menu in the service group. Value = 2. + + + Contains all the metadata for an entity attribute. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: . Sets the type for the attribute. + + + Initializes a new instance of the class. + Type: . Sets the type for the attribute. + Type: Returns_String. Sets the schema name of the attribute. + + + Gets the name of that attribute that this attribute extends. + Type: Returns_String +The attribute name. + + + Gets the type for the attribute. + Type: Returns_Nullable<> +The attribute type. + + + Gets the name of the type for the attribute. + Type: +The name of the attribute type. + + + Gets whether field security can be applied to prevent a user from adding data to this attribute. + Type: Returns_Nullable<Returns_Boolean>true if the field security can be applied; otherwise, false. + + + Gets whether field level security can be applied to prevent a user from viewing data from this attribute. + Type: Returns_Nullable<Returns_Boolean>true if the field security can be applied; otherwise, false. + + + Gets whether field level security can be applied to prevent a user from updating data for this attribute. + Type: Returns_Nullable<Returns_Boolean>true if the field security can be applied; otherwise, false. + + + Gets or sets the property that determines whether any settings not controlled by managed properties can be changed. + Type: The property that determines whether any settings not controlled by managed properties can be changed. + + + Gets an organization specific id for the attribute used for auditing. + Type: Returns_Nullable<Returns_Int32> +The organization specific id for the attribute used for auditing. + + + Gets the pn_microsoftcrm version that the attribute was deprecated in. + Type: Returns_String +The pn_microsoftcrm version that the attribute was deprecated in. + + + Gets or sets the description of the attribute. + Type: The description of the attribute. + + + Gets or sets the display name for the attribute. + Type: The display name of the attribute. + + + Gets the logical name of the entity that contains the attribute. + Type: Returns_String +The logical name of the entity that contains the attribute. + + + introducedversion + Type: Returns_String +The solution version number when the attribute was created. + + + Gets or sets the property that determines whether the attribute is enabled for auditing. + Type: +The property that determines whether the attribute is enabled for auditing. + + + Gets whether the attribute is a custom attribute. + Type: Returns_Nullable<Returns_Boolean>true if the attribute is a custom attribute; otherwise, false. + + + Gets or sets the property that determines whether the attribute allows customization. + Type: The property that determines whether the attribute allows customization. + + + Gets whether the attribute is part of a managed solution. + Type: Returns_Nullable<Returns_Boolean>true if the attribute is part of a managed solution; otherwise, false. + + + Gets whether the attribute represents the unique identifier for the record. + Type: Returns_Nullable<Returns_Boolean>true if the attribute is the unique identifier for the record; otherwise, false. + + + Gets or sets whether the attribute represents the primary attribute for the entity. + Type: Returns_Nullable<Returns_Boolean>true if the attribute is primary attribute for the entity; otherwise, false. + + + Gets or sets the property that determines whether the attribute display name can be changed. + Type: The property that determines whether the attribute display name can be changed. + + + Gets or sets whether the attribute is secured for field level security. + Type: Returns_Nullable<Returns_Boolean>true if the attribute is secured for field level security; otherwise, false. + + + Gets or sets the property that determines whether the attribute appears in Advanced Find. + Type: The property that determines whether the attribute appears in Advanced Find. + + + Gets whether the value can be set when a record is created. + Type: Returns_Nullable<Returns_Boolean>true if the value can be set when a record is created; otherwise, false. + + + Gets whether the value can be retrieved. + Type: Returns_Nullable<Returns_Boolean>true if the value can be retrieved; otherwise, false. + + + Gets whether the value can be updated. + Type: Returns_Nullable<Returns_Boolean>true if the value can be updated; otherwise, false. + + + Gets or sets an attribute that is linked between Appointments and Recurring appointments. + Type: Returns_Nullable<Returns_Guid> +The attribute id that is linked between Appointments and Recurring appointments. + + + Gets or sets the logical name for the attribute. + Type: Returns_String +The logical name for the attribute. + + + Gets or sets the property that determines the data entry requirement level enforced for the attribute. + Type: The property that determines the data entry requirement level enforced for the attribute. + + + Gets or sets the schema name for the attribute. + Type: Returns_String +The schema name for the attribute. + + + Describes the requirement level for an attribute. + + + The attribute is required to have a value. Value = 2. + + + No requirements are specified. Value = 0. + + + It is recommended that the attribute has a value. Value = 3. + + + The attribute is required to have a value. Value = 1. + + + Represents the data to define a property for an attribute. + + + Initializes a new instance of the class. + Type: . + + + Describes the type of an attribute. + + + A big integer attribute. Value = 0x12. + + + A Boolean attribute. Value = 0. + + + An attribute that contains calendar rules. Value = 0x10. + + + An attribute that represents a customer. Value = 1. + + + A date/time attribute. Value = 2. + + + A decimal attribute. Value = 3. + + + A double attribute. Value = 4. + + + An entity name attribute. Value = 20. + + + An integer attribute. Value = 5. + + + A lookup attribute. Value = 6. + + + A managed property attribute. Value = 0x13. + + + A memo attribute. Value = 7. + + + A money attribute. Value = 8. + + + An owner attribute. Value = 9. + + + A partylist attribute. Value = 10. + + + A picklist attribute. Value = 11. + + + A state attribute. Value = 12. + + + A status attribute. Value = 13. + + + A string attribute. Value = 14. + + + An attribute that is an ID. Value = 15. + + + An attribute that is created by the system at run time. Value = 0x11. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Contains the metadata for an attribute type BigInt. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The Schema Name for the attribute. + + + The maximum supported value for this attribute is 9223372036854775807. + + + The minimum supported value for this attribute is -9223372036854775808. + + + Gets or sets the maximum value for the attribute. + Type: Returns_Nullable<Returns_Int64> +The maximum value for the attribute. + + + Gets or sets the minimum value for the attribute. + Type: Returns_Nullable<Returns_Int64> +The minimum value for the attribute. + + + Contains the metadata for an attribute type Boolean. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: The definition of the options + + + Initializes a new instance of the class + Type: Returns_String +The schema name of the attribute. + + + Initializes a new instance of the class + Type: The definition of the options + Type: Returns_String +The schema name of the attribute. + + + Gets or sets the default value for a Boolean option set. + Type: Returns_Nullable<Returns_Boolean> +The default value for a Boolean option set. + + + Gets or sets the options for a boolean attribute. + Type: The definition of the options. + + + Contains the metadata for an attribute of type Boolean. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: The option metadata for the false option. + Type: The option metadata for the true option. + + + Gets or sets option displayed when the attribute is false. + Type: The option metadata for the false option.. + + + Gets or sets option displayed when the attribute is true. + Type: The option metadata for the true option.. + + + Contains properties representing actions that may be performed on the referenced entity in a one-to-many entity relationship. + + + constructor_initializes class + + + The referenced entity record owner is changed. + Type: Returns_Nullable<> +The referenced entity record owner is changed. + + + The referenced entity record is deleted. + Type: Returns_Nullable<> +The referenced entity record is deleted. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + The record is merged with another record. + Type: Returns_Nullable<> +The record is merged with another record.. + + + The value of the referencing attribute in a parental relationship changes. changes. + Type: Returns_Nullable<> +The value of the referencing attribute in a parental relationship changes. changes. + + + The referenced entity record is shared with another user. + Type: Returns_Nullable<> +The referenced entity record is shared with another user. + + + Sharing is removed for the referenced entity record. + Type: Returns_Nullable<> +Sharing is removed for the referenced entity record. + + + Describes the type of behavior for a specific action applied to the referenced entity in a one-to-many entity relationship. + + + Perform the action on all active referencing entity records associated with the referenced entity record. Value = 2. + + + Perform the action on all referencing entity records associated with the referenced entity record. Value = 1. + + + Do nothing. Value = 0. + + + Remove the value of the referencing attribute for all referencing entity records associated with the referenced entity record. Value = 4. + + + Prevent the Referenced entity record from being deleted when referencing entities exist. Value = 5. + + + Perform the action on all referencing entity records owned by the same user as the referenced entity record. Value = 3. + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Returns . + + + Contains the metadata for an attribute of type DateTime. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_Nullable<>. +The date/time display format. + + + Initializes a new instance of the class + Type: Returns_Nullable<>. +The date/time display format. + Type: Returns_String. +The schema name of the attribute. + + + Gets or sets the date/time display format. + Type: Returns_Nullable<> +The date/time display format. + + + Gets or sets the input method editor (IME) mode for the attribute. + Type: Returns_Nullable<> +The input method editor mode for the attribute. + + + Gets the maximum supported value for this attribute. + Type: Returns_DateTimeThe maximum supported date for this attribute. + + + Gets the minimum supported value for this attribute. + Type: Returns_DateTimeThe minimum supported date for this attribute. + + + Describes the formatting of a attribute. + + + Display the date and time. Value = 1. + + + Display the date only. Value = 0. + + + Contains the metadata for an attribute type Decimal. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The schema name of the attribute. + + + The maximum supported value for Precision is 10. + + + The maximum supported value is 100 Billion. + + + The minimum supported value for Precision is 0. + + + The minimum supported value is -100 Billion. + + + Gets or sets the input method editor (IME) mode for the attribute. + Type: Returns_Nullable<> +The input method editor (IME) mode for the attribute.. + + + Gets or sets the maximum value for the attribute. + Type: Returns_Nullable<Returns_Decimal> +The maximum value for the attribute. + + + Gets or sets the minimum value for the attribute. + Type: Returns_Nullable<Returns_Decimal> +The minimum value for the attribute. + + + Gets or sets the precision for the attribute. + Type: Returns_Nullable<Returns_Int32> +The precision for the attribute. + + + Contains the metadata for an attribute type Double. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The schema name for the attribute. + + + The maximum supported value for Precision is 5. + + + The maximum supported value is 100 billion. + + + The minimum supported value for Precision is 0. + + + The minimum supported value is -100 billion. + + + Gets or sets the input method editor (IME) mode for the attribute. + Type: Returns_Nullable<> +The input method editor (IME) mode for the attribute.. + + + Gets or sets the maximum value for the attribute. + Type: Returns_Nullable<Returns_Double> +The maximum value for the attribute. + + + Gets or sets the minimum value for the attribute. + Type: Returns_Nullable<Returns_Double> +The minimum value for the attribute. + + + Gets or sets the precision for the attribute. + Type: Returns_Nullable<Returns_Int32> +The precision for the attribute. + + + Describes the type of entity metadata to retrieve. + + + Use this to retrieve all data for an entity. Value = 15. + + + Use this to retrieve entity information plus attributes for the entity. Value = 2. + + + Use this to retrieve only entity information. Equivalent to EntityFilters.Entity. Value = 1. + + + Use this to retrieve only entity information. Equivalent to EntityFilters.Default. Value = 1. + + + Use this to retrieve entity information plus privileges for the entity. Value = 4. + + + Use this to retrieve entity information plus entity relationships for the entity. Value = 8. + + + Contains the metadata for an entity. + + + Initializes a new instance of the class + + + Gets or sets whether a custom activity should appear in the activity menus in the Web application. + Type: Returns_Nullable<Returns_Int32> +The value indicates whether a custom activity should appear in the activity menus in the Web application. + + + Gets the array of attribute metadata for the entity. + Type: []The array of attribute metadata for the entity. + + + Gets or sets whether the entity is enabled for auto created access teams. + Type: Returns_Nullable<Returns_Boolean>true if the entity will be enabled for auto created access teams; otherwise, false. + + + Gets or sets whether to automatically move records to the owner’s default queue when a record of this type is created or assigned. + Type: Returns_Nullable<Returns_Boolean>true if the record will automatically move to the owner’s default queue when a record of this type is created or assigned; otherwise, false. + + + Gets the property that determines whether the entity can be in a Many-to-Many entity relationship. + Type: The property that determines whether the entity can be in a Many-to-Many entity relationship. + + + Gets the property that determines whether the entity can be the referenced entity in a One-to-Many entity relationship. + Type: The property that determines whether the entity can be the referenced entity in a One-to-Many entity relationship. + + + Gets the property that determines whether the entity can be the referencing entity in a One-to-Many entity relationship. + Type: The property that determines whether the entity can be the referencing entity in a One-to-Many entity relationship. + + + Gets or sets the property that determines whether additional attributes can be added to the entity. + Type: The property that determines whether additional attributes can be added to the entity. + + + Gets or sets the property that determines whether new charts can be created for the entity. + Type: The property that determines whether new charts can be created for the entity. + + + Gets or sets the property that determines whether new forms can be created for the entity. + Type: The property that determines whether new forms can be created for the entity. + + + Gets or sets the property that determines whether new views can be created for the entity. + Type: The property that determines whether new views can be created for the entity. + + + Gets or sets the property that determines whether any other entity properties not represented by a managed property can be changed. + Type: The property that determines whether any other entity properties not represented by a managed property can be changed. + + + Gets whether the entity can trigger a workflow process. + Type: Returns_Nullable<Returns_Boolean>true if the entity can trigger a workflow process; otherwise, false. + + + Gets or sets the label containing the description for the entity. + Type: The label containing the description for the entity. + + + Gets or sets the label containing the plural display name for the entity. + Type: The label containing the plural display name for the entity. + + + Gets or sets the label containing the display name for the entity. + Type The label containing the display name for the entity. + + + Gets whether the entity will enforce custom state transitions. + Type: Returns_Nullable<Returns_Boolean>true if the entity supports custom status transitions.; otherwise, false. + + + Gets or sets the name of the image web resource for the large icon for the entity. + Type: Returns_String +The name of the image web resource for the large icon for the entity.. + + + Gets or sets the name of the image web resource for the medium icon for the entity. + Type: Returns_String +The name of the image web resource for the medium icon for the entity.. + + + Gets or sets the name of the image web resource for the small icon for the entity. + Type: Returns_String +The name of the image web resource for the small icon for the entity. + + + introducedversion + Type: Returns_String +A string identifying the solution version that the solution component was added in. + + + Gets or sets whether the entity is an activity. + Type: Returns_Nullable<Returns_Boolean>true if the entity is an activity; otherwise, false. + + + Gets or sets whether the email messages can be sent to an email address stored in a record of this type. + Type: Returns_Nullable<Returns_Boolean>true if emails can be sent to an email address stored in a record of this type; otherwise, false. + + + Gets whether the entity uses the updated user interface. + Type: Returns_Nullable<Returns_Boolean>true if the entity uses the updated user interface; otherwise, false. + + + Gets or sets the property that determines whether auditing has been enabled for the entity. + Type: Returns_Nullable<>The property that determines whether auditing has been enabled for the entity. + + + Gets or sets whether the entity is available offline. + Type: Returns_Nullable<Returns_Boolean>true if the entity is available offline; otherwise, false. + + + Gets whether the entity is enabled for business process flows. + Type: Returns_Nullable<Returns_Boolean>true if; the entity is enabled for business process flows otherwise, false. + + + Gets whether the entity is a child entity. + Type: Returns_Nullable<Returns_Boolean>true if the entity is a child entity; otherwise, false. + + + Gets or sets the property that determines whether connections are enabled for this entity. + Type: Returns_Nullable<>The property that determines whether connections are enabled for this entity. + + + Gets whether the entity is a custom entity. + Type: Returns_Nullable<Returns_Boolean>true if the entity is a custom entity; otherwise, false. + + + Gets or sets the property that determines whether the entity is customizable. + Type: The property that determines whether the entity is customizable. + + + Gets or sets the property that determines whether document management is enabled. + Type: Returns_Nullable<>The property that determines whether document management is enabled.. + + + Gets or sets the property that determines whether duplicate detection is enabled. + Type: The property that determines whether duplicate detection is enabled.. + + + Gets whether charts are enabled. + Type: Returns_Nullable<Returns_Boolean>true if charts are enabled; otherwise, false. + + + internal + Type: Returns_Nullable<Returns_Boolean>internal + + + Gets whether the entity can be imported using the Import Wizard. + Type: Returns_Nullable<Returns_Boolean>true if the entity can be imported using the Import Wizard; otherwise, false. + + + Gets whether the entity is an intersection table for two other entities. + Type: Returns_Nullable<Returns_Boolean>true if the entity is an intersection table for two other entities.; otherwise, false + + + Gets or sets the property that determines whether mail merge is enabled for this entity. + Type: The property that determines whether mail merge is enabled for this entity.. + + + Gets whether the entity is part of a managed solution. + Type: Returns_Nullable<Returns_Boolean>true if the entity is part of a managed solution; otherwise, false. + + + Gets or sets the property that determines whether entity mapping is available for the entity. + Type: The property that determines whether entity mapping is available for the entity.. + + + Gets or sets the value indicating if the entity is enabled for quick create forms. + Type: Returns_Nullable<Returns_Boolean>true if the entity is enabled for quick create forms ; otherwise, false. + + + internal + Type: Returns_Nullable<Returns_Boolean>internal + + + Gets or sets the property that determines whether pn_moca_full users can update data for this entity. + Type: The property that determines whether pn_moca_full users can update data for this entity. + + + Gets or sets the property that determines whether the entity and can be changed by editing the entity in the application. + Type: The property that determines whether the entity and can be changed by editing the entity in the application. + + + Gets whether the entity supports setting custom state transitions. + Type: Returns_Nullable<Returns_Boolean>true if the entity supports custom status transitions.; otherwise, false. + + + Gets or sets whether the entity is will be shown in Advanced Find. + Type: Returns_Nullable<Returns_Boolean>true if the entity is will be shown in Advanced Find.; otherwise, false. + + + Gets or sets the property that determines whether the entity is enabled for queues. + Type: The property that determines whether the entity is enabled for queues. + + + Gets or sets the property that determines whether pn_Mobile_Express_long users can see data for this entity. + Type: The property that determines whether pn_Mobile_Express_long users can see data for this entity. + + + Gets or sets the property that determines whether pn_moca_full users can see data for this entity. + Type: The property that determines whether pn_moca_full users can see data for this entity. + + + Gets or sets the logical name for the entity. + Type: Returns_String +The logical name for the entity. + + + Gets the array of many-to-many relationships for the entity. + Type: []the array of many-to-many relationships for the entity. + + + Gets the array of many-to-one relationships for the entity. + Returns []. + + + Gets the entity type code. + Type: Returns_Nullable<Returns_Int32> +The entity type code. + + + Gets the array of one-to-many relationships for the entity. + Type :[]The array of one-to-many relationships for the entity. + + + Gets or sets the ownership type for the entity. + Type: Returns_Nullable<> +The ownership type for the entity.. + + + Gets the name of the attribute that is the primary id for the entity. + Type: Returns_String +The name of the attribute that is the primary id for the entity. + + + Gets the name of the primary image attribute for an entity. + Type: Returns_String +The name of the primary image attribute for an entity. + + + Gets the name of the primary attribute for an entity. + Type: Returns_String +The name of the primary attribute for an entity.. + + + Gets the privilege metadata for the entity. + Returns []The privilege metadata for the entity.. + + + Gets the name of the entity that is recurring. + Type: Returns_String +The name of the entity that is recurring. + + + Gets the name of the report view for the entity. + Type: Returns_String +The name of the report view for the entity.. + + + Gets or sets the schema name for the entity. + Type: Returns_String +The schema name for the entity. + + + Defines a collection of + + + Initializes a new instance of the class. + + + Contains the metadata for an attribute that references an entity. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The schema name of the attribute. + + + Contains the data for an attribute that provides options. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: The attribute type code. + Type: Returns_String +The schema name for the attribute. + + + Gets or sets the default form value for the attribute. + Type: Returns_Nullable<Returns_Int32> +The default form value for the attribute.. + + + Gets or sets the available options for the attribute. + Type: The available options for the attribute. + + + Contains the metadata for an attribute type Image. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: Returns_String +The schema name for the attribute. + + + Gets or sets whether the attribute is the primary image for the entity. + Type: Returns_Nullable<Returns_Boolean>true if the attribute is the primary image for the entity; otherwise, false. + + + Gets the maximum height of the image. + Type: Returns_Nullable<Returns_Int16> +The maximum height for the image. + + + Gets the maximum width of the image. + Type: Returns_Nullable<Returns_Int16> +The maximum width for the image. + + + Describes the input method editor mode + + + Specifies that the IME mode is active. Value = 2. + + + Specifies that the IME mode is chosen automatically. Value =0. + + + Specifies that the IME mode is disabled. Value = 3. + + + Specifies that the IME mode is inactive. Value = 1. + + + Contains the metadata for an attribute type Integer. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The schema name for the attribute. + + + The maximum supported value is 2147483647. + + + The minimum supported value is -2147483648. + + + Gets or sets the format options for the integer attribute. + Type: Returns_Nullable<> +The format options for the integer attribute. + + + Gets or sets the maximum value for the attribute. + Type: Returns_Nullable<Returns_Int32> +The maximum value for the attribute. + + + Gets or sets the minimum value for the attribute. + Type: Returns_Nullable<Returns_Int32> +The minimum value for the attribute. + + + Describes the formatting of an integer attribute. + + + Specifies to display the integer as a drop down list of durations. Value = 1. + + + Specifies the display the integer as a drop down list of installed languages. Value = 3. + + + Specifies a locale. Value = 4. + + + Specifies to display an edit field for an integer. Value = 0. + + + Specifies to display the integer as a drop down list of time zones. Value = 2. + + + Contains the metadata for an attribute of type lookup. + + + Initializes a new instance of the class + + + Gets or sets the target entity types for the lookup. + Type: Returns_String[] +The array of target entity types for the lookup. + + + internal + + + Initializes a new instance of the class + + + Initializes a new instance of the class + internal + + + internal + + + internal + Type: Returns_Stringinternal + + + internal + Type: Returns_Stringinternal + + + internal + Type: Returns_Nullable<Returns_Int32>internal + + + internal + Type: internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + Initializes a new instance of the class + + + internal + Type: internal + + + internal + Type: internal + + + internal + Type: Returns_Stringinternal + + + internal + Type: Returns_Stringinternal + + + internal + Type: Returns_Nullable<Returns_Int32>internal + + + internal + Type: Returns_Nullable<>internal + + + introducedversion + Type: Returns_String +A string identifying the solution version that the solution component was added in. + + + internal + Type: Returns_Nullable<Returns_Boolean>internal + + + internal + Type: Returns_Nullable<Returns_Boolean>internal + + + internal + Type: Returns_Stringinternal + + + internal + Type: Returns_Nullable<>internal + + + internal + Type: Returns_Nullable<>internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + internal + + + Contains the metadata for a many-to-many entity relationship. + + + constructor_initializes class + + + Gets or sets the associated menu configuration for the first entity. + Type: The associated menu configuration for the first entity. + + + Gets or sets the attribute that defines the relationship in the first entity. + Type: Returns_String +The attribute that defines the relationship in the first entity. + + + Gets or sets the logical name of the first entity in the relationship. + Type: Returns_String +The logical name of the first entity in the relationship. + + + Gets or sets the associated menu configuration for the second entity. + Type: The associated menu configuration for the second entity. + + + Gets or sets the attribute that defines the relationship in the second entity. + Type: Returns_String +The attribute that defines the relationship in the second entity.. + + + Gets or sets the logical name of the second entity in the relationship. + Type: Returns_String +The logical name of the second entity in the relationship.. + + + Gets or sets the name of the intersect entity for the relationship. + Type: Returns_String +The name of the intersect entity for the relationship.. + + + Contains the metadata for the attribute type Memo. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The schema name of the attribute. + + + The maximum supported length is 1048576. + + + The minimum supported length is 1. + + + Gets or sets the format options for the memo attribute. + Type: Returns_Nullable<> +The format options for the memo attribute. + + + Gets or sets the value for the input method editor mode. + Type: Returns_Nullable<> +The value for the input method editor mode.. + + + Gets or sets the maximum length for the attribute. + Type: Returns_Nullable<Returns_Int32> +The maximum length for the attribute. + + + Specifies the base class for classes that contains metadata information. + + + constructor_initializes class + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets whether the item of metadata has changed. + Type: Returns_Nullable<Returns_Boolean>true if metadata item has changed since the last query; otherwise, false. + + + Gets or sets a unique identifier for the metadata item. + Type: Returns_Nullable<Returns_Guid> +The unique identifier for the metadata item. + + + Contains the metadata for an attribute type Money. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String. +The schema name of the attribute. + + + The maximum supported precision for this attribute is 4. + + + The maximum supported value for this attribute is 922337000000000. + + + The minimum supported precision for this attribute is 0. + + + The minimum supported value for this attribute is -922337000000000. + + + internal + Type: Returns_Stringinternal + + + Gets or sets the input method editor (IME) mode for the attribute. + Type: Returns_Nullable<> +The input method editor (IME) mode for the attribute.. + + + Gets or sets the maximum value for the attribute. + Type: Returns_Nullable<Returns_Double> +The maximum value for the attribute. + + + Gets or sets the minimum value for the attribute. + Type: Returns_Nullable<Returns_Double> +The minimum value for the attribute. + + + Gets or sets the precision for the attribute. + Type: Returns_Nullable<Returns_Int32> +The precision for the attribute. + + + Gets or sets the precision source for the attribute. + Type: Returns_Nullable<Returns_Int32> +The precision source for the attribute. + + + Contains the metadata for a one-to-many entity relationship. + + + constructor_initializes class + + + Gets or sets the associated menu configuration. + Type: The associated menu configuration. + + + Gets or sets cascading behaviors for the entity relationship. + Type: The cascading behaviors for the entity relationship. + + + Get or set the name of primary attribute for the referenced entity. + Type: Returns_String +The name of primary attribute for the referenced entity.. + + + Get or set the name of the referenced entity. + Type: Returns_String +The name of the referenced entity. + + + Get or set the name of the referencing attribute. + Type: Returns_String +The name of the referencing attribute. + + + Gets or sets the name of the referencing entity. + Type: Returns_String +The name of the referencing entity. + + + Contains metadata representing an option within an Option set. + + + constructor_initializes class + + + Initializes a new instance of the class + Type: Returns_Nullable<Returns_Int32> +The value of the option. + Type: The label containing the text for the option.. + + + Initializes a new instance of the class + Type: Returns_Nullable<Returns_Int32> +The value of the option. + + + Gets or sets the label containing the description for the option. + Type: The label containing the description for the option.. + + + Gets whether the option is part of a managed solution. + Type: Returns_Nullable<Returns_Boolean>true if the option is part of a managed solution.; otherwise, false + + + Gets or sets the label containing the text for the option. + Type: The label containing the text for the option.. + + + Gets or sets the value of the option. + Type: Returns_Nullable<Returns_Int32> +The value of the option. + + + Contains the options in for the . class. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_IList<>. Sets the options for the collection. + + + Contains metadata that defines a set of options. + + + constructor_initializes class + + + Initializes a new instance of the class + Type: The options available in the option set. + + + Gets the options available in the option set. + Type: The options available in the option set. + + + Contains data that defines a set of options. + + + Initializes a new instance of the class + + + Gets or sets a description for the option set. + Type: The description for the option set. + + + Gets or sets a display name for a global option set. + Type: The display name for a global option set. + + + introducedversion + Type: Returns_String +A string identifying the solution version that the solution component was added in. + + + Gets or sets a property that determines whether the option set is customizable. + Type: The property that determines whether the option set is customizable. + + + Gets or sets whether the option set is a custom option set. + Type: Returns_Nullable<Returns_Boolean>true if the option set is a custom option set; otherwise, false. + + + Gets or sets whether the option set is a global option set. + Type: Returns_Nullable<Returns_Boolean>true if the option set is a global option set; otherwise, false. + + + Gets or sets whether the option set is part of a managed solution. + Type: Returns_Nullable<Returns_Boolean>true if the option set is part of a managed solution; otherwise, false. + + + Gets or sets the name of a global option set. + Type: Returns_String +The name of a global option set. + + + Gets or sets the type of option set. + Type: Returns_Nullable<> +The type of option set. + + + Indicates the type of option set. + + + The option set provides two options for a attribute. Value = 3. + + + The option set provides a list of options. Value = 0. + + + The option set represents state options for a attribute. Value = 1. + + + The option set represents status options for a attribute. Value = 2. + + + Specifies the type of ownership for an entity. + + + The entity is owned by a business unit. internal Value = 4. + + + The entity is parented by a business unit. internal Value = 16. + + + The entity does not have an owner. internal Value = 0. + + + The entity is owned by an organization. Value = 8. + + + The entity is owned by a team. internalValue = 2. + + + The entity is owned by a system user. Value = 1. + + + Contains the metadata for an attribute type Picklist. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String +The schema name of the attribute. + + + Describes the type of operation for the privilege + + + The append privilege. Value = 7. + + + The append to privilege. Value = 8. + + + The assign privilege. Value = 5. + + + The create privilege. Value = 1. + + + The delete privilege. Value = 4. + + + Specifies no privilege. Value = 0. + + + The read privilege. Value = 2. + + + The share privilege. Value = 6. + + + The write privilege. Value = 3. + + + Contains the metadata for an entity relationship. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: +The type of relationship. + + + introducedversion + Type: Returns_String +A string identifying the solution version that the solution component was added in. + + + Gets or sets whether the entity relationship is customizable. + Type: Whether the entity relationship is customizable. + + + Gets whether the relationship is a custom relationship. + Type: Returns_Nullable<Returns_Boolean>true if the relationship is a custom relationship; otherwise, false. + + + Gets whether the entity relationship is part of a managed solution. + Type: Returns_Nullable<Returns_Boolean>true if the entity relationships is part of a managed solution; otherwise, false. + + + Gets or sets whether the entity relationship should be shown in Advanced Find. + Type: Returns_Nullable<Returns_Boolean>true if the entity relationship should be shown in Advanced Find; otherwise, false. + + + Gets the type of relationship. + Type:. + + + Gets or sets the schema name for the entity relationship. + Type: Returns_String +The schema name for the entity relationship. + + + Gets or sets the security type for the relationship. + Type: Returns_Nullable<> +The security type for the relationship. + + + Specifies the type of entity relationship. + + + The default value. Equivalent to OneToManyRelationship. Value = 0. + + + The entity relationship is a Many-to-Many relationship. Value = 1. + + + The entity relationship is a One-to-Many relationship. Value = 0. + + + Contains the metadata that describes a security privilege for access to an entity. + + + Gets whether the privilege can be basic access level. + Type: Returns_Booleantrue if the privilege can be basic access level.; otherwise, false. + + + Gets whether the privilege can be deep access level. + Type: Returns_Booleantrue if the privilege can be deep access level; otherwise, false. + + + Gets whether the privilege can be global access level. + Type: Returns_Booleantrue if the privilege can be global access level; otherwise, false. + + + Gets whether the privilege can be local access level. + Type: Returns_Booleantrue if the privilege can be local access level; otherwise, false. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets the name of the privilege. + Type: Returns_String +The name of the privilege. + + + Gets the ID of the privilege. + Type: Returns_Guid The ID of the privilege. + + + Gets the type of the privilege. + Type: The type of the privilege. + + + Describes the security type for the relationship. + + + The and privileges are checked for create or update operations. Value = 1. + + + The referencing entity record inherits security from the referenced security record. Value = 8. + + + No security privileges are checked during create or update operations. Value = 0. + + + Security for the referencing entity record is derived from the referenced entity record. Value = 2. + + + Security for the referencing entity record is derived from a pointer record. Value = 4. + + + Contains the metadata for an attribute of type State. + + + Initializes a new instance of the class + + + Contains data to define an option for the options in a State attribute. + + + Initializes a new instance of the class + + + Gets or sets the default status value associated with this state. + Type: Returns_Nullable<Returns_Int32> +The default status value associated with this state. + + + Gets or sets the name of the state that does not change. + Type: Returns_String +The name of the state that does not change. + + + Contains the metadata for an attribute of type Status. + + + Initializes a new instance of the class + + + Contains one of the possible values for an attribute of type Status. + + + constructor_initializes class + + + Initializes a new instance of the class + Type: Returns_Nullable<Returns_Int32>. +The state of the option. + Type: Returns_Int32. +The value of the option. + + + Gets or sets the state that this status is associated with. + Type: Returns_Nullable<Returns_Int32> +The state that this status is associated with. + + + Gets or sets the status transitions allowed for this status. + Type: Returns_String +The encoded XML document that defines the allowed transitions. + + + Contains the metadata for an attribute of type String. + + + Initializes a new instance of the class + + + Initializes a new instance of the class + Type: Returns_String. +The schema name of the attribute to create. + + + The maximum supported length is 4000 characters. + + + The minimum supported length is 1 character. + + + Gets or sets the format for the string + Type: Returns_Nullable<> +The format of the string attribute. + + + Gets or sets the format for the string. + Type: The format for the string attribute. + + + Gets or sets the IME mode for the attribute. + Type: Returns_Nullable<> +The input method editor mode. + + + Gets or sets the maximum length for the string. + Type: Returns_Nullable<int> +The maximum length. + + + internal + Type: Returns_Stringinternal + + + deprecated Describes the formatting of a string attribute for the . property. + + + Specifies to display the string as an e-mail. Value = 0. + + + internal + + + Specifies to display the string as a phonetic guide. Value = 5. + + + Specifies to display the string as text. Value = 1. + + + Specifies to display the string as a text area. Value = 2. + + + Specifies to display the string as a ticker symbol. Value = 4. + + + Specifies to display the string as a URL. Value = 3. + + + Specifies to display the string as a version number. Value = 6. + + + Specifies the format of a attribute using the property. + + + Initializes a new instance of the class. + + + Specifies to display the as an email address. + + + Specifies to display the as an phone number. + + + Specifies to display the as an phonetic guide. + + + Specifies to display the as text. + + + Specifies to display the as a text area. + + + Specifies to display the as a ticker symbol. + + + Specifies to display the as a URL. + + + Specifies to display the as a version number. + + + Determines whether two instances are equal. + Type: Returns_Booleantrue if the specified is equal to the object; otherwise, false. + Type: Returns_Object. The to compare with the current . + + + Returns a hash code value for this type. + Type: Returns_Int32 +The hash code for the current StringFormatName. + + + Indicates whether two StringFormatName instances are the same. + Type: Returns_Booleantrue if the values of stringFormatA and stringFormatB are the same; otherwise, false. + Type: . Specifies a StringFormatName. + Type: . Specifies a StringFormatName. + + + Converts a string into a + Type: A that represents the converted Returns_String. + Type: Returns_String. Specifies a StringFormatName. + + + Indicates whether two StringFormatName instances are different. + Type: Returns_Booleantrue if the values of stringFormatA and stringFormatB are different; otherwise, false. + Type: . Specifies a StringFormatName. + Type: . Specifies a StringFormatName. + + + Defines a complex query to retrieve attribute metadata for entities retrieved using an + + + Initializes a new instance of the class. + + + The structure used to return deleted metadata. + + + Initializes a new instance of the class. + + + An enumeration that specifies the type of deleted metadata to retrieve. + + + All deleted metadata. Value = 31. + + + Deleted Attribute metadata. Value = 2. + + + The value used if not set. Equals + + + Deleted Entity metadata. Value = 1. + + + Deleted Label metadata. Value = 8. + + + Deleted OptionSet metadata. Value = 16. + + + Deleted Relationship metadata. Value = 4. + + + Defines a complex query to retrieve entity metadata. + + + Initializes a new instance of the class. + + + Gets or sets a query expression for the entity attribute metadata to return. + Type: . + + + Gets or sets a query expression for the labels to return. + Type:. + + + Gets or sets a query expression for the entity relationship metadata to return. + Type:. + + + Defines the languages for the labels to be retrieved for metadata items that have labels. + + + Initializes a new instance of the class. + + + Gets the LCID values for localized labels to be retrieved for metadata items. + Type <Returns_Int32>The LCID values for localized labels to be retrieved for metadata items. + + + When this optional parameter is set to 1, the query will include labels for the base language if the label for the requested language is not there. + Type: Returns_Int32. + + + Contains a condition expression used to filter the results of the metadata query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: . The condition operator. + Type: Returns_String. The name of the metadata property in the condition expression. + Type: Returns_Object The value for the metadata property. + + + Gets or sets the condition operator. + Type: . The condition operator. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the name of the metadata property in the condition expression. + Type: Returns_String +The name of the metadata property in the condition expression. + + + Gets or sets the value for the metadata property. + Type: Returns_Object The value for the metadata property. + + + Describes the type of comparison for two values in a metadata condition expression. + + + The values are compared for equality. Value = 0. + + + The value is greater than the compared value. Value = 4. + + + The value exists in a list of values. Value = 2. + + + The value is less than the compared value. Value = 5. + + + The two values are not equal. Value = 1. + + + The given value is not matched to a value in a list. Value = 3. + + + Specifies complex condition and logical filter expressions used for filtering the results of a metadata query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: . The filter operator + + + Gets condition expressions that include metadata properties, condition operators and values. + Type: <>The collection of metadata condition expressions. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the logical AND/OR filter operator. + Type: The filter operator. + + + Gets a collection of logical filter expressions that filter the results of the metadata query. + Type: <>. + + + Specifies the properties for which non-null values are returned from a query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: Returns_String[]. The strings representing the metadata properties to retrieve. + + + Gets or sets whether to retrieve all the properties of a metadata object. + Type: Returns_Booleantrue to specify to retrieve all metadata object properties; false to retrieve only specified metadata object properties. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets a collection of strings representing the metadata properties to retrieve. + Type: <Returns_String> The collection of strings representing the metadata properties to retrieve. + + + Represents the abstract base class for constructing a metadata query. + + + Initializes a new instance of the class. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Represents the abstract base class for constructing a metadata query. + + + Initializes a new instance of the class. + + + Gets or sets the filter criteria for the metadata query. + Returns The filter criteria for the metadata query. + + + Gets or sets the properties to be returned by the query. + Returns The properties to be returned by the query. + + + Defines a complex query to retrieve entity relationship metadata for entities retrieved using an + + + Initializes a new instance of the class. + + + Specifies the attributes for which non-null values are returned from a query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the property. + Type: Returns_Boolean. A Boolean that specifies whether to retrieve all attributes of a record. + + + Initializes a new instance of the class setting the property. + Type: Returns_String[]. Specifies an array of Strings containing the names of the attributes. + + + Adds the specified attribute to the column set. + Type: Returns_String. Specifies a String containing the name of the attribute. + + + Adds the specified attribute to the column set. + Type: Returns_String[]. Specifies an array of Strings containing the names of the attributes. + + + Gets or sets whether to retrieve all the attributes of a record. + Type: Returns_Booleantrue to specify to retrieve all attributes; false to to retrieve only specified attributes. + + + Gets the collection of Strings containing the names of the attributes to be retrieved from a query. + Type: Returns_ICollection_Generic +The collection of attribute names to return from a query. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Contains a condition expression used to filter the results of the query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the attribute name and condition operator. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + + + Initializes a new instance of the class setting the attribute name, condition operator and a collection of values. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + Type: Returns_ICollection. The collection of attribute values. + + + Initializes a new instance of the class setting the attribute name, condition operator and value object. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + Type: Returns_Object. The attribute value. + + + Initializes a new instance of the class setting the attribute name, condition operator and an array of value objects. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + Type: Returns_Object[]. The array of attribute values. + + + Initializes a new instance of the class. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + Type: Returns_String. The logical name of the entity in the condition expression. + + + Initializes a new instance of the class. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + Type: Returns_String. The logical name of the entity in the condition expression. + Type: Returns_Object. The attribute value. + + + Initializes a new instance of the class. + Type: . The condition operator. + Type: Returns_String. The logical name of the attribute in the condition expression. + Type: Returns_String. The logical name of the entity in the condition expression. + Type: Returns_Object[]. The array of attribute values. + + + Gets or sets the logical name of the attribute in the condition expression. + Type: Returns_String +The logical name of the attribute in the condition expression. + + + Gets or sets the entity name for the condition. + Type: Returns_StringThe name of the entity. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the condition operator. + Type: +The condition operator. + + + Gets or sets the values for the attribute. + Type: <Returns_Object>The attribute values. + + + Describes the type of comparison for two values (or expressions) in a condition expression. + + + The string occurs at the beginning of another string. Value = 0x36. + + + The value is between two values. Value = 10. + + + internal + + + The string contains another string. Value = 0x31. + + + The string does not begin with another string. Value = 0x37. + + + The string does not contain another string. Value = 50. + + + The string does not end with another string. Value = 0x39. + + + The string ends with another string. Value = 0x38. + + + The values are compared for equality. Value = 0. + + + The value is equal to the specified business ID. Value = 0x2b. + + + The value is equal to the specified user ID. Value = 0x29. + + + The value is equal to the language for the user. Value = 0x33. + + + The record is owned by a user or teams that the user is a member of. Value = 0x4a. + + + The record is owned by teams that the user is a member of. Value = 0x49. + + + The value is greater than or equal to the compared value. Value = 4. + + + The value is greater than the compared value. Value = 2. + + + TheThe value exists in a list of values. Value = 8. + + + The value is within the specified fiscal period. Value = 0x45. + + + The value is within the specified fiscal period and year. Value = 70. + + + The value is within the specified year. Value = 0x44. + + + The value is within or after the specified fiscal period and year. Value = 0x48. + + + The value is within or before the specified fiscal period and year. Value = 0x47. + + + The value is within the last seven days including today. Value = 0x11. + + + The value is within the last fiscal period. Value = 0x3f. + + + The value is within the last fiscal year. Value = 0x3e. + + + The value is within the last month including first day of the last month and last day of the last month. Value = 0x16. + + + The value is within the previous week including Sunday through Saturday. Value = 0x13. + + + The value is within last X days. Value = 0x21. + + + The value is within the last X (specified value) fiscal periods. Value = 0x41. + + + The value is within the last X (specified value) fiscal periods. Value = 0x40. + + + The value is within the last X hours. Value = 0x1f. + + + The value is within the last X (specified value) months. Value = 0x25. + + + The value is within the last X (specified value) weeks. Value = 0x23. + + + The value is within the last X years. Value = 0x27. + + + The value is within the previous year. Value = 0x1c. + + + The value is less than or equal to the compared value. Value = 5. + + + The value is less than the compared value. Value = 3. + + + The character string is matched to the specified pattern. Value = 6. + + + The value is found in the specified bit-mask value. Value = 0x2e. + + + Internal Value = 0x30. + + + The value is within the next seven days. Value = 0x12. + + + The value is within the next fiscal period. Value = 0x3d. + + + The value is within the next fiscal year. Value = 60. + + + The value is within the next month. Value = 0x18. + + + The value is within the next week. Value = 0x15. + + + The value is within the next X (specified value) days. Value = 0x22. + + + The value is within the next X (specified value) fiscal period. Value = 0x43. + + + The value is within the next X (specified value) fiscal years. Value = 0x42. + + + The value is within the next X (specified value) hours. Value = 0x20. + + + The value is within the next X (specified value) months. Value = 0x26. + + + The value is within the next X weeks. Value = 0x24. + + + The value is within the next X years. Value = 40. + + + The value is within the next year. Value = 30. + + + The value is not between two values. Value = 11. + + + The two values are not equal. Value = 1. + + + The value is not equal to the specified business ID. Value = 0x2c. + + + The value is not equal to the specified user ID. Value = 0x2a. + + + The given value is not matched to a value in a subquery or a list. Value = 9. + + + The character string does not match the specified pattern. Value = 7. + + + The value is not found in the specified bit-mask value. Value = 0x2f. + + + The value is not null. Value = 13. + + + The value is not on the specified date. Value = 0x34. + + + The value is null. Value = 12. + + + The value is older than the specified number of months. Value = 0x35. + + + The value is on a specified date. Value = 0x19. + + + The value is on or after a specified date. Value = 0x1b. + + + The value is on or before a specified date. Value = 0x1a. + + + The value is within the current fiscal period. Value = 0x3b. + + + The value is within the current fiscal year . Value = 0x3a. + + + The value is within the current month. Value = 0x17. + + + The value is within the current week. Value = 20. + + + The value is within the current year. Value = 0x1d. + + + The value equals today’s date. Value = 15. + + + The value equals tomorrow’s date. Value = 0x10. + + + The value equals yesterday’s date. Value = 14. + + + Contains a query expressed in FetchXML. + + + Initializes a new instance of the class. + Type: Returns_String. The FetchXML query string. + + + Gets or sets the FetchXML query string. + Type: Returns_StringThe FetchXML query string. + + + Specifies complex condition and logical filter expressions used for filtering the results of the query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: . The filter operator. + + + Adds a condition to the filter expression setting the condition expression. + Type: . Specifies the condition expression to be added. + + + Adds a condition to the filter expression setting the attribute name, condition operator, and value array. + Type: . The enumeration type. + Type: Returns_String. The name of the attribute. + Type: Returns_Object[]. The array of values to add. + + + Adds a condition to the filter expression setting the entity name, attribute name, condition operator, and value array. + Type: . The enumeration type. + Type: Returns_String. The name of the attribute. + Type: Returns_String. The name of the entity. + Type: Returns_Object[]. The array of values to add. + + + Adds a child filter to the filter expression. + Type: . The filter to be added. + + + Adds a child filter to the filter expression setting the logical operator. + Type: +The new filter expression. + Type: . The enumeration type. + + + Gets condition expressions that include attributes, condition operators, and attribute values. + Type: <> +The collection of condition expressions. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the logical AND/OR filter operator. + Type: The filter operator. + + + Gets a collection of condition and logical filter expressions that filter the results of the query. + Type: <>The collection of filters. + + + Gets or sets whether the expression is part of a quick find query. + Type: Returns_Booleantrue if the filter is part of a quick find query; otherwise, false. + + + Contains the possible values for a join operator in a . + + + The values in the attributes being joined are compared using a comparison operator. Value = 0. + + + All instances of the entity in the FROM clause are returned if they meet WHERE or HAVING search conditions. Value = 1. + + + Only one value of the two joined attributes is returned if an equal-join operation is performed and the two values are identical. Value = 0. + + + Specifies the links between multiple entity types used in creating complex queries. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the required properties. + Type: Returns_String. The name of the attribute to link to. + Type: . The join operator. + Type: Returns_String. The logical name of the entity to link from. + Type: Returns_String. The logical name of the entity to link to. + Type: Returns_String. The name of the attribute to link from. + + + Adds a link, setting the link to entity name, the link from attribute name and the link to attribute name. + Type: The link entity that was created. + Type: Returns_String. The name of the attribute to link to. + Type: Returns_String. The name of the entity to link to. + Type: Returns_String. The name of the attribute to link from. + + + Adds a link setting the link to entity name, the link from attribute name, the link to attribute name, and the join operator. + Type: The link entity that was created. + Type: Returns_String. The name of the attribute to link to. + Type: . The join operator. + Type: Returns_String. The name of the entity to link to. + Type: Returns_String. The name of the attribute to link from. + + + Gets or sets the column set. + Type: The set of columns (fields) to be returned for the query. + + + Gets or sets the alias for the entity. + Type: Returns_String +The alias for the entity. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the join operator. + Type: The join operator. + + + Gets or sets the complex condition and logical filter expressions that filter the results of the query. + Type: The complex condition and logical filter expressions that filter the results of the query. + + + Gets the links between multiple entity types. + Type: <>The collection of links between entities. + + + Gets or sets the logical name of the attribute of the entity that you are linking from. + Type: Returns_String +The logical name of the attribute of the entity that you are linking from. + + + Gets or sets the logical name of the entity that you are linking from. + Type: Returns_String +The logical name of the entity that you are linking from. + + + Gets or sets the logical name of the attribute of the entity that you are linking to. + Type: Returns_String +The logical name of the attribute of the entity that you are linking to. + + + Gets or sets the logical name of the entity that you are linking to. + Type: Returns_String +The logical name of the entity that you are linking to. + + + Contains the possible values for an operator in a . + + + A logical AND operation is performed. Value = 0. + + + A logical OR operation is performed. Value = 1. + + + Sets the order in which the entity instances are returned from the query. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the attribute name and the order type. + Type: Returns_String. The name of the attribute. + Type: . The order, ascending or descending. + + + Gets or sets the name of the attribute in the order expression. + Type: Returns_String +The name of the attribute in the order expression. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the order, ascending or descending. + Returns The order, ascending or descending. + + + Contains the possible values for the order type in an . + + + The values of the specified attribute should be sorted in ascending order, from lowest to highest. Value = 0. + + + The values of the specified attribute should be sorted in descending order, from highest to lowest. Value = 1. + + + Specifies a number of pages and a number of entity instances per page to return from the query. + + + Initializes a new instance of the class. + + + Gets or sets the number of entity instances returned per page. + Type: Returns_Int32 +The number of entity instances returned per page. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Gets or sets the number of pages returned from the query. + Type: Returns_Int32 +The number of pages returned from the query. + + + Gets or sets the info used to page large result sets. + Type: Returns_String +The info used to page large result sets. + + + Sets whether the total number of records should be returned from the query. + Type: Returns_Booleantrue if the should be set when the query is executed; otherwise, false. + + + Represents the abstract base class for constructing a query. + + + Initializes a new instance of the class. + + + ExtensionData + Type: Returns_ExtensionDataObjectThe extension data. + + + Contains a query that is expressed as a set of attribute and value pairs. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class. + Type: Returns_String. The logical name of the entity to query. + + + Adds an attribute value to the attributes collection. + Type: Returns_Object. The attribute value. + Type: Returns_String. The logical name of the attribute. + + + Adds an order to the orders collection. + Type: Returns_String. The logical name of the attribute. + Type: . The order for that attribute. + + + Gets the set of attributes selected in the query. + Type: <Returns_String> +The collection of attributes selected in the query. + + + Gets or sets the column set. + Type: The set of columns (fields) to be returned, used collection. + + + Gets or sets the logical name of the entity to query. + Type: Returns_StringThe logical name of the entity. + + + Gets the order in which the entity instances are returned from the query. + Type: <>A collection that defines the order in which the entity instances are returned from the query. + + + Gets or sets the number of pages and the number of entity instances per page returned from the query. + Type: The number of pages and the number of entity instances per page returned from the query.A query can contain either or property values. If both are specified, an error will be thrown. + + + Gets or sets the number of rows to be returned. + Type: Returns_Int32The number of rows to be returned. + + + Gets the attribute values to look for when the query is executed. + Type: <Returns_Object>A collection that defines the attribute values to look for when the query is executed. + + + Contains a complex query expressed in a hierarchy of expressions. + + + Initializes a new instance of the class. + + + Initializes a new instance of the class setting the entity name. + Type: Returns_String. The name of the entity. + + + Adds the specified link to the query expression setting the entity name to link to, the attribute name to link from and the attribute name to link to. + Type: The link entity instance created and added to the query expression. + Type: Returns_String. The name of the attribute to link to. + Type: Returns_String. The name of entity to link from. + Type: Returns_String. The name of the attribute to link from. + + + Adds the specified link to the query expression setting the entity name to link to, the attribute name to link from and the attribute name to link to. + Type: The link entity instance created and added to the query expression. + Type: Returns_String. The name of the attribute to link to. + Type: . The join operator. + Type: Returns_String. The name of entity to link from. + Type: Returns_String. The name of the attribute to link from. + + + Adds the specified order expression to the query expression. + Type: Returns_String. The name of the attribute. + Type: . The order type. + + + Gets or sets the columns to include. + Type: The set of columns to return in the query results. + + + Gets or sets the complex condition and logical filter expressions that filter the results of the query. + Type: The query condition and filter criteria. + + + Gets or sets whether the results of the query contain duplicate entity instances. + Type: Returns_Booleantrue if the results of the query contain duplicate entity instances; otherwise, false. + + + Gets or sets the logical name of the entity. + Type: Returns_String +The logical name of the primary entity for the query. + + + Gets a collection of the links between multiple entity types. + Type: <>The collection of links between entities for the query. + + + Gets or sets a value that indicates that no shared locks are issued against the data that would prohibit other transactions from modifying the data in the records returned from the query. + Type: Returns_Booleantrue if there are no shared locks are issued against the data that would prohibit other transactions from modifying the data in the records returned from the query; otherwise, false. + + + Gets the order in which the entity instances are returned from the query. + Type: <>The order expression that defines the order in which the entity instances are returned from the query. + + + Gets or sets the number of pages and the number of entity instances per page returned from the query. + Type: The number of pages and the number of entity instances per page returned from the query.A query can contain either or property values. If both are specified, an error will be thrown. + + + Gets or sets the number of rows to be returned. + Type: Returns_Int32The number of rows to be returned. + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Lib/Keys/Xrm.Framework.CI.snk b/CRM2013/Xrm.Framework.CI/Lib/Keys/Xrm.Framework.CI.snk new file mode 100644 index 00000000..4cbe46a9 Binary files /dev/null and b/CRM2013/Xrm.Framework.CI/Lib/Keys/Xrm.Framework.CI.snk differ diff --git a/CRM2013/Xrm.Framework.CI/Package.ps1 b/CRM2013/Xrm.Framework.CI/Package.ps1 new file mode 100644 index 00000000..bf30aa11 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Package.ps1 @@ -0,0 +1,55 @@ +$version = "6.1.0.0" + +Write-Host "Packaging xRM CI Framework $version" + +$ErrorActionPreference = "Stop" + +#Script Location +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition +Write-Host "Script Path: $scriptPath" + +$CIFrameworkPackagesDir = $scriptPath + "\Packages" +$CIFrameworkTempDir = $CIFrameworkPackagesDir + "\Temp" +$CIFrameworkRootDir = $CIFrameworkTempDir + "\xRMCIFramework" +$CIPowerShellDir = $CIFrameworkRootDir + "\PowerShell" +$CIBuildTemplatesDir = $CIFrameworkRootDir + "\BuildTemplates" +$CIBuildCustomAssembliesDir = $CIBuildTemplatesDir + "\CustomAssemblies" +$xRMCIFrameworkPackageName = "xRMCIFramework_" + $version + ".zip" +$xRMCIFrameworkPackagePath = $CIFrameworkPackagesDir + "\" + $xRMCIFrameworkPackageName + +if (Test-Path $CIFrameworkTempDir) +{ + Remove-Item $CIFrameworkTempDir -Force -Recurse +} + +if (Test-Path $xRMCIFrameworkPackagePath) +{ + Remove-Item $xRMCIFrameworkPackagePath -Force -Recurse +} + +New-Item $CIFrameworkTempDir -ItemType directory +New-Item $CIFrameworkRootDir -ItemType directory +New-Item $CIPowerShellDir -ItemType directory +New-Item $CIBuildTemplatesDir -ItemType directory +New-Item $CIBuildCustomAssembliesDir -ItemType directory + +Copy-Item ($scriptPath + "\Xrm.Framework.CI.PowerShell\bin\Release\microsoft.xrm.client.dll") $CIPowerShellDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.PowerShell\bin\Release\microsoft.xrm.sdk.dll") $CIPowerShellDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.PowerShell\bin\Release\microsoft.crm.sdk.proxy.dll") $CIPowerShellDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.PowerShell\bin\Release\Xrm.Framework.CI.PowerShell.dll") $CIPowerShellDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.PowerShell\bin\Release\*.ps1") $CIPowerShellDir -Force -Recurse + +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Activities\bin\Release\microsoft.xrm.client.dll") $CIBuildCustomAssembliesDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Activities\bin\Release\microsoft.xrm.sdk.dll") $CIBuildCustomAssembliesDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Activities\bin\Release\microsoft.xrm.sdk.deployment.dll") $CIBuildCustomAssembliesDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Activities\bin\Release\microsoft.crm.sdk.proxy.dll") $CIBuildCustomAssembliesDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Activities\bin\Release\CustomActivitiesAndExtensions.xml") $CIBuildCustomAssembliesDir -Force -Recurse +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Activities\bin\Release\Xrm.Framework.CI.TeamFoundation.Activities.dll") $CIBuildCustomAssembliesDir -Force -Recurse + +Copy-Item ($scriptPath + "\Xrm.Framework.CI.TeamFoundation.Templates\DynamicsCRM2013ReleaseTfvcTemplate.12.xaml") $CIBuildTemplatesDir -Force -Recurse + +[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" ) +$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal +[System.IO.Compression.ZipFile]::CreateFromDirectory( $CIFrameworkRootDir, $xRMCIFrameworkPackagePath, $compressionLevel, $false ) + +Remove-Item $CIFrameworkTempDir -Force -Recurse \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Packages/readme.txt b/CRM2013/Xrm.Framework.CI/Packages/readme.txt new file mode 100644 index 00000000..8a487ba2 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Packages/readme.txt @@ -0,0 +1 @@ +Run .\Packages.ps1 to generate the xRM CI Framework package in this folder \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Packages/xRMCIFramework_6.1.0.0.zip b/CRM2013/Xrm.Framework.CI/Packages/xRMCIFramework_6.1.0.0.zip new file mode 100644 index 00000000..6cc12ec8 Binary files /dev/null and b/CRM2013/Xrm.Framework.CI/Packages/xRMCIFramework_6.1.0.0.zip differ diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/AddXrmEntityCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/AddXrmEntityCommand.cs new file mode 100644 index 00000000..844ad153 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/AddXrmEntityCommand.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Add, "XrmEntity")] + public class AddXrmEntityCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public Entity EntityObject + { + get { return entityObject; } + set { entityObject = value; } + } + private Entity entityObject; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Creating Entity: {0}", EntityObject)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + Guid id = service.Create(EntityObject); + + base.WriteObject(id); + + base.WriteVerbose(string.Format("Entity Created: {0}", EntityObject)); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DeployPackage.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DeployPackage.ps1 new file mode 100644 index 00000000..5b505bb8 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DeployPackage.ps1 @@ -0,0 +1,55 @@ +param( +[string]$AuthenticationType, +[string]$Username, +[string]$Password, +[string]$ServerUrl, +[string]$OrganizationName, +[string]$DeploymentRegion, +[string]$OnlineType, +[string]$HomRealmURL, +[string]$PackageName, +[string]$PackageDirectory +) + +$ErrorActionPreference = "Stop" + +#Parameters +Write-Host "AuthenticationType: $AuthenticationType" +Write-Host "Username: $Username" +Write-Host "Password: $Password" +Write-Host "ServerUrl: $ServerUrl" +Write-Host "OrganizationName: $OrganizationName" +Write-Host "DeploymentRegion: $DeploymentRegion" +Write-Host "OnlineType: $OnlineType" +Write-Host "HomRealmURL: $HomRealmURL" +Write-Host "PackageName: $PackageName" +Write-Host "PackageDirectory: $PackageDirectory" + +#Script Location +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition +Write-Host "Script Path: $scriptPath" + +#Load XRM Tooling + +Add-PSSnapin Microsoft.Xrm.Tooling.Connector + +Add-PSSnapin Microsoft.Xrm.Tooling.PackageDeployment + +#Create Credentials +$SecPassword = ConvertTo-SecureString $Password -AsPlainText -Force +$Cred = New-Object System.Management.Automation.PSCredential ($Username, $SecPassword) + +#Create Connection + +switch($AuthenticationType) +{ + "AD" { $CRMConn = Get-CrmConnection -ServerUrl $ServerUrl -OrganizationName $OrganizationName -Credential $Cred } + "Claims" { $CRMConn = Get-CrmConnection -ServerUrl $ServerUrl -OrganizationName $OrganizationName -Credential $Cred –HomRealmURL $HomRealmURL} + "IFD" { $CRMConn = Get-CrmConnection -ServerUrl $ServerUrl -OrganizationName $OrganizationName -Credential $Cred } + "Live" { $CRMConn = Get-CrmConnection -Credential $Cred -DeploymentRegion $DeploymentRegion –OnlineType $OnlineType –OrganizationName $OrganizationName } + "Office365" { $CRMConn = Get-CrmConnection -Credential $Cred -DeploymentRegion $DeploymentRegion –OnlineType $OnlineType –OrganizationName $OrganizationName } +} + +#Deploy Package + +Import-CrmPackage –CrmConnection $CRMConn –PackageDirectory $PackageDirectory –PackageName $PackageName -Verbose \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateBuildScript.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateBuildScript.ps1 new file mode 100644 index 00000000..ce78842e --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateBuildScript.ps1 @@ -0,0 +1,242 @@ +param( +[switch]$EnableSolutionExport, +[string]$CrmConnectionString, +[switch]$SolutionUpdateSetVersionToBuild, +[switch]$PublishCustomizations, +[string]$SolutionName, +[string]$SolutionExportPackageType, +[string]$ExportSolutionOutputPath, +[switch]$ExportIncludeVersionInSolutionName, +[switch]$ExportAutoNumberingSettings, +[switch]$ExportCalendarSettings, +[switch]$ExportCustomizationSettings, +[switch]$ExportEmailTrackingSettings, +[switch]$ExportGeneralSettings, +[switch]$ExportIsvConfig, +[switch]$ExportMarketingSettings, +[switch]$ExportOutlookSynchronizationSettings, +[switch]$ExportRelationshipRoles, +[switch]$EnableSolutionPack, +[switch]$SolutionPackSetVersionToBuild, +[switch]$CheckInUpdatedSolutionFile, +[string]$LocalSolutionPackagerFile, +[string]$LocalSolutionPackagerFilesFolder, +[string]$LocalSolutionPackagerMappingFile, +[string]$SolutionPackPackageType, +[string]$SolutionPackOutputPath, +[switch]$PackIncludeVersionInSolutionName, +[string]$TfCommand +) + +$ErrorActionPreference = "Stop" + +#Parameters +Write-Host "EnableSolutionExport: $EnableSolutionExport" +Write-Host "CrmConnectionString: $CrmConnectionString" +Write-Host "SolutionUpdateSetVersionToBuild: $SolutionUpdateSetVersionToBuild" +Write-Host "PublishCustomizations: $PublishCustomizations" +Write-Host "SolutionName: $SolutionName" +Write-Host "SolutionExportPackageType: $SolutionExportPackageType" +Write-Host "ExportSolutionOutputPath: $ExportSolutionOutputPath" +Write-Host "ExportIncludeVersionInSolutionName: $ExportIncludeVersionInSolutionName" +Write-Host "ExportAutoNumberingSettings: $ExportAutoNumberingSettings" +Write-Host "ExportCalendarSettings: $ExportCalendarSettings" +Write-Host "ExportCustomizationSettings: $ExportCustomizationSettings" +Write-Host "ExportEmailTrackingSettings: $ExportEmailTrackingSettings" +Write-Host "ExportGeneralSettings: $ExportGeneralSettings" +Write-Host "ExportIsvConfig: $ExportIsvConfig" +Write-Host "ExportMarketingSettings: $ExportMarketingSettings" +Write-Host "ExportOutlookSynchronizationSettings: $ExportOutlookSynchronizationSettings" +Write-Host "ExportRelationshipRoles: $ExportRelationshipRoles" +Write-Host "EnableSolutionPack: $EnableSolutionPack" +Write-Host "SolutionPackSetVersionToBuild: $SolutionPackSetVersionToBuild" +Write-Host "CheckInUpdatedSolutionFile: $CheckInUpdatedSolutionFile" +Write-Host "LocalSolutionPackagerFile: $LocalSolutionPackagerFile" +Write-Host "LocalSolutionPackagerFilesFolder: $LocalSolutionPackagerFilesFolder" +Write-Host "LocalSolutionPackagerMappingFile: $LocalSolutionPackagerMappingFile" +Write-Host "SolutionPackPackageType: $SolutionPackPackageType" +Write-Host "SolutionPackOutputPath: $SolutionPackOutputPath" +Write-Host "PackIncludeVersionInSolutionName: $PackIncludeVersionInSolutionName" +Write-Host "TfCommand: $TfCommand" + +#TFS Build Parameters +$buildNumber = $env:TF_BUILD_BUILDNUMBER +$sourcesDirectory = $env:TF_BUILD_SOURCESDIRECTORY +$binariesDirectory = $env:TF_BUILD_BINARIESDIRECTORY + +Write-Host "buildNumber: $buildNumber" +Write-Host "sourcesDirectory: $sourcesDirectory" +Write-Host "binariesDirectory: $binariesDirectory" + +#Script Location +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition +Write-Host "Script Path: $scriptPath" + +#Load XrmCIFramework +$xrmCIToolkit = $scriptPath + "\Xrm.Framework.CI.PowerShell.dll" +Write-Host "Importing CIToolkit: $xrmCIToolkit" +Import-Module $xrmCIToolkit +Write-Host "Imported CIToolkit" + +#Functions +function ConvertToBool($switchValue) +{ + if ($switchValue) + { + return $true + } + else + { + return $false + } +} + + +#Solution Export + +$exportManagedFile +$exportUnmanagedFile + +if ($EnableSolutionExport) +{ + #WhoAmI Check + $executingUser = Select-WhoAmI -ConnectionString $CrmConnectionString + + Write-Host "Executing User Id" $executingUser.UserId + + if ($PublishCustomizations) + { + Write-Host "Publishing Customizations" + + Publish-XrmCustomizations -ConnectionString $CrmConnectionString + + Write-Host "Publishing Customizations Completed" + } + + if ($SolutionUpdateSetVersionToBuild) + { + $versionNumber = $buildNumber.Substring($buildNumber.IndexOf("_") + 1) + + Write-Host "Updating Solution Version to $versionNumber" + + Set-XrmSolutionVersion -ConnectionString $CrmConnectionString -SolutionName $SolutionName -Version $versionNumber + + Write-Host "Solution Version Updated" + } + + $exportPath = $binariesDirectory + + if ($ExportSolutionOutputPath) + { + $exportPath = $binariesDirectory + "\" + $ExportSolutionOutputPath + } + + if ($SolutionExportPackageType -ne "Managed") + { + Write-Host "Exporting Unmanaged Solution" + + $exportUnmanagedFile = Export-XrmSolution -ConnectionString $CrmConnectionString -UniqueSolutionName $SolutionName -OutputFolder $exportPath -Managed $false -IncludeVersionInName (ConvertToBool $ExportIncludeVersionInSolutionName) -ExportAutoNumberingSettings (ConvertToBool $ExportAutoNumberingSettings) -ExportCalendarSettings (ConvertToBool $ExportCalendarSettings) -ExportCustomizationSettings (ConvertToBool $ExportCustomizationSettings) -ExportEmailTrackingSettings (ConvertToBool $ExportEmailTrackingSettings) -ExportGeneralSettings (ConvertToBool $ExportGeneralSettings) -ExportMarketingSettings (ConvertToBool $ExportMarketingSettings) -ExportOutlookSynchronizationSettings (ConvertToBool $ExportOutlookSynchronizationSettings) -ExportIsvConfig (ConvertToBool $ExportIsvConfig) -ExportRelationshipRoles (ConvertToBool $ExportRelationshipRoles) + + Write-Host "UnManaged Solution Exported $exportPath\$exportUnmanagedFile" + } + + if ($SolutionExportPackageType -ne "Unmanaged") + { + Write-Host "Exporting Managed Solution" + + $exportmanagedFile = Export-XrmSolution -ConnectionString $CrmConnectionString -UniqueSolutionName $SolutionName -OutputFolder $exportPath -Managed $true -IncludeVersionInName (ConvertToBool $ExportIncludeVersionInSolutionName) -ExportAutoNumberingSettings (ConvertToBool $ExportAutoNumberingSettings) -ExportCalendarSettings (ConvertToBool $ExportCalendarSettings) -ExportCustomizationSettings (ConvertToBool $ExportCustomizationSettings) -ExportEmailTrackingSettings (ConvertToBool $ExportEmailTrackingSettings) -ExportGeneralSettings (ConvertToBool $ExportGeneralSettings) -ExportMarketingSettings (ConvertToBool $ExportMarketingSettings) -ExportOutlookSynchronizationSettings (ConvertToBool $ExportOutlookSynchronizationSettings) -ExportIsvConfig (ConvertToBool $ExportIsvConfig) -ExportRelationshipRoles (ConvertToBool $ExportRelationshipRoles) + + Write-Host "Managed Solution Exported $exportPath\$exportmanagedFile" + } + + $exportManifest = '' + + $exportManifest | Out-File ($binariesDirectory + "\manifest.xml") +} + + +#Solution Pack + +$packManagedFile +$packUnmanagedFile + +if ($EnableSolutionPack) +{ + + if ($SolutionPackSetVersionToBuild) + { + $versionNumber = $buildNumber.Substring($buildNumber.IndexOf("_") + 1) + + Write-Host "Setting Solution Version in File to: $versionNumber" + + if ($CheckInUpdatedSolutionFile) + { + & "$tfCommand" checkout /noprompt "$LocalSolutionPackagerFilesFolder\Other\Solution.xml" + + $lastexitcode + } + else + { + Set-ItemProperty "$LocalSolutionPackagerFilesFolder\Other\Solution.xml" -name IsReadOnly -value $false + } + + Set-XrmSolutionVersionInFolder -SolutionFilesFolderPath $LocalSolutionPackagerFilesFolder -Version $versionNumber + + if($CheckInUpdatedSolutionFile) + { + & "$tfCommand" checkin "$LocalSolutionPackagerFilesFolder\Other\Solution.xml" /noprompt /comment:"Update Solution Version" /override:"CI Build" /bypass /force + + $lastexitcode + } + + Write-Host "Version Updated & Checked-In" + } + + $solutionInfo = Get-XrmSolutionInfoFromFolder -SolutionFilesFolderPath $LocalSolutionPackagerFilesFolder + $packSolutionName = $solutionInfo.UniqueName + $packSolutionVersion = $solutionInfo.Version + + Write-Host "Packing Solution $packSolutionName, Version $packSolutionVersion" + + $packStringBuilder = $packSolutionName + if ($PackIncludeVersionInSolutionName) + { + $packStringBuilder = $packStringBuilder + "_" + $packSolutionVersion.replace(".", "_") + } + $packManagedFile = $packStringBuilder + "_managed.zip" + $packUnmanagedFile = $packStringBuilder + ".zip" + + $packPath = $binariesDirectory + if ($SolutionPackOutputPath) + { + $packPath = $packPath + "\" + $SolutionPackOutputPath + } + + $targetFile = $packPath + "\" + $packUnmanagedFile + + if ($LocalSolutionPackagerMappingFile) + { + $packOutput = & "$LocalSolutionPackagerFile" /action:Pack /zipfile:"$targetFile" /folder:"$LocalSolutionPackagerFilesFolder" /packagetype:$SolutionPackPackageType /map:"$LocalSolutionPackagerMappingFile" + } + else + { + $packOutput = & "$LocalSolutionPackagerFile" /action:Pack /zipfile:"$targetFile" /folder:"$LocalSolutionPackagerFilesFolder" /packagetype:$SolutionPackPackageType + } + + Write-Output $packOutput + if ($lastexitcode -ne 0) + { + throw "Solution Pack operation failed with exit code: $lastexitcode" + } + else + { + if (($packOutput -ne $null) -and ($packOutput -like "*warnings encountered*")) + { + Write-Warning "Solution Packager encountered warnings. Check the output." + } + } + + $packManifest = '' + + $packManifest | Out-File ($binariesDirectory + "\manifest.xml") +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateDeployScript.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateDeployScript.ps1 new file mode 100644 index 00000000..22b4f81c --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateDeployScript.ps1 @@ -0,0 +1,41 @@ +param( +[string]$AuthenticationType, +[string]$Username, +[string]$Password, +[string]$ServerUrl, +[string]$OrganizationName, +[string]$DeploymentRegion, +[string]$OnlineType, +[string]$HomRealmURL, +[string]$PackageName +) + +$ErrorActionPreference = "Stop" + +#Parameters +Write-Host "AuthenticationType: $AuthenticationType" +Write-Host "Username: $Username" +Write-Host "Password: $Password" +Write-Host "ServerUrl: $ServerUrl" +Write-Host "OrganizationName: $OrganizationName" +Write-Host "DeploymentRegion: $DeploymentRegion" +Write-Host "OnlineType: $OnlineType" +Write-Host "HomRealmURL: $HomRealmURL" +Write-Host "PackageName: $PackageName" + +#TFS Build Parameters +$buildNumber = $env:TF_BUILD_BUILDNUMBER +$sourcesDirectory = $env:TF_BUILD_SOURCESDIRECTORY +$binariesDirectory = $env:TF_BUILD_BINARIESDIRECTORY + +Write-Host "buildNumber: $buildNumber" +Write-Host "sourcesDirectory: $sourcesDirectory" +Write-Host "binariesDirectory: $binariesDirectory" + +#Script Location +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition +Write-Host "Script Path: $scriptPath" + +#Deploy Package + +& "$scriptPath\DeployPackage.ps1" -AuthenticationType $AuthenticationType -Username $Username -Password $Password -ServerUrl $ServerUrl -OrganizationName $OrganizationName -DeploymentRegion $DeploymentRegion -OnlineType $OnlineType -HomRealmURL $HomRealmURL -PackageName $PackageName -PackageDirectory $binariesDirectory \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateImportScript.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateImportScript.ps1 new file mode 100644 index 00000000..3e7efd05 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/DynamicsCRMTemplateImportScript.ps1 @@ -0,0 +1,108 @@ +param( +[string]$CrmConnectionString, +[switch]$PublishCustomizations, +[string]$SolutionImportPackageType, +[switch]$PublishWorkflows, +[switch]$ConvertToManaged, +[switch]$OverwriteUnmanagedCustomizations, +[switch]$SkipProductUpdateDependencies +) + +$ErrorActionPreference = "Stop" + +#Parameters +Write-Host "CrmConnectionString: $CrmConnectionString" +Write-Host "PublishCustomizations: $PublishCustomizations" +Write-Host "SolutionImportPackageType: $SolutionImportPackageType" +Write-Host "PublishWorkflows: $PublishWorkflows" +Write-Host "ConvertToManaged: $ConvertToManaged" +Write-Host "OverwriteUnmanagedCustomizations: $OverwriteUnmanagedCustomizations" +Write-Host "SkipProductUpdateDependencies: $SkipProductUpdateDependencies" + +#TFS Build Parameters +$buildNumber = $env:TF_BUILD_BUILDNUMBER +$sourcesDirectory = $env:TF_BUILD_SOURCESDIRECTORY +$binariesDirectory = $env:TF_BUILD_BINARIESDIRECTORY + +Write-Host "buildNumber: $buildNumber" +Write-Host "sourcesDirectory: $sourcesDirectory" +Write-Host "binariesDirectory: $binariesDirectory" + +#Script Location +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition +Write-Host "Script Path: $scriptPath" + +#Load XrmCIFramework +$xrmCIToolkit = $scriptPath + "\Xrm.Framework.CI.PowerShell.dll" +Write-Host "Importing CIToolkit: $xrmCIToolkit" +Import-Module $xrmCIToolkit +Write-Host "Imported CIToolkit" + +#Functions +function ConvertToBool($switchValue) +{ + if ($switchValue) + { + return $true + } + else + { + return $false + } +} + + +#Solution Import + + + +#WhoAmI Check +$executingUser = Select-WhoAmI -ConnectionString $CrmConnectionString + +Write-Host "Executing User Id" $executingUser.UserId + +#Manifest Processing + +$manifest = Get-Content ($binariesDirectory + "\manifest.xml") + +$outputPath = (Select-Xml -Content $manifest -XPath "//manifest/solution/@path").Node.Value +$managedFile = (Select-Xml -Content $manifest -XPath "//manifest/solution/@managed").Node.Value +$unmanagedFile = (Select-Xml -Content $manifest -XPath "//manifest/solution/@unmanaged").Node.Value + +#Solution Import + +if ($SolutionImportPackageType -eq "Managed") +{ + $solutionFile = $managedFile +} +elseif ($SolutionImportPackageType -eq "Unmanaged") +{ + $solutionFile = $unmanagedFile +} +else +{ + throw "$SolutionImportPackageType not supplied" +} + +$solutionPath = $binariesDirectory + +if ($outputPath) +{ + $solutionPath = $solutionPath + "\" + $outputPath +} + +if (-not (Test-Path -Path "$binariesDirectory\logs")) +{ + New-Item "$binariesDirectory\logs" -ItemType directory +} + +& "$scriptPath\ImportSolution.ps1" -solutionFile $solutionFile -solutionPath $solutionPath -targetCrmConnectionUrl $CrmConnectionString -override $true -publishWorkflows $PublishWorkflows -overwriteUnmanagedCustomizations $OverwriteUnmanagedCustomizations -skipProductUpdateDependencies $SkipProductUpdateDependencies -logsDirectory "$binariesDirectory\logs" + +if ($PublishCustomizations) +{ + Write-Host "Publishing Customizations" + + Publish-XrmCustomizations -ConnectionString $CrmConnectionString + + Write-Host "Publishing Customizations Completed" +} \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Entities.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Entities.cs new file mode 100644 index 00000000..242373de --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Entities.cs @@ -0,0 +1,185226 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.33440 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()] + +namespace Xrm.Framework.CI.Common.Entities +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Account : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Account() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "account"; + + 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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 CRM. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 the lead that the account was created from if the account was created by converting a lead in Microsoft Dynamics CRM. 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"); + } + } + + /// + /// 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 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 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 ((Xrm.Framework.CI.Common.Entities.AccountState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.AccountState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N account_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_activity_parties")] + public System.Collections.Generic.IEnumerable account_activity_parties + { + get + { + return this.GetRelatedEntities("account_activity_parties", null); + } + set + { + this.OnPropertyChanging("account_activity_parties"); + this.SetRelatedEntities("account_activity_parties", null, value); + this.OnPropertyChanged("account_activity_parties"); + } + } + + /// + /// 1:N Account_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ActivityPointers")] + public System.Collections.Generic.IEnumerable Account_ActivityPointers + { + get + { + return this.GetRelatedEntities("Account_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Account_ActivityPointers"); + this.SetRelatedEntities("Account_ActivityPointers", null, value); + this.OnPropertyChanged("Account_ActivityPointers"); + } + } + + /// + /// 1:N Account_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Annotation")] + public System.Collections.Generic.IEnumerable Account_Annotation + { + get + { + return this.GetRelatedEntities("Account_Annotation", null); + } + set + { + this.OnPropertyChanging("Account_Annotation"); + this.SetRelatedEntities("Account_Annotation", null, value); + this.OnPropertyChanged("Account_Annotation"); + } + } + + /// + /// 1:N Account_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Appointments")] + public System.Collections.Generic.IEnumerable Account_Appointments + { + get + { + return this.GetRelatedEntities("Account_Appointments", null); + } + set + { + this.OnPropertyChanging("Account_Appointments"); + this.SetRelatedEntities("Account_Appointments", null, value); + this.OnPropertyChanged("Account_Appointments"); + } + } + + /// + /// 1:N Account_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_AsyncOperations")] + public System.Collections.Generic.IEnumerable Account_AsyncOperations + { + get + { + return this.GetRelatedEntities("Account_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Account_AsyncOperations"); + this.SetRelatedEntities("Account_AsyncOperations", null, value); + this.OnPropertyChanged("Account_AsyncOperations"); + } + } + + /// + /// 1:N Account_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Account_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Account_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Account_BulkDeleteFailures"); + this.SetRelatedEntities("Account_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Account_BulkDeleteFailures"); + } + } + + /// + /// 1:N account_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections1")] + public System.Collections.Generic.IEnumerable account_connections1 + { + get + { + return this.GetRelatedEntities("account_connections1", null); + } + set + { + this.OnPropertyChanging("account_connections1"); + this.SetRelatedEntities("account_connections1", null, value); + this.OnPropertyChanged("account_connections1"); + } + } + + /// + /// 1:N account_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections2")] + public System.Collections.Generic.IEnumerable account_connections2 + { + get + { + return this.GetRelatedEntities("account_connections2", null); + } + set + { + this.OnPropertyChanging("account_connections2"); + this.SetRelatedEntities("account_connections2", null, value); + this.OnPropertyChanged("account_connections2"); + } + } + + /// + /// 1:N account_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable account_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("account_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("account_customer_opportunity_roles"); + this.SetRelatedEntities("account_customer_opportunity_roles", null, value); + this.OnPropertyChanged("account_customer_opportunity_roles"); + } + } + + /// + /// 1:N account_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_customer")] + public System.Collections.Generic.IEnumerable account_customer_relationship_customer + { + get + { + return this.GetRelatedEntities("account_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_customer"); + this.SetRelatedEntities("account_customer_relationship_customer", null, value); + this.OnPropertyChanged("account_customer_relationship_customer"); + } + } + + /// + /// 1:N account_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_partner")] + public System.Collections.Generic.IEnumerable account_customer_relationship_partner + { + get + { + return this.GetRelatedEntities("account_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_partner"); + this.SetRelatedEntities("account_customer_relationship_partner", null, value); + this.OnPropertyChanged("account_customer_relationship_partner"); + } + } + + /// + /// 1:N Account_CustomerAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_CustomerAddress")] + public System.Collections.Generic.IEnumerable Account_CustomerAddress + { + get + { + return this.GetRelatedEntities("Account_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Account_CustomerAddress"); + this.SetRelatedEntities("Account_CustomerAddress", null, value); + this.OnPropertyChanged("Account_CustomerAddress"); + } + } + + /// + /// 1:N Account_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Account_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Account_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Account_DuplicateBaseRecord"); + this.SetRelatedEntities("Account_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Account_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Account_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Account_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Account_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Account_DuplicateMatchingRecord"); + this.SetRelatedEntities("Account_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Account_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Account_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Emails")] + public System.Collections.Generic.IEnumerable Account_Emails + { + get + { + return this.GetRelatedEntities("Account_Emails", null); + } + set + { + this.OnPropertyChanging("Account_Emails"); + this.SetRelatedEntities("Account_Emails", null, value); + this.OnPropertyChanged("Account_Emails"); + } + } + + /// + /// 1:N Account_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Faxes")] + public System.Collections.Generic.IEnumerable Account_Faxes + { + get + { + return this.GetRelatedEntities("Account_Faxes", null); + } + set + { + this.OnPropertyChanging("Account_Faxes"); + this.SetRelatedEntities("Account_Faxes", null, value); + this.OnPropertyChanged("Account_Faxes"); + } + } + + /// + /// 1:N Account_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Letters")] + public System.Collections.Generic.IEnumerable Account_Letters + { + get + { + return this.GetRelatedEntities("Account_Letters", null); + } + set + { + this.OnPropertyChanging("Account_Letters"); + this.SetRelatedEntities("Account_Letters", null, value); + this.OnPropertyChanged("Account_Letters"); + } + } + + /// + /// 1:N account_master_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedaccount_master_account + { + get + { + return this.GetRelatedEntities("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedaccount_master_account"); + this.SetRelatedEntities("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedaccount_master_account"); + } + } + + /// + /// 1:N account_parent_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedaccount_parent_account + { + get + { + return this.GetRelatedEntities("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedaccount_parent_account"); + this.SetRelatedEntities("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedaccount_parent_account"); + } + } + + /// + /// 1:N Account_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Phonecalls")] + public System.Collections.Generic.IEnumerable Account_Phonecalls + { + get + { + return this.GetRelatedEntities("Account_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Account_Phonecalls"); + this.SetRelatedEntities("Account_Phonecalls", null, value); + this.OnPropertyChanged("Account_Phonecalls"); + } + } + + /// + /// 1:N account_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_PostFollows")] + public System.Collections.Generic.IEnumerable account_PostFollows + { + get + { + return this.GetRelatedEntities("account_PostFollows", null); + } + set + { + this.OnPropertyChanging("account_PostFollows"); + this.SetRelatedEntities("account_PostFollows", null, value); + this.OnPropertyChanged("account_PostFollows"); + } + } + + /// + /// 1:N account_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable account_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("account_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("account_principalobjectattributeaccess"); + this.SetRelatedEntities("account_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("account_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Account_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ProcessSessions")] + public System.Collections.Generic.IEnumerable Account_ProcessSessions + { + get + { + return this.GetRelatedEntities("Account_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Account_ProcessSessions"); + this.SetRelatedEntities("Account_ProcessSessions", null, value); + this.OnPropertyChanged("Account_ProcessSessions"); + } + } + + /// + /// 1:N Account_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Account_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Account_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Account_RecurringAppointmentMasters"); + this.SetRelatedEntities("Account_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Account_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Account_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Account_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Account_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Account_ServiceAppointments"); + this.SetRelatedEntities("Account_ServiceAppointments", null, value); + this.OnPropertyChanged("Account_ServiceAppointments"); + } + } + + /// + /// 1:N Account_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Account_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Account_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Account_SharepointDocumentLocation"); + this.SetRelatedEntities("Account_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Account_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Account_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Tasks")] + public System.Collections.Generic.IEnumerable Account_Tasks + { + get + { + return this.GetRelatedEntities("Account_Tasks", null); + } + set + { + this.OnPropertyChanging("Account_Tasks"); + this.SetRelatedEntities("Account_Tasks", null, value); + this.OnPropertyChanged("Account_Tasks"); + } + } + + /// + /// 1:N contact_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_accounts")] + public System.Collections.Generic.IEnumerable contact_customer_accounts + { + get + { + return this.GetRelatedEntities("contact_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contact_customer_accounts"); + this.SetRelatedEntities("contact_customer_accounts", null, value); + this.OnPropertyChanged("contact_customer_accounts"); + } + } + + /// + /// 1:N contract_billingcustomer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_accounts")] + public System.Collections.Generic.IEnumerable contract_billingcustomer_accounts + { + get + { + return this.GetRelatedEntities("contract_billingcustomer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_accounts"); + this.SetRelatedEntities("contract_billingcustomer_accounts", null, value); + this.OnPropertyChanged("contract_billingcustomer_accounts"); + } + } + + /// + /// 1:N contract_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_accounts")] + public System.Collections.Generic.IEnumerable contract_customer_accounts + { + get + { + return this.GetRelatedEntities("contract_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_customer_accounts"); + this.SetRelatedEntities("contract_customer_accounts", null, value); + this.OnPropertyChanged("contract_customer_accounts"); + } + } + + /// + /// 1:N contractlineitem_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_accounts")] + public System.Collections.Generic.IEnumerable contractlineitem_customer_accounts + { + get + { + return this.GetRelatedEntities("contractlineitem_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_accounts"); + this.SetRelatedEntities("contractlineitem_customer_accounts", null, value); + this.OnPropertyChanged("contractlineitem_customer_accounts"); + } + } + + /// + /// 1:N CreatedAccount_BulkOperationLogs2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedAccount_BulkOperationLogs2")] + public System.Collections.Generic.IEnumerable CreatedAccount_BulkOperationLogs2 + { + get + { + return this.GetRelatedEntities("CreatedAccount_BulkOperationLogs2", null); + } + set + { + this.OnPropertyChanging("CreatedAccount_BulkOperationLogs2"); + this.SetRelatedEntities("CreatedAccount_BulkOperationLogs2", null, value); + this.OnPropertyChanged("CreatedAccount_BulkOperationLogs2"); + } + } + + /// + /// 1:N incident_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_accounts")] + public System.Collections.Generic.IEnumerable incident_customer_accounts + { + get + { + return this.GetRelatedEntities("incident_customer_accounts", null); + } + set + { + this.OnPropertyChanging("incident_customer_accounts"); + this.SetRelatedEntities("incident_customer_accounts", null, value); + this.OnPropertyChanged("incident_customer_accounts"); + } + } + + /// + /// 1:N invoice_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_accounts")] + public System.Collections.Generic.IEnumerable invoice_customer_accounts + { + get + { + return this.GetRelatedEntities("invoice_customer_accounts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_accounts"); + this.SetRelatedEntities("invoice_customer_accounts", null, value); + this.OnPropertyChanged("invoice_customer_accounts"); + } + } + + /// + /// 1:N lead_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_accounts")] + public System.Collections.Generic.IEnumerable lead_customer_accounts + { + get + { + return this.GetRelatedEntities("lead_customer_accounts", null); + } + set + { + this.OnPropertyChanging("lead_customer_accounts"); + this.SetRelatedEntities("lead_customer_accounts", null, value); + this.OnPropertyChanged("lead_customer_accounts"); + } + } + + /// + /// 1:N lead_parent_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_account")] + public System.Collections.Generic.IEnumerable lead_parent_account + { + get + { + return this.GetRelatedEntities("lead_parent_account", null); + } + set + { + this.OnPropertyChanging("lead_parent_account"); + this.SetRelatedEntities("lead_parent_account", null, value); + this.OnPropertyChanged("lead_parent_account"); + } + } + + /// + /// 1:N opportunity_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_accounts")] + public System.Collections.Generic.IEnumerable opportunity_customer_accounts + { + get + { + return this.GetRelatedEntities("opportunity_customer_accounts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_accounts"); + this.SetRelatedEntities("opportunity_customer_accounts", null, value); + this.OnPropertyChanged("opportunity_customer_accounts"); + } + } + + /// + /// 1:N opportunity_parent_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_account")] + public System.Collections.Generic.IEnumerable opportunity_parent_account + { + get + { + return this.GetRelatedEntities("opportunity_parent_account", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_account"); + this.SetRelatedEntities("opportunity_parent_account", null, value); + this.OnPropertyChanged("opportunity_parent_account"); + } + } + + /// + /// 1:N order_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_accounts")] + public System.Collections.Generic.IEnumerable order_customer_accounts + { + get + { + return this.GetRelatedEntities("order_customer_accounts", null); + } + set + { + this.OnPropertyChanging("order_customer_accounts"); + this.SetRelatedEntities("order_customer_accounts", null, value); + this.OnPropertyChanged("order_customer_accounts"); + } + } + + /// + /// 1:N quote_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_accounts")] + public System.Collections.Generic.IEnumerable quote_customer_accounts + { + get + { + return this.GetRelatedEntities("quote_customer_accounts", null); + } + set + { + this.OnPropertyChanging("quote_customer_accounts"); + this.SetRelatedEntities("quote_customer_accounts", null, value); + this.OnPropertyChanged("quote_customer_accounts"); + } + } + + /// + /// 1:N SourceAccount_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceAccount_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable SourceAccount_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("SourceAccount_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceAccount_BulkOperationLogs"); + this.SetRelatedEntities("SourceAccount_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceAccount_BulkOperationLogs"); + } + } + + /// + /// 1:N userentityinstancedata_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_account")] + public System.Collections.Generic.IEnumerable userentityinstancedata_account + { + get + { + return this.GetRelatedEntities("userentityinstancedata_account", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_account"); + this.SetRelatedEntities("userentityinstancedata_account", null, value); + this.OnPropertyChanged("userentityinstancedata_account"); + } + } + + /// + /// N:N accountleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("accountleads_association")] + public System.Collections.Generic.IEnumerable accountleads_association + { + get + { + return this.GetRelatedEntities("accountleads_association", null); + } + set + { + this.OnPropertyChanging("accountleads_association"); + this.SetRelatedEntities("accountleads_association", null, value); + this.OnPropertyChanged("accountleads_association"); + } + } + + /// + /// N:N listaccount_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listaccount_association")] + public System.Collections.Generic.IEnumerable listaccount_association + { + get + { + return this.GetRelatedEntities("listaccount_association", null); + } + set + { + this.OnPropertyChanging("listaccount_association"); + this.SetRelatedEntities("listaccount_association", null, value); + this.OnPropertyChanged("listaccount_association"); + } + } + + /// + /// N:1 account_master_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Account Referencingaccount_master_account + { + get + { + return this.GetRelatedEntity("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 account_originating_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_originating_lead")] + public Xrm.Framework.CI.Common.Entities.Lead account_originating_lead + { + get + { + return this.GetRelatedEntity("account_originating_lead", null); + } + set + { + this.OnPropertyChanging("account_originating_lead"); + this.SetRelatedEntity("account_originating_lead", null, value); + this.OnPropertyChanged("account_originating_lead"); + } + } + + /// + /// N:1 account_parent_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Account Referencingaccount_parent_account + { + get + { + return this.GetRelatedEntity("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingaccount_parent_account"); + this.SetRelatedEntity("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingaccount_parent_account"); + } + } + + /// + /// N:1 account_primary_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_primary_contact")] + public Xrm.Framework.CI.Common.Entities.Contact account_primary_contact + { + get + { + return this.GetRelatedEntity("account_primary_contact", null); + } + set + { + this.OnPropertyChanging("account_primary_contact"); + this.SetRelatedEntity("account_primary_contact", null, value); + this.OnPropertyChanged("account_primary_contact"); + } + } + + /// + /// N:1 business_unit_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_accounts")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_accounts + { + get + { + return this.GetRelatedEntity("business_unit_accounts", null); + } + } + + /// + /// N:1 equipment_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredequipmentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_accounts")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_accounts + { + get + { + return this.GetRelatedEntity("equipment_accounts", null); + } + set + { + this.OnPropertyChanging("equipment_accounts"); + this.SetRelatedEntity("equipment_accounts", null, value); + this.OnPropertyChanged("equipment_accounts"); + } + } + + /// + /// N:1 lk_accountbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_createdby + { + get + { + return this.GetRelatedEntity("lk_accountbase_createdby", null); + } + } + + /// + /// N:1 lk_accountbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_accountbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_accountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_accountbase_modifiedby", null); + } + } + + /// + /// N:1 lk_accountbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_accountbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 price_level_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultpricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_accounts")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_accounts + { + get + { + return this.GetRelatedEntity("price_level_accounts", null); + } + set + { + this.OnPropertyChanging("price_level_accounts"); + this.SetRelatedEntity("price_level_accounts", null, value); + this.OnPropertyChanged("price_level_accounts"); + } + } + + /// + /// N:1 processstage_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_account")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_account + { + get + { + return this.GetRelatedEntity("processstage_account", null); + } + set + { + this.OnPropertyChanging("processstage_account"); + this.SetRelatedEntity("processstage_account", null, value); + this.OnPropertyChanged("processstage_account"); + } + } + + /// + /// N:1 service_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredserviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_accounts")] + public Xrm.Framework.CI.Common.Entities.Service service_accounts + { + get + { + return this.GetRelatedEntity("service_accounts", null); + } + set + { + this.OnPropertyChanging("service_accounts"); + this.SetRelatedEntity("service_accounts", null, value); + this.OnPropertyChanged("service_accounts"); + } + } + + /// + /// N:1 system_user_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_accounts")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_accounts + { + get + { + return this.GetRelatedEntity("system_user_accounts", null); + } + set + { + this.OnPropertyChanging("system_user_accounts"); + this.SetRelatedEntity("system_user_accounts", null, value); + this.OnPropertyChanged("system_user_accounts"); + } + } + + /// + /// N:1 team_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_accounts")] + public Xrm.Framework.CI.Common.Entities.Team team_accounts + { + get + { + return this.GetRelatedEntity("team_accounts", null); + } + } + + /// + /// N:1 territory_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_accounts")] + public Xrm.Framework.CI.Common.Entities.Territory territory_accounts + { + get + { + return this.GetRelatedEntity("territory_accounts", null); + } + set + { + this.OnPropertyChanging("territory_accounts"); + this.SetRelatedEntity("territory_accounts", null, value); + this.OnPropertyChanged("territory_accounts"); + } + } + + /// + /// N:1 transactioncurrency_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_account")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_account + { + get + { + return this.GetRelatedEntity("transactioncurrency_account", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_account"); + this.SetRelatedEntity("transactioncurrency_account", null, value); + this.OnPropertyChanged("transactioncurrency_account"); + } + } + + /// + /// N:1 user_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_accounts")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_accounts + { + get + { + return this.GetRelatedEntity("user_accounts", null); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("accountleads")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AccountLeads : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AccountLeads() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "accountleads"; + + public const int EntityTypeCode = 16; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public System.Nullable AccountId + { + get + { + return this.GetAttributeValue>("accountid"); + } + } + + /// + /// Unique identifier of the lead for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountleadid")] + public System.Nullable AccountLeadId + { + get + { + return this.GetAttributeValue>("accountleadid"); + } + set + { + this.OnPropertyChanging("AccountLeadId"); + this.SetAttributeValue("accountleadid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AccountLeadId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountleadid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AccountLeadId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N accountleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("accountleads_association")] + public System.Collections.Generic.IEnumerable accountleads_association + { + get + { + return this.GetRelatedEntities("accountleads_association", null); + } + set + { + this.OnPropertyChanging("accountleads_association"); + this.SetRelatedEntities("accountleads_association", null, value); + this.OnPropertyChanged("accountleads_association"); + } + } + } + + /// + /// MIME attachment for an email activity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("activitymimeattachment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ActivityMimeAttachment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ActivityMimeAttachment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "activitymimeattachment"; + + public const int EntityTypeCode = 1001; + + 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 activity with which the email attachment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference ActivityId + { + get + { + return this.GetAttributeValue("activityid"); + } + set + { + this.OnPropertyChanging("ActivityId"); + this.SetAttributeValue("activityid", value); + this.OnPropertyChanged("ActivityId"); + } + } + + /// + /// Unique identifier of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitymimeattachmentid")] + public System.Nullable ActivityMimeAttachmentId + { + get + { + return this.GetAttributeValue>("activitymimeattachmentid"); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachmentId"); + this.SetAttributeValue("activitymimeattachmentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ActivityMimeAttachmentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitymimeattachmentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ActivityMimeAttachmentId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitymimeattachmentidunique")] + public System.Nullable ActivityMimeAttachmentIdUnique + { + get + { + return this.GetAttributeValue>("activitymimeattachmentidunique"); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachmentIdUnique"); + this.SetAttributeValue("activitymimeattachmentidunique", value); + this.OnPropertyChanged("ActivityMimeAttachmentIdUnique"); + } + } + + /// + /// Unique identifier of the attachment with which this activitymimeattachment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attachmentid")] + public Microsoft.Xrm.Sdk.EntityReference AttachmentId + { + get + { + return this.GetAttributeValue("attachmentid"); + } + set + { + this.OnPropertyChanging("AttachmentId"); + this.SetAttributeValue("attachmentid", value); + this.OnPropertyChanged("AttachmentId"); + } + } + + /// + /// Number of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attachmentnumber")] + public System.Nullable AttachmentNumber + { + get + { + return this.GetAttributeValue>("attachmentnumber"); + } + set + { + this.OnPropertyChanging("AttachmentNumber"); + this.SetAttributeValue("attachmentnumber", value); + this.OnPropertyChanged("AttachmentNumber"); + } + } + + /// + /// Contents of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("body")] + public string Body + { + get + { + return this.GetAttributeValue("body"); + } + set + { + this.OnPropertyChanging("Body"); + this.SetAttributeValue("body", value); + this.OnPropertyChanged("Body"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// File name of the attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// MIME type of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the record with which the attachment is associated + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Object Type Code of the entity that is associated with the attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the activity_mime_attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the activity mime attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the activity mime attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Descriptive subject for the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Version number of the activity mime attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ActivityMimeAttachment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_AsyncOperations")] + public System.Collections.Generic.IEnumerable ActivityMimeAttachment_AsyncOperations + { + get + { + return this.GetRelatedEntities("ActivityMimeAttachment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachment_AsyncOperations"); + this.SetRelatedEntities("ActivityMimeAttachment_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityMimeAttachment_AsyncOperations"); + } + } + + /// + /// 1:N ActivityMimeAttachment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ActivityMimeAttachment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ActivityMimeAttachment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachment_BulkDeleteFailures"); + this.SetRelatedEntities("ActivityMimeAttachment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ActivityMimeAttachment_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_activitymimeattachment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activitymimeattachment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_activitymimeattachment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_activitymimeattachment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activitymimeattachment"); + this.SetRelatedEntities("userentityinstancedata_activitymimeattachment", null, value); + this.OnPropertyChanged("userentityinstancedata_activitymimeattachment"); + } + } + + /// + /// N:1 activity_pointer_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_activity_mime_attachment")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_activity_mime_attachment + { + get + { + return this.GetRelatedEntity("activity_pointer_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_activity_mime_attachment"); + this.SetRelatedEntity("activity_pointer_activity_mime_attachment", null, value); + this.OnPropertyChanged("activity_pointer_activity_mime_attachment"); + } + } + + /// + /// N:1 email_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_mime_attachment")] + public Xrm.Framework.CI.Common.Entities.Email email_activity_mime_attachment + { + get + { + return this.GetRelatedEntity("email_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("email_activity_mime_attachment"); + this.SetRelatedEntity("email_activity_mime_attachment", null, value); + this.OnPropertyChanged("email_activity_mime_attachment"); + } + } + + /// + /// N:1 template_activity_mime_attachments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("template_activity_mime_attachments")] + public Xrm.Framework.CI.Common.Entities.Template template_activity_mime_attachments + { + get + { + return this.GetRelatedEntity("template_activity_mime_attachments", null); + } + set + { + this.OnPropertyChanging("template_activity_mime_attachments"); + this.SetRelatedEntity("template_activity_mime_attachments", null, value); + this.OnPropertyChanged("template_activity_mime_attachments"); + } + } + } + + /// + /// Person or group associated with an activity. An activity can have multiple activity parties. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("activityparty")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ActivityParty : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ActivityParty() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "activityparty"; + + public const int EntityTypeCode = 135; + + 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 activity associated with the activity party. (A "party" is any person who is associated with an activity.) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + public Microsoft.Xrm.Sdk.EntityReference ActivityId + { + get + { + return this.GetAttributeValue("activityid"); + } + set + { + this.OnPropertyChanging("ActivityId"); + this.SetAttributeValue("activityid", value); + this.OnPropertyChanged("ActivityId"); + } + } + + /// + /// Unique identifier of the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitypartyid")] + public System.Nullable ActivityPartyId + { + get + { + return this.GetAttributeValue>("activitypartyid"); + } + set + { + this.OnPropertyChanging("ActivityPartyId"); + this.SetAttributeValue("activitypartyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ActivityPartyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitypartyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ActivityPartyId = value; + } + } + + /// + /// Email address to which an email is delivered, and which is associated with the target entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressused")] + public string AddressUsed + { + get + { + return this.GetAttributeValue("addressused"); + } + set + { + this.OnPropertyChanging("AddressUsed"); + this.SetAttributeValue("addressused", value); + this.OnPropertyChanged("AddressUsed"); + } + } + + /// + /// Information about whether to allow sending email to the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotemail")] + public System.Nullable DoNotEmail + { + get + { + return this.GetAttributeValue>("donotemail"); + } + } + + /// + /// Information about whether to allow sending faxes to the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotfax")] + public System.Nullable DoNotFax + { + get + { + return this.GetAttributeValue>("donotfax"); + } + } + + /// + /// Information about whether to allow phone calls to the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotphone")] + public System.Nullable DoNotPhone + { + get + { + return this.GetAttributeValue>("donotphone"); + } + } + + /// + /// Information about whether to allow sending postal mail to the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotpostalmail")] + public System.Nullable DoNotPostalMail + { + get + { + return this.GetAttributeValue>("donotpostalmail"); + } + } + + /// + /// Amount of effort used by the resource in a service appointment activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effort")] + public System.Nullable Effort + { + get + { + return this.GetAttributeValue>("effort"); + } + set + { + this.OnPropertyChanging("Effort"); + this.SetAttributeValue("effort", value); + this.OnPropertyChanged("Effort"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeentryid")] + public string ExchangeEntryId + { + get + { + return this.GetAttributeValue("exchangeentryid"); + } + set + { + this.OnPropertyChanging("ExchangeEntryId"); + this.SetAttributeValue("exchangeentryid", value); + this.OnPropertyChanged("ExchangeEntryId"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Information about whether the underlying entity record is deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispartydeleted")] + public System.Nullable IsPartyDeleted + { + get + { + return this.GetAttributeValue>("ispartydeleted"); + } + } + + /// + /// Unique identifier of the user or team who owns the activity_party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Role of the person in the activity, such as sender, to, cc, bcc, required, optional, organizer, regarding, or owner. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("participationtypemask")] + public Microsoft.Xrm.Sdk.OptionSetValue ParticipationTypeMask + { + get + { + return this.GetAttributeValue("participationtypemask"); + } + set + { + this.OnPropertyChanging("ParticipationTypeMask"); + this.SetAttributeValue("participationtypemask", value); + this.OnPropertyChanged("ParticipationTypeMask"); + } + } + + /// + /// Unique identifier of the party associated with the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + public Microsoft.Xrm.Sdk.EntityReference PartyId + { + get + { + return this.GetAttributeValue("partyid"); + } + set + { + this.OnPropertyChanging("PartyId"); + this.SetAttributeValue("partyid", value); + this.OnPropertyChanged("PartyId"); + } + } + + /// + /// Unique identifier of the resource specification for the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public Microsoft.Xrm.Sdk.EntityReference ResourceSpecId + { + get + { + return this.GetAttributeValue("resourcespecid"); + } + set + { + this.OnPropertyChanging("ResourceSpecId"); + this.SetAttributeValue("resourcespecid", value); + this.OnPropertyChanged("ResourceSpecId"); + } + } + + /// + /// Scheduled end time of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + } + + /// + /// Scheduled start time of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_activityparty + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activityparty")] + public System.Collections.Generic.IEnumerable userentityinstancedata_activityparty + { + get + { + return this.GetRelatedEntities("userentityinstancedata_activityparty", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activityparty"); + this.SetRelatedEntities("userentityinstancedata_activityparty", null, value); + this.OnPropertyChanged("userentityinstancedata_activityparty"); + } + } + + /// + /// N:1 account_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Account account_activity_parties + { + get + { + return this.GetRelatedEntity("account_activity_parties", null); + } + set + { + this.OnPropertyChanging("account_activity_parties"); + this.SetRelatedEntity("account_activity_parties", null, value); + this.OnPropertyChanged("account_activity_parties"); + } + } + + /// + /// N:1 ActivityPartyResourceSpec + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPartyResourceSpec")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ActivityPartyResourceSpec + { + get + { + return this.GetRelatedEntity("ActivityPartyResourceSpec", null); + } + set + { + this.OnPropertyChanging("ActivityPartyResourceSpec"); + this.SetRelatedEntity("ActivityPartyResourceSpec", null, value); + this.OnPropertyChanged("ActivityPartyResourceSpec"); + } + } + + /// + /// N:1 activitypointer_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_activity_parties")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activitypointer_activity_parties + { + get + { + return this.GetRelatedEntity("activitypointer_activity_parties", null); + } + set + { + this.OnPropertyChanging("activitypointer_activity_parties"); + this.SetRelatedEntity("activitypointer_activity_parties", null, value); + this.OnPropertyChanged("activitypointer_activity_parties"); + } + } + + /// + /// N:1 appointment_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_activity_parties + { + get + { + return this.GetRelatedEntity("appointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("appointment_activity_parties"); + this.SetRelatedEntity("appointment_activity_parties", null, value); + this.OnPropertyChanged("appointment_activity_parties"); + } + } + + /// + /// N:1 bulkoperation_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("bulkoperation_activity_parties")] + public Xrm.Framework.CI.Common.Entities.BulkOperation bulkoperation_activity_parties + { + get + { + return this.GetRelatedEntity("bulkoperation_activity_parties", null); + } + set + { + this.OnPropertyChanging("bulkoperation_activity_parties"); + this.SetRelatedEntity("bulkoperation_activity_parties", null, value); + this.OnPropertyChanged("bulkoperation_activity_parties"); + } + } + + /// + /// N:1 campaign_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_activity_parties + { + get + { + return this.GetRelatedEntity("campaign_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaign_activity_parties"); + this.SetRelatedEntity("campaign_activity_parties", null, value); + this.OnPropertyChanged("campaign_activity_parties"); + } + } + + /// + /// N:1 campaignactivity_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activity_parties")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_activity_parties + { + get + { + return this.GetRelatedEntity("campaignactivity_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activity_parties"); + this.SetRelatedEntity("campaignactivity_activity_parties", null, value); + this.OnPropertyChanged("campaignactivity_activity_parties"); + } + } + + /// + /// N:1 campaignactivity_activityparties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activityparties")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_activityparties + { + get + { + return this.GetRelatedEntity("campaignactivity_activityparties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activityparties"); + this.SetRelatedEntity("campaignactivity_activityparties", null, value); + this.OnPropertyChanged("campaignactivity_activityparties"); + } + } + + /// + /// N:1 campaignresponse_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_activity_parties")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse campaignresponse_activity_parties + { + get + { + return this.GetRelatedEntity("campaignresponse_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignresponse_activity_parties"); + this.SetRelatedEntity("campaignresponse_activity_parties", null, value); + this.OnPropertyChanged("campaignresponse_activity_parties"); + } + } + + /// + /// N:1 contact_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Contact contact_activity_parties + { + get + { + return this.GetRelatedEntity("contact_activity_parties", null); + } + set + { + this.OnPropertyChanging("contact_activity_parties"); + this.SetRelatedEntity("contact_activity_parties", null, value); + this.OnPropertyChanged("contact_activity_parties"); + } + } + + /// + /// N:1 contract_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Contract contract_activity_parties + { + get + { + return this.GetRelatedEntity("contract_activity_parties", null); + } + set + { + this.OnPropertyChanging("contract_activity_parties"); + this.SetRelatedEntity("contract_activity_parties", null, value); + this.OnPropertyChanged("contract_activity_parties"); + } + } + + /// + /// N:1 email_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Email email_activity_parties + { + get + { + return this.GetRelatedEntity("email_activity_parties", null); + } + set + { + this.OnPropertyChanging("email_activity_parties"); + this.SetRelatedEntity("email_activity_parties", null, value); + this.OnPropertyChanged("email_activity_parties"); + } + } + + /// + /// N:1 equipment_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_activity_parties + { + get + { + return this.GetRelatedEntity("equipment_activity_parties", null); + } + set + { + this.OnPropertyChanging("equipment_activity_parties"); + this.SetRelatedEntity("equipment_activity_parties", null, value); + this.OnPropertyChanged("equipment_activity_parties"); + } + } + + /// + /// N:1 fax_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Fax fax_activity_parties + { + get + { + return this.GetRelatedEntity("fax_activity_parties", null); + } + set + { + this.OnPropertyChanging("fax_activity_parties"); + this.SetRelatedEntity("fax_activity_parties", null, value); + this.OnPropertyChanged("fax_activity_parties"); + } + } + + /// + /// N:1 incident_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Incident incident_activity_parties + { + get + { + return this.GetRelatedEntity("incident_activity_parties", null); + } + set + { + this.OnPropertyChanging("incident_activity_parties"); + this.SetRelatedEntity("incident_activity_parties", null, value); + this.OnPropertyChanged("incident_activity_parties"); + } + } + + /// + /// N:1 incidentresolution_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incidentresolution_activity_parties")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution incidentresolution_activity_parties + { + get + { + return this.GetRelatedEntity("incidentresolution_activity_parties", null); + } + set + { + this.OnPropertyChanging("incidentresolution_activity_parties"); + this.SetRelatedEntity("incidentresolution_activity_parties", null, value); + this.OnPropertyChanged("incidentresolution_activity_parties"); + } + } + + /// + /// N:1 invoice_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_activity_parties + { + get + { + return this.GetRelatedEntity("invoice_activity_parties", null); + } + set + { + this.OnPropertyChanging("invoice_activity_parties"); + this.SetRelatedEntity("invoice_activity_parties", null, value); + this.OnPropertyChanged("invoice_activity_parties"); + } + } + + /// + /// N:1 lead_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Lead lead_activity_parties + { + get + { + return this.GetRelatedEntity("lead_activity_parties", null); + } + set + { + this.OnPropertyChanging("lead_activity_parties"); + this.SetRelatedEntity("lead_activity_parties", null, value); + this.OnPropertyChanged("lead_activity_parties"); + } + } + + /// + /// N:1 letter_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Letter letter_activity_parties + { + get + { + return this.GetRelatedEntity("letter_activity_parties", null); + } + set + { + this.OnPropertyChanging("letter_activity_parties"); + this.SetRelatedEntity("letter_activity_parties", null, value); + this.OnPropertyChanged("letter_activity_parties"); + } + } + + /// + /// N:1 opportunity_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_activity_parties + { + get + { + return this.GetRelatedEntity("opportunity_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunity_activity_parties"); + this.SetRelatedEntity("opportunity_activity_parties", null, value); + this.OnPropertyChanged("opportunity_activity_parties"); + } + } + + /// + /// N:1 opportunityclose_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityclose_activity_parties")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose opportunityclose_activity_parties + { + get + { + return this.GetRelatedEntity("opportunityclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunityclose_activity_parties"); + this.SetRelatedEntity("opportunityclose_activity_parties", null, value); + this.OnPropertyChanged("opportunityclose_activity_parties"); + } + } + + /// + /// N:1 orderclose_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("orderclose_activity_parties")] + public Xrm.Framework.CI.Common.Entities.OrderClose orderclose_activity_parties + { + get + { + return this.GetRelatedEntity("orderclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("orderclose_activity_parties"); + this.SetRelatedEntity("orderclose_activity_parties", null, value); + this.OnPropertyChanged("orderclose_activity_parties"); + } + } + + /// + /// N:1 phonecall_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_activity_parties")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_activity_parties + { + get + { + return this.GetRelatedEntity("phonecall_activity_parties", null); + } + set + { + this.OnPropertyChanging("phonecall_activity_parties"); + this.SetRelatedEntity("phonecall_activity_parties", null, value); + this.OnPropertyChanged("phonecall_activity_parties"); + } + } + + /// + /// N:1 queue_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Queue queue_activity_parties + { + get + { + return this.GetRelatedEntity("queue_activity_parties", null); + } + set + { + this.OnPropertyChanging("queue_activity_parties"); + this.SetRelatedEntity("queue_activity_parties", null, value); + this.OnPropertyChanged("queue_activity_parties"); + } + } + + /// + /// N:1 quote_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Quote quote_activity_parties + { + get + { + return this.GetRelatedEntity("quote_activity_parties", null); + } + set + { + this.OnPropertyChanging("quote_activity_parties"); + this.SetRelatedEntity("quote_activity_parties", null, value); + this.OnPropertyChanged("quote_activity_parties"); + } + } + + /// + /// N:1 quoteclose_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quoteclose_activity_parties")] + public Xrm.Framework.CI.Common.Entities.QuoteClose quoteclose_activity_parties + { + get + { + return this.GetRelatedEntity("quoteclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("quoteclose_activity_parties"); + this.SetRelatedEntity("quoteclose_activity_parties", null, value); + this.OnPropertyChanged("quoteclose_activity_parties"); + } + } + + /// + /// N:1 recurringappointmentmaster_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_activity_parties")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_activity_parties + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_activity_parties", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_activity_parties"); + this.SetRelatedEntity("recurringappointmentmaster_activity_parties", null, value); + this.OnPropertyChanged("recurringappointmentmaster_activity_parties"); + } + } + + /// + /// N:1 salesorder_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_activity_parties")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_activity_parties + { + get + { + return this.GetRelatedEntity("salesorder_activity_parties", null); + } + set + { + this.OnPropertyChanging("salesorder_activity_parties"); + this.SetRelatedEntity("salesorder_activity_parties", null, value); + this.OnPropertyChanged("salesorder_activity_parties"); + } + } + + /// + /// N:1 serviceappointment_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_activity_parties")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_activity_parties + { + get + { + return this.GetRelatedEntity("serviceappointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("serviceappointment_activity_parties"); + this.SetRelatedEntity("serviceappointment_activity_parties", null, value); + this.OnPropertyChanged("serviceappointment_activity_parties"); + } + } + + /// + /// N:1 system_user_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_activity_parties")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_activity_parties + { + get + { + return this.GetRelatedEntity("system_user_activity_parties", null); + } + set + { + this.OnPropertyChanging("system_user_activity_parties"); + this.SetRelatedEntity("system_user_activity_parties", null, value); + this.OnPropertyChanged("system_user_activity_parties"); + } + } + + /// + /// N:1 task_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Task task_activity_parties + { + get + { + return this.GetRelatedEntity("task_activity_parties", null); + } + set + { + this.OnPropertyChanging("task_activity_parties"); + this.SetRelatedEntity("task_activity_parties", null, value); + this.OnPropertyChanged("task_activity_parties"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ActivityPointerState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// Task performed, or to be performed, by a user. An activity is any action for which an entry can be made on a calendar. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("activitypointer")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ActivityPointer : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ActivityPointer() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "activitypointer"; + + public const int EntityTypeCode = 4200; + + 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 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 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 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 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"); + } + } + + /// + /// All activity parties associated with this activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allparties")] + public System.Collections.Generic.IEnumerable allparties + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("allparties"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + } + + /// + /// Unique identifier of the user who created the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the 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 activitypointer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Description of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Information regarding whether the 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 regarding whether the 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"); + } + } + + /// + /// 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 user who last modified the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when 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 activitypointer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Scheduled duration of the activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + set + { + this.OnPropertyChanging("ScheduledDurationMinutes"); + this.SetAttributeValue("scheduleddurationminutes", value); + this.OnPropertyChanged("ScheduledDurationMinutes"); + } + } + + /// + /// Scheduled end time of the 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 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 an associated service. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ActivityPointerState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ActivityPointerState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the 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"); + } + } + + /// + /// Subject associated with the 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N activity_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_campaignresponse")] + public System.Collections.Generic.IEnumerable activity_campaignresponse + { + get + { + return this.GetRelatedEntities("activity_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_campaignresponse"); + this.SetRelatedEntities("activity_campaignresponse", null, value); + this.OnPropertyChanged("activity_campaignresponse"); + } + } + + /// + /// 1:N activity_pointer_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_activity_mime_attachment")] + public System.Collections.Generic.IEnumerable activity_pointer_activity_mime_attachment + { + get + { + return this.GetRelatedEntities("activity_pointer_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_activity_mime_attachment"); + this.SetRelatedEntities("activity_pointer_activity_mime_attachment", null, value); + this.OnPropertyChanged("activity_pointer_activity_mime_attachment"); + } + } + + /// + /// 1:N activity_pointer_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_appointment")] + public System.Collections.Generic.IEnumerable activity_pointer_appointment + { + get + { + return this.GetRelatedEntities("activity_pointer_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_appointment"); + this.SetRelatedEntities("activity_pointer_appointment", null, value); + this.OnPropertyChanged("activity_pointer_appointment"); + } + } + + /// + /// 1:N activity_pointer_BulkOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation")] + public System.Collections.Generic.IEnumerable activity_pointer_BulkOperation + { + get + { + return this.GetRelatedEntities("activity_pointer_BulkOperation", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation"); + this.SetRelatedEntities("activity_pointer_BulkOperation", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation"); + } + } + + /// + /// 1:N activity_pointer_BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation_logs")] + public System.Collections.Generic.IEnumerable activity_pointer_BulkOperation_logs + { + get + { + return this.GetRelatedEntities("activity_pointer_BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation_logs"); + this.SetRelatedEntities("activity_pointer_BulkOperation_logs", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation_logs"); + } + } + + /// + /// 1:N activity_pointer_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignactivity")] + public System.Collections.Generic.IEnumerable activity_pointer_campaignactivity + { + get + { + return this.GetRelatedEntities("activity_pointer_campaignactivity", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignactivity"); + this.SetRelatedEntities("activity_pointer_campaignactivity", null, value); + this.OnPropertyChanged("activity_pointer_campaignactivity"); + } + } + + /// + /// 1:N activity_pointer_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignresponse")] + public System.Collections.Generic.IEnumerable activity_pointer_campaignresponse + { + get + { + return this.GetRelatedEntities("activity_pointer_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignresponse"); + this.SetRelatedEntities("activity_pointer_campaignresponse", null, value); + this.OnPropertyChanged("activity_pointer_campaignresponse"); + } + } + + /// + /// 1:N activity_pointer_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_email")] + public System.Collections.Generic.IEnumerable activity_pointer_email + { + get + { + return this.GetRelatedEntities("activity_pointer_email", null); + } + set + { + this.OnPropertyChanging("activity_pointer_email"); + this.SetRelatedEntities("activity_pointer_email", null, value); + this.OnPropertyChanged("activity_pointer_email"); + } + } + + /// + /// 1:N activity_pointer_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_fax")] + public System.Collections.Generic.IEnumerable activity_pointer_fax + { + get + { + return this.GetRelatedEntities("activity_pointer_fax", null); + } + set + { + this.OnPropertyChanging("activity_pointer_fax"); + this.SetRelatedEntities("activity_pointer_fax", null, value); + this.OnPropertyChanged("activity_pointer_fax"); + } + } + + /// + /// 1:N activity_pointer_incident_resolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_incident_resolution")] + public System.Collections.Generic.IEnumerable activity_pointer_incident_resolution + { + get + { + return this.GetRelatedEntities("activity_pointer_incident_resolution", null); + } + set + { + this.OnPropertyChanging("activity_pointer_incident_resolution"); + this.SetRelatedEntities("activity_pointer_incident_resolution", null, value); + this.OnPropertyChanged("activity_pointer_incident_resolution"); + } + } + + /// + /// 1:N activity_pointer_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_letter")] + public System.Collections.Generic.IEnumerable activity_pointer_letter + { + get + { + return this.GetRelatedEntities("activity_pointer_letter", null); + } + set + { + this.OnPropertyChanging("activity_pointer_letter"); + this.SetRelatedEntities("activity_pointer_letter", null, value); + this.OnPropertyChanged("activity_pointer_letter"); + } + } + + /// + /// 1:N activity_pointer_opportunity_close + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_opportunity_close")] + public System.Collections.Generic.IEnumerable activity_pointer_opportunity_close + { + get + { + return this.GetRelatedEntities("activity_pointer_opportunity_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_opportunity_close"); + this.SetRelatedEntities("activity_pointer_opportunity_close", null, value); + this.OnPropertyChanged("activity_pointer_opportunity_close"); + } + } + + /// + /// 1:N activity_pointer_order_close + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_order_close")] + public System.Collections.Generic.IEnumerable activity_pointer_order_close + { + get + { + return this.GetRelatedEntities("activity_pointer_order_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_order_close"); + this.SetRelatedEntities("activity_pointer_order_close", null, value); + this.OnPropertyChanged("activity_pointer_order_close"); + } + } + + /// + /// 1:N activity_pointer_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_phonecall")] + public System.Collections.Generic.IEnumerable activity_pointer_phonecall + { + get + { + return this.GetRelatedEntities("activity_pointer_phonecall", null); + } + set + { + this.OnPropertyChanging("activity_pointer_phonecall"); + this.SetRelatedEntities("activity_pointer_phonecall", null, value); + this.OnPropertyChanged("activity_pointer_phonecall"); + } + } + + /// + /// 1:N activity_pointer_quote_close + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_quote_close")] + public System.Collections.Generic.IEnumerable activity_pointer_quote_close + { + get + { + return this.GetRelatedEntities("activity_pointer_quote_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_quote_close"); + this.SetRelatedEntities("activity_pointer_quote_close", null, value); + this.OnPropertyChanged("activity_pointer_quote_close"); + } + } + + /// + /// 1:N activity_pointer_recurrencerule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurrencerule")] + public System.Collections.Generic.IEnumerable activity_pointer_recurrencerule + { + get + { + return this.GetRelatedEntities("activity_pointer_recurrencerule", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurrencerule"); + this.SetRelatedEntities("activity_pointer_recurrencerule", null, value); + this.OnPropertyChanged("activity_pointer_recurrencerule"); + } + } + + /// + /// 1:N activity_pointer_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable activity_pointer_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("activity_pointer_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurringappointmentmaster"); + this.SetRelatedEntities("activity_pointer_recurringappointmentmaster", null, value); + this.OnPropertyChanged("activity_pointer_recurringappointmentmaster"); + } + } + + /// + /// 1:N activity_pointer_service_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_service_appointment")] + public System.Collections.Generic.IEnumerable activity_pointer_service_appointment + { + get + { + return this.GetRelatedEntities("activity_pointer_service_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_service_appointment"); + this.SetRelatedEntities("activity_pointer_service_appointment", null, value); + this.OnPropertyChanged("activity_pointer_service_appointment"); + } + } + + /// + /// 1:N activity_pointer_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_task")] + public System.Collections.Generic.IEnumerable activity_pointer_task + { + get + { + return this.GetRelatedEntities("activity_pointer_task", null); + } + set + { + this.OnPropertyChanging("activity_pointer_task"); + this.SetRelatedEntities("activity_pointer_task", null, value); + this.OnPropertyChanged("activity_pointer_task"); + } + } + + /// + /// 1:N activitypointer_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_activity_parties")] + public System.Collections.Generic.IEnumerable activitypointer_activity_parties + { + get + { + return this.GetRelatedEntities("activitypointer_activity_parties", null); + } + set + { + this.OnPropertyChanging("activitypointer_activity_parties"); + this.SetRelatedEntities("activitypointer_activity_parties", null, value); + this.OnPropertyChanged("activitypointer_activity_parties"); + } + } + + /// + /// 1:N ActivityPointer_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_AsyncOperations")] + public System.Collections.Generic.IEnumerable ActivityPointer_AsyncOperations + { + get + { + return this.GetRelatedEntities("ActivityPointer_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_AsyncOperations"); + this.SetRelatedEntities("ActivityPointer_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityPointer_AsyncOperations"); + } + } + + /// + /// 1:N ActivityPointer_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ActivityPointer_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ActivityPointer_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_BulkDeleteFailures"); + this.SetRelatedEntities("ActivityPointer_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ActivityPointer_BulkDeleteFailures"); + } + } + + /// + /// 1:N ActivityPointer_CampaignActivityItems + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_CampaignActivityItems")] + public System.Collections.Generic.IEnumerable ActivityPointer_CampaignActivityItems + { + get + { + return this.GetRelatedEntities("ActivityPointer_CampaignActivityItems", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_CampaignActivityItems"); + this.SetRelatedEntities("ActivityPointer_CampaignActivityItems", null, value); + this.OnPropertyChanged("ActivityPointer_CampaignActivityItems"); + } + } + + /// + /// 1:N activitypointer_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections1")] + public System.Collections.Generic.IEnumerable activitypointer_connections1 + { + get + { + return this.GetRelatedEntities("activitypointer_connections1", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections1"); + this.SetRelatedEntities("activitypointer_connections1", null, value); + this.OnPropertyChanged("activitypointer_connections1"); + } + } + + /// + /// 1:N activitypointer_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections2")] + public System.Collections.Generic.IEnumerable activitypointer_connections2 + { + get + { + return this.GetRelatedEntities("activitypointer_connections2", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections2"); + this.SetRelatedEntities("activitypointer_connections2", null, value); + this.OnPropertyChanged("activitypointer_connections2"); + } + } + + /// + /// 1:N ActivityPointer_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_QueueItem")] + public System.Collections.Generic.IEnumerable ActivityPointer_QueueItem + { + get + { + return this.GetRelatedEntities("ActivityPointer_QueueItem", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_QueueItem"); + this.SetRelatedEntities("ActivityPointer_QueueItem", null, value); + this.OnPropertyChanged("ActivityPointer_QueueItem"); + } + } + + /// + /// 1:N CreatedActivity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedActivity_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedActivity_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedActivity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedActivity_BulkOperationLogs"); + this.SetRelatedEntities("CreatedActivity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedActivity_BulkOperationLogs"); + } + } + + /// + /// N:1 Account_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Account Account_ActivityPointers + { + get + { + return this.GetRelatedEntity("Account_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Account_ActivityPointers"); + this.SetRelatedEntity("Account_ActivityPointers", null, value); + this.OnPropertyChanged("Account_ActivityPointers"); + } + } + + /// + /// N:1 activitypointer_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendermailboxid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_sendermailboxid_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox activitypointer_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntity("activitypointer_sendermailboxid_mailbox", null); + } + } + + /// + /// N:1 BulkOperation_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_ActivityPointers + { + get + { + return this.GetRelatedEntity("BulkOperation_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("BulkOperation_ActivityPointers"); + this.SetRelatedEntity("BulkOperation_ActivityPointers", null, value); + this.OnPropertyChanged("BulkOperation_ActivityPointers"); + } + } + + /// + /// N:1 business_unit_activitypointer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_activitypointer")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_activitypointer + { + get + { + return this.GetRelatedEntity("business_unit_activitypointer", null); + } + } + + /// + /// N:1 Campaign_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_ActivityPointers + { + get + { + return this.GetRelatedEntity("Campaign_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Campaign_ActivityPointers"); + this.SetRelatedEntity("Campaign_ActivityPointers", null, value); + this.OnPropertyChanged("Campaign_ActivityPointers"); + } + } + + /// + /// N:1 CampaignActivity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_ActivityPointers + { + get + { + return this.GetRelatedEntity("CampaignActivity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ActivityPointers"); + this.SetRelatedEntity("CampaignActivity_ActivityPointers", null, value); + this.OnPropertyChanged("CampaignActivity_ActivityPointers"); + } + } + + /// + /// N:1 Contact_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_ActivityPointers + { + get + { + return this.GetRelatedEntity("Contact_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contact_ActivityPointers"); + this.SetRelatedEntity("Contact_ActivityPointers", null, value); + this.OnPropertyChanged("Contact_ActivityPointers"); + } + } + + /// + /// N:1 Contract_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_ActivityPointers + { + get + { + return this.GetRelatedEntity("Contract_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contract_ActivityPointers"); + this.SetRelatedEntity("Contract_ActivityPointers", null, value); + this.OnPropertyChanged("Contract_ActivityPointers"); + } + } + + /// + /// N:1 Incident_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_ActivityPointers + { + get + { + return this.GetRelatedEntity("Incident_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Incident_ActivityPointers"); + this.SetRelatedEntity("Incident_ActivityPointers", null, value); + this.OnPropertyChanged("Incident_ActivityPointers"); + } + } + + /// + /// N:1 Invoice_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_ActivityPointers + { + get + { + return this.GetRelatedEntity("Invoice_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Invoice_ActivityPointers"); + this.SetRelatedEntity("Invoice_ActivityPointers", null, value); + this.OnPropertyChanged("Invoice_ActivityPointers"); + } + } + + /// + /// N:1 Lead_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_ActivityPointers + { + get + { + return this.GetRelatedEntity("Lead_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Lead_ActivityPointers"); + this.SetRelatedEntity("Lead_ActivityPointers", null, value); + this.OnPropertyChanged("Lead_ActivityPointers"); + } + } + + /// + /// N:1 lk_activitypointer_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_createdby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_createdby", null); + } + } + + /// + /// N:1 lk_activitypointer_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_activitypointer_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_modifiedby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_modifiedby", null); + } + } + + /// + /// N:1 lk_activitypointer_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_ActivityPointers + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ActivityPointers"); + this.SetRelatedEntity("msdyn_postalbum_ActivityPointers", null, value); + this.OnPropertyChanged("msdyn_postalbum_ActivityPointers"); + } + } + + /// + /// N:1 Opportunity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_ActivityPointers + { + get + { + return this.GetRelatedEntity("Opportunity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Opportunity_ActivityPointers"); + this.SetRelatedEntity("Opportunity_ActivityPointers", null, value); + this.OnPropertyChanged("Opportunity_ActivityPointers"); + } + } + + /// + /// N:1 Quote_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_ActivityPointers + { + get + { + return this.GetRelatedEntity("Quote_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Quote_ActivityPointers"); + this.SetRelatedEntity("Quote_ActivityPointers", null, value); + this.OnPropertyChanged("Quote_ActivityPointers"); + } + } + + /// + /// N:1 SalesOrder_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_ActivityPointers + { + get + { + return this.GetRelatedEntity("SalesOrder_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ActivityPointers"); + this.SetRelatedEntity("SalesOrder_ActivityPointers", null, value); + this.OnPropertyChanged("SalesOrder_ActivityPointers"); + } + } + + /// + /// N:1 service_activity_pointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_activity_pointers")] + public Xrm.Framework.CI.Common.Entities.Service service_activity_pointers + { + get + { + return this.GetRelatedEntity("service_activity_pointers", null); + } + set + { + this.OnPropertyChanging("service_activity_pointers"); + this.SetRelatedEntity("service_activity_pointers", null, value); + this.OnPropertyChanged("service_activity_pointers"); + } + } + + /// + /// N:1 team_activity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_activity")] + public Xrm.Framework.CI.Common.Entities.Team team_activity + { + get + { + return this.GetRelatedEntity("team_activity", null); + } + } + + /// + /// N:1 TransactionCurrency_ActivityPointer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ActivityPointer")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ActivityPointer + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ActivityPointer", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ActivityPointer"); + this.SetRelatedEntity("TransactionCurrency_ActivityPointer", null, value); + this.OnPropertyChanged("TransactionCurrency_ActivityPointer"); + } + } + + /// + /// N:1 user_activity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_activity")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_activity + { + get + { + return this.GetRelatedEntity("user_activity", null); + } + } + } + + /// + /// Note that is attached to one or more objects, including other notes. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("annotation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Annotation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Annotation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "annotation"; + + public const int EntityTypeCode = 5; + + 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 note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annotationid")] + public System.Nullable AnnotationId + { + get + { + return this.GetAttributeValue>("annotationid"); + } + set + { + this.OnPropertyChanging("AnnotationId"); + this.SetAttributeValue("annotationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AnnotationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annotationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AnnotationId = value; + } + } + + /// + /// Unique identifier of the user who created the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the note 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 annotation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Contents of the note's attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("documentbody")] + public string DocumentBody + { + get + { + return this.GetAttributeValue("documentbody"); + } + set + { + this.OnPropertyChanging("DocumentBody"); + this.SetAttributeValue("documentbody", value); + this.OnPropertyChanged("DocumentBody"); + } + } + + /// + /// File name of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the note is an attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdocument")] + public System.Nullable IsDocument + { + get + { + return this.GetAttributeValue>("isdocument"); + } + set + { + this.OnPropertyChanging("IsDocument"); + this.SetAttributeValue("isdocument", value); + this.OnPropertyChanged("IsDocument"); + } + } + + /// + /// Language identifier for the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("langid")] + public string LangId + { + get + { + return this.GetAttributeValue("langid"); + } + set + { + this.OnPropertyChanging("LangId"); + this.SetAttributeValue("langid", value); + this.OnPropertyChanged("LangId"); + } + } + + /// + /// MIME type of the note's attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the note 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 annotation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Text of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("notetext")] + public string NoteText + { + get + { + return this.GetAttributeValue("notetext"); + } + set + { + this.OnPropertyChanging("NoteText"); + this.SetAttributeValue("notetext", value); + this.OnPropertyChanged("NoteText"); + } + } + + /// + /// Unique identifier of the object with which the note is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Type of entity with which the note is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// 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 note. + /// + [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 note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// workflow step id associated with the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepid")] + public string StepId + { + get + { + return this.GetAttributeValue("stepid"); + } + set + { + this.OnPropertyChanging("StepId"); + this.SetAttributeValue("stepid", value); + this.OnPropertyChanged("StepId"); + } + } + + /// + /// Subject associated with the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Version number of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Annotation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_AsyncOperations")] + public System.Collections.Generic.IEnumerable Annotation_AsyncOperations + { + get + { + return this.GetRelatedEntities("Annotation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Annotation_AsyncOperations"); + this.SetRelatedEntities("Annotation_AsyncOperations", null, value); + this.OnPropertyChanged("Annotation_AsyncOperations"); + } + } + + /// + /// 1:N Annotation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Annotation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Annotation_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Annotation_BulkDeleteFailures"); + this.SetRelatedEntities("Annotation_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Annotation_BulkDeleteFailures"); + } + } + + /// + /// 1:N Annotation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_ProcessSessions")] + public System.Collections.Generic.IEnumerable Annotation_ProcessSessions + { + get + { + return this.GetRelatedEntities("Annotation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Annotation_ProcessSessions"); + this.SetRelatedEntities("Annotation_ProcessSessions", null, value); + this.OnPropertyChanged("Annotation_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_annotation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_annotation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_annotation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_annotation"); + this.SetRelatedEntities("userentityinstancedata_annotation", null, value); + this.OnPropertyChanged("userentityinstancedata_annotation"); + } + } + + /// + /// N:1 Account_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Annotation")] + public Xrm.Framework.CI.Common.Entities.Account Account_Annotation + { + get + { + return this.GetRelatedEntity("Account_Annotation", null); + } + set + { + this.OnPropertyChanging("Account_Annotation"); + this.SetRelatedEntity("Account_Annotation", null, value); + this.OnPropertyChanged("Account_Annotation"); + } + } + + /// + /// N:1 annotation_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("annotation_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser annotation_owning_user + { + get + { + return this.GetRelatedEntity("annotation_owning_user", null); + } + } + + /// + /// N:1 Appointment_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_Annotation")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_Annotation + { + get + { + return this.GetRelatedEntity("Appointment_Annotation", null); + } + set + { + this.OnPropertyChanging("Appointment_Annotation"); + this.SetRelatedEntity("Appointment_Annotation", null, value); + this.OnPropertyChanged("Appointment_Annotation"); + } + } + + /// + /// N:1 business_unit_annotations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_annotations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_annotations + { + get + { + return this.GetRelatedEntity("business_unit_annotations", null); + } + } + + /// + /// N:1 Calendar_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_Annotation")] + public Xrm.Framework.CI.Common.Entities.Calendar Calendar_Annotation + { + get + { + return this.GetRelatedEntity("Calendar_Annotation", null); + } + set + { + this.OnPropertyChanging("Calendar_Annotation"); + this.SetRelatedEntity("Calendar_Annotation", null, value); + this.OnPropertyChanged("Calendar_Annotation"); + } + } + + /// + /// N:1 Campaign_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Annotation")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Annotation + { + get + { + return this.GetRelatedEntity("Campaign_Annotation", null); + } + set + { + this.OnPropertyChanging("Campaign_Annotation"); + this.SetRelatedEntity("Campaign_Annotation", null, value); + this.OnPropertyChanged("Campaign_Annotation"); + } + } + + /// + /// N:1 CampaignActivity_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Annotation")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Annotation + { + get + { + return this.GetRelatedEntity("CampaignActivity_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Annotation"); + this.SetRelatedEntity("CampaignActivity_Annotation", null, value); + this.OnPropertyChanged("CampaignActivity_Annotation"); + } + } + + /// + /// N:1 CampaignResponse_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Annotation")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_Annotation + { + get + { + return this.GetRelatedEntity("CampaignResponse_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Annotation"); + this.SetRelatedEntity("CampaignResponse_Annotation", null, value); + this.OnPropertyChanged("CampaignResponse_Annotation"); + } + } + + /// + /// N:1 Competitor_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_Annotation")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_Annotation + { + get + { + return this.GetRelatedEntity("Competitor_Annotation", null); + } + set + { + this.OnPropertyChanging("Competitor_Annotation"); + this.SetRelatedEntity("Competitor_Annotation", null, value); + this.OnPropertyChanged("Competitor_Annotation"); + } + } + + /// + /// N:1 Contact_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Annotation")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Annotation + { + get + { + return this.GetRelatedEntity("Contact_Annotation", null); + } + set + { + this.OnPropertyChanging("Contact_Annotation"); + this.SetRelatedEntity("Contact_Annotation", null, value); + this.OnPropertyChanged("Contact_Annotation"); + } + } + + /// + /// N:1 Contract_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Annotation")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Annotation + { + get + { + return this.GetRelatedEntity("Contract_Annotation", null); + } + set + { + this.OnPropertyChanging("Contract_Annotation"); + this.SetRelatedEntity("Contract_Annotation", null, value); + this.OnPropertyChanged("Contract_Annotation"); + } + } + + /// + /// N:1 ContractDetail_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_Annotation")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_Annotation + { + get + { + return this.GetRelatedEntity("ContractDetail_Annotation", null); + } + set + { + this.OnPropertyChanging("ContractDetail_Annotation"); + this.SetRelatedEntity("ContractDetail_Annotation", null, value); + this.OnPropertyChanged("ContractDetail_Annotation"); + } + } + + /// + /// N:1 DuplicateRule_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_Annotation")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule DuplicateRule_Annotation + { + get + { + return this.GetRelatedEntity("DuplicateRule_Annotation", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_Annotation"); + this.SetRelatedEntity("DuplicateRule_Annotation", null, value); + this.OnPropertyChanged("DuplicateRule_Annotation"); + } + } + + /// + /// N:1 Email_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_Annotation")] + public Xrm.Framework.CI.Common.Entities.Email Email_Annotation + { + get + { + return this.GetRelatedEntity("Email_Annotation", null); + } + set + { + this.OnPropertyChanging("Email_Annotation"); + this.SetRelatedEntity("Email_Annotation", null, value); + this.OnPropertyChanged("Email_Annotation"); + } + } + + /// + /// N:1 EmailServerProfile_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Annotation")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile EmailServerProfile_Annotation + { + get + { + return this.GetRelatedEntity("EmailServerProfile_Annotation", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Annotation"); + this.SetRelatedEntity("EmailServerProfile_Annotation", null, value); + this.OnPropertyChanged("EmailServerProfile_Annotation"); + } + } + + /// + /// N:1 Equipment_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_Annotation")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_Annotation + { + get + { + return this.GetRelatedEntity("Equipment_Annotation", null); + } + set + { + this.OnPropertyChanging("Equipment_Annotation"); + this.SetRelatedEntity("Equipment_Annotation", null, value); + this.OnPropertyChanged("Equipment_Annotation"); + } + } + + /// + /// N:1 Fax_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_Annotation")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_Annotation + { + get + { + return this.GetRelatedEntity("Fax_Annotation", null); + } + set + { + this.OnPropertyChanging("Fax_Annotation"); + this.SetRelatedEntity("Fax_Annotation", null, value); + this.OnPropertyChanged("Fax_Annotation"); + } + } + + /// + /// N:1 Goal_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_Annotation")] + public Xrm.Framework.CI.Common.Entities.Goal Goal_Annotation + { + get + { + return this.GetRelatedEntity("Goal_Annotation", null); + } + set + { + this.OnPropertyChanging("Goal_Annotation"); + this.SetRelatedEntity("Goal_Annotation", null, value); + this.OnPropertyChanged("Goal_Annotation"); + } + } + + /// + /// N:1 Incident_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Annotation")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Annotation + { + get + { + return this.GetRelatedEntity("Incident_Annotation", null); + } + set + { + this.OnPropertyChanging("Incident_Annotation"); + this.SetRelatedEntity("Incident_Annotation", null, value); + this.OnPropertyChanged("Incident_Annotation"); + } + } + + /// + /// N:1 IncidentResolution_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_Annotation")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution IncidentResolution_Annotation + { + get + { + return this.GetRelatedEntity("IncidentResolution_Annotation", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_Annotation"); + this.SetRelatedEntity("IncidentResolution_Annotation", null, value); + this.OnPropertyChanged("IncidentResolution_Annotation"); + } + } + + /// + /// N:1 Invoice_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Annotation")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Annotation + { + get + { + return this.GetRelatedEntity("Invoice_Annotation", null); + } + set + { + this.OnPropertyChanging("Invoice_Annotation"); + this.SetRelatedEntity("Invoice_Annotation", null, value); + this.OnPropertyChanged("Invoice_Annotation"); + } + } + + /// + /// N:1 KbArticle_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_Annotation")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_Annotation + { + get + { + return this.GetRelatedEntity("KbArticle_Annotation", null); + } + set + { + this.OnPropertyChanging("KbArticle_Annotation"); + this.SetRelatedEntity("KbArticle_Annotation", null, value); + this.OnPropertyChanged("KbArticle_Annotation"); + } + } + + /// + /// N:1 Lead_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Annotation")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Annotation + { + get + { + return this.GetRelatedEntity("Lead_Annotation", null); + } + set + { + this.OnPropertyChanging("Lead_Annotation"); + this.SetRelatedEntity("Lead_Annotation", null, value); + this.OnPropertyChanged("Lead_Annotation"); + } + } + + /// + /// N:1 Letter_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_Annotation")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_Annotation + { + get + { + return this.GetRelatedEntity("Letter_Annotation", null); + } + set + { + this.OnPropertyChanging("Letter_Annotation"); + this.SetRelatedEntity("Letter_Annotation", null, value); + this.OnPropertyChanged("Letter_Annotation"); + } + } + + /// + /// N:1 List_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_Annotation")] + public Xrm.Framework.CI.Common.Entities.List List_Annotation + { + get + { + return this.GetRelatedEntity("List_Annotation", null); + } + set + { + this.OnPropertyChanging("List_Annotation"); + this.SetRelatedEntity("List_Annotation", null, value); + this.OnPropertyChanged("List_Annotation"); + } + } + + /// + /// N:1 lk_annotationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_createdby", null); + } + } + + /// + /// N:1 lk_annotationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_annotationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_modifiedby", null); + } + } + + /// + /// N:1 lk_annotationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Mailbox_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Mailbox_Annotation")] + public Xrm.Framework.CI.Common.Entities.Mailbox Mailbox_Annotation + { + get + { + return this.GetRelatedEntity("Mailbox_Annotation", null); + } + set + { + this.OnPropertyChanging("Mailbox_Annotation"); + this.SetRelatedEntity("Mailbox_Annotation", null, value); + this.OnPropertyChanged("Mailbox_Annotation"); + } + } + + /// + /// N:1 msdyn_postalbum_Annotations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Annotations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Annotations + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Annotations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Annotations"); + this.SetRelatedEntity("msdyn_postalbum_Annotations", null, value); + this.OnPropertyChanged("msdyn_postalbum_Annotations"); + } + } + + /// + /// N:1 Opportunity_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Annotation")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Annotation + { + get + { + return this.GetRelatedEntity("Opportunity_Annotation", null); + } + set + { + this.OnPropertyChanging("Opportunity_Annotation"); + this.SetRelatedEntity("Opportunity_Annotation", null, value); + this.OnPropertyChanged("Opportunity_Annotation"); + } + } + + /// + /// N:1 OpportunityClose_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_Annotation")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose OpportunityClose_Annotation + { + get + { + return this.GetRelatedEntity("OpportunityClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_Annotation"); + this.SetRelatedEntity("OpportunityClose_Annotation", null, value); + this.OnPropertyChanged("OpportunityClose_Annotation"); + } + } + + /// + /// N:1 OrderClose_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_Annotation")] + public Xrm.Framework.CI.Common.Entities.OrderClose OrderClose_Annotation + { + get + { + return this.GetRelatedEntity("OrderClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OrderClose_Annotation"); + this.SetRelatedEntity("OrderClose_Annotation", null, value); + this.OnPropertyChanged("OrderClose_Annotation"); + } + } + + /// + /// N:1 PhoneCall_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_Annotation")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_Annotation + { + get + { + return this.GetRelatedEntity("PhoneCall_Annotation", null); + } + set + { + this.OnPropertyChanging("PhoneCall_Annotation"); + this.SetRelatedEntity("PhoneCall_Annotation", null, value); + this.OnPropertyChanged("PhoneCall_Annotation"); + } + } + + /// + /// N:1 Product_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_Annotation")] + public Xrm.Framework.CI.Common.Entities.Product Product_Annotation + { + get + { + return this.GetRelatedEntity("Product_Annotation", null); + } + set + { + this.OnPropertyChanging("Product_Annotation"); + this.SetRelatedEntity("Product_Annotation", null, value); + this.OnPropertyChanged("Product_Annotation"); + } + } + + /// + /// N:1 Quote_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Annotation")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Annotation + { + get + { + return this.GetRelatedEntity("Quote_Annotation", null); + } + set + { + this.OnPropertyChanging("Quote_Annotation"); + this.SetRelatedEntity("Quote_Annotation", null, value); + this.OnPropertyChanged("Quote_Annotation"); + } + } + + /// + /// N:1 QuoteClose_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_Annotation")] + public Xrm.Framework.CI.Common.Entities.QuoteClose QuoteClose_Annotation + { + get + { + return this.GetRelatedEntity("QuoteClose_Annotation", null); + } + set + { + this.OnPropertyChanging("QuoteClose_Annotation"); + this.SetRelatedEntity("QuoteClose_Annotation", null, value); + this.OnPropertyChanged("QuoteClose_Annotation"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_Annotation")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_Annotation + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_Annotation", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_Annotation"); + this.SetRelatedEntity("RecurringAppointmentMaster_Annotation", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_Annotation"); + } + } + + /// + /// N:1 ResourceSpec_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_Annotation")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ResourceSpec_Annotation + { + get + { + return this.GetRelatedEntity("ResourceSpec_Annotation", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_Annotation"); + this.SetRelatedEntity("ResourceSpec_Annotation", null, value); + this.OnPropertyChanged("ResourceSpec_Annotation"); + } + } + + /// + /// N:1 SalesOrder_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Annotation")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Annotation + { + get + { + return this.GetRelatedEntity("SalesOrder_Annotation", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Annotation"); + this.SetRelatedEntity("SalesOrder_Annotation", null, value); + this.OnPropertyChanged("SalesOrder_Annotation"); + } + } + + /// + /// N:1 Service_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_Annotation")] + public Xrm.Framework.CI.Common.Entities.Service Service_Annotation + { + get + { + return this.GetRelatedEntity("Service_Annotation", null); + } + set + { + this.OnPropertyChanging("Service_Annotation"); + this.SetRelatedEntity("Service_Annotation", null, value); + this.OnPropertyChanged("Service_Annotation"); + } + } + + /// + /// N:1 ServiceAppointment_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_Annotation")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_Annotation + { + get + { + return this.GetRelatedEntity("ServiceAppointment_Annotation", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_Annotation"); + this.SetRelatedEntity("ServiceAppointment_Annotation", null, value); + this.OnPropertyChanged("ServiceAppointment_Annotation"); + } + } + + /// + /// N:1 Task_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_Annotation")] + public Xrm.Framework.CI.Common.Entities.Task Task_Annotation + { + get + { + return this.GetRelatedEntity("Task_Annotation", null); + } + set + { + this.OnPropertyChanging("Task_Annotation"); + this.SetRelatedEntity("Task_Annotation", null, value); + this.OnPropertyChanged("Task_Annotation"); + } + } + + /// + /// N:1 team_annotations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_annotations")] + public Xrm.Framework.CI.Common.Entities.Team team_annotations + { + get + { + return this.GetRelatedEntity("team_annotations", null); + } + } + + /// + /// N:1 Workflow_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Workflow_Annotation")] + public Xrm.Framework.CI.Common.Entities.Workflow Workflow_Annotation + { + get + { + return this.GetRelatedEntity("Workflow_Annotation", null); + } + set + { + this.OnPropertyChanging("Workflow_Annotation"); + this.SetRelatedEntity("Workflow_Annotation", null, value); + this.OnPropertyChanged("Workflow_Annotation"); + } + } + } + + /// + /// Year long fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("annualfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AnnualFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AnnualFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "annualfiscalcalendar"; + + public const int EntityTypeCode = 2000; + + 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)); + } + } + + /// + /// Sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annual")] + public Microsoft.Xrm.Sdk.Money Annual + { + get + { + return this.GetAttributeValue("annual"); + } + set + { + this.OnPropertyChanging("Annual"); + this.SetAttributeValue("annual", value); + this.OnPropertyChanged("Annual"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annual_base")] + public Microsoft.Xrm.Sdk.Money Annual_Base + { + get + { + return this.GetAttributeValue("annual_base"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the quota for the annual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the annual fiscal calendar 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 annualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the annual fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the quota for the annual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the annual fiscal calendar 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 annualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the sales person associated with the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 annual fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the user associated with the annual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N AnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable AnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("AnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("AnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("AnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N AnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable AnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("AnnualFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("AnnualFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("AnnualFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("AnnualFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_annualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_annualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_annualfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_annualfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_annualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_annualfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_annualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_annualfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum AppointmentState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// Commitment representing a time interval with start/end times and duration. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("appointment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Appointment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Appointment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "appointment"; + + public const int EntityTypeCode = 4201; + + 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 appointment. + /// + [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"); + } + } + + /// + /// Shows the value selected in the Duration field on the appointment at the time that the appointment is closed as completed. The duration is used to report the time spent on the activity. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the appointment. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual duration of the appointment. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the appointment. By default, it displays the date and time when the activity was created, but can be edited to capture the actual duration of the appointment. + /// + [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"); + } + } + + /// + /// Type a category to identify the appointment type, such as sales demo, prospect call, or service call, to tie the appointment to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the purpose of the appointment. + /// + [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 ID of the appointment in Microsoft Office Outlook. The ID is used to synchronize the appointment between Microsoft Dynamics CRM and the correct Exchange account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("globalobjectid")] + public string GlobalObjectId + { + get + { + return this.GetAttributeValue("globalobjectid"); + } + set + { + this.OnPropertyChanging("GlobalObjectId"); + this.SetAttributeValue("globalobjectid", value); + this.OnPropertyChanged("GlobalObjectId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Select whether the appointment is an all-day event to make sure that the required resources are scheduled for the full day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isalldayevent")] + public System.Nullable IsAllDayEvent + { + get + { + return this.GetAttributeValue>("isalldayevent"); + } + set + { + this.OnPropertyChanging("IsAllDayEvent"); + this.SetAttributeValue("isalldayevent", value); + this.OnPropertyChanged("IsAllDayEvent"); + } + } + + /// + /// Information regarding whether the appointment 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 regarding whether the appointment 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"); + } + } + + /// + /// Type the location where the appointment will take place, such as a conference room or customer office. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("location")] + public string Location + { + get + { + return this.GetAttributeValue("location"); + } + set + { + this.OnPropertyChanging("Location"); + this.SetAttributeValue("location", value); + this.OnPropertyChanged("Location"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedfieldsmask")] + public string ModifiedFieldsMask + { + get + { + return this.GetAttributeValue("modifiedfieldsmask"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are not needed at the appointment, but can optionally attend. + /// + [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"); + } + } + + /// + /// Enter the user who is in charge of coordinating or leading the appointment to make sure the appointment is displayed in the user's My Activities view. + /// + [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"); + } + } + + /// + /// The original start date of the appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originalstartdate")] + public System.Nullable OriginalStartDate + { + get + { + return this.GetAttributeValue>("originalstartdate"); + } + } + + /// + /// Unique identifier of the Microsoft Office Outlook appointment owner that correlates to the PR_OWNER_APPT_ID MAPI property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlookownerapptid")] + public System.Nullable OutlookOwnerApptId + { + get + { + return this.GetAttributeValue>("outlookownerapptid"); + } + set + { + this.OnPropertyChanging("OutlookOwnerApptId"); + this.SetAttributeValue("outlookownerapptid", value); + this.OnPropertyChanged("OutlookOwnerApptId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 that owns the appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user that owns the appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the appointment 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"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are required to attend the appointment. + /// + [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"); + } + } + + /// + /// Shows the expected duration of the appointment, in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + set + { + this.OnPropertyChanging("ScheduledDurationMinutes"); + this.SetAttributeValue("scheduleddurationminutes", value); + this.OnPropertyChanged("ScheduledDurationMinutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about the timing of the appointment. + /// + [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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about the timing of the appointment. + /// + [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"); + } + } + + /// + /// Shows the ID of the recurring series of an instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesid")] + public System.Nullable SeriesId + { + get + { + return this.GetAttributeValue>("seriesid"); + } + } + + /// + /// Unique identifier for an associated service. + /// + [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"); + } + } + + /// + /// 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 appointment is open, completed, or canceled. Completed and canceled appointments are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.AppointmentState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.AppointmentState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the appointment'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"); + } + } + + /// + /// Type a subcategory to identify the appointment type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the appointment. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N appointment_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_activity_parties")] + public System.Collections.Generic.IEnumerable appointment_activity_parties + { + get + { + return this.GetRelatedEntities("appointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("appointment_activity_parties"); + this.SetRelatedEntities("appointment_activity_parties", null, value); + this.OnPropertyChanged("appointment_activity_parties"); + } + } + + /// + /// 1:N Appointment_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_Annotation")] + public System.Collections.Generic.IEnumerable Appointment_Annotation + { + get + { + return this.GetRelatedEntities("Appointment_Annotation", null); + } + set + { + this.OnPropertyChanging("Appointment_Annotation"); + this.SetRelatedEntities("Appointment_Annotation", null, value); + this.OnPropertyChanged("Appointment_Annotation"); + } + } + + /// + /// 1:N Appointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_AsyncOperations")] + public System.Collections.Generic.IEnumerable Appointment_AsyncOperations + { + get + { + return this.GetRelatedEntities("Appointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Appointment_AsyncOperations"); + this.SetRelatedEntities("Appointment_AsyncOperations", null, value); + this.OnPropertyChanged("Appointment_AsyncOperations"); + } + } + + /// + /// 1:N Appointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Appointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Appointment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Appointment_BulkDeleteFailures"); + this.SetRelatedEntities("Appointment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Appointment_BulkDeleteFailures"); + } + } + + /// + /// 1:N appointment_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_campaignresponse")] + public System.Collections.Generic.IEnumerable appointment_campaignresponse + { + get + { + return this.GetRelatedEntities("appointment_campaignresponse", null); + } + set + { + this.OnPropertyChanging("appointment_campaignresponse"); + this.SetRelatedEntities("appointment_campaignresponse", null, value); + this.OnPropertyChanged("appointment_campaignresponse"); + } + } + + /// + /// 1:N appointment_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections1")] + public System.Collections.Generic.IEnumerable appointment_connections1 + { + get + { + return this.GetRelatedEntities("appointment_connections1", null); + } + set + { + this.OnPropertyChanging("appointment_connections1"); + this.SetRelatedEntities("appointment_connections1", null, value); + this.OnPropertyChanged("appointment_connections1"); + } + } + + /// + /// 1:N appointment_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections2")] + public System.Collections.Generic.IEnumerable appointment_connections2 + { + get + { + return this.GetRelatedEntities("appointment_connections2", null); + } + set + { + this.OnPropertyChanging("appointment_connections2"); + this.SetRelatedEntities("appointment_connections2", null, value); + this.OnPropertyChanged("appointment_connections2"); + } + } + + /// + /// 1:N Appointment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Appointment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Appointment_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Appointment_DuplicateBaseRecord"); + this.SetRelatedEntities("Appointment_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Appointment_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Appointment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Appointment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Appointment_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Appointment_DuplicateMatchingRecord"); + this.SetRelatedEntities("Appointment_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Appointment_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N appointment_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_PostFollows")] + public System.Collections.Generic.IEnumerable appointment_PostFollows + { + get + { + return this.GetRelatedEntities("appointment_PostFollows", null); + } + set + { + this.OnPropertyChanging("appointment_PostFollows"); + this.SetRelatedEntities("appointment_PostFollows", null, value); + this.OnPropertyChanged("appointment_PostFollows"); + } + } + + /// + /// 1:N appointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable appointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("appointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("appointment_principalobjectattributeaccess"); + this.SetRelatedEntities("appointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("appointment_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Appointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_ProcessSessions")] + public System.Collections.Generic.IEnumerable Appointment_ProcessSessions + { + get + { + return this.GetRelatedEntities("Appointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Appointment_ProcessSessions"); + this.SetRelatedEntities("Appointment_ProcessSessions", null, value); + this.OnPropertyChanged("Appointment_ProcessSessions"); + } + } + + /// + /// 1:N Appointment_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_QueueItem")] + public System.Collections.Generic.IEnumerable Appointment_QueueItem + { + get + { + return this.GetRelatedEntities("Appointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("Appointment_QueueItem"); + this.SetRelatedEntities("Appointment_QueueItem", null, value); + this.OnPropertyChanged("Appointment_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_appointment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_appointment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_appointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_appointment"); + this.SetRelatedEntities("userentityinstancedata_appointment", null, value); + this.OnPropertyChanged("userentityinstancedata_appointment"); + } + } + + /// + /// N:1 Account_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Appointments")] + public Xrm.Framework.CI.Common.Entities.Account Account_Appointments + { + get + { + return this.GetRelatedEntity("Account_Appointments", null); + } + set + { + this.OnPropertyChanging("Account_Appointments"); + this.SetRelatedEntity("Account_Appointments", null, value); + this.OnPropertyChanged("Account_Appointments"); + } + } + + /// + /// N:1 activity_pointer_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_appointment")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_appointment + { + get + { + return this.GetRelatedEntity("activity_pointer_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_appointment"); + this.SetRelatedEntity("activity_pointer_appointment", null, value); + this.OnPropertyChanged("activity_pointer_appointment"); + } + } + + /// + /// N:1 BulkOperation_Appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Appointment")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Appointment + { + get + { + return this.GetRelatedEntity("BulkOperation_Appointment", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Appointment"); + this.SetRelatedEntity("BulkOperation_Appointment", null, value); + this.OnPropertyChanged("BulkOperation_Appointment"); + } + } + + /// + /// N:1 business_unit_appointment_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_appointment_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_appointment_activities + { + get + { + return this.GetRelatedEntity("business_unit_appointment_activities", null); + } + } + + /// + /// N:1 Campaign_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Appointments")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Appointments + { + get + { + return this.GetRelatedEntity("Campaign_Appointments", null); + } + set + { + this.OnPropertyChanging("Campaign_Appointments"); + this.SetRelatedEntity("Campaign_Appointments", null, value); + this.OnPropertyChanged("Campaign_Appointments"); + } + } + + /// + /// N:1 CampaignActivity_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Appointments")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Appointments + { + get + { + return this.GetRelatedEntity("CampaignActivity_Appointments", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Appointments"); + this.SetRelatedEntity("CampaignActivity_Appointments", null, value); + this.OnPropertyChanged("CampaignActivity_Appointments"); + } + } + + /// + /// N:1 Contact_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Appointments")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Appointments + { + get + { + return this.GetRelatedEntity("Contact_Appointments", null); + } + set + { + this.OnPropertyChanging("Contact_Appointments"); + this.SetRelatedEntity("Contact_Appointments", null, value); + this.OnPropertyChanged("Contact_Appointments"); + } + } + + /// + /// N:1 Contract_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Appointments")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Appointments + { + get + { + return this.GetRelatedEntity("Contract_Appointments", null); + } + set + { + this.OnPropertyChanging("Contract_Appointments"); + this.SetRelatedEntity("Contract_Appointments", null, value); + this.OnPropertyChanged("Contract_Appointments"); + } + } + + /// + /// N:1 Incident_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Appointments")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Appointments + { + get + { + return this.GetRelatedEntity("Incident_Appointments", null); + } + set + { + this.OnPropertyChanging("Incident_Appointments"); + this.SetRelatedEntity("Incident_Appointments", null, value); + this.OnPropertyChanged("Incident_Appointments"); + } + } + + /// + /// N:1 Invoice_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Appointments")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Appointments + { + get + { + return this.GetRelatedEntity("Invoice_Appointments", null); + } + set + { + this.OnPropertyChanging("Invoice_Appointments"); + this.SetRelatedEntity("Invoice_Appointments", null, value); + this.OnPropertyChanged("Invoice_Appointments"); + } + } + + /// + /// N:1 Lead_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Appointments")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Appointments + { + get + { + return this.GetRelatedEntity("Lead_Appointments", null); + } + set + { + this.OnPropertyChanging("Lead_Appointments"); + this.SetRelatedEntity("Lead_Appointments", null, value); + this.OnPropertyChanged("Lead_Appointments"); + } + } + + /// + /// N:1 lk_appointment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_createdby + { + get + { + return this.GetRelatedEntity("lk_appointment_createdby", null); + } + } + + /// + /// N:1 lk_appointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_appointment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_appointment_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_modifiedby + { + get + { + return this.GetRelatedEntity("lk_appointment_modifiedby", null); + } + } + + /// + /// N:1 lk_appointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_appointment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Appointments")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Appointments + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Appointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Appointments"); + this.SetRelatedEntity("msdyn_postalbum_Appointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_Appointments"); + } + } + + /// + /// N:1 Opportunity_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Appointments")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Appointments + { + get + { + return this.GetRelatedEntity("Opportunity_Appointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_Appointments"); + this.SetRelatedEntity("Opportunity_Appointments", null, value); + this.OnPropertyChanged("Opportunity_Appointments"); + } + } + + /// + /// N:1 processstage_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_appointments")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_appointments + { + get + { + return this.GetRelatedEntity("processstage_appointments", null); + } + set + { + this.OnPropertyChanging("processstage_appointments"); + this.SetRelatedEntity("processstage_appointments", null, value); + this.OnPropertyChanged("processstage_appointments"); + } + } + + /// + /// N:1 Quote_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Appointments")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Appointments + { + get + { + return this.GetRelatedEntity("Quote_Appointments", null); + } + set + { + this.OnPropertyChanging("Quote_Appointments"); + this.SetRelatedEntity("Quote_Appointments", null, value); + this.OnPropertyChanged("Quote_Appointments"); + } + } + + /// + /// N:1 recurringappointmentmaster_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_appointment")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_appointment + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_appointment", null); + } + } + + /// + /// N:1 SalesOrder_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Appointments")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Appointments + { + get + { + return this.GetRelatedEntity("SalesOrder_Appointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Appointments"); + this.SetRelatedEntity("SalesOrder_Appointments", null, value); + this.OnPropertyChanged("SalesOrder_Appointments"); + } + } + + /// + /// N:1 service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_appointments")] + public Xrm.Framework.CI.Common.Entities.Service service_appointments + { + get + { + return this.GetRelatedEntity("service_appointments", null); + } + set + { + this.OnPropertyChanging("service_appointments"); + this.SetRelatedEntity("service_appointments", null, value); + this.OnPropertyChanged("service_appointments"); + } + } + + /// + /// N:1 team_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_appointment")] + public Xrm.Framework.CI.Common.Entities.Team team_appointment + { + get + { + return this.GetRelatedEntity("team_appointment", null); + } + } + + /// + /// N:1 TransactionCurrency_Appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Appointment")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Appointment + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Appointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Appointment"); + this.SetRelatedEntity("TransactionCurrency_Appointment", null, value); + this.OnPropertyChanged("TransactionCurrency_Appointment"); + } + } + + /// + /// N:1 user_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_appointment")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_appointment + { + get + { + return this.GetRelatedEntity("user_appointment", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum AsyncOperationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Ready = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Suspended = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Locked = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 3, + } + + /// + /// Process whose execution can proceed independently or in the background. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("asyncoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AsyncOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AsyncOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "asyncoperation"; + + public const int EntityTypeCode = 4700; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public System.Nullable AsyncOperationId + { + get + { + return this.GetAttributeValue>("asyncoperationid"); + } + set + { + this.OnPropertyChanging("AsyncOperationId"); + this.SetAttributeValue("asyncoperationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AsyncOperationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AsyncOperationId = value; + } + } + + /// + /// Date and time when the system job was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Unique identifier used to correlate between multiple SDK requests and system jobs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationid")] + public System.Nullable CorrelationId + { + get + { + return this.GetAttributeValue>("correlationid"); + } + set + { + this.OnPropertyChanging("CorrelationId"); + this.SetAttributeValue("correlationid", value); + this.OnPropertyChanged("CorrelationId"); + } + } + + /// + /// Last time the correlation depth was updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationupdatedtime")] + public System.Nullable CorrelationUpdatedTime + { + get + { + return this.GetAttributeValue>("correlationupdatedtime"); + } + set + { + this.OnPropertyChanging("CorrelationUpdatedTime"); + this.SetAttributeValue("correlationupdatedtime", value); + this.OnPropertyChanged("CorrelationUpdatedTime"); + } + } + + /// + /// Unique identifier of the user who created the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the system job was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the asyncoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unstructured data associated with the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// Execution of all operations with the same dependency token is serialized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytoken")] + public string DependencyToken + { + get + { + return this.GetAttributeValue("dependencytoken"); + } + set + { + this.OnPropertyChanging("DependencyToken"); + this.SetAttributeValue("dependencytoken", value); + this.OnPropertyChanged("DependencyToken"); + } + } + + /// + /// Number of SDK calls made since the first call. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("depth")] + public System.Nullable Depth + { + get + { + return this.GetAttributeValue>("depth"); + } + set + { + this.OnPropertyChanging("Depth"); + this.SetAttributeValue("depth", value); + this.OnPropertyChanged("Depth"); + } + } + + /// + /// Error code returned from a canceled system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + } + + /// + /// Time that the system job has taken to execute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executiontimespan")] + public System.Nullable ExecutionTimeSpan + { + get + { + return this.GetAttributeValue>("executiontimespan"); + } + } + + /// + /// Message provided by the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlymessage")] + public string FriendlyMessage + { + get + { + return this.GetAttributeValue("friendlymessage"); + } + set + { + this.OnPropertyChanging("FriendlyMessage"); + this.SetAttributeValue("friendlymessage", value); + this.OnPropertyChanged("FriendlyMessage"); + } + } + + /// + /// Unique identifier of the host that owns this system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hostid")] + public string HostId + { + get + { + return this.GetAttributeValue("hostid"); + } + set + { + this.OnPropertyChanging("HostId"); + this.SetAttributeValue("hostid", value); + this.OnPropertyChanged("HostId"); + } + } + + /// + /// Indicates that the system job is waiting for an event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iswaitingforevent")] + public System.Nullable IsWaitingForEvent + { + get + { + return this.GetAttributeValue>("iswaitingforevent"); + } + } + + /// + /// Message related to the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + } + + /// + /// Name of the message that started this system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagename")] + public string MessageName + { + get + { + return this.GetAttributeValue("messagename"); + } + set + { + this.OnPropertyChanging("MessageName"); + this.SetAttributeValue("messagename", value); + this.OnPropertyChanged("MessageName"); + } + } + + /// + /// Unique identifier of the user who last modified the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the system job was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the asyncoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operationtype")] + public Microsoft.Xrm.Sdk.OptionSetValue OperationType + { + get + { + return this.GetAttributeValue("operationtype"); + } + set + { + this.OnPropertyChanging("OperationType"); + this.SetAttributeValue("operationtype", value); + this.OnPropertyChanged("OperationType"); + } + } + + /// + /// Unique identifier of the user or team who owns the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier of the business unit that owns the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the owning extension with which the system job is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningextensionid")] + public Microsoft.Xrm.Sdk.EntityReference OwningExtensionId + { + get + { + return this.GetAttributeValue("owningextensionid"); + } + set + { + this.OnPropertyChanging("OwningExtensionId"); + this.SetAttributeValue("owningextensionid", value); + this.OnPropertyChanged("OwningExtensionId"); + } + } + + /// + /// Unique identifier of the team who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Indicates whether the system job should run only after the specified date and time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponeuntil")] + public System.Nullable PostponeUntil + { + get + { + return this.GetAttributeValue>("postponeuntil"); + } + set + { + this.OnPropertyChanging("PostponeUntil"); + this.SetAttributeValue("postponeuntil", value); + this.OnPropertyChanged("PostponeUntil"); + } + } + + /// + /// Type of entity with which the system job is primarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytype")] + public string PrimaryEntityType + { + get + { + return this.GetAttributeValue("primaryentitytype"); + } + set + { + this.OnPropertyChanging("PrimaryEntityType"); + this.SetAttributeValue("primaryentitytype", value); + this.OnPropertyChanged("PrimaryEntityType"); + } + } + + /// + /// Pattern of the system job's recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepattern")] + public string RecurrencePattern + { + get + { + return this.GetAttributeValue("recurrencepattern"); + } + set + { + this.OnPropertyChanging("RecurrencePattern"); + this.SetAttributeValue("recurrencepattern", value); + this.OnPropertyChanged("RecurrencePattern"); + } + } + + /// + /// Starting time in UTC for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencestarttime")] + public System.Nullable RecurrenceStartTime + { + get + { + return this.GetAttributeValue>("recurrencestarttime"); + } + set + { + this.OnPropertyChanging("RecurrenceStartTime"); + this.SetAttributeValue("recurrencestarttime", value); + this.OnPropertyChanged("RecurrenceStartTime"); + } + } + + /// + /// Unique identifier of the object with which the system job is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the request that generated the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requestid")] + public System.Nullable RequestId + { + get + { + return this.GetAttributeValue>("requestid"); + } + set + { + this.OnPropertyChanging("RequestId"); + this.SetAttributeValue("requestid", value); + this.OnPropertyChanged("RequestId"); + } + } + + /// + /// Number of times to retry the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retrycount")] + public System.Nullable RetryCount + { + get + { + return this.GetAttributeValue>("retrycount"); + } + } + + /// + /// Order in which operations were submitted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequence")] + public System.Nullable Sequence + { + get + { + return this.GetAttributeValue>("sequence"); + } + } + + /// + /// Date and time when the system job was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + } + + /// + /// Status of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.AsyncOperationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.AsyncOperationState), 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 system job. + /// + [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"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Unique identifier of the workflow activation related to the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivationid")] + public Microsoft.Xrm.Sdk.EntityReference WorkflowActivationId + { + get + { + return this.GetAttributeValue("workflowactivationid"); + } + set + { + this.OnPropertyChanging("WorkflowActivationId"); + this.SetAttributeValue("workflowactivationid", value); + this.OnPropertyChanged("WorkflowActivationId"); + } + } + + /// + /// Name of a workflow stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowstagename")] + public string WorkflowStageName + { + get + { + return this.GetAttributeValue("workflowstagename"); + } + } + + /// + /// 1:N AsyncOperation_BulkDeleteOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_BulkDeleteOperation")] + public System.Collections.Generic.IEnumerable AsyncOperation_BulkDeleteOperation + { + get + { + return this.GetRelatedEntities("AsyncOperation_BulkDeleteOperation", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_BulkDeleteOperation"); + this.SetRelatedEntities("AsyncOperation_BulkDeleteOperation", null, value); + this.OnPropertyChanged("AsyncOperation_BulkDeleteOperation"); + } + } + + /// + /// 1:N AsyncOperation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable AsyncOperation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("AsyncOperation_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_DuplicateBaseRecord"); + this.SetRelatedEntities("AsyncOperation_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("AsyncOperation_DuplicateBaseRecord"); + } + } + + /// + /// 1:N AsyncOperation_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_Emails")] + public System.Collections.Generic.IEnumerable AsyncOperation_Emails + { + get + { + return this.GetRelatedEntities("AsyncOperation_Emails", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_Emails"); + this.SetRelatedEntities("AsyncOperation_Emails", null, value); + this.OnPropertyChanged("AsyncOperation_Emails"); + } + } + + /// + /// 1:N lk_workflowlog_asyncoperation_childworkflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperation_childworkflow")] + public System.Collections.Generic.IEnumerable lk_workflowlog_asyncoperation_childworkflow + { + get + { + return this.GetRelatedEntities("lk_workflowlog_asyncoperation_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperation_childworkflow"); + this.SetRelatedEntities("lk_workflowlog_asyncoperation_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperation_childworkflow"); + } + } + + /// + /// 1:N lk_workflowlog_asyncoperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperations")] + public System.Collections.Generic.IEnumerable lk_workflowlog_asyncoperations + { + get + { + return this.GetRelatedEntities("lk_workflowlog_asyncoperations", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperations"); + this.SetRelatedEntities("lk_workflowlog_asyncoperations", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperations"); + } + } + + /// + /// 1:N userentityinstancedata_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_asyncoperation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_asyncoperation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_asyncoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_asyncoperation"); + this.SetRelatedEntities("userentityinstancedata_asyncoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_asyncoperation"); + } + } + + /// + /// N:1 Account_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Account Account_AsyncOperations + { + get + { + return this.GetRelatedEntity("Account_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Account_AsyncOperations"); + this.SetRelatedEntity("Account_AsyncOperations", null, value); + this.OnPropertyChanged("Account_AsyncOperations"); + } + } + + /// + /// N:1 ActivityMimeAttachment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ActivityMimeAttachment ActivityMimeAttachment_AsyncOperations + { + get + { + return this.GetRelatedEntity("ActivityMimeAttachment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachment_AsyncOperations"); + this.SetRelatedEntity("ActivityMimeAttachment_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityMimeAttachment_AsyncOperations"); + } + } + + /// + /// N:1 ActivityPointer_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_AsyncOperations + { + get + { + return this.GetRelatedEntity("ActivityPointer_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_AsyncOperations"); + this.SetRelatedEntity("ActivityPointer_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityPointer_AsyncOperations"); + } + } + + /// + /// N:1 Annotation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Annotation Annotation_AsyncOperations + { + get + { + return this.GetRelatedEntity("Annotation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Annotation_AsyncOperations"); + this.SetRelatedEntity("Annotation_AsyncOperations", null, value); + this.OnPropertyChanged("Annotation_AsyncOperations"); + } + } + + /// + /// N:1 AnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.AnnualFiscalCalendar AnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("AnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("AnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("AnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Appointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_AsyncOperations + { + get + { + return this.GetRelatedEntity("Appointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Appointment_AsyncOperations"); + this.SetRelatedEntity("Appointment_AsyncOperations", null, value); + this.OnPropertyChanged("Appointment_AsyncOperations"); + } + } + + /// + /// N:1 AttributeMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.AttributeMap AttributeMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("AttributeMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AttributeMap_AsyncOperations"); + this.SetRelatedEntity("AttributeMap_AsyncOperations", null, value); + this.OnPropertyChanged("AttributeMap_AsyncOperations"); + } + } + + /// + /// N:1 BulkOperation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_AsyncOperations + { + get + { + return this.GetRelatedEntity("BulkOperation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperation_AsyncOperations"); + this.SetRelatedEntity("BulkOperation_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperation_AsyncOperations"); + } + } + + /// + /// N:1 BulkOperationLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BulkOperationLog BulkOperationLog_AsyncOperations + { + get + { + return this.GetRelatedEntity("BulkOperationLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperationLog_AsyncOperations"); + this.SetRelatedEntity("BulkOperationLog_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperationLog_AsyncOperations"); + } + } + + /// + /// N:1 business_unit_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_asyncoperation + { + get + { + return this.GetRelatedEntity("business_unit_asyncoperation", null); + } + } + + /// + /// N:1 BusinessUnit_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_AsyncOperations + { + get + { + return this.GetRelatedEntity("BusinessUnit_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_AsyncOperations"); + this.SetRelatedEntity("BusinessUnit_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnit_AsyncOperations"); + } + } + + /// + /// N:1 BusinessUnitNewsArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle BusinessUnitNewsArticle_AsyncOperations + { + get + { + return this.GetRelatedEntity("BusinessUnitNewsArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_AsyncOperations"); + this.SetRelatedEntity("BusinessUnitNewsArticle_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_AsyncOperations"); + } + } + + /// + /// N:1 Calendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Calendar Calendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("Calendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Calendar_AsyncOperations"); + this.SetRelatedEntity("Calendar_AsyncOperations", null, value); + this.OnPropertyChanged("Calendar_AsyncOperations"); + } + } + + /// + /// N:1 Campaign_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_AsyncOperations + { + get + { + return this.GetRelatedEntity("Campaign_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Campaign_AsyncOperations"); + this.SetRelatedEntity("Campaign_AsyncOperations", null, value); + this.OnPropertyChanged("Campaign_AsyncOperations"); + } + } + + /// + /// N:1 CampaignActivity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_AsyncOperations + { + get + { + return this.GetRelatedEntity("CampaignActivity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_AsyncOperations"); + this.SetRelatedEntity("CampaignActivity_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignActivity_AsyncOperations"); + } + } + + /// + /// N:1 CampaignResponse_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_AsyncOperations + { + get + { + return this.GetRelatedEntity("CampaignResponse_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_AsyncOperations"); + this.SetRelatedEntity("CampaignResponse_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignResponse_AsyncOperations"); + } + } + + /// + /// N:1 Competitor_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_AsyncOperations + { + get + { + return this.GetRelatedEntity("Competitor_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Competitor_AsyncOperations"); + this.SetRelatedEntity("Competitor_AsyncOperations", null, value); + this.OnPropertyChanged("Competitor_AsyncOperations"); + } + } + + /// + /// N:1 Connection_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Connection Connection_AsyncOperations + { + get + { + return this.GetRelatedEntity("Connection_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_AsyncOperations"); + this.SetRelatedEntity("Connection_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_AsyncOperations"); + } + } + + /// + /// N:1 Connection_Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_Role_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole Connection_Role_AsyncOperations + { + get + { + return this.GetRelatedEntity("Connection_Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_Role_AsyncOperations"); + this.SetRelatedEntity("Connection_Role_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_Role_AsyncOperations"); + } + } + + /// + /// N:1 ConstraintBasedGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup ConstraintBasedGroup_AsyncOperations + { + get + { + return this.GetRelatedEntity("ConstraintBasedGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_AsyncOperations"); + this.SetRelatedEntity("ConstraintBasedGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_AsyncOperations"); + } + } + + /// + /// N:1 Contact_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_AsyncOperations + { + get + { + return this.GetRelatedEntity("Contact_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contact_AsyncOperations"); + this.SetRelatedEntity("Contact_AsyncOperations", null, value); + this.OnPropertyChanged("Contact_AsyncOperations"); + } + } + + /// + /// N:1 Contract_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_AsyncOperations + { + get + { + return this.GetRelatedEntity("Contract_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contract_AsyncOperations"); + this.SetRelatedEntity("Contract_AsyncOperations", null, value); + this.OnPropertyChanged("Contract_AsyncOperations"); + } + } + + /// + /// N:1 ContractDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("ContractDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractDetail_AsyncOperations"); + this.SetRelatedEntity("ContractDetail_AsyncOperations", null, value); + this.OnPropertyChanged("ContractDetail_AsyncOperations"); + } + } + + /// + /// N:1 ContractTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate ContractTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntity("ContractTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_AsyncOperations"); + this.SetRelatedEntity("ContractTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("ContractTemplate_AsyncOperations"); + } + } + + /// + /// N:1 CustomerAddress_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress CustomerAddress_AsyncOperations + { + get + { + return this.GetRelatedEntity("CustomerAddress_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_AsyncOperations"); + this.SetRelatedEntity("CustomerAddress_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerAddress_AsyncOperations"); + } + } + + /// + /// N:1 CustomerOpportunityRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole CustomerOpportunityRole_AsyncOperations + { + get + { + return this.GetRelatedEntity("CustomerOpportunityRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_AsyncOperations"); + this.SetRelatedEntity("CustomerOpportunityRole_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_AsyncOperations"); + } + } + + /// + /// N:1 CustomerRelationship_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship CustomerRelationship_AsyncOperations + { + get + { + return this.GetRelatedEntity("CustomerRelationship_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_AsyncOperations"); + this.SetRelatedEntity("CustomerRelationship_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerRelationship_AsyncOperations"); + } + } + + /// + /// N:1 Discount_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Discount Discount_AsyncOperations + { + get + { + return this.GetRelatedEntity("Discount_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Discount_AsyncOperations"); + this.SetRelatedEntity("Discount_AsyncOperations", null, value); + this.OnPropertyChanged("Discount_AsyncOperations"); + } + } + + /// + /// N:1 DiscountType_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.DiscountType DiscountType_AsyncOperations + { + get + { + return this.GetRelatedEntity("DiscountType_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DiscountType_AsyncOperations"); + this.SetRelatedEntity("DiscountType_AsyncOperations", null, value); + this.OnPropertyChanged("DiscountType_AsyncOperations"); + } + } + + /// + /// N:1 DisplayString_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.DisplayString DisplayString_AsyncOperations + { + get + { + return this.GetRelatedEntity("DisplayString_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DisplayString_AsyncOperations"); + this.SetRelatedEntity("DisplayString_AsyncOperations", null, value); + this.OnPropertyChanged("DisplayString_AsyncOperations"); + } + } + + /// + /// N:1 Email_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Email Email_AsyncOperations + { + get + { + return this.GetRelatedEntity("Email_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Email_AsyncOperations"); + this.SetRelatedEntity("Email_AsyncOperations", null, value); + this.OnPropertyChanged("Email_AsyncOperations"); + } + } + + /// + /// N:1 emailserverprofile_asyncoperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_asyncoperations")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_asyncoperations + { + get + { + return this.GetRelatedEntity("emailserverprofile_asyncoperations", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_asyncoperations"); + this.SetRelatedEntity("emailserverprofile_asyncoperations", null, value); + this.OnPropertyChanged("emailserverprofile_asyncoperations"); + } + } + + /// + /// N:1 EntityMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.EntityMap EntityMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("EntityMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("EntityMap_AsyncOperations"); + this.SetRelatedEntity("EntityMap_AsyncOperations", null, value); + this.OnPropertyChanged("EntityMap_AsyncOperations"); + } + } + + /// + /// N:1 Equipment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_AsyncOperations + { + get + { + return this.GetRelatedEntity("Equipment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Equipment_AsyncOperations"); + this.SetRelatedEntity("Equipment_AsyncOperations", null, value); + this.OnPropertyChanged("Equipment_AsyncOperations"); + } + } + + /// + /// N:1 Fax_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_AsyncOperations + { + get + { + return this.GetRelatedEntity("Fax_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Fax_AsyncOperations"); + this.SetRelatedEntity("Fax_AsyncOperations", null, value); + this.OnPropertyChanged("Fax_AsyncOperations"); + } + } + + /// + /// N:1 FixedMonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.FixedMonthlyFiscalCalendar FixedMonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("FixedMonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("FixedMonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("FixedMonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("FixedMonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Goal_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Goal Goal_AsyncOperations + { + get + { + return this.GetRelatedEntity("Goal_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Goal_AsyncOperations"); + this.SetRelatedEntity("Goal_AsyncOperations", null, value); + this.OnPropertyChanged("Goal_AsyncOperations"); + } + } + + /// + /// N:1 goalrollupquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goalrollupquery_AsyncOperations + { + get + { + return this.GetRelatedEntity("goalrollupquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_AsyncOperations"); + this.SetRelatedEntity("goalrollupquery_AsyncOperations", null, value); + this.OnPropertyChanged("goalrollupquery_AsyncOperations"); + } + } + + /// + /// N:1 Import_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Import Import_AsyncOperations + { + get + { + return this.GetRelatedEntity("Import_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Import_AsyncOperations"); + this.SetRelatedEntity("Import_AsyncOperations", null, value); + this.OnPropertyChanged("Import_AsyncOperations"); + } + } + + /// + /// N:1 ImportFile_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ImportFile ImportFile_AsyncOperations + { + get + { + return this.GetRelatedEntity("ImportFile_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportFile_AsyncOperations"); + this.SetRelatedEntity("ImportFile_AsyncOperations", null, value); + this.OnPropertyChanged("ImportFile_AsyncOperations"); + } + } + + /// + /// N:1 ImportLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ImportLog ImportLog_AsyncOperations + { + get + { + return this.GetRelatedEntity("ImportLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportLog_AsyncOperations"); + this.SetRelatedEntity("ImportLog_AsyncOperations", null, value); + this.OnPropertyChanged("ImportLog_AsyncOperations"); + } + } + + /// + /// N:1 ImportMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("ImportMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportMap_AsyncOperations"); + this.SetRelatedEntity("ImportMap_AsyncOperations", null, value); + this.OnPropertyChanged("ImportMap_AsyncOperations"); + } + } + + /// + /// N:1 Incident_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_AsyncOperations + { + get + { + return this.GetRelatedEntity("Incident_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Incident_AsyncOperations"); + this.SetRelatedEntity("Incident_AsyncOperations", null, value); + this.OnPropertyChanged("Incident_AsyncOperations"); + } + } + + /// + /// N:1 IncidentResolution_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution IncidentResolution_AsyncOperations + { + get + { + return this.GetRelatedEntity("IncidentResolution_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_AsyncOperations"); + this.SetRelatedEntity("IncidentResolution_AsyncOperations", null, value); + this.OnPropertyChanged("IncidentResolution_AsyncOperations"); + } + } + + /// + /// N:1 Invoice_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_AsyncOperations + { + get + { + return this.GetRelatedEntity("Invoice_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Invoice_AsyncOperations"); + this.SetRelatedEntity("Invoice_AsyncOperations", null, value); + this.OnPropertyChanged("Invoice_AsyncOperations"); + } + } + + /// + /// N:1 InvoiceDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail InvoiceDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("InvoiceDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_AsyncOperations"); + this.SetRelatedEntity("InvoiceDetail_AsyncOperations", null, value); + this.OnPropertyChanged("InvoiceDetail_AsyncOperations"); + } + } + + /// + /// N:1 IsvConfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.IsvConfig IsvConfig_AsyncOperations + { + get + { + return this.GetRelatedEntity("IsvConfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IsvConfig_AsyncOperations"); + this.SetRelatedEntity("IsvConfig_AsyncOperations", null, value); + this.OnPropertyChanged("IsvConfig_AsyncOperations"); + } + } + + /// + /// N:1 KbArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_AsyncOperations + { + get + { + return this.GetRelatedEntity("KbArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticle_AsyncOperations"); + this.SetRelatedEntity("KbArticle_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticle_AsyncOperations"); + } + } + + /// + /// N:1 KbArticleComment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment KbArticleComment_AsyncOperations + { + get + { + return this.GetRelatedEntity("KbArticleComment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_AsyncOperations"); + this.SetRelatedEntity("KbArticleComment_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleComment_AsyncOperations"); + } + } + + /// + /// N:1 KbArticleTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate KbArticleTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntity("KbArticleTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_AsyncOperations"); + this.SetRelatedEntity("KbArticleTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleTemplate_AsyncOperations"); + } + } + + /// + /// N:1 Lead_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_AsyncOperations + { + get + { + return this.GetRelatedEntity("Lead_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Lead_AsyncOperations"); + this.SetRelatedEntity("Lead_AsyncOperations", null, value); + this.OnPropertyChanged("Lead_AsyncOperations"); + } + } + + /// + /// N:1 Letter_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_AsyncOperations + { + get + { + return this.GetRelatedEntity("Letter_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Letter_AsyncOperations"); + this.SetRelatedEntity("Letter_AsyncOperations", null, value); + this.OnPropertyChanged("Letter_AsyncOperations"); + } + } + + /// + /// N:1 List_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.List List_AsyncOperations + { + get + { + return this.GetRelatedEntity("List_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("List_AsyncOperations"); + this.SetRelatedEntity("List_AsyncOperations", null, value); + this.OnPropertyChanged("List_AsyncOperations"); + } + } + + /// + /// N:1 lk_asyncoperation_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_createdby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_createdby", null); + } + } + + /// + /// N:1 lk_asyncoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_asyncoperation_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_modifiedby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_modifiedby", null); + } + } + + /// + /// N:1 lk_asyncoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_asyncoperation_workflowactivationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_workflowactivationid")] + public Xrm.Framework.CI.Common.Entities.Workflow lk_asyncoperation_workflowactivationid + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_workflowactivationid", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_workflowactivationid"); + this.SetRelatedEntity("lk_asyncoperation_workflowactivationid", null, value); + this.OnPropertyChanged("lk_asyncoperation_workflowactivationid"); + } + } + + /// + /// N:1 mailbox_asyncoperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_asyncoperations")] + public Xrm.Framework.CI.Common.Entities.Mailbox mailbox_asyncoperations + { + get + { + return this.GetRelatedEntity("mailbox_asyncoperations", null); + } + set + { + this.OnPropertyChanging("mailbox_asyncoperations"); + this.SetRelatedEntity("mailbox_asyncoperations", null, value); + this.OnPropertyChanged("mailbox_asyncoperations"); + } + } + + /// + /// N:1 MailMergeTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate MailMergeTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntity("MailMergeTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_AsyncOperations"); + this.SetRelatedEntity("MailMergeTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("MailMergeTemplate_AsyncOperations"); + } + } + + /// + /// N:1 metric_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Metric metric_AsyncOperations + { + get + { + return this.GetRelatedEntity("metric_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("metric_AsyncOperations"); + this.SetRelatedEntity("metric_AsyncOperations", null, value); + this.OnPropertyChanged("metric_AsyncOperations"); + } + } + + /// + /// N:1 MonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.MonthlyFiscalCalendar MonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("MonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("MonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("MonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_postalbum_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_AsyncOperations"); + this.SetRelatedEntity("msdyn_postalbum_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postalbum_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_postconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_AsyncOperations"); + this.SetRelatedEntity("msdyn_postconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postconfig_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_postruleconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_AsyncOperations"); + this.SetRelatedEntity("msdyn_postruleconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_AsyncOperations"); + this.SetRelatedEntity("msdyn_wallsavedquery_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_AsyncOperations"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_AsyncOperations"); + } + } + + /// + /// N:1 Opportunity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_AsyncOperations + { + get + { + return this.GetRelatedEntity("Opportunity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Opportunity_AsyncOperations"); + this.SetRelatedEntity("Opportunity_AsyncOperations", null, value); + this.OnPropertyChanged("Opportunity_AsyncOperations"); + } + } + + /// + /// N:1 OpportunityClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose OpportunityClose_AsyncOperations + { + get + { + return this.GetRelatedEntity("OpportunityClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_AsyncOperations"); + this.SetRelatedEntity("OpportunityClose_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityClose_AsyncOperations"); + } + } + + /// + /// N:1 OpportunityProduct_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct OpportunityProduct_AsyncOperations + { + get + { + return this.GetRelatedEntity("OpportunityProduct_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_AsyncOperations"); + this.SetRelatedEntity("OpportunityProduct_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityProduct_AsyncOperations"); + } + } + + /// + /// N:1 OrderClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.OrderClose OrderClose_AsyncOperations + { + get + { + return this.GetRelatedEntity("OrderClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OrderClose_AsyncOperations"); + this.SetRelatedEntity("OrderClose_AsyncOperations", null, value); + this.OnPropertyChanged("OrderClose_AsyncOperations"); + } + } + + /// + /// N:1 Organization_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Organization Organization_AsyncOperations + { + get + { + return this.GetRelatedEntity("Organization_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Organization_AsyncOperations"); + this.SetRelatedEntity("Organization_AsyncOperations", null, value); + this.OnPropertyChanged("Organization_AsyncOperations"); + } + } + + /// + /// N:1 PhoneCall_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_AsyncOperations + { + get + { + return this.GetRelatedEntity("PhoneCall_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PhoneCall_AsyncOperations"); + this.SetRelatedEntity("PhoneCall_AsyncOperations", null, value); + this.OnPropertyChanged("PhoneCall_AsyncOperations"); + } + } + + /// + /// N:1 post_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Post post_AsyncOperations + { + get + { + return this.GetRelatedEntity("post_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("post_AsyncOperations"); + this.SetRelatedEntity("post_AsyncOperations", null, value); + this.OnPropertyChanged("post_AsyncOperations"); + } + } + + /// + /// N:1 PostFollow_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PostFollow_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.PostFollow PostFollow_AsyncOperations + { + get + { + return this.GetRelatedEntity("PostFollow_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PostFollow_AsyncOperations"); + this.SetRelatedEntity("PostFollow_AsyncOperations", null, value); + this.OnPropertyChanged("PostFollow_AsyncOperations"); + } + } + + /// + /// N:1 PriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntity("PriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PriceLevel_AsyncOperations"); + this.SetRelatedEntity("PriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("PriceLevel_AsyncOperations"); + } + } + + /// + /// N:1 Privilege_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Privilege Privilege_AsyncOperations + { + get + { + return this.GetRelatedEntity("Privilege_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Privilege_AsyncOperations"); + this.SetRelatedEntity("Privilege_AsyncOperations", null, value); + this.OnPropertyChanged("Privilege_AsyncOperations"); + } + } + + /// + /// N:1 Product_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Product Product_AsyncOperations + { + get + { + return this.GetRelatedEntity("Product_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Product_AsyncOperations"); + this.SetRelatedEntity("Product_AsyncOperations", null, value); + this.OnPropertyChanged("Product_AsyncOperations"); + } + } + + /// + /// N:1 ProductPriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel ProductPriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntity("ProductPriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_AsyncOperations"); + this.SetRelatedEntity("ProductPriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("ProductPriceLevel_AsyncOperations"); + } + } + + /// + /// N:1 QuarterlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QuarterlyFiscalCalendar QuarterlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("QuarterlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuarterlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("QuarterlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("QuarterlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Queue_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_AsyncOperations + { + get + { + return this.GetRelatedEntity("Queue_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Queue_AsyncOperations"); + this.SetRelatedEntity("Queue_AsyncOperations", null, value); + this.OnPropertyChanged("Queue_AsyncOperations"); + } + } + + /// + /// N:1 QueueItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QueueItem QueueItem_AsyncOperations + { + get + { + return this.GetRelatedEntity("QueueItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QueueItem_AsyncOperations"); + this.SetRelatedEntity("QueueItem_AsyncOperations", null, value); + this.OnPropertyChanged("QueueItem_AsyncOperations"); + } + } + + /// + /// N:1 Quote_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_AsyncOperations + { + get + { + return this.GetRelatedEntity("Quote_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Quote_AsyncOperations"); + this.SetRelatedEntity("Quote_AsyncOperations", null, value); + this.OnPropertyChanged("Quote_AsyncOperations"); + } + } + + /// + /// N:1 QuoteClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QuoteClose QuoteClose_AsyncOperations + { + get + { + return this.GetRelatedEntity("QuoteClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteClose_AsyncOperations"); + this.SetRelatedEntity("QuoteClose_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteClose_AsyncOperations"); + } + } + + /// + /// N:1 QuoteDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail QuoteDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("QuoteDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_AsyncOperations"); + this.SetRelatedEntity("QuoteDetail_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteDetail_AsyncOperations"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_AsyncOperations + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_AsyncOperations"); + this.SetRelatedEntity("RecurringAppointmentMaster_AsyncOperations", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_AsyncOperations"); + } + } + + /// + /// N:1 RelationshipRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole RelationshipRole_AsyncOperations + { + get + { + return this.GetRelatedEntity("RelationshipRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_AsyncOperations"); + this.SetRelatedEntity("RelationshipRole_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRole_AsyncOperations"); + } + } + + /// + /// N:1 RelationshipRoleMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RelationshipRoleMap RelationshipRoleMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("RelationshipRoleMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRoleMap_AsyncOperations"); + this.SetRelatedEntity("RelationshipRoleMap_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRoleMap_AsyncOperations"); + } + } + + /// + /// N:1 Report_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Report Report_AsyncOperations + { + get + { + return this.GetRelatedEntity("Report_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Report_AsyncOperations"); + this.SetRelatedEntity("Report_AsyncOperations", null, value); + this.OnPropertyChanged("Report_AsyncOperations"); + } + } + + /// + /// N:1 Resource_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Resource Resource_AsyncOperations + { + get + { + return this.GetRelatedEntity("Resource_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Resource_AsyncOperations"); + this.SetRelatedEntity("Resource_AsyncOperations", null, value); + this.OnPropertyChanged("Resource_AsyncOperations"); + } + } + + /// + /// N:1 ResourceGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_AsyncOperations + { + get + { + return this.GetRelatedEntity("ResourceGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_AsyncOperations"); + this.SetRelatedEntity("ResourceGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceGroup_AsyncOperations"); + } + } + + /// + /// N:1 ResourceSpec_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ResourceSpec_AsyncOperations + { + get + { + return this.GetRelatedEntity("ResourceSpec_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_AsyncOperations"); + this.SetRelatedEntity("ResourceSpec_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceSpec_AsyncOperations"); + } + } + + /// + /// N:1 Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Role Role_AsyncOperations + { + get + { + return this.GetRelatedEntity("Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Role_AsyncOperations"); + this.SetRelatedEntity("Role_AsyncOperations", null, value); + this.OnPropertyChanged("Role_AsyncOperations"); + } + } + + /// + /// N:1 rollupfield_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RollupField rollupfield_AsyncOperations + { + get + { + return this.GetRelatedEntity("rollupfield_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("rollupfield_AsyncOperations"); + this.SetRelatedEntity("rollupfield_AsyncOperations", null, value); + this.OnPropertyChanged("rollupfield_AsyncOperations"); + } + } + + /// + /// N:1 SalesLiterature_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesLiterature_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_AsyncOperations"); + this.SetRelatedEntity("SalesLiterature_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiterature_AsyncOperations"); + } + } + + /// + /// N:1 SalesLiteratureItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem SalesLiteratureItem_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesLiteratureItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_AsyncOperations"); + this.SetRelatedEntity("SalesLiteratureItem_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiteratureItem_AsyncOperations"); + } + } + + /// + /// N:1 SalesOrder_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesOrder_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrder_AsyncOperations"); + this.SetRelatedEntity("SalesOrder_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrder_AsyncOperations"); + } + } + + /// + /// N:1 SalesOrderDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail SalesOrderDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesOrderDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_AsyncOperations"); + this.SetRelatedEntity("SalesOrderDetail_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrderDetail_AsyncOperations"); + } + } + + /// + /// N:1 SavedQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SavedQuery SavedQuery_AsyncOperations + { + get + { + return this.GetRelatedEntity("SavedQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SavedQuery_AsyncOperations"); + this.SetRelatedEntity("SavedQuery_AsyncOperations", null, value); + this.OnPropertyChanged("SavedQuery_AsyncOperations"); + } + } + + /// + /// N:1 SdkMessageProcessingStep_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningextensionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SdkMessageProcessingStep_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStep SdkMessageProcessingStep_AsyncOperations + { + get + { + return this.GetRelatedEntity("SdkMessageProcessingStep_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStep_AsyncOperations"); + this.SetRelatedEntity("SdkMessageProcessingStep_AsyncOperations", null, value); + this.OnPropertyChanged("SdkMessageProcessingStep_AsyncOperations"); + } + } + + /// + /// N:1 SemiAnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SemiAnnualFiscalCalendar SemiAnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("SemiAnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SemiAnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("SemiAnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("SemiAnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Service_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Service Service_AsyncOperations + { + get + { + return this.GetRelatedEntity("Service_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Service_AsyncOperations"); + this.SetRelatedEntity("Service_AsyncOperations", null, value); + this.OnPropertyChanged("Service_AsyncOperations"); + } + } + + /// + /// N:1 ServiceAppointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_AsyncOperations + { + get + { + return this.GetRelatedEntity("ServiceAppointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_AsyncOperations"); + this.SetRelatedEntity("ServiceAppointment_AsyncOperations", null, value); + this.OnPropertyChanged("ServiceAppointment_AsyncOperations"); + } + } + + /// + /// N:1 SharePointDocumentLocation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_AsyncOperations + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_AsyncOperations"); + this.SetRelatedEntity("SharePointDocumentLocation_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_AsyncOperations"); + } + } + + /// + /// N:1 SharePointSite_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_AsyncOperations + { + get + { + return this.GetRelatedEntity("SharePointSite_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointSite_AsyncOperations"); + this.SetRelatedEntity("SharePointSite_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointSite_AsyncOperations"); + } + } + + /// + /// N:1 Site_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Site Site_AsyncOperations + { + get + { + return this.GetRelatedEntity("Site_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Site_AsyncOperations"); + this.SetRelatedEntity("Site_AsyncOperations", null, value); + this.OnPropertyChanged("Site_AsyncOperations"); + } + } + + /// + /// N:1 Subject_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Subject Subject_AsyncOperations + { + get + { + return this.GetRelatedEntity("Subject_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Subject_AsyncOperations"); + this.SetRelatedEntity("Subject_AsyncOperations", null, value); + this.OnPropertyChanged("Subject_AsyncOperations"); + } + } + + /// + /// N:1 system_user_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_asyncoperation + { + get + { + return this.GetRelatedEntity("system_user_asyncoperation", null); + } + } + + /// + /// N:1 SystemForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SystemForm SystemForm_AsyncOperations + { + get + { + return this.GetRelatedEntity("SystemForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemForm_AsyncOperations"); + this.SetRelatedEntity("SystemForm_AsyncOperations", null, value); + this.OnPropertyChanged("SystemForm_AsyncOperations"); + } + } + + /// + /// N:1 SystemUser_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_AsyncOperations + { + get + { + return this.GetRelatedEntity("SystemUser_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemUser_AsyncOperations"); + this.SetRelatedEntity("SystemUser_AsyncOperations", null, value); + this.OnPropertyChanged("SystemUser_AsyncOperations"); + } + } + + /// + /// N:1 Task_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Task Task_AsyncOperations + { + get + { + return this.GetRelatedEntity("Task_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Task_AsyncOperations"); + this.SetRelatedEntity("Task_AsyncOperations", null, value); + this.OnPropertyChanged("Task_AsyncOperations"); + } + } + + /// + /// N:1 team_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.Team team_asyncoperation + { + get + { + return this.GetRelatedEntity("team_asyncoperation", null); + } + } + + /// + /// N:1 Team_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Team Team_AsyncOperations + { + get + { + return this.GetRelatedEntity("Team_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Team_AsyncOperations"); + this.SetRelatedEntity("Team_AsyncOperations", null, value); + this.OnPropertyChanged("Team_AsyncOperations"); + } + } + + /// + /// N:1 Template_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Template Template_AsyncOperations + { + get + { + return this.GetRelatedEntity("Template_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Template_AsyncOperations"); + this.SetRelatedEntity("Template_AsyncOperations", null, value); + this.OnPropertyChanged("Template_AsyncOperations"); + } + } + + /// + /// N:1 Territory_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_AsyncOperations + { + get + { + return this.GetRelatedEntity("Territory_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Territory_AsyncOperations"); + this.SetRelatedEntity("Territory_AsyncOperations", null, value); + this.OnPropertyChanged("Territory_AsyncOperations"); + } + } + + /// + /// N:1 TransactionCurrency_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_AsyncOperations + { + get + { + return this.GetRelatedEntity("TransactionCurrency_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_AsyncOperations"); + this.SetRelatedEntity("TransactionCurrency_AsyncOperations", null, value); + this.OnPropertyChanged("TransactionCurrency_AsyncOperations"); + } + } + + /// + /// N:1 UoM_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UoM UoM_AsyncOperations + { + get + { + return this.GetRelatedEntity("UoM_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoM_AsyncOperations"); + this.SetRelatedEntity("UoM_AsyncOperations", null, value); + this.OnPropertyChanged("UoM_AsyncOperations"); + } + } + + /// + /// N:1 UoMSchedule_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule UoMSchedule_AsyncOperations + { + get + { + return this.GetRelatedEntity("UoMSchedule_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoMSchedule_AsyncOperations"); + this.SetRelatedEntity("UoMSchedule_AsyncOperations", null, value); + this.OnPropertyChanged("UoMSchedule_AsyncOperations"); + } + } + + /// + /// N:1 UserForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UserForm UserForm_AsyncOperations + { + get + { + return this.GetRelatedEntity("UserForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserForm_AsyncOperations"); + this.SetRelatedEntity("UserForm_AsyncOperations", null, value); + this.OnPropertyChanged("UserForm_AsyncOperations"); + } + } + + /// + /// N:1 UserQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UserQuery UserQuery_AsyncOperations + { + get + { + return this.GetRelatedEntity("UserQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserQuery_AsyncOperations"); + this.SetRelatedEntity("UserQuery_AsyncOperations", null, value); + this.OnPropertyChanged("UserQuery_AsyncOperations"); + } + } + } + + /// + /// Represents a mapping between attributes where the attribute values should be copied from a record into the form of a new related record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("attributemap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AttributeMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AttributeMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "attributemap"; + + public const int EntityTypeCode = 4601; + + 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 attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemapid")] + public System.Nullable AttributeMapId + { + get + { + return this.GetAttributeValue>("attributemapid"); + } + set + { + this.OnPropertyChanging("AttributeMapId"); + this.SetAttributeValue("attributemapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AttributeMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AttributeMapId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemapidunique")] + public System.Nullable AttributeMapIdUnique + { + get + { + return this.GetAttributeValue>("attributemapidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the attribute map 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 attributemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the entity map with which the attribute map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + public Microsoft.Xrm.Sdk.EntityReference EntityMapId + { + get + { + return this.GetAttributeValue("entitymapid"); + } + set + { + this.OnPropertyChanging("EntityMapId"); + this.SetAttributeValue("entitymapid", value); + this.OnPropertyChanged("EntityMapId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether this attribute map is user-defined or system-defined. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issystem")] + public System.Nullable IsSystem + { + get + { + return this.GetAttributeValue>("issystem"); + } + set + { + this.OnPropertyChanging("IsSystem"); + this.SetAttributeValue("issystem", value); + this.OnPropertyChanged("IsSystem"); + } + } + + /// + /// Unique identifier of the user who last modified the attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the attribute map 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 attributemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the attribute map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the parent attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentattributemapid")] + public Microsoft.Xrm.Sdk.EntityReference ParentAttributeMapId + { + get + { + return this.GetAttributeValue("parentattributemapid"); + } + set + { + this.OnPropertyChanging("ParentAttributeMapId"); + this.SetAttributeValue("parentattributemapid", value); + this.OnPropertyChanged("ParentAttributeMapId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Name of the source attribute for the mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceattributename")] + public string SourceAttributeName + { + get + { + return this.GetAttributeValue("sourceattributename"); + } + set + { + this.OnPropertyChanging("SourceAttributeName"); + this.SetAttributeValue("sourceattributename", value); + this.OnPropertyChanged("SourceAttributeName"); + } + } + + /// + /// Name of the target attribute for the mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetattributename")] + public string TargetAttributeName + { + get + { + return this.GetAttributeValue("targetattributename"); + } + set + { + this.OnPropertyChanging("TargetAttributeName"); + this.SetAttributeValue("targetattributename", value); + this.OnPropertyChanged("TargetAttributeName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N attribute_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedattribute_map_attribute_maps + { + get + { + return this.GetRelatedEntities("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedattribute_map_attribute_maps"); + this.SetRelatedEntities("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedattribute_map_attribute_maps"); + } + } + + /// + /// 1:N AttributeMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable AttributeMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("AttributeMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AttributeMap_AsyncOperations"); + this.SetRelatedEntities("AttributeMap_AsyncOperations", null, value); + this.OnPropertyChanged("AttributeMap_AsyncOperations"); + } + } + + /// + /// 1:N AttributeMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable AttributeMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("AttributeMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("AttributeMap_BulkDeleteFailures"); + this.SetRelatedEntities("AttributeMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("AttributeMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_attributemap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_attributemap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_attributemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_attributemap"); + this.SetRelatedEntities("userentityinstancedata_attributemap", null, value); + this.OnPropertyChanged("userentityinstancedata_attributemap"); + } + } + + /// + /// N:1 attribute_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentattributemapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.AttributeMap Referencingattribute_map_attribute_maps + { + get + { + return this.GetRelatedEntity("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingattribute_map_attribute_maps"); + this.SetRelatedEntity("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingattribute_map_attribute_maps"); + } + } + + /// + /// N:1 createdby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_attributemap + { + get + { + return this.GetRelatedEntity("createdby_attributemap", null); + } + } + + /// + /// N:1 createdonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdonbehalfby_attributemap + { + get + { + return this.GetRelatedEntity("createdonbehalfby_attributemap", null); + } + } + + /// + /// N:1 entity_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entity_map_attribute_maps")] + public Xrm.Framework.CI.Common.Entities.EntityMap entity_map_attribute_maps + { + get + { + return this.GetRelatedEntity("entity_map_attribute_maps", null); + } + set + { + this.OnPropertyChanging("entity_map_attribute_maps"); + this.SetRelatedEntity("entity_map_attribute_maps", null, value); + this.OnPropertyChanged("entity_map_attribute_maps"); + } + } + + /// + /// N:1 modifiedby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_attributemap + { + get + { + return this.GetRelatedEntity("modifiedby_attributemap", null); + } + } + + /// + /// N:1 modifiedonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedonbehalfby_attributemap + { + get + { + return this.GetRelatedEntity("modifiedonbehalfby_attributemap", null); + } + } + + /// + /// N:1 organization_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_attributemap")] + public Xrm.Framework.CI.Common.Entities.Organization organization_attributemap + { + get + { + return this.GetRelatedEntity("organization_attributemap", null); + } + } + } + + /// + /// Track changes to records for analysis, record keeping, and compliance. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("audit")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Audit : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Audit() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "audit"; + + public const int EntityTypeCode = 4567; + + 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)); + } + } + + /// + /// Actions the user can perform that cause a change + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("action")] + public Microsoft.Xrm.Sdk.OptionSetValue Action + { + get + { + return this.GetAttributeValue("action"); + } + } + + /// + /// Contains a CSV of the ColumnNumber metadata property of attributes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemask")] + public string AttributeMask + { + get + { + return this.GetAttributeValue("attributemask"); + } + } + + /// + /// Unique identifier of the auditing instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("auditid")] + public System.Nullable AuditId + { + get + { + return this.GetAttributeValue>("auditid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("auditid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the calling user in case of an impersonated call + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("callinguserid")] + public Microsoft.Xrm.Sdk.EntityReference CallingUserId + { + get + { + return this.GetAttributeValue("callinguserid"); + } + } + + /// + /// Date and time when the audit record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the record that is being audited + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + } + + /// + /// The action that causes the audit--it will be create, delete, or update + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operation")] + public Microsoft.Xrm.Sdk.OptionSetValue Operation + { + get + { + return this.GetAttributeValue("operation"); + } + } + + /// + /// Unique identifier for multiple changes that are part of a single operation; this field contains the same GUID for all the audit rows generated in a single transaction + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactionid")] + public System.Nullable TransactionId + { + get + { + return this.GetAttributeValue>("transactionid"); + } + } + + /// + /// Unique identifier of the user who caused a change + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userid")] + public Microsoft.Xrm.Sdk.EntityReference UserId + { + get + { + return this.GetAttributeValue("userid"); + } + } + + /// + /// 1:N userentityinstancedata_audit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_audit")] + public System.Collections.Generic.IEnumerable userentityinstancedata_audit + { + get + { + return this.GetRelatedEntities("userentityinstancedata_audit", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_audit"); + this.SetRelatedEntities("userentityinstancedata_audit", null, value); + this.OnPropertyChanged("userentityinstancedata_audit"); + } + } + + /// + /// N:1 lk_audit_callinguserid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("callinguserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_callinguserid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_audit_callinguserid + { + get + { + return this.GetRelatedEntity("lk_audit_callinguserid", null); + } + } + + /// + /// N:1 lk_audit_userid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_userid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_audit_userid + { + get + { + return this.GetRelatedEntity("lk_audit_userid", null); + } + } + } + + /// + /// Record that was not deleted during a bulk deletion job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkdeletefailure")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkDeleteFailure : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkDeleteFailure() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkdeletefailure"; + + public const int EntityTypeCode = 4425; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + } + + /// + /// Unique identifier of the bulk deletion failure record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeletefailureid")] + public System.Nullable BulkDeleteFailureId + { + get + { + return this.GetAttributeValue>("bulkdeletefailureid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeletefailureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the bulk operation job which created this record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + public Microsoft.Xrm.Sdk.EntityReference BulkDeleteOperationId + { + get + { + return this.GetAttributeValue("bulkdeleteoperationid"); + } + } + + /// + /// Description of the error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errordescription")] + public string ErrorDescription + { + get + { + return this.GetAttributeValue("errordescription"); + } + } + + /// + /// Error code for the failed bulk deletion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + } + + /// + /// Index of the ordered query expression that retrieved this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orderedqueryindex")] + public System.Nullable OrderedQueryIndex + { + get + { + return this.GetAttributeValue>("orderedqueryindex"); + } + } + + /// + /// Unique identifier of the user or team who owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the bulk deletion failure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the bulk deletion failure record. + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the record that can not be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + } + + /// + /// 1:N userentityinstancedata_bulkdeletefailure + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeletefailure")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkdeletefailure + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkdeletefailure", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeletefailure"); + this.SetRelatedEntities("userentityinstancedata_bulkdeletefailure", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeletefailure"); + } + } + + /// + /// N:1 Account_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Account Account_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Account_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ActivityMimeAttachment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ActivityMimeAttachment ActivityMimeAttachment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ActivityMimeAttachment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ActivityPointer_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ActivityPointer_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Annotation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Annotation Annotation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Annotation_BulkDeleteFailures", null); + } + } + + /// + /// N:1 AnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.AnnualFiscalCalendar AnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("AnnualFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Appointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Appointment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 AttributeMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.AttributeMap AttributeMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("AttributeMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BulkDeleteOperation_BulkDeleteFailure + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkDeleteOperation_BulkDeleteFailure")] + public Xrm.Framework.CI.Common.Entities.BulkDeleteOperation BulkDeleteOperation_BulkDeleteFailure + { + get + { + return this.GetRelatedEntity("BulkDeleteOperation_BulkDeleteFailure", null); + } + } + + /// + /// N:1 BulkOperation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BulkOperation_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BulkOperationLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BulkOperationLog BulkOperationLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BulkOperationLog_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BusinessUnit_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BusinessUnit_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BusinessUnitNewsArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle BusinessUnitNewsArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BusinessUnitNewsArticle_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Calendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Calendar Calendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Calendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Campaign_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Campaign_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CampaignActivity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CampaignActivity_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CampaignResponse_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CampaignResponse_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Competitor_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Competitor_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ConstraintBasedGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup ConstraintBasedGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ConstraintBasedGroup_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Contact_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Contact_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Contract_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Contract_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ContractDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ContractDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ContractTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate ContractTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ContractTemplate_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CustomerAddress_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress CustomerAddress_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CustomerAddress_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CustomerOpportunityRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole CustomerOpportunityRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CustomerOpportunityRole_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CustomerRelationship_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship CustomerRelationship_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CustomerRelationship_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Discount_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Discount Discount_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Discount_BulkDeleteFailures", null); + } + } + + /// + /// N:1 DiscountType_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.DiscountType DiscountType_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("DiscountType_BulkDeleteFailures", null); + } + } + + /// + /// N:1 DisplayString_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.DisplayString DisplayString_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("DisplayString_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Email_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Email Email_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Email_BulkDeleteFailures", null); + } + } + + /// + /// N:1 emailserverprofile_bulkdeletefailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_bulkdeletefailures")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_bulkdeletefailures + { + get + { + return this.GetRelatedEntity("emailserverprofile_bulkdeletefailures", null); + } + } + + /// + /// N:1 EntityMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.EntityMap EntityMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("EntityMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Equipment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Equipment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Fax_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Fax_BulkDeleteFailures", null); + } + } + + /// + /// N:1 FixedMonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.FixedMonthlyFiscalCalendar FixedMonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("FixedMonthlyFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Import_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Import Import_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Import_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ImportFile_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ImportFile ImportFile_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ImportFile_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ImportLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ImportLog ImportLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ImportLog_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ImportMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ImportMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Incident_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Incident_BulkDeleteFailures", null); + } + } + + /// + /// N:1 IncidentResolution_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution IncidentResolution_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("IncidentResolution_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Invoice_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Invoice_BulkDeleteFailures", null); + } + } + + /// + /// N:1 InvoiceDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail InvoiceDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("InvoiceDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 IsvConfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.IsvConfig IsvConfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("IsvConfig_BulkDeleteFailures", null); + } + } + + /// + /// N:1 KbArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("KbArticle_BulkDeleteFailures", null); + } + } + + /// + /// N:1 KbArticleComment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment KbArticleComment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("KbArticleComment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 KbArticleTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate KbArticleTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("KbArticleTemplate_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Lead_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Lead_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Letter_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Letter_BulkDeleteFailures", null); + } + } + + /// + /// N:1 List_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.List List_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("List_BulkDeleteFailures", null); + } + } + + /// + /// N:1 MonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.MonthlyFiscalCalendar MonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("MonthlyFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_postalbum_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_postconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_postruleconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_wallsavedquery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Opportunity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Opportunity_BulkDeleteFailures", null); + } + } + + /// + /// N:1 OpportunityClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose OpportunityClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("OpportunityClose_BulkDeleteFailures", null); + } + } + + /// + /// N:1 OpportunityProduct_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct OpportunityProduct_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("OpportunityProduct_BulkDeleteFailures", null); + } + } + + /// + /// N:1 OrderClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.OrderClose OrderClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("OrderClose_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Organization_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Organization Organization_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Organization_BulkDeleteFailures", null); + } + } + + /// + /// N:1 PhoneCall_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("PhoneCall_BulkDeleteFailures", null); + } + } + + /// + /// N:1 post_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Post post_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("post_BulkDeleteFailures", null); + } + } + + /// + /// N:1 PriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("PriceLevel_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Privilege_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Privilege Privilege_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Privilege_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Product_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Product Product_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Product_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ProductPriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel ProductPriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ProductPriceLevel_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QuarterlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QuarterlyFiscalCalendar QuarterlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QuarterlyFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Queue_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Queue_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QueueItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QueueItem QueueItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QueueItem_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Quote_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Quote_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QuoteClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QuoteClose QuoteClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QuoteClose_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QuoteDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail QuoteDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QuoteDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 RecurringAppointmentMaster_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_BulkDeleteFailures", null); + } + } + + /// + /// N:1 RelationshipRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole RelationshipRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("RelationshipRole_BulkDeleteFailures", null); + } + } + + /// + /// N:1 RelationshipRoleMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.RelationshipRoleMap RelationshipRoleMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("RelationshipRoleMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Resource_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Resource Resource_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Resource_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ResourceGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ResourceGroup_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ResourceSpec_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ResourceSpec_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ResourceSpec_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Role_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Role Role_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Role_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesLiterature_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesLiterature_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesLiteratureItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem SalesLiteratureItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesLiteratureItem_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesOrder_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesOrder_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesOrderDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail SalesOrderDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesOrderDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SavedQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SavedQuery SavedQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SavedQuery_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SemiAnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SemiAnnualFiscalCalendar SemiAnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SemiAnnualFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Service_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Service Service_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Service_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ServiceAppointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ServiceAppointment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Site_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Site Site_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Site_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Subject_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Subject Subject_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Subject_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SystemForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SystemForm SystemForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SystemForm_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SystemUser_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SystemUser_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Task_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Task Task_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Task_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Team_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Team Team_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Team_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Template_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Template Template_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Template_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Territory_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Territory_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UoM_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UoM UoM_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UoM_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UoMSchedule_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule UoMSchedule_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UoMSchedule_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UserForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UserForm UserForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UserForm_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UserQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UserQuery UserQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UserQuery_BulkDeleteFailures", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum BulkDeleteOperationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Ready = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Suspended = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Locked = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 3, + } + + /// + /// User-submitted bulk deletion job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkdeleteoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkDeleteOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkDeleteOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkdeleteoperation"; + + public const int EntityTypeCode = 4424; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job that created this record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + } + + /// + /// Unique identifier of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + public System.Nullable BulkDeleteOperationId + { + get + { + return this.GetAttributeValue>("bulkdeleteoperationid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the user who created the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the bulk deletion job was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the bulkdeleteoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of records that could not be deleted by the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// Information about if recurrence is defined for the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isrecurring")] + public System.Nullable IsRecurring + { + get + { + return this.GetAttributeValue>("isrecurring"); + } + } + + /// + /// Unique identifier of the user who last modified the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the bulk deletion job record 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 bulkdeleteoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + } + + /// + /// Next scheduled time for the bulk deletion job to run. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextrun")] + public System.Nullable NextRun + { + get + { + return this.GetAttributeValue>("nextrun"); + } + } + + /// + /// Fetch XML of the ordered query set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orderedquerysetxml")] + public string OrderedQuerySetXml + { + get + { + return this.GetAttributeValue("orderedquerysetxml"); + } + } + + /// + /// Unique identifier of the user or team who owns the bulk delete operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Business unit that owns the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Business user what owns the bulk delete operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Index of the ordered query expression that defines the deletion set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processingqeindex")] + public System.Nullable ProcessingQEIndex + { + get + { + return this.GetAttributeValue>("processingqeindex"); + } + } + + /// + /// Status of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.BulkDeleteOperationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.BulkDeleteOperationState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + } + + /// + /// Number of records deleted by the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("successcount")] + public System.Nullable SuccessCount + { + get + { + return this.GetAttributeValue>("successcount"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N BulkDeleteOperation_BulkDeleteFailure + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkDeleteOperation_BulkDeleteFailure")] + public System.Collections.Generic.IEnumerable BulkDeleteOperation_BulkDeleteFailure + { + get + { + return this.GetRelatedEntities("BulkDeleteOperation_BulkDeleteFailure", null); + } + set + { + this.OnPropertyChanging("BulkDeleteOperation_BulkDeleteFailure"); + this.SetRelatedEntities("BulkDeleteOperation_BulkDeleteFailure", null, value); + this.OnPropertyChanged("BulkDeleteOperation_BulkDeleteFailure"); + } + } + + /// + /// 1:N userentityinstancedata_bulkdeleteoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeleteoperation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkdeleteoperation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkdeleteoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeleteoperation"); + this.SetRelatedEntities("userentityinstancedata_bulkdeleteoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeleteoperation"); + } + } + + /// + /// N:1 AsyncOperation_BulkDeleteOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_BulkDeleteOperation")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation AsyncOperation_BulkDeleteOperation + { + get + { + return this.GetRelatedEntity("AsyncOperation_BulkDeleteOperation", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperationbase_createdby", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperationbase_modifiedby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum BulkOperationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// System operation used to perform lengthy and asynchronous operations on large data sets, such as distributing a campaign activity or quick campaign. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkoperation"; + + public const int EntityTypeCode = 4406; + + 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 bulk operation. + /// + [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 bulk operation in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdurationminutes")] + public System.Nullable ActualDurationMinutes + { + get + { + return this.GetAttributeValue>("actualdurationminutes"); + } + } + + /// + /// Shows the date and time when the quick campaign was completed or canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualend")] + public System.Nullable ActualEnd + { + get + { + return this.GetAttributeValue>("actualend"); + } + } + + /// + /// Shows the date and time when the activity was started or created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualstart")] + public System.Nullable ActualStart + { + get + { + return this.GetAttributeValue>("actualstart"); + } + } + + /// + /// Shows the number for the quick campaign record, used to identify the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationnumber")] + public string BulkOperationNumber + { + get + { + return this.GetAttributeValue("bulkoperationnumber"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Choose the activity to create that determines how target prospects or customers in this quick campaign are contacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdrecordtypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CreatedRecordTypeCode + { + get + { + return this.GetAttributeValue("createdrecordtypecode"); + } + } + + /// + /// Type additional information to describe the quick campaign, such as the products or services offered. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + } + + /// + /// Shows the error code that is used to troubleshoot issues in the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + } + + /// + /// Number of records which failed in the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isbilled")] + public System.Nullable IsBilled + { + get + { + return this.GetAttributeValue>("isbilled"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies if the bulk operation was created from a workflow rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowcreated")] + public System.Nullable IsWorkflowCreated + { + get + { + return this.GetAttributeValue>("isworkflowcreated"); + } + } + + /// + /// 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 bulk operation 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 bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Select the type of bulk operation process, such as quick campaign or campaign activity distribution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operationtypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue OperationTypeCode + { + get + { + return this.GetAttributeValue("operationtypecode"); + } + } + + /// + /// 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 bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// XML string that contains the parameters to the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parameters")] + public string Parameters + { + get + { + return this.GetAttributeValue("parameters"); + } + } + + /// + /// Choose the campaign from which the campaign activities were bulk-distributed. + /// + [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"); + } + } + + /// + /// Scheduled duration of the bulk operation, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end date and time of the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + } + + /// + /// Scheduled start date and time of the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + } + + /// + /// Unique identifier for an associated service. + /// + [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"); + } + } + + /// + /// Shows whether the quick campaign is open, closed, or canceled. Closed or canceled quick campaigns are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.BulkOperationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.BulkOperationState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the quick campaign'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"); + } + } + + /// + /// Type a short description about the objective or primary topic of the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + } + + /// + /// Number of records which succeeded in the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("successcount")] + public System.Nullable SuccessCount + { + get + { + return this.GetAttributeValue>("successcount"); + } + } + + /// + /// Select the type of records targeted in the quick campaign to identify the target audience. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetedrecordtypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue TargetedRecordTypeCode + { + get + { + return this.GetAttributeValue("targetedrecordtypecode"); + } + } + + /// + /// Number of members to target. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetmemberscount")] + public System.Nullable TargetMembersCount + { + get + { + return this.GetAttributeValue>("targetmemberscount"); + } + } + + /// + /// 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 of the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N bulkoperation_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("bulkoperation_activity_parties")] + public System.Collections.Generic.IEnumerable bulkoperation_activity_parties + { + get + { + return this.GetRelatedEntities("bulkoperation_activity_parties", null); + } + set + { + this.OnPropertyChanging("bulkoperation_activity_parties"); + this.SetRelatedEntities("bulkoperation_activity_parties", null, value); + this.OnPropertyChanged("bulkoperation_activity_parties"); + } + } + + /// + /// 1:N BulkOperation_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_ActivityPointers")] + public System.Collections.Generic.IEnumerable BulkOperation_ActivityPointers + { + get + { + return this.GetRelatedEntities("BulkOperation_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("BulkOperation_ActivityPointers"); + this.SetRelatedEntities("BulkOperation_ActivityPointers", null, value); + this.OnPropertyChanged("BulkOperation_ActivityPointers"); + } + } + + /// + /// 1:N BulkOperation_Appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Appointment")] + public System.Collections.Generic.IEnumerable BulkOperation_Appointment + { + get + { + return this.GetRelatedEntities("BulkOperation_Appointment", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Appointment"); + this.SetRelatedEntities("BulkOperation_Appointment", null, value); + this.OnPropertyChanged("BulkOperation_Appointment"); + } + } + + /// + /// 1:N BulkOperation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_AsyncOperations")] + public System.Collections.Generic.IEnumerable BulkOperation_AsyncOperations + { + get + { + return this.GetRelatedEntities("BulkOperation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperation_AsyncOperations"); + this.SetRelatedEntities("BulkOperation_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperation_AsyncOperations"); + } + } + + /// + /// 1:N BulkOperation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BulkOperation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BulkOperation_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BulkOperation_BulkDeleteFailures"); + this.SetRelatedEntities("BulkOperation_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BulkOperation_BulkDeleteFailures"); + } + } + + /// + /// 1:N BulkOperation_CampaignResponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_CampaignResponse")] + public System.Collections.Generic.IEnumerable BulkOperation_CampaignResponse + { + get + { + return this.GetRelatedEntities("BulkOperation_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("BulkOperation_CampaignResponse"); + this.SetRelatedEntities("BulkOperation_CampaignResponse", null, value); + this.OnPropertyChanged("BulkOperation_CampaignResponse"); + } + } + + /// + /// 1:N BulkOperation_Email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Email")] + public System.Collections.Generic.IEnumerable BulkOperation_Email + { + get + { + return this.GetRelatedEntities("BulkOperation_Email", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Email"); + this.SetRelatedEntities("BulkOperation_Email", null, value); + this.OnPropertyChanged("BulkOperation_Email"); + } + } + + /// + /// 1:N BulkOperation_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Faxes")] + public System.Collections.Generic.IEnumerable BulkOperation_Faxes + { + get + { + return this.GetRelatedEntities("BulkOperation_Faxes", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Faxes"); + this.SetRelatedEntities("BulkOperation_Faxes", null, value); + this.OnPropertyChanged("BulkOperation_Faxes"); + } + } + + /// + /// 1:N BulkOperation_Letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Letter")] + public System.Collections.Generic.IEnumerable BulkOperation_Letter + { + get + { + return this.GetRelatedEntities("BulkOperation_Letter", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Letter"); + this.SetRelatedEntities("BulkOperation_Letter", null, value); + this.OnPropertyChanged("BulkOperation_Letter"); + } + } + + /// + /// 1:N BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_logs")] + public System.Collections.Generic.IEnumerable BulkOperation_logs + { + get + { + return this.GetRelatedEntities("BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("BulkOperation_logs"); + this.SetRelatedEntities("BulkOperation_logs", null, value); + this.OnPropertyChanged("BulkOperation_logs"); + } + } + + /// + /// 1:N BulkOperation_Phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Phonecall")] + public System.Collections.Generic.IEnumerable BulkOperation_Phonecall + { + get + { + return this.GetRelatedEntities("BulkOperation_Phonecall", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Phonecall"); + this.SetRelatedEntities("BulkOperation_Phonecall", null, value); + this.OnPropertyChanged("BulkOperation_Phonecall"); + } + } + + /// + /// 1:N BulkOperation_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_QueueItem")] + public System.Collections.Generic.IEnumerable BulkOperation_QueueItem + { + get + { + return this.GetRelatedEntities("BulkOperation_QueueItem", null); + } + set + { + this.OnPropertyChanging("BulkOperation_QueueItem"); + this.SetRelatedEntities("BulkOperation_QueueItem", null, value); + this.OnPropertyChanged("BulkOperation_QueueItem"); + } + } + + /// + /// 1:N BulkOperation_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_RecurringAppointmentMaster")] + public System.Collections.Generic.IEnumerable BulkOperation_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntities("BulkOperation_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("BulkOperation_RecurringAppointmentMaster"); + this.SetRelatedEntities("BulkOperation_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("BulkOperation_RecurringAppointmentMaster"); + } + } + + /// + /// 1:N userentityinstancedata_bulkoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkoperation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperation"); + this.SetRelatedEntities("userentityinstancedata_bulkoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperation"); + } + } + + /// + /// N:1 activity_pointer_BulkOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_BulkOperation + { + get + { + return this.GetRelatedEntity("activity_pointer_BulkOperation", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation"); + this.SetRelatedEntity("activity_pointer_BulkOperation", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation"); + } + } + + /// + /// N:1 business_unit_BulkOperation_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_BulkOperation_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_BulkOperation_activities + { + get + { + return this.GetRelatedEntity("business_unit_BulkOperation_activities", null); + } + } + + /// + /// N:1 CampaignActivity_BulkOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkOperations")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_BulkOperations + { + get + { + return this.GetRelatedEntity("CampaignActivity_BulkOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_BulkOperations"); + this.SetRelatedEntity("CampaignActivity_BulkOperations", null, value); + this.OnPropertyChanged("CampaignActivity_BulkOperations"); + } + } + + /// + /// N:1 List_BulkOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkOperations")] + public Xrm.Framework.CI.Common.Entities.List List_BulkOperations + { + get + { + return this.GetRelatedEntity("List_BulkOperations", null); + } + set + { + this.OnPropertyChanging("List_BulkOperations"); + this.SetRelatedEntity("List_BulkOperations", null, value); + this.OnPropertyChanged("List_BulkOperations"); + } + } + + /// + /// N:1 lk_BulkOperation_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_createdby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_createdby", null); + } + } + + /// + /// N:1 lk_BulkOperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_BulkOperation_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_modifiedby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_modifiedby", null); + } + } + + /// + /// N:1 lk_BulkOperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_BulkOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_BulkOperation")] + public Xrm.Framework.CI.Common.Entities.Team team_BulkOperation + { + get + { + return this.GetRelatedEntity("team_BulkOperation", null); + } + } + + /// + /// N:1 user_BulkOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_BulkOperation")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_BulkOperation + { + get + { + return this.GetRelatedEntity("user_BulkOperation", null); + } + } + } + + /// + /// Log used to track bulk operation execution, successes, and failures. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkoperationlog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkOperationLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkOperationLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkoperationlog"; + + public const int EntityTypeCode = 4405; + + 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 data value at which an error occurred during the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("additionalinfo")] + public string AdditionalInfo + { + get + { + return this.GetAttributeValue("additionalinfo"); + } + set + { + this.OnPropertyChanging("AdditionalInfo"); + this.SetAttributeValue("additionalinfo", value); + this.OnPropertyChanged("AdditionalInfo"); + } + } + + /// + /// Shows the quick campaign record that the log applies to. This information is used to relate log data to the parent quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationid")] + public Microsoft.Xrm.Sdk.EntityReference BulkOperationId + { + get + { + return this.GetAttributeValue("bulkoperationid"); + } + set + { + this.OnPropertyChanging("BulkOperationId"); + this.SetAttributeValue("bulkoperationid", value); + this.OnPropertyChanged("BulkOperationId"); + } + } + + /// + /// Unique identifier of the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationlogid")] + public System.Nullable BulkOperationLogId + { + get + { + return this.GetAttributeValue>("bulkoperationlogid"); + } + set + { + this.OnPropertyChanging("BulkOperationLogId"); + this.SetAttributeValue("bulkoperationlogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("BulkOperationLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationlogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.BulkOperationLogId = value; + } + } + + /// + /// Choose the activity or other item created by the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + public Microsoft.Xrm.Sdk.EntityReference CreatedObjectId + { + get + { + return this.GetAttributeValue("createdobjectid"); + } + set + { + this.OnPropertyChanging("CreatedObjectId"); + this.SetAttributeValue("createdobjectid", value); + this.OnPropertyChanged("CreatedObjectId"); + } + } + + /// + /// Shows the error code that is used to troubleshoot issues in the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + } + + /// + /// Unique identifier of the user or team who owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Choose the account, contact, lead, or list that the bulk operation log item applies to. + /// + [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"); + } + } + + /// + /// 1:N BulkOperationLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_AsyncOperations")] + public System.Collections.Generic.IEnumerable BulkOperationLog_AsyncOperations + { + get + { + return this.GetRelatedEntities("BulkOperationLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperationLog_AsyncOperations"); + this.SetRelatedEntities("BulkOperationLog_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperationLog_AsyncOperations"); + } + } + + /// + /// 1:N BulkOperationLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BulkOperationLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BulkOperationLog_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BulkOperationLog_BulkDeleteFailures"); + this.SetRelatedEntities("BulkOperationLog_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BulkOperationLog_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_bulkoperationlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperationlog")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkoperationlog + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkoperationlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperationlog"); + this.SetRelatedEntities("userentityinstancedata_bulkoperationlog", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperationlog"); + } + } + + /// + /// N:1 activity_pointer_BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation_logs")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_BulkOperation_logs + { + get + { + return this.GetRelatedEntity("activity_pointer_BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation_logs"); + this.SetRelatedEntity("activity_pointer_BulkOperation_logs", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation_logs"); + } + } + + /// + /// N:1 BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_logs")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_logs + { + get + { + return this.GetRelatedEntity("BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("BulkOperation_logs"); + this.SetRelatedEntity("BulkOperation_logs", null, value); + this.OnPropertyChanged("BulkOperation_logs"); + } + } + + /// + /// N:1 CreatedAccount_BulkOperationLogs2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedAccount_BulkOperationLogs2")] + public Xrm.Framework.CI.Common.Entities.Account CreatedAccount_BulkOperationLogs2 + { + get + { + return this.GetRelatedEntity("CreatedAccount_BulkOperationLogs2", null); + } + set + { + this.OnPropertyChanging("CreatedAccount_BulkOperationLogs2"); + this.SetRelatedEntity("CreatedAccount_BulkOperationLogs2", null, value); + this.OnPropertyChanged("CreatedAccount_BulkOperationLogs2"); + } + } + + /// + /// N:1 CreatedActivity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedActivity_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer CreatedActivity_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedActivity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedActivity_BulkOperationLogs"); + this.SetRelatedEntity("CreatedActivity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedActivity_BulkOperationLogs"); + } + } + + /// + /// N:1 CreatedContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedContact_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Contact CreatedContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedContact_BulkOperationLogs"); + this.SetRelatedEntity("CreatedContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedContact_BulkOperationLogs"); + } + } + + /// + /// N:1 CreatedLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedLead_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Lead CreatedLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedLead_BulkOperationLogs"); + this.SetRelatedEntity("CreatedLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedLead_BulkOperationLogs"); + } + } + + /// + /// N:1 CreatedOpportunity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedOpportunity_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Opportunity CreatedOpportunity_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedOpportunity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedOpportunity_BulkOperationLogs"); + this.SetRelatedEntity("CreatedOpportunity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedOpportunity_BulkOperationLogs"); + } + } + + /// + /// N:1 SourceAccount_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceAccount_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Account SourceAccount_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("SourceAccount_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceAccount_BulkOperationLogs"); + this.SetRelatedEntity("SourceAccount_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceAccount_BulkOperationLogs"); + } + } + + /// + /// N:1 SourceContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceContact_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Contact SourceContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("SourceContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceContact_BulkOperationLogs"); + this.SetRelatedEntity("SourceContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceContact_BulkOperationLogs"); + } + } + + /// + /// N:1 SourceLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceLead_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Lead SourceLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("SourceLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceLead_BulkOperationLogs"); + this.SetRelatedEntity("SourceLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceLead_BulkOperationLogs"); + } + } + } + + /// + /// Business, division, or department in the Microsoft Dynamics CRM database. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("businessunit")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BusinessUnit : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BusinessUnit() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "businessunit"; + + public const int EntityTypeCode = 10; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public System.Nullable BusinessUnitId + { + get + { + return this.GetAttributeValue>("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("BusinessUnitId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.BusinessUnitId = value; + } + } + + /// + /// Fiscal calendar associated with the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Name of the business unit cost center. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("costcenter")] + public string CostCenter + { + get + { + return this.GetAttributeValue("costcenter"); + } + set + { + this.OnPropertyChanging("CostCenter"); + this.SetAttributeValue("costcenter", value); + this.OnPropertyChanged("CostCenter"); + } + } + + /// + /// Unique identifier of the user who created the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the business unit 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 businessunit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Credit limit for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit")] + public System.Nullable CreditLimit + { + get + { + return this.GetAttributeValue>("creditlimit"); + } + set + { + this.OnPropertyChanging("CreditLimit"); + this.SetAttributeValue("creditlimit", value); + this.OnPropertyChanged("CreditLimit"); + } + } + + /// + /// Description of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Reason for disabling the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Name of the division to which the business unit belongs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("divisionname")] + public string DivisionName + { + get + { + return this.GetAttributeValue("divisionname"); + } + set + { + this.OnPropertyChanging("DivisionName"); + this.SetAttributeValue("divisionname", value); + this.OnPropertyChanged("DivisionName"); + } + } + + /// + /// Email address for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Exchange rate for the currency associated with the businessunit with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Alternative name under which the business unit can be filed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fileasname")] + public string FileAsName + { + get + { + return this.GetAttributeValue("fileasname"); + } + set + { + this.OnPropertyChanging("FileAsName"); + this.SetAttributeValue("fileasname", value); + this.OnPropertyChanged("FileAsName"); + } + } + + /// + /// FTP site URL for the business unit. + /// + [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"); + } + } + + /// + /// Inheritance mask for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inheritancemask")] + public System.Nullable InheritanceMask + { + get + { + return this.GetAttributeValue>("inheritancemask"); + } + set + { + this.OnPropertyChanging("InheritanceMask"); + this.SetAttributeValue("inheritancemask", value); + this.OnPropertyChanged("InheritanceMask"); + } + } + + /// + /// Information about whether the business unit is enabled or disabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + } + + /// + /// Unique identifier of the user who last modified the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the business unit 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 businessunit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the business unit. + /// + [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"); + } + } + + /// + /// Unique identifier for the parent business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbusinessunitid")] + public Microsoft.Xrm.Sdk.EntityReference ParentBusinessUnitId + { + get + { + return this.GetAttributeValue("parentbusinessunitid"); + } + set + { + this.OnPropertyChanging("ParentBusinessUnitId"); + this.SetAttributeValue("parentbusinessunitid", value); + this.OnPropertyChanged("ParentBusinessUnitId"); + } + } + + /// + /// Picture or diagram of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picture")] + public string Picture + { + get + { + return this.GetAttributeValue("picture"); + } + set + { + this.OnPropertyChanging("Picture"); + this.SetAttributeValue("picture", value); + this.OnPropertyChanged("Picture"); + } + } + + /// + /// Stock exchange on which the business is listed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stockexchange")] + public string StockExchange + { + get + { + return this.GetAttributeValue("stockexchange"); + } + set + { + this.OnPropertyChanging("StockExchange"); + this.SetAttributeValue("stockexchange", value); + this.OnPropertyChanged("StockExchange"); + } + } + + /// + /// Stock exchange ticker symbol for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tickersymbol")] + public string TickerSymbol + { + get + { + return this.GetAttributeValue("tickersymbol"); + } + set + { + this.OnPropertyChanging("TickerSymbol"); + this.SetAttributeValue("tickersymbol", value); + this.OnPropertyChanged("TickerSymbol"); + } + } + + /// + /// Unique identifier of the currency associated with the businessunit. + /// + [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"); + } + } + + /// + /// UTC offset for the business unit. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// Version number of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Website URL for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")] + public string WebSiteUrl + { + get + { + return this.GetAttributeValue("websiteurl"); + } + set + { + this.OnPropertyChanging("WebSiteUrl"); + this.SetAttributeValue("websiteurl", value); + this.OnPropertyChanged("WebSiteUrl"); + } + } + + /// + /// Information about whether workflow or sales process rules have been suspended. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsuspended")] + public System.Nullable WorkflowSuspended + { + get + { + return this.GetAttributeValue>("workflowsuspended"); + } + set + { + this.OnPropertyChanging("WorkflowSuspended"); + this.SetAttributeValue("workflowsuspended", value); + this.OnPropertyChanged("WorkflowSuspended"); + } + } + + /// + /// 1:N business_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable business_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("business_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("business_customer_opportunity_roles"); + this.SetRelatedEntities("business_customer_opportunity_roles", null, value); + this.OnPropertyChanged("business_customer_opportunity_roles"); + } + } + + /// + /// 1:N business_unit_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_accounts")] + public System.Collections.Generic.IEnumerable business_unit_accounts + { + get + { + return this.GetRelatedEntities("business_unit_accounts", null); + } + set + { + this.OnPropertyChanging("business_unit_accounts"); + this.SetRelatedEntities("business_unit_accounts", null, value); + this.OnPropertyChanged("business_unit_accounts"); + } + } + + /// + /// 1:N business_unit_activitypointer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_activitypointer")] + public System.Collections.Generic.IEnumerable business_unit_activitypointer + { + get + { + return this.GetRelatedEntities("business_unit_activitypointer", null); + } + set + { + this.OnPropertyChanging("business_unit_activitypointer"); + this.SetRelatedEntities("business_unit_activitypointer", null, value); + this.OnPropertyChanged("business_unit_activitypointer"); + } + } + + /// + /// 1:N business_unit_annotations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_annotations")] + public System.Collections.Generic.IEnumerable business_unit_annotations + { + get + { + return this.GetRelatedEntities("business_unit_annotations", null); + } + set + { + this.OnPropertyChanging("business_unit_annotations"); + this.SetRelatedEntities("business_unit_annotations", null, value); + this.OnPropertyChanged("business_unit_annotations"); + } + } + + /// + /// 1:N business_unit_appointment_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_appointment_activities")] + public System.Collections.Generic.IEnumerable business_unit_appointment_activities + { + get + { + return this.GetRelatedEntities("business_unit_appointment_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_appointment_activities"); + this.SetRelatedEntities("business_unit_appointment_activities", null, value); + this.OnPropertyChanged("business_unit_appointment_activities"); + } + } + + /// + /// 1:N business_unit_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_asyncoperation")] + public System.Collections.Generic.IEnumerable business_unit_asyncoperation + { + get + { + return this.GetRelatedEntities("business_unit_asyncoperation", null); + } + set + { + this.OnPropertyChanging("business_unit_asyncoperation"); + this.SetRelatedEntities("business_unit_asyncoperation", null, value); + this.OnPropertyChanged("business_unit_asyncoperation"); + } + } + + /// + /// 1:N business_unit_BulkOperation_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_BulkOperation_activities")] + public System.Collections.Generic.IEnumerable business_unit_BulkOperation_activities + { + get + { + return this.GetRelatedEntities("business_unit_BulkOperation_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_BulkOperation_activities"); + this.SetRelatedEntities("business_unit_BulkOperation_activities", null, value); + this.OnPropertyChanged("business_unit_BulkOperation_activities"); + } + } + + /// + /// 1:N business_unit_calendars + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_calendars")] + public System.Collections.Generic.IEnumerable business_unit_calendars + { + get + { + return this.GetRelatedEntities("business_unit_calendars", null); + } + set + { + this.OnPropertyChanging("business_unit_calendars"); + this.SetRelatedEntities("business_unit_calendars", null, value); + this.OnPropertyChanged("business_unit_calendars"); + } + } + + /// + /// 1:N business_unit_campaignactivity_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignactivity_activities")] + public System.Collections.Generic.IEnumerable business_unit_campaignactivity_activities + { + get + { + return this.GetRelatedEntities("business_unit_campaignactivity_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_campaignactivity_activities"); + this.SetRelatedEntities("business_unit_campaignactivity_activities", null, value); + this.OnPropertyChanged("business_unit_campaignactivity_activities"); + } + } + + /// + /// 1:N business_unit_campaignresponse_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignresponse_activities")] + public System.Collections.Generic.IEnumerable business_unit_campaignresponse_activities + { + get + { + return this.GetRelatedEntities("business_unit_campaignresponse_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_campaignresponse_activities"); + this.SetRelatedEntities("business_unit_campaignresponse_activities", null, value); + this.OnPropertyChanged("business_unit_campaignresponse_activities"); + } + } + + /// + /// 1:N business_unit_connections + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_connections")] + public System.Collections.Generic.IEnumerable business_unit_connections + { + get + { + return this.GetRelatedEntities("business_unit_connections", null); + } + set + { + this.OnPropertyChanging("business_unit_connections"); + this.SetRelatedEntities("business_unit_connections", null, value); + this.OnPropertyChanged("business_unit_connections"); + } + } + + /// + /// 1:N business_unit_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_constraint_based_groups")] + public System.Collections.Generic.IEnumerable business_unit_constraint_based_groups + { + get + { + return this.GetRelatedEntities("business_unit_constraint_based_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_constraint_based_groups"); + this.SetRelatedEntities("business_unit_constraint_based_groups", null, value); + this.OnPropertyChanged("business_unit_constraint_based_groups"); + } + } + + /// + /// 1:N business_unit_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_contacts")] + public System.Collections.Generic.IEnumerable business_unit_contacts + { + get + { + return this.GetRelatedEntities("business_unit_contacts", null); + } + set + { + this.OnPropertyChanging("business_unit_contacts"); + this.SetRelatedEntities("business_unit_contacts", null, value); + this.OnPropertyChanged("business_unit_contacts"); + } + } + + /// + /// 1:N business_unit_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_customer_relationship")] + public System.Collections.Generic.IEnumerable business_unit_customer_relationship + { + get + { + return this.GetRelatedEntities("business_unit_customer_relationship", null); + } + set + { + this.OnPropertyChanging("business_unit_customer_relationship"); + this.SetRelatedEntities("business_unit_customer_relationship", null, value); + this.OnPropertyChanged("business_unit_customer_relationship"); + } + } + + /// + /// 1:N business_unit_email_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_email_activities")] + public System.Collections.Generic.IEnumerable business_unit_email_activities + { + get + { + return this.GetRelatedEntities("business_unit_email_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_email_activities"); + this.SetRelatedEntities("business_unit_email_activities", null, value); + this.OnPropertyChanged("business_unit_email_activities"); + } + } + + /// + /// 1:N business_unit_emailserverprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_emailserverprofile")] + public System.Collections.Generic.IEnumerable business_unit_emailserverprofile + { + get + { + return this.GetRelatedEntities("business_unit_emailserverprofile", null); + } + set + { + this.OnPropertyChanging("business_unit_emailserverprofile"); + this.SetRelatedEntities("business_unit_emailserverprofile", null, value); + this.OnPropertyChanged("business_unit_emailserverprofile"); + } + } + + /// + /// 1:N business_unit_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_equipment")] + public System.Collections.Generic.IEnumerable business_unit_equipment + { + get + { + return this.GetRelatedEntities("business_unit_equipment", null); + } + set + { + this.OnPropertyChanging("business_unit_equipment"); + this.SetRelatedEntities("business_unit_equipment", null, value); + this.OnPropertyChanged("business_unit_equipment"); + } + } + + /// + /// 1:N business_unit_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_exchangesyncidmapping")] + public System.Collections.Generic.IEnumerable business_unit_exchangesyncidmapping + { + get + { + return this.GetRelatedEntities("business_unit_exchangesyncidmapping", null); + } + set + { + this.OnPropertyChanging("business_unit_exchangesyncidmapping"); + this.SetRelatedEntities("business_unit_exchangesyncidmapping", null, value); + this.OnPropertyChanged("business_unit_exchangesyncidmapping"); + } + } + + /// + /// 1:N business_unit_fax_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_fax_activities")] + public System.Collections.Generic.IEnumerable business_unit_fax_activities + { + get + { + return this.GetRelatedEntities("business_unit_fax_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_fax_activities"); + this.SetRelatedEntities("business_unit_fax_activities", null, value); + this.OnPropertyChanged("business_unit_fax_activities"); + } + } + + /// + /// 1:N business_unit_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goal")] + public System.Collections.Generic.IEnumerable business_unit_goal + { + get + { + return this.GetRelatedEntities("business_unit_goal", null); + } + set + { + this.OnPropertyChanging("business_unit_goal"); + this.SetRelatedEntities("business_unit_goal", null, value); + this.OnPropertyChanged("business_unit_goal"); + } + } + + /// + /// 1:N business_unit_goalrollupquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goalrollupquery")] + public System.Collections.Generic.IEnumerable business_unit_goalrollupquery + { + get + { + return this.GetRelatedEntities("business_unit_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("business_unit_goalrollupquery"); + this.SetRelatedEntities("business_unit_goalrollupquery", null, value); + this.OnPropertyChanged("business_unit_goalrollupquery"); + } + } + + /// + /// 1:N business_unit_incident_resolution_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incident_resolution_activities")] + public System.Collections.Generic.IEnumerable business_unit_incident_resolution_activities + { + get + { + return this.GetRelatedEntities("business_unit_incident_resolution_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_incident_resolution_activities"); + this.SetRelatedEntities("business_unit_incident_resolution_activities", null, value); + this.OnPropertyChanged("business_unit_incident_resolution_activities"); + } + } + + /// + /// 1:N business_unit_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incidents")] + public System.Collections.Generic.IEnumerable business_unit_incidents + { + get + { + return this.GetRelatedEntities("business_unit_incidents", null); + } + set + { + this.OnPropertyChanging("business_unit_incidents"); + this.SetRelatedEntities("business_unit_incidents", null, value); + this.OnPropertyChanged("business_unit_incidents"); + } + } + + /// + /// 1:N business_unit_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_invoices")] + public System.Collections.Generic.IEnumerable business_unit_invoices + { + get + { + return this.GetRelatedEntities("business_unit_invoices", null); + } + set + { + this.OnPropertyChanging("business_unit_invoices"); + this.SetRelatedEntities("business_unit_invoices", null, value); + this.OnPropertyChanged("business_unit_invoices"); + } + } + + /// + /// 1:N business_unit_leads + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_leads")] + public System.Collections.Generic.IEnumerable business_unit_leads + { + get + { + return this.GetRelatedEntities("business_unit_leads", null); + } + set + { + this.OnPropertyChanging("business_unit_leads"); + this.SetRelatedEntities("business_unit_leads", null, value); + this.OnPropertyChanged("business_unit_leads"); + } + } + + /// + /// 1:N business_unit_letter_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_letter_activities")] + public System.Collections.Generic.IEnumerable business_unit_letter_activities + { + get + { + return this.GetRelatedEntities("business_unit_letter_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_letter_activities"); + this.SetRelatedEntities("business_unit_letter_activities", null, value); + this.OnPropertyChanged("business_unit_letter_activities"); + } + } + + /// + /// 1:N business_unit_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_list")] + public System.Collections.Generic.IEnumerable business_unit_list + { + get + { + return this.GetRelatedEntities("business_unit_list", null); + } + set + { + this.OnPropertyChanging("business_unit_list"); + this.SetRelatedEntities("business_unit_list", null, value); + this.OnPropertyChanged("business_unit_list"); + } + } + + /// + /// 1:N business_unit_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailbox")] + public System.Collections.Generic.IEnumerable business_unit_mailbox + { + get + { + return this.GetRelatedEntities("business_unit_mailbox", null); + } + set + { + this.OnPropertyChanging("business_unit_mailbox"); + this.SetRelatedEntities("business_unit_mailbox", null, value); + this.OnPropertyChanged("business_unit_mailbox"); + } + } + + /// + /// 1:N business_unit_mailmergetemplates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailmergetemplates")] + public System.Collections.Generic.IEnumerable business_unit_mailmergetemplates + { + get + { + return this.GetRelatedEntities("business_unit_mailmergetemplates", null); + } + set + { + this.OnPropertyChanging("business_unit_mailmergetemplates"); + this.SetRelatedEntities("business_unit_mailmergetemplates", null, value); + this.OnPropertyChanged("business_unit_mailmergetemplates"); + } + } + + /// + /// 1:N business_unit_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_postalbum")] + public System.Collections.Generic.IEnumerable business_unit_msdyn_postalbum + { + get + { + return this.GetRelatedEntities("business_unit_msdyn_postalbum", null); + } + set + { + this.OnPropertyChanging("business_unit_msdyn_postalbum"); + this.SetRelatedEntities("business_unit_msdyn_postalbum", null, value); + this.OnPropertyChanged("business_unit_msdyn_postalbum"); + } + } + + /// + /// 1:N business_unit_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable business_unit_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("business_unit_msdyn_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("business_unit_msdyn_wallsavedqueryusersettings"); + this.SetRelatedEntities("business_unit_msdyn_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("business_unit_msdyn_wallsavedqueryusersettings"); + } + } + + /// + /// 1:N business_unit_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunities")] + public System.Collections.Generic.IEnumerable business_unit_opportunities + { + get + { + return this.GetRelatedEntities("business_unit_opportunities", null); + } + set + { + this.OnPropertyChanging("business_unit_opportunities"); + this.SetRelatedEntities("business_unit_opportunities", null, value); + this.OnPropertyChanged("business_unit_opportunities"); + } + } + + /// + /// 1:N business_unit_opportunity_close_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunity_close_activities")] + public System.Collections.Generic.IEnumerable business_unit_opportunity_close_activities + { + get + { + return this.GetRelatedEntities("business_unit_opportunity_close_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_opportunity_close_activities"); + this.SetRelatedEntities("business_unit_opportunity_close_activities", null, value); + this.OnPropertyChanged("business_unit_opportunity_close_activities"); + } + } + + /// + /// 1:N business_unit_order_close_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_order_close_activities")] + public System.Collections.Generic.IEnumerable business_unit_order_close_activities + { + get + { + return this.GetRelatedEntities("business_unit_order_close_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_order_close_activities"); + this.SetRelatedEntities("business_unit_order_close_activities", null, value); + this.OnPropertyChanged("business_unit_order_close_activities"); + } + } + + /// + /// 1:N business_unit_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_orders")] + public System.Collections.Generic.IEnumerable business_unit_orders + { + get + { + return this.GetRelatedEntities("business_unit_orders", null); + } + set + { + this.OnPropertyChanging("business_unit_orders"); + this.SetRelatedEntities("business_unit_orders", null, value); + this.OnPropertyChanged("business_unit_orders"); + } + } + + /// + /// 1:N business_unit_parent_business_unit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedbusiness_unit_parent_business_unit + { + get + { + return this.GetRelatedEntities("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedbusiness_unit_parent_business_unit"); + this.SetRelatedEntities("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedbusiness_unit_parent_business_unit"); + } + } + + /// + /// 1:N business_unit_phone_call_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_phone_call_activities")] + public System.Collections.Generic.IEnumerable business_unit_phone_call_activities + { + get + { + return this.GetRelatedEntities("business_unit_phone_call_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_phone_call_activities"); + this.SetRelatedEntities("business_unit_phone_call_activities", null, value); + this.OnPropertyChanged("business_unit_phone_call_activities"); + } + } + + /// + /// 1:N business_unit_postfollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_postfollows")] + public System.Collections.Generic.IEnumerable business_unit_postfollows + { + get + { + return this.GetRelatedEntities("business_unit_postfollows", null); + } + set + { + this.OnPropertyChanging("business_unit_postfollows"); + this.SetRelatedEntities("business_unit_postfollows", null, value); + this.OnPropertyChanged("business_unit_postfollows"); + } + } + + /// + /// 1:N business_unit_queues + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues")] + public System.Collections.Generic.IEnumerable business_unit_queues + { + get + { + return this.GetRelatedEntities("business_unit_queues", null); + } + set + { + this.OnPropertyChanging("business_unit_queues"); + this.SetRelatedEntities("business_unit_queues", null, value); + this.OnPropertyChanged("business_unit_queues"); + } + } + + /// + /// 1:N business_unit_queues2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues2")] + public System.Collections.Generic.IEnumerable business_unit_queues2 + { + get + { + return this.GetRelatedEntities("business_unit_queues2", null); + } + set + { + this.OnPropertyChanging("business_unit_queues2"); + this.SetRelatedEntities("business_unit_queues2", null, value); + this.OnPropertyChanged("business_unit_queues2"); + } + } + + /// + /// 1:N business_unit_quote_close_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quote_close_activities")] + public System.Collections.Generic.IEnumerable business_unit_quote_close_activities + { + get + { + return this.GetRelatedEntities("business_unit_quote_close_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_quote_close_activities"); + this.SetRelatedEntities("business_unit_quote_close_activities", null, value); + this.OnPropertyChanged("business_unit_quote_close_activities"); + } + } + + /// + /// 1:N business_unit_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quotes")] + public System.Collections.Generic.IEnumerable business_unit_quotes + { + get + { + return this.GetRelatedEntities("business_unit_quotes", null); + } + set + { + this.OnPropertyChanging("business_unit_quotes"); + this.SetRelatedEntities("business_unit_quotes", null, value); + this.OnPropertyChanged("business_unit_quotes"); + } + } + + /// + /// 1:N business_unit_recurrencerule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurrencerule")] + public System.Collections.Generic.IEnumerable business_unit_recurrencerule + { + get + { + return this.GetRelatedEntities("business_unit_recurrencerule", null); + } + set + { + this.OnPropertyChanging("business_unit_recurrencerule"); + this.SetRelatedEntities("business_unit_recurrencerule", null, value); + this.OnPropertyChanged("business_unit_recurrencerule"); + } + } + + /// + /// 1:N business_unit_recurringappointmentmaster_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurringappointmentmaster_activities")] + public System.Collections.Generic.IEnumerable business_unit_recurringappointmentmaster_activities + { + get + { + return this.GetRelatedEntities("business_unit_recurringappointmentmaster_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_recurringappointmentmaster_activities"); + this.SetRelatedEntities("business_unit_recurringappointmentmaster_activities", null, value); + this.OnPropertyChanged("business_unit_recurringappointmentmaster_activities"); + } + } + + /// + /// 1:N business_unit_reports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_reports")] + public System.Collections.Generic.IEnumerable business_unit_reports + { + get + { + return this.GetRelatedEntities("business_unit_reports", null); + } + set + { + this.OnPropertyChanging("business_unit_reports"); + this.SetRelatedEntities("business_unit_reports", null, value); + this.OnPropertyChanged("business_unit_reports"); + } + } + + /// + /// 1:N business_unit_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_groups")] + public System.Collections.Generic.IEnumerable business_unit_resource_groups + { + get + { + return this.GetRelatedEntities("business_unit_resource_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_groups"); + this.SetRelatedEntities("business_unit_resource_groups", null, value); + this.OnPropertyChanged("business_unit_resource_groups"); + } + } + + /// + /// 1:N business_unit_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_specs")] + public System.Collections.Generic.IEnumerable business_unit_resource_specs + { + get + { + return this.GetRelatedEntities("business_unit_resource_specs", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_specs"); + this.SetRelatedEntities("business_unit_resource_specs", null, value); + this.OnPropertyChanged("business_unit_resource_specs"); + } + } + + /// + /// 1:N business_unit_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resources")] + public System.Collections.Generic.IEnumerable business_unit_resources + { + get + { + return this.GetRelatedEntities("business_unit_resources", null); + } + set + { + this.OnPropertyChanging("business_unit_resources"); + this.SetRelatedEntities("business_unit_resources", null, value); + this.OnPropertyChanged("business_unit_resources"); + } + } + + /// + /// 1:N business_unit_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_roles")] + public System.Collections.Generic.IEnumerable business_unit_roles + { + get + { + return this.GetRelatedEntities("business_unit_roles", null); + } + set + { + this.OnPropertyChanging("business_unit_roles"); + this.SetRelatedEntities("business_unit_roles", null, value); + this.OnPropertyChanged("business_unit_roles"); + } + } + + /// + /// 1:N business_unit_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_appointments")] + public System.Collections.Generic.IEnumerable business_unit_service_appointments + { + get + { + return this.GetRelatedEntities("business_unit_service_appointments", null); + } + set + { + this.OnPropertyChanging("business_unit_service_appointments"); + this.SetRelatedEntities("business_unit_service_appointments", null, value); + this.OnPropertyChanged("business_unit_service_appointments"); + } + } + + /// + /// 1:N business_unit_service_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_contracts")] + public System.Collections.Generic.IEnumerable business_unit_service_contracts + { + get + { + return this.GetRelatedEntities("business_unit_service_contracts", null); + } + set + { + this.OnPropertyChanging("business_unit_service_contracts"); + this.SetRelatedEntities("business_unit_service_contracts", null, value); + this.OnPropertyChanged("business_unit_service_contracts"); + } + } + + /// + /// 1:N business_unit_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable business_unit_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("business_unit_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("business_unit_sharepointdocumentlocation"); + this.SetRelatedEntities("business_unit_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("business_unit_sharepointdocumentlocation"); + } + } + + /// + /// 1:N business_unit_sharepointsites + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointsites")] + public System.Collections.Generic.IEnumerable business_unit_sharepointsites + { + get + { + return this.GetRelatedEntities("business_unit_sharepointsites", null); + } + set + { + this.OnPropertyChanging("business_unit_sharepointsites"); + this.SetRelatedEntities("business_unit_sharepointsites", null, value); + this.OnPropertyChanged("business_unit_sharepointsites"); + } + } + + /// + /// 1:N business_unit_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_system_users")] + public System.Collections.Generic.IEnumerable business_unit_system_users + { + get + { + return this.GetRelatedEntities("business_unit_system_users", null); + } + set + { + this.OnPropertyChanging("business_unit_system_users"); + this.SetRelatedEntities("business_unit_system_users", null, value); + this.OnPropertyChanged("business_unit_system_users"); + } + } + + /// + /// 1:N business_unit_task_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_task_activities")] + public System.Collections.Generic.IEnumerable business_unit_task_activities + { + get + { + return this.GetRelatedEntities("business_unit_task_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_task_activities"); + this.SetRelatedEntities("business_unit_task_activities", null, value); + this.OnPropertyChanged("business_unit_task_activities"); + } + } + + /// + /// 1:N business_unit_teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_teams")] + public System.Collections.Generic.IEnumerable business_unit_teams + { + get + { + return this.GetRelatedEntities("business_unit_teams", null); + } + set + { + this.OnPropertyChanging("business_unit_teams"); + this.SetRelatedEntities("business_unit_teams", null, value); + this.OnPropertyChanged("business_unit_teams"); + } + } + + /// + /// 1:N business_unit_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_templates")] + public System.Collections.Generic.IEnumerable business_unit_templates + { + get + { + return this.GetRelatedEntities("business_unit_templates", null); + } + set + { + this.OnPropertyChanging("business_unit_templates"); + this.SetRelatedEntities("business_unit_templates", null, value); + this.OnPropertyChanged("business_unit_templates"); + } + } + + /// + /// 1:N business_unit_user_settings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_user_settings")] + public System.Collections.Generic.IEnumerable business_unit_user_settings + { + get + { + return this.GetRelatedEntities("business_unit_user_settings", null); + } + set + { + this.OnPropertyChanging("business_unit_user_settings"); + this.SetRelatedEntities("business_unit_user_settings", null, value); + this.OnPropertyChanged("business_unit_user_settings"); + } + } + + /// + /// 1:N business_unit_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userform")] + public System.Collections.Generic.IEnumerable business_unit_userform + { + get + { + return this.GetRelatedEntities("business_unit_userform", null); + } + set + { + this.OnPropertyChanging("business_unit_userform"); + this.SetRelatedEntities("business_unit_userform", null, value); + this.OnPropertyChanged("business_unit_userform"); + } + } + + /// + /// 1:N business_unit_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userquery")] + public System.Collections.Generic.IEnumerable business_unit_userquery + { + get + { + return this.GetRelatedEntities("business_unit_userquery", null); + } + set + { + this.OnPropertyChanging("business_unit_userquery"); + this.SetRelatedEntities("business_unit_userquery", null, value); + this.OnPropertyChanged("business_unit_userquery"); + } + } + + /// + /// 1:N business_unit_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable business_unit_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("business_unit_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("business_unit_userqueryvisualizations"); + this.SetRelatedEntities("business_unit_userqueryvisualizations", null, value); + this.OnPropertyChanged("business_unit_userqueryvisualizations"); + } + } + + /// + /// 1:N business_unit_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflow")] + public System.Collections.Generic.IEnumerable business_unit_workflow + { + get + { + return this.GetRelatedEntities("business_unit_workflow", null); + } + set + { + this.OnPropertyChanging("business_unit_workflow"); + this.SetRelatedEntities("business_unit_workflow", null, value); + this.OnPropertyChanged("business_unit_workflow"); + } + } + + /// + /// 1:N business_unit_workflowlogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflowlogs")] + public System.Collections.Generic.IEnumerable business_unit_workflowlogs + { + get + { + return this.GetRelatedEntities("business_unit_workflowlogs", null); + } + set + { + this.OnPropertyChanging("business_unit_workflowlogs"); + this.SetRelatedEntities("business_unit_workflowlogs", null, value); + this.OnPropertyChanged("business_unit_workflowlogs"); + } + } + + /// + /// 1:N BusinessUnit_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_AsyncOperations")] + public System.Collections.Generic.IEnumerable BusinessUnit_AsyncOperations + { + get + { + return this.GetRelatedEntities("BusinessUnit_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_AsyncOperations"); + this.SetRelatedEntities("BusinessUnit_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnit_AsyncOperations"); + } + } + + /// + /// 1:N BusinessUnit_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BusinessUnit_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BusinessUnit_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_BulkDeleteFailures"); + this.SetRelatedEntities("BusinessUnit_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BusinessUnit_BulkDeleteFailures"); + } + } + + /// + /// 1:N BusinessUnit_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Campaigns")] + public System.Collections.Generic.IEnumerable BusinessUnit_Campaigns + { + get + { + return this.GetRelatedEntities("BusinessUnit_Campaigns", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Campaigns"); + this.SetRelatedEntities("BusinessUnit_Campaigns", null, value); + this.OnPropertyChanged("BusinessUnit_Campaigns"); + } + } + + /// + /// 1:N BusinessUnit_DuplicateRules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_DuplicateRules")] + public System.Collections.Generic.IEnumerable BusinessUnit_DuplicateRules + { + get + { + return this.GetRelatedEntities("BusinessUnit_DuplicateRules", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_DuplicateRules"); + this.SetRelatedEntities("BusinessUnit_DuplicateRules", null, value); + this.OnPropertyChanged("BusinessUnit_DuplicateRules"); + } + } + + /// + /// 1:N BusinessUnit_ImportFiles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportFiles")] + public System.Collections.Generic.IEnumerable BusinessUnit_ImportFiles + { + get + { + return this.GetRelatedEntities("BusinessUnit_ImportFiles", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ImportFiles"); + this.SetRelatedEntities("BusinessUnit_ImportFiles", null, value); + this.OnPropertyChanged("BusinessUnit_ImportFiles"); + } + } + + /// + /// 1:N BusinessUnit_ImportLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportLogs")] + public System.Collections.Generic.IEnumerable BusinessUnit_ImportLogs + { + get + { + return this.GetRelatedEntities("BusinessUnit_ImportLogs", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ImportLogs"); + this.SetRelatedEntities("BusinessUnit_ImportLogs", null, value); + this.OnPropertyChanged("BusinessUnit_ImportLogs"); + } + } + + /// + /// 1:N BusinessUnit_ImportMaps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportMaps")] + public System.Collections.Generic.IEnumerable BusinessUnit_ImportMaps + { + get + { + return this.GetRelatedEntities("BusinessUnit_ImportMaps", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ImportMaps"); + this.SetRelatedEntities("BusinessUnit_ImportMaps", null, value); + this.OnPropertyChanged("BusinessUnit_ImportMaps"); + } + } + + /// + /// 1:N BusinessUnit_Imports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Imports")] + public System.Collections.Generic.IEnumerable BusinessUnit_Imports + { + get + { + return this.GetRelatedEntities("BusinessUnit_Imports", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Imports"); + this.SetRelatedEntities("BusinessUnit_Imports", null, value); + this.OnPropertyChanged("BusinessUnit_Imports"); + } + } + + /// + /// 1:N businessunit_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("businessunit_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable businessunit_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("businessunit_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("businessunit_principalobjectattributeaccess"); + this.SetRelatedEntities("businessunit_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("businessunit_principalobjectattributeaccess"); + } + } + + /// + /// 1:N BusinessUnit_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ProcessSessions")] + public System.Collections.Generic.IEnumerable BusinessUnit_ProcessSessions + { + get + { + return this.GetRelatedEntities("BusinessUnit_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ProcessSessions"); + this.SetRelatedEntities("BusinessUnit_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnit_ProcessSessions"); + } + } + + /// + /// 1:N Owning_businessunit_processsessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Owning_businessunit_processsessions")] + public System.Collections.Generic.IEnumerable Owning_businessunit_processsessions + { + get + { + return this.GetRelatedEntities("Owning_businessunit_processsessions", null); + } + set + { + this.OnPropertyChanging("Owning_businessunit_processsessions"); + this.SetRelatedEntities("Owning_businessunit_processsessions", null, value); + this.OnPropertyChanged("Owning_businessunit_processsessions"); + } + } + + /// + /// 1:N userentityinstancedata_businessunit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunit")] + public System.Collections.Generic.IEnumerable userentityinstancedata_businessunit + { + get + { + return this.GetRelatedEntities("userentityinstancedata_businessunit", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_businessunit"); + this.SetRelatedEntities("userentityinstancedata_businessunit", null, value); + this.OnPropertyChanged("userentityinstancedata_businessunit"); + } + } + + /// + /// 1:N userentityuisettings_businessunit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_businessunit")] + public System.Collections.Generic.IEnumerable userentityuisettings_businessunit + { + get + { + return this.GetRelatedEntities("userentityuisettings_businessunit", null); + } + set + { + this.OnPropertyChanging("userentityuisettings_businessunit"); + this.SetRelatedEntities("userentityuisettings_businessunit", null, value); + this.OnPropertyChanged("userentityuisettings_businessunit"); + } + } + + /// + /// N:1 business_unit_parent_business_unit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbusinessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.BusinessUnit Referencingbusiness_unit_parent_business_unit + { + get + { + return this.GetRelatedEntity("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingbusiness_unit_parent_business_unit"); + this.SetRelatedEntity("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingbusiness_unit_parent_business_unit"); + } + } + + /// + /// N:1 BusinessUnit_Calendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Calendar")] + public Xrm.Framework.CI.Common.Entities.Calendar BusinessUnit_Calendar + { + get + { + return this.GetRelatedEntity("BusinessUnit_Calendar", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Calendar"); + this.SetRelatedEntity("BusinessUnit_Calendar", null, value); + this.OnPropertyChanged("BusinessUnit_Calendar"); + } + } + + /// + /// N:1 lk_businessunit_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunit_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunit_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunit_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunit_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunit_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunitbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitbase_createdby + { + get + { + return this.GetRelatedEntity("lk_businessunitbase_createdby", null); + } + } + + /// + /// N:1 lk_businessunitbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_businessunitbase_modifiedby", null); + } + } + + /// + /// N:1 organization_business_units + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_units")] + public Xrm.Framework.CI.Common.Entities.Organization organization_business_units + { + get + { + return this.GetRelatedEntity("organization_business_units", null); + } + } + + /// + /// N:1 TransactionCurrency_BusinessUnit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_BusinessUnit")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_BusinessUnit + { + get + { + return this.GetRelatedEntity("TransactionCurrency_BusinessUnit", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_BusinessUnit"); + this.SetRelatedEntity("TransactionCurrency_BusinessUnit", null, value); + this.OnPropertyChanged("TransactionCurrency_BusinessUnit"); + } + } + } + + /// + /// Announcement associated with an organization. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("businessunitnewsarticle")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BusinessUnitNewsArticle : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BusinessUnitNewsArticle() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "businessunitnewsarticle"; + + public const int EntityTypeCode = 132; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time for the announcement to become active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeon")] + public System.Nullable ActiveOn + { + get + { + return this.GetAttributeValue>("activeon"); + } + set + { + this.OnPropertyChanging("ActiveOn"); + this.SetAttributeValue("activeon", value); + this.OnPropertyChanged("ActiveOn"); + } + } + + /// + /// Date and time of the last day the announcement is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeuntil")] + public System.Nullable ActiveUntil + { + get + { + return this.GetAttributeValue>("activeuntil"); + } + set + { + this.OnPropertyChanging("ActiveUntil"); + this.SetAttributeValue("activeuntil", value); + this.OnPropertyChanged("ActiveUntil"); + } + } + + /// + /// Title of the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articletitle")] + public string ArticleTitle + { + get + { + return this.GetAttributeValue("articletitle"); + } + set + { + this.OnPropertyChanging("ArticleTitle"); + this.SetAttributeValue("articletitle", value); + this.OnPropertyChanged("ArticleTitle"); + } + } + + /// + /// Type of announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articletypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ArticleTypeCode + { + get + { + return this.GetAttributeValue("articletypecode"); + } + set + { + this.OnPropertyChanging("ArticleTypeCode"); + this.SetAttributeValue("articletypecode", value); + this.OnPropertyChanged("ArticleTypeCode"); + } + } + + /// + /// URL for the Website on which the announcement is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articleurl")] + public string ArticleUrl + { + get + { + return this.GetAttributeValue("articleurl"); + } + set + { + this.OnPropertyChanging("ArticleUrl"); + this.SetAttributeValue("articleurl", value); + this.OnPropertyChanged("ArticleUrl"); + } + } + + /// + /// Unique identifier of the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitnewsarticleid")] + public System.Nullable BusinessUnitNewsArticleId + { + get + { + return this.GetAttributeValue>("businessunitnewsarticleid"); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticleId"); + this.SetAttributeValue("businessunitnewsarticleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("BusinessUnitNewsArticleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitnewsarticleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.BusinessUnitNewsArticleId = value; + } + } + + /// + /// Unique identifier of the user who created the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the announcement 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 businessunitnewsarticle. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the announcement 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 businessunitnewsarticle. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Text for the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("newsarticle")] + public string NewsArticle + { + get + { + return this.GetAttributeValue("newsarticle"); + } + set + { + this.OnPropertyChanging("NewsArticle"); + this.SetAttributeValue("newsarticle", value); + this.OnPropertyChanged("NewsArticle"); + } + } + + /// + /// Unique identifier of the organization associated with the announcement. + /// + [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"); + } + } + + /// + /// Information about whether to show the announcement on the Website home page. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showonhomepage")] + public System.Nullable ShowOnHomepage + { + get + { + return this.GetAttributeValue>("showonhomepage"); + } + set + { + this.OnPropertyChanging("ShowOnHomepage"); + this.SetAttributeValue("showonhomepage", value); + this.OnPropertyChanged("ShowOnHomepage"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N BusinessUnitNewsArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_AsyncOperations")] + public System.Collections.Generic.IEnumerable BusinessUnitNewsArticle_AsyncOperations + { + get + { + return this.GetRelatedEntities("BusinessUnitNewsArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_AsyncOperations"); + this.SetRelatedEntities("BusinessUnitNewsArticle_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_AsyncOperations"); + } + } + + /// + /// 1:N BusinessUnitNewsArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BusinessUnitNewsArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BusinessUnitNewsArticle_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_BulkDeleteFailures"); + this.SetRelatedEntities("BusinessUnitNewsArticle_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_BulkDeleteFailures"); + } + } + + /// + /// 1:N BusinessUnitNewsArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_ProcessSessions")] + public System.Collections.Generic.IEnumerable BusinessUnitNewsArticle_ProcessSessions + { + get + { + return this.GetRelatedEntities("BusinessUnitNewsArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_ProcessSessions"); + this.SetRelatedEntities("BusinessUnitNewsArticle_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_businessunitnewsarticle + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunitnewsarticle")] + public System.Collections.Generic.IEnumerable userentityinstancedata_businessunitnewsarticle + { + get + { + return this.GetRelatedEntities("userentityinstancedata_businessunitnewsarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_businessunitnewsarticle"); + this.SetRelatedEntities("userentityinstancedata_businessunitnewsarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_businessunitnewsarticle"); + } + } + + /// + /// N:1 lk_businessunitnewsarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticle_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunitnewsarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticle_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunitnewsarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticlebase_createdby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticlebase_createdby", null); + } + } + + /// + /// N:1 lk_businessunitnewsarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticlebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticlebase_modifiedby", null); + } + } + + /// + /// N:1 organization_business_unit_news_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_unit_news_articles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_business_unit_news_articles + { + get + { + return this.GetRelatedEntity("organization_business_unit_news_articles", null); + } + } + } + + /// + /// Calendar used by the scheduling system to define when an appointment or activity is to occur. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("calendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Calendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Calendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "calendar"; + + public const int EntityTypeCode = 4003; + + 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 business unit with which the calendar is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public System.Nullable CalendarId + { + get + { + return this.GetAttributeValue>("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CalendarId = value; + } + } + + /// + /// Unique identifier of the user who created the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the calendar 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 calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Calendar used by the scheduling system to define when an appointment or activity is to occur. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Calendar is shared by other calendars, such as the organization calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isshared")] + public System.Nullable IsShared + { + get + { + return this.GetAttributeValue>("isshared"); + } + set + { + this.OnPropertyChanging("IsShared"); + this.SetAttributeValue("isshared", value); + this.OnPropertyChanged("IsShared"); + } + } + + /// + /// Unique identifier of the user who last modified the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the calendar 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 calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the calendar is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the primary user of this calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryuserid")] + public System.Nullable PrimaryUserId + { + get + { + return this.GetAttributeValue>("primaryuserid"); + } + set + { + this.OnPropertyChanging("PrimaryUserId"); + this.SetAttributeValue("primaryuserid", value); + this.OnPropertyChanged("PrimaryUserId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N BusinessUnit_Calendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Calendar")] + public System.Collections.Generic.IEnumerable BusinessUnit_Calendar + { + get + { + return this.GetRelatedEntities("BusinessUnit_Calendar", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Calendar"); + this.SetRelatedEntities("BusinessUnit_Calendar", null, value); + this.OnPropertyChanged("BusinessUnit_Calendar"); + } + } + + /// + /// 1:N Calendar_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_Annotation")] + public System.Collections.Generic.IEnumerable Calendar_Annotation + { + get + { + return this.GetRelatedEntities("Calendar_Annotation", null); + } + set + { + this.OnPropertyChanging("Calendar_Annotation"); + this.SetRelatedEntities("Calendar_Annotation", null, value); + this.OnPropertyChanged("Calendar_Annotation"); + } + } + + /// + /// 1:N Calendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable Calendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("Calendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Calendar_AsyncOperations"); + this.SetRelatedEntities("Calendar_AsyncOperations", null, value); + this.OnPropertyChanged("Calendar_AsyncOperations"); + } + } + + /// + /// 1:N Calendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Calendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Calendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Calendar_BulkDeleteFailures"); + this.SetRelatedEntities("Calendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Calendar_BulkDeleteFailures"); + } + } + + /// + /// 1:N calendar_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarrules")] + public System.Collections.Generic.IEnumerable CalendarRules + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("calendarrules"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("CalendarRules"); + if ((value == null)) + { + this.SetAttributeValue("calendarrules", value); + } + else + { + this.SetAttributeValue("calendarrules", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("CalendarRules"); + } + } + + /// + /// 1:N calendar_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_equipment")] + public System.Collections.Generic.IEnumerable calendar_equipment + { + get + { + return this.GetRelatedEntities("calendar_equipment", null); + } + set + { + this.OnPropertyChanging("calendar_equipment"); + this.SetRelatedEntities("calendar_equipment", null, value); + this.OnPropertyChanged("calendar_equipment"); + } + } + + /// + /// 1:N calendar_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_organization")] + public System.Collections.Generic.IEnumerable calendar_organization + { + get + { + return this.GetRelatedEntities("calendar_organization", null); + } + set + { + this.OnPropertyChanging("calendar_organization"); + this.SetRelatedEntities("calendar_organization", null, value); + this.OnPropertyChanged("calendar_organization"); + } + } + + /// + /// 1:N calendar_services + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_services")] + public System.Collections.Generic.IEnumerable calendar_services + { + get + { + return this.GetRelatedEntities("calendar_services", null); + } + set + { + this.OnPropertyChanging("calendar_services"); + this.SetRelatedEntities("calendar_services", null, value); + this.OnPropertyChanged("calendar_services"); + } + } + + /// + /// 1:N calendar_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_system_users")] + public System.Collections.Generic.IEnumerable calendar_system_users + { + get + { + return this.GetRelatedEntities("calendar_system_users", null); + } + set + { + this.OnPropertyChanging("calendar_system_users"); + this.SetRelatedEntities("calendar_system_users", null, value); + this.OnPropertyChanged("calendar_system_users"); + } + } + + /// + /// 1:N userentityinstancedata_calendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_calendar")] + public System.Collections.Generic.IEnumerable userentityinstancedata_calendar + { + get + { + return this.GetRelatedEntities("userentityinstancedata_calendar", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_calendar"); + this.SetRelatedEntities("userentityinstancedata_calendar", null, value); + this.OnPropertyChanged("userentityinstancedata_calendar"); + } + } + + /// + /// N:1 business_unit_calendars + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_calendars")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_calendars + { + get + { + return this.GetRelatedEntity("business_unit_calendars", null); + } + set + { + this.OnPropertyChanging("business_unit_calendars"); + this.SetRelatedEntity("business_unit_calendars", null, value); + this.OnPropertyChanged("business_unit_calendars"); + } + } + + /// + /// N:1 lk_calendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_createdby + { + get + { + return this.GetRelatedEntity("lk_calendar_createdby", null); + } + } + + /// + /// N:1 lk_calendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_calendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_calendar_modifiedby", null); + } + } + + /// + /// N:1 lk_calendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_calendars + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_calendars")] + public Xrm.Framework.CI.Common.Entities.Organization organization_calendars + { + get + { + return this.GetRelatedEntity("organization_calendars", null); + } + } + } + + /// + /// Defines free/busy times for a service and for resources or resource groups, such as working, non-working, vacation, and blocked. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("calendarrule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CalendarRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CalendarRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "calendarrule"; + + public const int EntityTypeCode = 4004; + + 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 business unit with which the calendar rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public System.Nullable BusinessUnitId + { + get + { + return this.GetAttributeValue>("businessunitid"); + } + } + + /// + /// Unique identifier of the calendar with which the calendar rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Unique identifier of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarruleid")] + public System.Nullable CalendarRuleId + { + get + { + return this.GetAttributeValue>("calendarruleid"); + } + set + { + this.OnPropertyChanging("CalendarRuleId"); + this.SetAttributeValue("calendarruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CalendarRuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CalendarRuleId = value; + } + } + + /// + /// Unique identifier of the user who created the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the calendar rule 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 calendarrule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Defines free/busy times for a service and for resources or resource groups, such as working, non-working, vacation, and blocked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Duration of the calendar rule in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// Effective interval end of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveintervalend")] + public System.Nullable EffectiveIntervalEnd + { + get + { + return this.GetAttributeValue>("effectiveintervalend"); + } + set + { + this.OnPropertyChanging("EffectiveIntervalEnd"); + this.SetAttributeValue("effectiveintervalend", value); + this.OnPropertyChanged("EffectiveIntervalEnd"); + } + } + + /// + /// Effective interval start of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveintervalstart")] + public System.Nullable EffectiveIntervalStart + { + get + { + return this.GetAttributeValue>("effectiveintervalstart"); + } + set + { + this.OnPropertyChanging("EffectiveIntervalStart"); + this.SetAttributeValue("effectiveintervalstart", value); + this.OnPropertyChanged("EffectiveIntervalStart"); + } + } + + /// + /// Effort available for a resource during the time described by the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effort")] + public System.Nullable Effort + { + get + { + return this.GetAttributeValue>("effort"); + } + set + { + this.OnPropertyChanging("Effort"); + this.SetAttributeValue("effort", value); + this.OnPropertyChanged("Effort"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endtime")] + public System.Nullable EndTime + { + get + { + return this.GetAttributeValue>("endtime"); + } + set + { + this.OnPropertyChanging("EndTime"); + this.SetAttributeValue("endtime", value); + this.OnPropertyChanged("EndTime"); + } + } + + /// + /// Extent of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extentcode")] + public System.Nullable ExtentCode + { + get + { + return this.GetAttributeValue>("extentcode"); + } + set + { + this.OnPropertyChanging("ExtentCode"); + this.SetAttributeValue("extentcode", value); + this.OnPropertyChanged("ExtentCode"); + } + } + + /// + /// Unique identifier of the group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupdesignator")] + public string GroupDesignator + { + get + { + return this.GetAttributeValue("groupdesignator"); + } + set + { + this.OnPropertyChanging("GroupDesignator"); + this.SetAttributeValue("groupdesignator", value); + this.OnPropertyChanged("GroupDesignator"); + } + } + + /// + /// Unique identifier of the inner calendar for non-leaf calendar rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("innercalendarid")] + public Microsoft.Xrm.Sdk.EntityReference InnerCalendarId + { + get + { + return this.GetAttributeValue("innercalendarid"); + } + set + { + this.OnPropertyChanging("InnerCalendarId"); + this.SetAttributeValue("innercalendarid", value); + this.OnPropertyChanged("InnerCalendarId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismodified")] + public System.Nullable IsModified + { + get + { + return this.GetAttributeValue>("ismodified"); + } + set + { + this.OnPropertyChanging("IsModified"); + this.SetAttributeValue("ismodified", value); + this.OnPropertyChanged("IsModified"); + } + } + + /// + /// Flag used in vary-by-day calendar rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isselected")] + public System.Nullable IsSelected + { + get + { + return this.GetAttributeValue>("isselected"); + } + set + { + this.OnPropertyChanging("IsSelected"); + this.SetAttributeValue("isselected", value); + this.OnPropertyChanged("IsSelected"); + } + } + + /// + /// Flag used in vary-by-day calendar rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issimple")] + public System.Nullable IsSimple + { + get + { + return this.GetAttributeValue>("issimple"); + } + set + { + this.OnPropertyChanging("IsSimple"); + this.SetAttributeValue("issimple", value); + this.OnPropertyChanged("IsSimple"); + } + } + + /// + /// Flag used in leaf nonrecurring rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvaried")] + public System.Nullable IsVaried + { + get + { + return this.GetAttributeValue>("isvaried"); + } + set + { + this.OnPropertyChanging("IsVaried"); + this.SetAttributeValue("isvaried", value); + this.OnPropertyChanged("IsVaried"); + } + } + + /// + /// Unique identifier of the user who last modified the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the calendar rule 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 calendarrule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Start offset for leaf nonrecurring rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("offset")] + public System.Nullable Offset + { + get + { + return this.GetAttributeValue>("offset"); + } + set + { + this.OnPropertyChanging("Offset"); + this.SetAttributeValue("offset", value); + this.OnPropertyChanged("Offset"); + } + } + + /// + /// Unique identifier of the organization with which the calendar rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Pattern of the rule recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pattern")] + public string Pattern + { + get + { + return this.GetAttributeValue("pattern"); + } + set + { + this.OnPropertyChanging("Pattern"); + this.SetAttributeValue("pattern", value); + this.OnPropertyChanged("Pattern"); + } + } + + /// + /// Rank of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// Unique identifier of the service with which the calendar rule 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"); + } + } + + /// + /// Start time for the rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// Sub-type of calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcode")] + public System.Nullable SubCode + { + get + { + return this.GetAttributeValue>("subcode"); + } + set + { + this.OnPropertyChanging("SubCode"); + this.SetAttributeValue("subcode", value); + this.OnPropertyChanged("SubCode"); + } + } + + /// + /// Type of calendar rule such as working hours, break, holiday, or time off. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timecode")] + public System.Nullable TimeCode + { + get + { + return this.GetAttributeValue>("timecode"); + } + set + { + this.OnPropertyChanging("TimeCode"); + this.SetAttributeValue("timecode", value); + this.OnPropertyChanged("TimeCode"); + } + } + + /// + /// Local time zone for the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_calendarrule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_calendarrule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_calendarrule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_calendarrule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_calendarrule"); + this.SetRelatedEntities("userentityinstancedata_calendarrule", null, value); + this.OnPropertyChanged("userentityinstancedata_calendarrule"); + } + } + + /// + /// N:1 calendar_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_calendar_rules")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_calendar_rules + { + get + { + return this.GetRelatedEntity("calendar_calendar_rules", null); + } + set + { + this.OnPropertyChanging("calendar_calendar_rules"); + this.SetRelatedEntity("calendar_calendar_rules", null, value); + this.OnPropertyChanged("calendar_calendar_rules"); + } + } + + /// + /// N:1 inner_calendar_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("innercalendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("inner_calendar_calendar_rules")] + public Xrm.Framework.CI.Common.Entities.Calendar inner_calendar_calendar_rules + { + get + { + return this.GetRelatedEntity("inner_calendar_calendar_rules", null); + } + set + { + this.OnPropertyChanging("inner_calendar_calendar_rules"); + this.SetRelatedEntity("inner_calendar_calendar_rules", null, value); + this.OnPropertyChanged("inner_calendar_calendar_rules"); + } + } + + /// + /// N:1 lk_calendarrule_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_createdby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_createdby", null); + } + } + + /// + /// N:1 lk_calendarrule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_calendarrule_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_modifiedby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_modifiedby", null); + } + } + + /// + /// N:1 lk_calendarrule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 service_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_calendar_rules")] + public Xrm.Framework.CI.Common.Entities.Service service_calendar_rules + { + get + { + return this.GetRelatedEntity("service_calendar_rules", null); + } + set + { + this.OnPropertyChanging("service_calendar_rules"); + this.SetRelatedEntity("service_calendar_rules", null, value); + this.OnPropertyChanged("service_calendar_rules"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum CampaignState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Container for campaign activities and responses, sales literature, products, and lists to create, plan, execute, and track the results of a specific marketing campaign through its life. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaign")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Campaign : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Campaign() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaign"; + + public const int EntityTypeCode = 4400; + + 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)); + } + } + + /// + /// Enter the date when the campaign was closed or completed. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the campaign. + /// + [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"); + } + } + + /// + /// Type the amount budgeted for the campaign to define a limit for how much you can spend. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost")] + public Microsoft.Xrm.Sdk.Money BudgetedCost + { + get + { + return this.GetAttributeValue("budgetedcost"); + } + set + { + this.OnPropertyChanging("BudgetedCost"); + this.SetAttributeValue("budgetedcost", value); + this.OnPropertyChanged("BudgetedCost"); + } + } + + /// + /// Shows the Budget Allocated field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost_base")] + public Microsoft.Xrm.Sdk.Money BudgetedCost_Base + { + get + { + return this.GetAttributeValue("budgetedcost_base"); + } + } + + /// + /// Unique identifier of the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + public System.Nullable CampaignId + { + get + { + return this.GetAttributeValue>("campaignid"); + } + set + { + this.OnPropertyChanging("CampaignId"); + this.SetAttributeValue("campaignid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CampaignId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CampaignId = value; + } + } + + /// + /// Type a number or other tracking code to identify the campaign. If no value is entered, a code will be generated automatically. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("codename")] + public string CodeName + { + get + { + return this.GetAttributeValue("codename"); + } + set + { + this.OnPropertyChanging("CodeName"); + this.SetAttributeValue("codename", value); + this.OnPropertyChanged("CodeName"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the campaign, such as the products or services offered or the targeted audience. + /// + [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 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"); + } + } + + /// + /// 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 expected response rate for the campaign as a full number between 0 and 100. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expectedresponse")] + public System.Nullable ExpectedResponse + { + get + { + return this.GetAttributeValue>("expectedresponse"); + } + set + { + this.OnPropertyChanging("ExpectedResponse"); + this.SetAttributeValue("expectedresponse", value); + this.OnPropertyChanged("ExpectedResponse"); + } + } + + /// + /// Type the expected revenue for the campaign for return on investment projections and post-campaign reporting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expectedrevenue")] + public Microsoft.Xrm.Sdk.Money ExpectedRevenue + { + get + { + return this.GetAttributeValue("expectedrevenue"); + } + set + { + this.OnPropertyChanging("ExpectedRevenue"); + this.SetAttributeValue("expectedrevenue", value); + this.OnPropertyChanged("ExpectedRevenue"); + } + } + + /// + /// Shows the estimated revenue converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expectedrevenue_base")] + public Microsoft.Xrm.Sdk.Money ExpectedRevenue_Base + { + get + { + return this.GetAttributeValue("expectedrevenue_base"); + } + } + + /// + /// 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 campaign is a template that can be copied when you create future campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("istemplate")] + public System.Nullable IsTemplate + { + get + { + return this.GetAttributeValue>("istemplate"); + } + set + { + this.OnPropertyChanging("IsTemplate"); + this.SetAttributeValue("istemplate", value); + this.OnPropertyChanged("IsTemplate"); + } + } + + /// + /// Type the promotional message or marketing copy for the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + set + { + this.OnPropertyChanging("Message"); + this.SetAttributeValue("message", value); + this.OnPropertyChanged("Message"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a name for the campaign so that it is identified correctly in lists. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type the objective of the campaign, including products, services, discounts, and pricing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objective")] + public string Objective + { + get + { + return this.GetAttributeValue("objective"); + } + set + { + this.OnPropertyChanging("Objective"); + this.SetAttributeValue("objective", value); + this.OnPropertyChanged("Objective"); + } + } + + /// + /// Type the sum of any miscellaneous campaign costs not included in the campaign activities to make sure the actual cost of the campaign is calculated correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("othercost")] + public Microsoft.Xrm.Sdk.Money OtherCost + { + get + { + return this.GetAttributeValue("othercost"); + } + set + { + this.OnPropertyChanging("OtherCost"); + this.SetAttributeValue("othercost", value); + this.OnPropertyChanged("OtherCost"); + } + } + + /// + /// Shows the Miscellaneous Costs 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("othercost_base")] + public Microsoft.Xrm.Sdk.Money OtherCost_Base + { + get + { + return this.GetAttributeValue("othercost_base"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the price list associated with this item to make sure the products associated with the campaign are offered at the correct prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelistid")] + public Microsoft.Xrm.Sdk.EntityReference PriceListId + { + get + { + return this.GetAttributeValue("pricelistid"); + } + set + { + this.OnPropertyChanging("PriceListId"); + this.SetAttributeValue("pricelistid", value); + this.OnPropertyChanged("PriceListId"); + } + } + + /// + /// 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 a promotional code to track sales related to the campaign or allow customers to redeem a discount offer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("promotioncodename")] + public string PromotionCodeName + { + get + { + return this.GetAttributeValue("promotioncodename"); + } + set + { + this.OnPropertyChanging("PromotionCodeName"); + this.SetAttributeValue("promotioncodename", value); + this.OnPropertyChanged("PromotionCodeName"); + } + } + + /// + /// Enter the date when the campaign is scheduled to end. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("proposedend")] + public System.Nullable ProposedEnd + { + get + { + return this.GetAttributeValue>("proposedend"); + } + set + { + this.OnPropertyChanging("ProposedEnd"); + this.SetAttributeValue("proposedend", value); + this.OnPropertyChanged("ProposedEnd"); + } + } + + /// + /// Enter the date when the campaign is scheduled to start. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("proposedstart")] + public System.Nullable ProposedStart + { + get + { + return this.GetAttributeValue>("proposedstart"); + } + set + { + this.OnPropertyChanging("ProposedStart"); + this.SetAttributeValue("proposedstart", value); + this.OnPropertyChanged("ProposedStart"); + } + } + + /// + /// 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 the status of the campaign. By default, campaigns are active and can't be deactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.CampaignState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.CampaignState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the campaign'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 sum of the amounts entered in the Total Cost of Campaign Activities and Miscellaneous Costs fields. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalactualcost")] + public Microsoft.Xrm.Sdk.Money TotalActualCost + { + get + { + return this.GetAttributeValue("totalactualcost"); + } + } + + /// + /// Shows the Total Cost of Campaign 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("totalactualcost_base")] + public Microsoft.Xrm.Sdk.Money TotalActualCost_Base + { + get + { + return this.GetAttributeValue("totalactualcost_base"); + } + } + + /// + /// Shows the sum of the values entered in the Actual Cost field on all campaign activities related to the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalcampaignactivityactualcost")] + public Microsoft.Xrm.Sdk.Money TotalCampaignActivityActualCost + { + get + { + return this.GetAttributeValue("totalcampaignactivityactualcost"); + } + } + + /// + /// Shows the Total Cost of Campaign Activities field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalcampaignactivityactualcost_base")] + public Microsoft.Xrm.Sdk.Money TotalCampaignActivityActualCost_Base + { + get + { + return this.GetAttributeValue("totalcampaignactivityactualcost_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"); + } + } + + /// + /// Select the type of the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typecode")] + public Microsoft.Xrm.Sdk.OptionSetValue TypeCode + { + get + { + return this.GetAttributeValue("typecode"); + } + set + { + this.OnPropertyChanging("TypeCode"); + this.SetAttributeValue("typecode", value); + this.OnPropertyChanged("TypeCode"); + } + } + + /// + /// 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 campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N campaign_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_activity_parties")] + public System.Collections.Generic.IEnumerable campaign_activity_parties + { + get + { + return this.GetRelatedEntities("campaign_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaign_activity_parties"); + this.SetRelatedEntities("campaign_activity_parties", null, value); + this.OnPropertyChanged("campaign_activity_parties"); + } + } + + /// + /// 1:N Campaign_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ActivityPointers")] + public System.Collections.Generic.IEnumerable Campaign_ActivityPointers + { + get + { + return this.GetRelatedEntities("Campaign_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Campaign_ActivityPointers"); + this.SetRelatedEntities("Campaign_ActivityPointers", null, value); + this.OnPropertyChanged("Campaign_ActivityPointers"); + } + } + + /// + /// 1:N Campaign_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Annotation")] + public System.Collections.Generic.IEnumerable Campaign_Annotation + { + get + { + return this.GetRelatedEntities("Campaign_Annotation", null); + } + set + { + this.OnPropertyChanging("Campaign_Annotation"); + this.SetRelatedEntities("Campaign_Annotation", null, value); + this.OnPropertyChanged("Campaign_Annotation"); + } + } + + /// + /// 1:N Campaign_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Appointments")] + public System.Collections.Generic.IEnumerable Campaign_Appointments + { + get + { + return this.GetRelatedEntities("Campaign_Appointments", null); + } + set + { + this.OnPropertyChanging("Campaign_Appointments"); + this.SetRelatedEntities("Campaign_Appointments", null, value); + this.OnPropertyChanged("Campaign_Appointments"); + } + } + + /// + /// 1:N Campaign_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_AsyncOperations")] + public System.Collections.Generic.IEnumerable Campaign_AsyncOperations + { + get + { + return this.GetRelatedEntities("Campaign_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Campaign_AsyncOperations"); + this.SetRelatedEntities("Campaign_AsyncOperations", null, value); + this.OnPropertyChanged("Campaign_AsyncOperations"); + } + } + + /// + /// 1:N Campaign_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Campaign_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Campaign_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Campaign_BulkDeleteFailures"); + this.SetRelatedEntities("Campaign_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Campaign_BulkDeleteFailures"); + } + } + + /// + /// 1:N Campaign_CampaignActivities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignActivities")] + public System.Collections.Generic.IEnumerable Campaign_CampaignActivities + { + get + { + return this.GetRelatedEntities("Campaign_CampaignActivities", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignActivities"); + this.SetRelatedEntities("Campaign_CampaignActivities", null, value); + this.OnPropertyChanged("Campaign_CampaignActivities"); + } + } + + /// + /// 1:N Campaign_CampaignResponses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignResponses")] + public System.Collections.Generic.IEnumerable Campaign_CampaignResponses + { + get + { + return this.GetRelatedEntities("Campaign_CampaignResponses", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignResponses"); + this.SetRelatedEntities("Campaign_CampaignResponses", null, value); + this.OnPropertyChanged("Campaign_CampaignResponses"); + } + } + + /// + /// 1:N campaign_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections1")] + public System.Collections.Generic.IEnumerable campaign_connections1 + { + get + { + return this.GetRelatedEntities("campaign_connections1", null); + } + set + { + this.OnPropertyChanging("campaign_connections1"); + this.SetRelatedEntities("campaign_connections1", null, value); + this.OnPropertyChanged("campaign_connections1"); + } + } + + /// + /// 1:N campaign_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections2")] + public System.Collections.Generic.IEnumerable campaign_connections2 + { + get + { + return this.GetRelatedEntities("campaign_connections2", null); + } + set + { + this.OnPropertyChanging("campaign_connections2"); + this.SetRelatedEntities("campaign_connections2", null, value); + this.OnPropertyChanged("campaign_connections2"); + } + } + + /// + /// 1:N Campaign_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Campaign_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Campaign_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Campaign_DuplicateBaseRecord"); + this.SetRelatedEntities("Campaign_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Campaign_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Campaign_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Campaign_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Campaign_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Campaign_DuplicateMatchingRecord"); + this.SetRelatedEntities("Campaign_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Campaign_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Campaign_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Emails")] + public System.Collections.Generic.IEnumerable Campaign_Emails + { + get + { + return this.GetRelatedEntities("Campaign_Emails", null); + } + set + { + this.OnPropertyChanging("Campaign_Emails"); + this.SetRelatedEntities("Campaign_Emails", null, value); + this.OnPropertyChanged("Campaign_Emails"); + } + } + + /// + /// 1:N Campaign_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Faxes")] + public System.Collections.Generic.IEnumerable Campaign_Faxes + { + get + { + return this.GetRelatedEntities("Campaign_Faxes", null); + } + set + { + this.OnPropertyChanging("Campaign_Faxes"); + this.SetRelatedEntities("Campaign_Faxes", null, value); + this.OnPropertyChanged("Campaign_Faxes"); + } + } + + /// + /// 1:N campaign_leads + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_leads")] + public System.Collections.Generic.IEnumerable campaign_leads + { + get + { + return this.GetRelatedEntities("campaign_leads", null); + } + set + { + this.OnPropertyChanging("campaign_leads"); + this.SetRelatedEntities("campaign_leads", null, value); + this.OnPropertyChanged("campaign_leads"); + } + } + + /// + /// 1:N Campaign_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Letters")] + public System.Collections.Generic.IEnumerable Campaign_Letters + { + get + { + return this.GetRelatedEntities("Campaign_Letters", null); + } + set + { + this.OnPropertyChanging("Campaign_Letters"); + this.SetRelatedEntities("Campaign_Letters", null, value); + this.OnPropertyChanged("Campaign_Letters"); + } + } + + /// + /// 1:N campaign_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_opportunities")] + public System.Collections.Generic.IEnumerable campaign_opportunities + { + get + { + return this.GetRelatedEntities("campaign_opportunities", null); + } + set + { + this.OnPropertyChanging("campaign_opportunities"); + this.SetRelatedEntities("campaign_opportunities", null, value); + this.OnPropertyChanged("campaign_opportunities"); + } + } + + /// + /// 1:N campaign_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_orders")] + public System.Collections.Generic.IEnumerable campaign_orders + { + get + { + return this.GetRelatedEntities("campaign_orders", null); + } + set + { + this.OnPropertyChanging("campaign_orders"); + this.SetRelatedEntities("campaign_orders", null, value); + this.OnPropertyChanged("campaign_orders"); + } + } + + /// + /// 1:N Campaign_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Phonecalls")] + public System.Collections.Generic.IEnumerable Campaign_Phonecalls + { + get + { + return this.GetRelatedEntities("Campaign_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Campaign_Phonecalls"); + this.SetRelatedEntities("Campaign_Phonecalls", null, value); + this.OnPropertyChanged("Campaign_Phonecalls"); + } + } + + /// + /// 1:N campaign_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable campaign_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("campaign_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaign_principalobjectattributeaccess"); + this.SetRelatedEntities("campaign_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaign_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Campaign_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ProcessSessions")] + public System.Collections.Generic.IEnumerable Campaign_ProcessSessions + { + get + { + return this.GetRelatedEntities("Campaign_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Campaign_ProcessSessions"); + this.SetRelatedEntities("Campaign_ProcessSessions", null, value); + this.OnPropertyChanged("Campaign_ProcessSessions"); + } + } + + /// + /// 1:N campaign_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_quotes")] + public System.Collections.Generic.IEnumerable campaign_quotes + { + get + { + return this.GetRelatedEntities("campaign_quotes", null); + } + set + { + this.OnPropertyChanging("campaign_quotes"); + this.SetRelatedEntities("campaign_quotes", null, value); + this.OnPropertyChanged("campaign_quotes"); + } + } + + /// + /// 1:N Campaign_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Campaign_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Campaign_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Campaign_RecurringAppointmentMasters"); + this.SetRelatedEntities("Campaign_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Campaign_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Campaign_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Campaign_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Campaign_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Campaign_ServiceAppointments"); + this.SetRelatedEntities("Campaign_ServiceAppointments", null, value); + this.OnPropertyChanged("Campaign_ServiceAppointments"); + } + } + + /// + /// 1:N Campaign_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Tasks")] + public System.Collections.Generic.IEnumerable Campaign_Tasks + { + get + { + return this.GetRelatedEntities("Campaign_Tasks", null); + } + set + { + this.OnPropertyChanging("Campaign_Tasks"); + this.SetRelatedEntities("Campaign_Tasks", null, value); + this.OnPropertyChanged("Campaign_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_campaign + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaign")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaign + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaign", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaign"); + this.SetRelatedEntities("userentityinstancedata_campaign", null, value); + this.OnPropertyChanged("userentityinstancedata_campaign"); + } + } + + /// + /// N:N campaigncampaign_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingcampaigncampaign_association + { + get + { + return this.GetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcampaigncampaign_association"); + this.SetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcampaigncampaign_association"); + } + } + + /// + /// N:N campaigncampaign_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcampaigncampaign_association + { + get + { + return this.GetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcampaigncampaign_association"); + this.SetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcampaigncampaign_association"); + } + } + + /// + /// N:N campaignlist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignlist_association")] + public System.Collections.Generic.IEnumerable campaignlist_association + { + get + { + return this.GetRelatedEntities("campaignlist_association", null); + } + set + { + this.OnPropertyChanging("campaignlist_association"); + this.SetRelatedEntities("campaignlist_association", null, value); + this.OnPropertyChanged("campaignlist_association"); + } + } + + /// + /// N:N campaignproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignproduct_association")] + public System.Collections.Generic.IEnumerable campaignproduct_association + { + get + { + return this.GetRelatedEntities("campaignproduct_association", null); + } + set + { + this.OnPropertyChanging("campaignproduct_association"); + this.SetRelatedEntities("campaignproduct_association", null, value); + this.OnPropertyChanged("campaignproduct_association"); + } + } + + /// + /// N:N campaignsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignsalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignsalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignsalesliterature_association"); + this.SetRelatedEntities("campaignsalesliterature_association", null, value); + this.OnPropertyChanged("campaignsalesliterature_association"); + } + } + + /// + /// N:1 BusinessUnit_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Campaigns")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_Campaigns + { + get + { + return this.GetRelatedEntity("BusinessUnit_Campaigns", null); + } + } + + /// + /// N:1 lk_campaign_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_createdby + { + get + { + return this.GetRelatedEntity("lk_campaign_createdby", null); + } + } + + /// + /// N:1 lk_campaign_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaign_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_campaign_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_modifiedby + { + get + { + return this.GetRelatedEntity("lk_campaign_modifiedby", null); + } + } + + /// + /// N:1 lk_campaign_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaign_modifiedonbehalfby", null); + } + } + + /// + /// N:1 PriceList_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelistid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceList_Campaigns")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceList_Campaigns + { + get + { + return this.GetRelatedEntity("PriceList_Campaigns", null); + } + set + { + this.OnPropertyChanging("PriceList_Campaigns"); + this.SetRelatedEntity("PriceList_Campaigns", null, value); + this.OnPropertyChanged("PriceList_Campaigns"); + } + } + + /// + /// N:1 processstage_campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaigns")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_campaigns + { + get + { + return this.GetRelatedEntity("processstage_campaigns", null); + } + set + { + this.OnPropertyChanging("processstage_campaigns"); + this.SetRelatedEntity("processstage_campaigns", null, value); + this.OnPropertyChanged("processstage_campaigns"); + } + } + + /// + /// N:1 SystemUser_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Campaigns")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_Campaigns + { + get + { + return this.GetRelatedEntity("SystemUser_Campaigns", null); + } + } + + /// + /// N:1 team_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Campaigns")] + public Xrm.Framework.CI.Common.Entities.Team team_Campaigns + { + get + { + return this.GetRelatedEntity("team_Campaigns", null); + } + } + + /// + /// N:1 transactioncurrency_campaign + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaign")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_campaign + { + get + { + return this.GetRelatedEntity("transactioncurrency_campaign", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_campaign"); + this.SetRelatedEntity("transactioncurrency_campaign", null, value); + this.OnPropertyChanged("transactioncurrency_campaign"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum CampaignActivityState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Task performed, or to be performed, by a user for planning or running a campaign. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignactivity")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignActivity : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignActivity() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignactivity"; + + public const int EntityTypeCode = 4402; + + 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 campaign 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"); + } + } + + /// + /// Type the actual cost of the campaign activity. The value entered is rolled up to the related campaign in the total cost calculations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualcost")] + public Microsoft.Xrm.Sdk.Money ActualCost + { + get + { + return this.GetAttributeValue("actualcost"); + } + set + { + this.OnPropertyChanging("ActualCost"); + this.SetAttributeValue("actualcost", value); + this.OnPropertyChanged("ActualCost"); + } + } + + /// + /// Shows the Actual Cost 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("actualcost_base")] + public Microsoft.Xrm.Sdk.Money ActualCost_Base + { + get + { + return this.GetAttributeValue("actualcost_base"); + } + } + + /// + /// Shows the value selected in the Duration field on the campaign activity. The duration is used to report the time spent on the activity. + /// + [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"); + } + } + + /// + /// Enter the date when the campaign activity was actually completed. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the campaign activity to determine if the campaign activity started on the scheduled time. + /// + [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"); + } + } + + /// + /// Type the allocated budget of the campaign activity for estimated versus actual cost reporting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost")] + public Microsoft.Xrm.Sdk.Money BudgetedCost + { + get + { + return this.GetAttributeValue("budgetedcost"); + } + set + { + this.OnPropertyChanging("BudgetedCost"); + this.SetAttributeValue("budgetedcost", value); + this.OnPropertyChanged("BudgetedCost"); + } + } + + /// + /// Shows the Budget Allocated field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost_base")] + public Microsoft.Xrm.Sdk.Money BudgetedCost_Base + { + get + { + return this.GetAttributeValue("budgetedcost_base"); + } + } + + /// + /// Type a category to identify the campaign activity type, such as new business development or customer retention, to tie the campaign activity to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Select how communications for this activity will be sent, such as phone, letter, fax, or email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channeltypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ChannelTypeCode + { + get + { + return this.GetAttributeValue("channeltypecode"); + } + set + { + this.OnPropertyChanging("ChannelTypeCode"); + this.SetAttributeValue("channeltypecode", value); + this.OnPropertyChanged("ChannelTypeCode"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the campaign activity, such as key talking points, objectives, or details about the target audience. + /// + [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 to override the opt-out settings on leads, contacts, and accounts for the members of the target marketing lists of the campaign activity. If No is selected, marketing materials will be sent to members who have opted out. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotsendonoptout")] + public System.Nullable DoNotSendOnOptOut + { + get + { + return this.GetAttributeValue>("donotsendonoptout"); + } + set + { + this.OnPropertyChanging("DoNotSendOnOptOut"); + this.SetAttributeValue("donotsendonoptout", value); + this.OnPropertyChanged("DoNotSendOnOptOut"); + } + } + + /// + /// 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 minimum number of days that must be passed before a marketing list member can be contacted in a campaign again. The campaign activity will not be applied to members contacted within the specified time period. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("excludeifcontactedinxdays")] + public System.Nullable ExcludeIfContactedInXDays + { + get + { + return this.GetAttributeValue>("excludeifcontactedinxdays"); + } + set + { + this.OnPropertyChanging("ExcludeIfContactedInXDays"); + this.SetAttributeValue("excludeifcontactedinxdays", value); + this.OnPropertyChanged("ExcludeIfContactedInXDays"); + } + } + + /// + /// For system use only. + /// + [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"); + } + } + + /// + /// Select whether inactive marketing list members will be excluded from the campaign activity distribution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreinactivelistmembers")] + public System.Nullable IgnoreInactiveListMembers + { + get + { + return this.GetAttributeValue>("ignoreinactivelistmembers"); + } + set + { + this.OnPropertyChanging("IgnoreInactiveListMembers"); + this.SetAttributeValue("ignoreinactivelistmembers", value); + this.OnPropertyChanged("IgnoreInactiveListMembers"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information regarding whether the campaign 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"); + } + } + + /// + /// 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 about whether the campaign activity is created by 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Enter the vendor accounts or contacts to capture any third-party suppliers used for the campaign activity. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the parent campaign so that the campaign activity costs reflect in the correct campaign for reporting. + /// + [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"); + } + } + + /// + /// Scheduled duration, specified in minutes, of the campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about the timing of the campaign 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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about timing of the campaign 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 associated service. + /// + [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"); + } + } + + /// + /// 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 campaign activity is open, completed, or canceled. Completed and canceled campaign activities are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.CampaignActivityState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.CampaignActivityState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the campaign activity'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"); + } + } + + /// + /// Type a subcategory to identify the campaign activity type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the campaign 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the type of campaign activity to indicate the purpose of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typecode")] + public Microsoft.Xrm.Sdk.OptionSetValue TypeCode + { + get + { + return this.GetAttributeValue("typecode"); + } + set + { + this.OnPropertyChanging("TypeCode"); + this.SetAttributeValue("typecode", value); + this.OnPropertyChanged("TypeCode"); + } + } + + /// + /// 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 campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N campaignactivity_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activity_parties")] + public System.Collections.Generic.IEnumerable campaignactivity_activity_parties + { + get + { + return this.GetRelatedEntities("campaignactivity_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activity_parties"); + this.SetRelatedEntities("campaignactivity_activity_parties", null, value); + this.OnPropertyChanged("campaignactivity_activity_parties"); + } + } + + /// + /// 1:N campaignactivity_activityparties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activityparties")] + public System.Collections.Generic.IEnumerable campaignactivity_activityparties + { + get + { + return this.GetRelatedEntities("campaignactivity_activityparties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activityparties"); + this.SetRelatedEntities("campaignactivity_activityparties", null, value); + this.OnPropertyChanged("campaignactivity_activityparties"); + } + } + + /// + /// 1:N CampaignActivity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ActivityPointers")] + public System.Collections.Generic.IEnumerable CampaignActivity_ActivityPointers + { + get + { + return this.GetRelatedEntities("CampaignActivity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ActivityPointers"); + this.SetRelatedEntities("CampaignActivity_ActivityPointers", null, value); + this.OnPropertyChanged("CampaignActivity_ActivityPointers"); + } + } + + /// + /// 1:N CampaignActivity_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Annotation")] + public System.Collections.Generic.IEnumerable CampaignActivity_Annotation + { + get + { + return this.GetRelatedEntities("CampaignActivity_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Annotation"); + this.SetRelatedEntities("CampaignActivity_Annotation", null, value); + this.OnPropertyChanged("CampaignActivity_Annotation"); + } + } + + /// + /// 1:N CampaignActivity_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Appointments")] + public System.Collections.Generic.IEnumerable CampaignActivity_Appointments + { + get + { + return this.GetRelatedEntities("CampaignActivity_Appointments", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Appointments"); + this.SetRelatedEntities("CampaignActivity_Appointments", null, value); + this.OnPropertyChanged("CampaignActivity_Appointments"); + } + } + + /// + /// 1:N CampaignActivity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_AsyncOperations")] + public System.Collections.Generic.IEnumerable CampaignActivity_AsyncOperations + { + get + { + return this.GetRelatedEntities("CampaignActivity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_AsyncOperations"); + this.SetRelatedEntities("CampaignActivity_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignActivity_AsyncOperations"); + } + } + + /// + /// 1:N CampaignActivity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CampaignActivity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CampaignActivity_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_BulkDeleteFailures"); + this.SetRelatedEntities("CampaignActivity_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CampaignActivity_BulkDeleteFailures"); + } + } + + /// + /// 1:N CampaignActivity_BulkOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkOperations")] + public System.Collections.Generic.IEnumerable CampaignActivity_BulkOperations + { + get + { + return this.GetRelatedEntities("CampaignActivity_BulkOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_BulkOperations"); + this.SetRelatedEntities("CampaignActivity_BulkOperations", null, value); + this.OnPropertyChanged("CampaignActivity_BulkOperations"); + } + } + + /// + /// 1:N campaignactivity_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections1")] + public System.Collections.Generic.IEnumerable campaignactivity_connections1 + { + get + { + return this.GetRelatedEntities("campaignactivity_connections1", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections1"); + this.SetRelatedEntities("campaignactivity_connections1", null, value); + this.OnPropertyChanged("campaignactivity_connections1"); + } + } + + /// + /// 1:N campaignactivity_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections2")] + public System.Collections.Generic.IEnumerable campaignactivity_connections2 + { + get + { + return this.GetRelatedEntities("campaignactivity_connections2", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections2"); + this.SetRelatedEntities("campaignactivity_connections2", null, value); + this.OnPropertyChanged("campaignactivity_connections2"); + } + } + + /// + /// 1:N CampaignActivity_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Emails")] + public System.Collections.Generic.IEnumerable CampaignActivity_Emails + { + get + { + return this.GetRelatedEntities("CampaignActivity_Emails", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Emails"); + this.SetRelatedEntities("CampaignActivity_Emails", null, value); + this.OnPropertyChanged("CampaignActivity_Emails"); + } + } + + /// + /// 1:N CampaignActivity_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Faxes")] + public System.Collections.Generic.IEnumerable CampaignActivity_Faxes + { + get + { + return this.GetRelatedEntities("CampaignActivity_Faxes", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Faxes"); + this.SetRelatedEntities("CampaignActivity_Faxes", null, value); + this.OnPropertyChanged("CampaignActivity_Faxes"); + } + } + + /// + /// 1:N CampaignActivity_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Letters")] + public System.Collections.Generic.IEnumerable CampaignActivity_Letters + { + get + { + return this.GetRelatedEntities("CampaignActivity_Letters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Letters"); + this.SetRelatedEntities("CampaignActivity_Letters", null, value); + this.OnPropertyChanged("CampaignActivity_Letters"); + } + } + + /// + /// 1:N CampaignActivity_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Phonecalls")] + public System.Collections.Generic.IEnumerable CampaignActivity_Phonecalls + { + get + { + return this.GetRelatedEntities("CampaignActivity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Phonecalls"); + this.SetRelatedEntities("CampaignActivity_Phonecalls", null, value); + this.OnPropertyChanged("CampaignActivity_Phonecalls"); + } + } + + /// + /// 1:N campaignactivity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable campaignactivity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("campaignactivity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignactivity_principalobjectattributeaccess"); + this.SetRelatedEntities("campaignactivity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignactivity_principalobjectattributeaccess"); + } + } + + /// + /// 1:N CampaignActivity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ProcessSessions")] + public System.Collections.Generic.IEnumerable CampaignActivity_ProcessSessions + { + get + { + return this.GetRelatedEntities("CampaignActivity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ProcessSessions"); + this.SetRelatedEntities("CampaignActivity_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignActivity_ProcessSessions"); + } + } + + /// + /// 1:N CampaignActivity_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_QueueItem")] + public System.Collections.Generic.IEnumerable CampaignActivity_QueueItem + { + get + { + return this.GetRelatedEntities("CampaignActivity_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_QueueItem"); + this.SetRelatedEntities("CampaignActivity_QueueItem", null, value); + this.OnPropertyChanged("CampaignActivity_QueueItem"); + } + } + + /// + /// 1:N CampaignActivity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable CampaignActivity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("CampaignActivity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_RecurringAppointmentMasters"); + this.SetRelatedEntities("CampaignActivity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("CampaignActivity_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N CampaignActivity_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Tasks")] + public System.Collections.Generic.IEnumerable CampaignActivity_Tasks + { + get + { + return this.GetRelatedEntities("CampaignActivity_Tasks", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Tasks"); + this.SetRelatedEntities("CampaignActivity_Tasks", null, value); + this.OnPropertyChanged("CampaignActivity_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivity")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignactivity + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignactivity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivity"); + this.SetRelatedEntities("userentityinstancedata_campaignactivity", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivity"); + } + } + + /// + /// N:N campaignactivitylist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitylist_association")] + public System.Collections.Generic.IEnumerable campaignactivitylist_association + { + get + { + return this.GetRelatedEntities("campaignactivitylist_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitylist_association"); + this.SetRelatedEntities("campaignactivitylist_association", null, value); + this.OnPropertyChanged("campaignactivitylist_association"); + } + } + + /// + /// N:N campaignactivitysalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitysalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignactivitysalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignactivitysalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitysalesliterature_association"); + this.SetRelatedEntities("campaignactivitysalesliterature_association", null, value); + this.OnPropertyChanged("campaignactivitysalesliterature_association"); + } + } + + /// + /// N:1 activity_pointer_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_campaignactivity + { + get + { + return this.GetRelatedEntity("activity_pointer_campaignactivity", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignactivity"); + this.SetRelatedEntity("activity_pointer_campaignactivity", null, value); + this.OnPropertyChanged("activity_pointer_campaignactivity"); + } + } + + /// + /// N:1 business_unit_campaignactivity_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignactivity_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_campaignactivity_activities + { + get + { + return this.GetRelatedEntity("business_unit_campaignactivity_activities", null); + } + } + + /// + /// N:1 Campaign_CampaignActivities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignActivities")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_CampaignActivities + { + get + { + return this.GetRelatedEntity("Campaign_CampaignActivities", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignActivities"); + this.SetRelatedEntity("Campaign_CampaignActivities", null, value); + this.OnPropertyChanged("Campaign_CampaignActivities"); + } + } + + /// + /// N:1 lk_campaignactivity_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_createdby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_createdby", null); + } + } + + /// + /// N:1 lk_campaignactivity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_campaignactivity_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_modifiedby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_modifiedby", null); + } + } + + /// + /// N:1 lk_campaignactivity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_modifiedonbehalfby", null); + } + } + + /// + /// N:1 processstage_campaignactivities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignactivities")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_campaignactivities + { + get + { + return this.GetRelatedEntity("processstage_campaignactivities", null); + } + set + { + this.OnPropertyChanging("processstage_campaignactivities"); + this.SetRelatedEntity("processstage_campaignactivities", null, value); + this.OnPropertyChanged("processstage_campaignactivities"); + } + } + + /// + /// N:1 team_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.Team team_campaignactivity + { + get + { + return this.GetRelatedEntity("team_campaignactivity", null); + } + } + + /// + /// N:1 transactioncurrency_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_campaignactivity + { + get + { + return this.GetRelatedEntity("transactioncurrency_campaignactivity", null); + } + } + + /// + /// N:1 user_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_campaignactivity + { + get + { + return this.GetRelatedEntity("user_campaignactivity", null); + } + } + } + + /// + /// Work item of a campaign activity, such as a list or sales literature. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignactivityitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignActivityItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignActivityItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignactivityitem"; + + public const int EntityTypeCode = 4404; + + 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 campaign activity for the item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityid")] + public Microsoft.Xrm.Sdk.EntityReference CampaignActivityId + { + get + { + return this.GetAttributeValue("campaignactivityid"); + } + set + { + this.OnPropertyChanging("CampaignActivityId"); + this.SetAttributeValue("campaignactivityid", value); + this.OnPropertyChanged("CampaignActivityId"); + } + } + + /// + /// Unique identifier of the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityitemid")] + public System.Nullable CampaignActivityItemId + { + get + { + return this.GetAttributeValue>("campaignactivityitemid"); + } + set + { + this.OnPropertyChanging("CampaignActivityItemId"); + this.SetAttributeValue("campaignactivityitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CampaignActivityItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CampaignActivityItemId = value; + } + } + + /// + /// Unique identifier of the item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("itemid")] + public System.Nullable ItemId + { + get + { + return this.GetAttributeValue>("itemid"); + } + set + { + this.OnPropertyChanging("ItemId"); + this.SetAttributeValue("itemid", value); + this.OnPropertyChanged("ItemId"); + } + } + + /// + /// Identification of the type of the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("itemobjecttypecode")] + public string ItemObjectTypeCode + { + get + { + return this.GetAttributeValue("itemobjecttypecode"); + } + set + { + this.OnPropertyChanging("ItemObjectTypeCode"); + this.SetAttributeValue("itemobjecttypecode", value); + this.OnPropertyChanged("ItemObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user or team who owns the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user that owns the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_campaignactivityitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivityitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignactivityitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignactivityitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivityitem"); + this.SetRelatedEntities("userentityinstancedata_campaignactivityitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivityitem"); + } + } + + /// + /// N:N campaignactivitylist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitylist_association")] + public System.Collections.Generic.IEnumerable campaignactivitylist_association + { + get + { + return this.GetRelatedEntities("campaignactivitylist_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitylist_association"); + this.SetRelatedEntities("campaignactivitylist_association", null, value); + this.OnPropertyChanged("campaignactivitylist_association"); + } + } + + /// + /// N:N campaignactivitysalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitysalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignactivitysalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignactivitysalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitysalesliterature_association"); + this.SetRelatedEntities("campaignactivitysalesliterature_association", null, value); + this.OnPropertyChanged("campaignactivitysalesliterature_association"); + } + } + + /// + /// N:1 ActivityPointer_CampaignActivityItems + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_CampaignActivityItems")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_CampaignActivityItems + { + get + { + return this.GetRelatedEntity("ActivityPointer_CampaignActivityItems", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_CampaignActivityItems"); + this.SetRelatedEntity("ActivityPointer_CampaignActivityItems", null, value); + this.OnPropertyChanged("ActivityPointer_CampaignActivityItems"); + } + } + } + + /// + /// Work item in a campaign, a list or sales literature. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignitem"; + + public const int EntityTypeCode = 4403; + + 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 campaign that is associated with the individual item. + /// + [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"); + } + } + + /// + /// Unique identifier of the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignitemid")] + public System.Nullable CampaignItemId + { + get + { + return this.GetAttributeValue>("campaignitemid"); + } + set + { + this.OnPropertyChanging("CampaignItemId"); + this.SetAttributeValue("campaignitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CampaignItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CampaignItemId = value; + } + } + + /// + /// Unique identifier of the entity for the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityid")] + public System.Nullable EntityId + { + get + { + return this.GetAttributeValue>("entityid"); + } + set + { + this.OnPropertyChanging("EntityId"); + this.SetAttributeValue("entityid", value); + this.OnPropertyChanged("EntityId"); + } + } + + /// + /// Object type of entity for the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitytype")] + public string EntityType + { + get + { + return this.GetAttributeValue("entitytype"); + } + set + { + this.OnPropertyChanging("EntityType"); + this.SetAttributeValue("entitytype", value); + this.OnPropertyChanged("EntityType"); + } + } + + /// + /// Unique identifier of the user or team who owns the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user that owns the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_campaignitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignitem"); + this.SetRelatedEntities("userentityinstancedata_campaignitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignitem"); + } + } + + /// + /// N:N campaigncampaign_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaigncampaign_association")] + public System.Collections.Generic.IEnumerable campaigncampaign_association + { + get + { + return this.GetRelatedEntities("campaigncampaign_association", null); + } + set + { + this.OnPropertyChanging("campaigncampaign_association"); + this.SetRelatedEntities("campaigncampaign_association", null, value); + this.OnPropertyChanged("campaigncampaign_association"); + } + } + + /// + /// N:N campaignlist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignlist_association")] + public System.Collections.Generic.IEnumerable campaignlist_association + { + get + { + return this.GetRelatedEntities("campaignlist_association", null); + } + set + { + this.OnPropertyChanging("campaignlist_association"); + this.SetRelatedEntities("campaignlist_association", null, value); + this.OnPropertyChanged("campaignlist_association"); + } + } + + /// + /// N:N campaignproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignproduct_association")] + public System.Collections.Generic.IEnumerable campaignproduct_association + { + get + { + return this.GetRelatedEntities("campaignproduct_association", null); + } + set + { + this.OnPropertyChanging("campaignproduct_association"); + this.SetRelatedEntities("campaignproduct_association", null, value); + this.OnPropertyChanged("campaignproduct_association"); + } + } + + /// + /// N:N campaignsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignsalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignsalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignsalesliterature_association"); + this.SetRelatedEntities("campaignsalesliterature_association", null, value); + this.OnPropertyChanged("campaignsalesliterature_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum CampaignResponseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Response from an existing or a potential new customer for a campaign. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignresponse")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignResponse : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignResponse() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignresponse"; + + public const int EntityTypeCode = 4401; + + 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 campaign response. + /// + [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"); + } + } + + /// + /// Type the number of minutes spent on this activity. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the date when the campaign response was actually completed. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the campaign response. + /// + [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"); + } + } + + /// + /// Type a category to identify the campaign response type, such as new business development or customer retention, to tie the campaign response to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Select how the response was received, such as phone, letter, fax, or email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channeltypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ChannelTypeCode + { + get + { + return this.GetAttributeValue("channeltypecode"); + } + set + { + this.OnPropertyChanging("ChannelTypeCode"); + this.SetAttributeValue("channeltypecode", value); + this.OnPropertyChanged("ChannelTypeCode"); + } + } + + /// + /// Type the name of the company if the campaign response was received from a new prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("companyname")] + public string CompanyName + { + get + { + return this.GetAttributeValue("companyname"); + } + set + { + this.OnPropertyChanging("CompanyName"); + this.SetAttributeValue("companyname", value); + this.OnPropertyChanged("CompanyName"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Enter the account, contact, or lead that submitted the campaign response, if it was received from an existing prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customer")] + public System.Collections.Generic.IEnumerable Customer + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("customer"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Customer"); + if ((value == null)) + { + this.SetAttributeValue("customer", value); + } + else + { + this.SetAttributeValue("customer", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Customer"); + } + } + + /// + /// Type additional information to describe the campaign response, such as key discussion points or objectives. + /// + [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 responder's email address. + /// + [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"); + } + } + + /// + /// Type the responder's fax number. + /// + [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 responder's first name if the campaign response was received from a new prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] + public string FirstName + { + get + { + return this.GetAttributeValue("firstname"); + } + set + { + this.OnPropertyChanging("FirstName"); + this.SetAttributeValue("firstname", value); + this.OnPropertyChanged("FirstName"); + } + } + + /// + /// For system use only. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the campaign response 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the campaign response is created by 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"); + } + } + + /// + /// Type the responder's last name if the campaign response was received from a new prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] + public string LastName + { + get + { + return this.GetAttributeValue("lastname"); + } + set + { + this.OnPropertyChanging("LastName"); + this.SetAttributeValue("lastname", value); + this.OnPropertyChanged("LastName"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Choose the phone call, email, fax, letter, or appointment activity that led the prospect or customer to respond to the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingActivityId + { + get + { + return this.GetAttributeValue("originatingactivityid"); + } + set + { + this.OnPropertyChanging("OriginatingActivityId"); + this.SetAttributeValue("originatingactivityid", value); + this.OnPropertyChanged("OriginatingActivityId"); + } + } + + /// + /// 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 for the business unit that owns the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Enter the vendor account or contact to capture any third-party used to obtain the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partner")] + public System.Collections.Generic.IEnumerable Partner + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("partner"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Partner"); + if ((value == null)) + { + this.SetAttributeValue("partner", value); + } + else + { + this.SetAttributeValue("partner", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Partner"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 a promotional code to track sales related to the campaign response or to allow the responder to redeem a discount offer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("promotioncodename")] + public string PromotionCodeName + { + get + { + return this.GetAttributeValue("promotioncodename"); + } + set + { + this.OnPropertyChanging("PromotionCodeName"); + this.SetAttributeValue("promotioncodename", value); + this.OnPropertyChanged("PromotionCodeName"); + } + } + + /// + /// Enter the date when the campaign response was received. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("receivedon")] + public System.Nullable ReceivedOn + { + get + { + return this.GetAttributeValue>("receivedon"); + } + set + { + this.OnPropertyChanging("ReceivedOn"); + this.SetAttributeValue("receivedon", value); + this.OnPropertyChanged("ReceivedOn"); + } + } + + /// + /// Choose the parent campaign so that the campaign's response rate is tracked correctly. + /// + [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"); + } + } + + /// + /// Select the type of response from the prospect or customer to indicate their interest in the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("responsecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ResponseCode + { + get + { + return this.GetAttributeValue("responsecode"); + } + set + { + this.OnPropertyChanging("ResponseCode"); + this.SetAttributeValue("responsecode", value); + this.OnPropertyChanged("ResponseCode"); + } + } + + /// + /// Scheduled duration of the campaign response in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about the timing of the campaign response. + /// + [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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about the timing of the campaign response. + /// + [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 for the associated service. + /// + [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"); + } + } + + /// + /// 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 campaign response is open, closed, or canceled. Closed and canceled campaign responses are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.CampaignResponseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.CampaignResponseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the campaign response'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"); + } + } + + /// + /// Type a subcategory to identify the campaign response type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Type the responder's primary phone number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone")] + public string Telephone + { + get + { + return this.GetAttributeValue("telephone"); + } + set + { + this.OnPropertyChanging("Telephone"); + this.SetAttributeValue("telephone", value); + this.OnPropertyChanged("Telephone"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 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("yomicompanyname")] + public string YomiCompanyName + { + get + { + return this.GetAttributeValue("yomicompanyname"); + } + set + { + this.OnPropertyChanging("YomiCompanyName"); + this.SetAttributeValue("yomicompanyname", value); + this.OnPropertyChanged("YomiCompanyName"); + } + } + + /// + /// Type the phonetic spelling of the campaign responder's first name, if specified in Japanese, to make sure the name is pronounced correctly in phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Type the phonetic spelling of the campaign responder's last name, if specified in Japanese, to make sure the name is pronounced correctly in phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] + public string YomiLastName + { + get + { + return this.GetAttributeValue("yomilastname"); + } + set + { + this.OnPropertyChanging("YomiLastName"); + this.SetAttributeValue("yomilastname", value); + this.OnPropertyChanged("YomiLastName"); + } + } + + /// + /// 1:N campaignresponse_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_activity_parties")] + public System.Collections.Generic.IEnumerable campaignresponse_activity_parties + { + get + { + return this.GetRelatedEntities("campaignresponse_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignresponse_activity_parties"); + this.SetRelatedEntities("campaignresponse_activity_parties", null, value); + this.OnPropertyChanged("campaignresponse_activity_parties"); + } + } + + /// + /// 1:N CampaignResponse_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Annotation")] + public System.Collections.Generic.IEnumerable CampaignResponse_Annotation + { + get + { + return this.GetRelatedEntities("CampaignResponse_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Annotation"); + this.SetRelatedEntities("CampaignResponse_Annotation", null, value); + this.OnPropertyChanged("CampaignResponse_Annotation"); + } + } + + /// + /// 1:N CampaignResponse_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_AsyncOperations")] + public System.Collections.Generic.IEnumerable CampaignResponse_AsyncOperations + { + get + { + return this.GetRelatedEntities("CampaignResponse_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_AsyncOperations"); + this.SetRelatedEntities("CampaignResponse_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignResponse_AsyncOperations"); + } + } + + /// + /// 1:N CampaignResponse_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CampaignResponse_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CampaignResponse_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_BulkDeleteFailures"); + this.SetRelatedEntities("CampaignResponse_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CampaignResponse_BulkDeleteFailures"); + } + } + + /// + /// 1:N CampaignResponse_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable CampaignResponse_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("CampaignResponse_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_DuplicateBaseRecord"); + this.SetRelatedEntities("CampaignResponse_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("CampaignResponse_DuplicateBaseRecord"); + } + } + + /// + /// 1:N CampaignResponse_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable CampaignResponse_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("CampaignResponse_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_DuplicateMatchingRecord"); + this.SetRelatedEntities("CampaignResponse_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("CampaignResponse_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N CampaignResponse_Lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Lead")] + public System.Collections.Generic.IEnumerable CampaignResponse_Lead + { + get + { + return this.GetRelatedEntities("CampaignResponse_Lead", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Lead"); + this.SetRelatedEntities("CampaignResponse_Lead", null, value); + this.OnPropertyChanged("CampaignResponse_Lead"); + } + } + + /// + /// 1:N campaignresponse_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable campaignresponse_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("campaignresponse_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignresponse_principalobjectattributeaccess"); + this.SetRelatedEntities("campaignresponse_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignresponse_principalobjectattributeaccess"); + } + } + + /// + /// 1:N CampaignResponse_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_ProcessSessions")] + public System.Collections.Generic.IEnumerable CampaignResponse_ProcessSessions + { + get + { + return this.GetRelatedEntities("CampaignResponse_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_ProcessSessions"); + this.SetRelatedEntities("CampaignResponse_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignResponse_ProcessSessions"); + } + } + + /// + /// 1:N CampaignResponse_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_QueueItem")] + public System.Collections.Generic.IEnumerable CampaignResponse_QueueItem + { + get + { + return this.GetRelatedEntities("CampaignResponse_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_QueueItem"); + this.SetRelatedEntities("CampaignResponse_QueueItem", null, value); + this.OnPropertyChanged("CampaignResponse_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignresponse")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignresponse + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignresponse"); + this.SetRelatedEntities("userentityinstancedata_campaignresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignresponse"); + } + } + + /// + /// N:1 activity_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_campaignresponse + { + get + { + return this.GetRelatedEntity("activity_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_campaignresponse"); + this.SetRelatedEntity("activity_campaignresponse", null, value); + this.OnPropertyChanged("activity_campaignresponse"); + } + } + + /// + /// N:1 activity_pointer_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_campaignresponse + { + get + { + return this.GetRelatedEntity("activity_pointer_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignresponse"); + this.SetRelatedEntity("activity_pointer_campaignresponse", null, value); + this.OnPropertyChanged("activity_pointer_campaignresponse"); + } + } + + /// + /// N:1 appointment_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_campaignresponse + { + get + { + return this.GetRelatedEntity("appointment_campaignresponse", null); + } + set + { + this.OnPropertyChanging("appointment_campaignresponse"); + this.SetRelatedEntity("appointment_campaignresponse", null, value); + this.OnPropertyChanged("appointment_campaignresponse"); + } + } + + /// + /// N:1 BulkOperation_CampaignResponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_CampaignResponse")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_CampaignResponse + { + get + { + return this.GetRelatedEntity("BulkOperation_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("BulkOperation_CampaignResponse"); + this.SetRelatedEntity("BulkOperation_CampaignResponse", null, value); + this.OnPropertyChanged("BulkOperation_CampaignResponse"); + } + } + + /// + /// N:1 business_unit_campaignresponse_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignresponse_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_campaignresponse_activities + { + get + { + return this.GetRelatedEntity("business_unit_campaignresponse_activities", null); + } + } + + /// + /// N:1 Campaign_CampaignResponses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignResponses")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_CampaignResponses + { + get + { + return this.GetRelatedEntity("Campaign_CampaignResponses", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignResponses"); + this.SetRelatedEntity("Campaign_CampaignResponses", null, value); + this.OnPropertyChanged("Campaign_CampaignResponses"); + } + } + + /// + /// N:1 email_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Email email_campaignresponse + { + get + { + return this.GetRelatedEntity("email_campaignresponse", null); + } + set + { + this.OnPropertyChanging("email_campaignresponse"); + this.SetRelatedEntity("email_campaignresponse", null, value); + this.OnPropertyChanged("email_campaignresponse"); + } + } + + /// + /// N:1 fax_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Fax fax_campaignresponse + { + get + { + return this.GetRelatedEntity("fax_campaignresponse", null); + } + set + { + this.OnPropertyChanging("fax_campaignresponse"); + this.SetRelatedEntity("fax_campaignresponse", null, value); + this.OnPropertyChanged("fax_campaignresponse"); + } + } + + /// + /// N:1 letter_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Letter letter_campaignresponse + { + get + { + return this.GetRelatedEntity("letter_campaignresponse", null); + } + set + { + this.OnPropertyChanging("letter_campaignresponse"); + this.SetRelatedEntity("letter_campaignresponse", null, value); + this.OnPropertyChanged("letter_campaignresponse"); + } + } + + /// + /// N:1 lk_campaignresponse_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_createdby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_createdby", null); + } + } + + /// + /// N:1 lk_campaignresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_campaignresponse_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_modifiedby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_modifiedby", null); + } + } + + /// + /// N:1 lk_campaignresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_modifiedonbehalfby", null); + } + } + + /// + /// N:1 phonecall_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_campaignresponse + { + get + { + return this.GetRelatedEntity("phonecall_campaignresponse", null); + } + set + { + this.OnPropertyChanging("phonecall_campaignresponse"); + this.SetRelatedEntity("phonecall_campaignresponse", null, value); + this.OnPropertyChanged("phonecall_campaignresponse"); + } + } + + /// + /// N:1 processstage_campaignresponses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignresponses")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_campaignresponses + { + get + { + return this.GetRelatedEntity("processstage_campaignresponses", null); + } + set + { + this.OnPropertyChanging("processstage_campaignresponses"); + this.SetRelatedEntity("processstage_campaignresponses", null, value); + this.OnPropertyChanged("processstage_campaignresponses"); + } + } + + /// + /// N:1 recurringappointmentmaster_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_campaignresponse + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_campaignresponse", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_campaignresponse"); + this.SetRelatedEntity("recurringappointmentmaster_campaignresponse", null, value); + this.OnPropertyChanged("recurringappointmentmaster_campaignresponse"); + } + } + + /// + /// N:1 team_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Team team_campaignresponse + { + get + { + return this.GetRelatedEntity("team_campaignresponse", null); + } + } + + /// + /// N:1 TransactionCurrency_CampaignResponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CampaignResponse")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_CampaignResponse + { + get + { + return this.GetRelatedEntity("TransactionCurrency_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CampaignResponse"); + this.SetRelatedEntity("TransactionCurrency_CampaignResponse", null, value); + this.OnPropertyChanged("TransactionCurrency_CampaignResponse"); + } + } + + /// + /// N:1 user_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_campaignresponse + { + get + { + return this.GetRelatedEntity("user_campaignresponse", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ColumnMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Mapping for columns in a data map. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("columnmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ColumnMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ColumnMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "columnmapping"; + + public const int EntityTypeCode = 4417; + + 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 column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public System.Nullable ColumnMappingId + { + get + { + return this.GetAttributeValue>("columnmappingid"); + } + set + { + this.OnPropertyChanging("ColumnMappingId"); + this.SetAttributeValue("columnmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ColumnMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ColumnMappingId = value; + } + } + + /// + /// Unique identifier of the user who created the column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the column mapping 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 columnmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the associated data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the column mapping 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 columnmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the column mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Name of the source attribute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceattributename")] + public string SourceAttributeName + { + get + { + return this.GetAttributeValue("sourceattributename"); + } + set + { + this.OnPropertyChanging("SourceAttributeName"); + this.SetAttributeValue("sourceattributename", value); + this.OnPropertyChanged("SourceAttributeName"); + } + } + + /// + /// Name of the source entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Status of the column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ColumnMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ColumnMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the column mapping. + /// + [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"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM attribute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetattributename")] + public string TargetAttributeName + { + get + { + return this.GetAttributeValue("targetattributename"); + } + set + { + this.OnPropertyChanging("TargetAttributeName"); + this.SetAttributeValue("targetattributename", value); + this.OnPropertyChanged("TargetAttributeName"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// 1:N LookUpMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_ColumnMapping")] + public System.Collections.Generic.IEnumerable LookUpMapping_ColumnMapping + { + get + { + return this.GetRelatedEntities("LookUpMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_ColumnMapping"); + this.SetRelatedEntities("LookUpMapping_ColumnMapping", null, value); + this.OnPropertyChanged("LookUpMapping_ColumnMapping"); + } + } + + /// + /// 1:N PickListMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PickListMapping_ColumnMapping")] + public System.Collections.Generic.IEnumerable PickListMapping_ColumnMapping + { + get + { + return this.GetRelatedEntities("PickListMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("PickListMapping_ColumnMapping"); + this.SetRelatedEntities("PickListMapping_ColumnMapping", null, value); + this.OnPropertyChanged("PickListMapping_ColumnMapping"); + } + } + + /// + /// 1:N userentityinstancedata_columnmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_columnmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_columnmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_columnmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_columnmapping"); + this.SetRelatedEntities("userentityinstancedata_columnmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_columnmapping"); + } + } + + /// + /// N:1 ColumnMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ColumnMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap ColumnMapping_ImportMap + { + get + { + return this.GetRelatedEntity("ColumnMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ColumnMapping_ImportMap"); + this.SetRelatedEntity("ColumnMapping_ImportMap", null, value); + this.OnPropertyChanged("ColumnMapping_ImportMap"); + } + } + + /// + /// N:1 lk_columnmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_createdby", null); + } + } + + /// + /// N:1 lk_columnmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_columnmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_columnmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_modifiedonbehalfby", null); + } + } + } + + /// + /// Business competing for the sale represented by a lead or opportunity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("competitor")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Competitor : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Competitor() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "competitor"; + + public const int EntityTypeCode = 123; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 of the competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + set + { + this.OnPropertyChanging("CompetitorId"); + this.SetAttributeValue("competitorid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CompetitorId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CompetitorId = value; + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the competitor's primary product, service, or specialty. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keyproduct")] + public string KeyProduct + { + get + { + return this.GetAttributeValue("keyproduct"); + } + set + { + this.OnPropertyChanging("KeyProduct"); + this.SetAttributeValue("keyproduct", value); + this.OnPropertyChanged("KeyProduct"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type the company or business name used to identify the competitor in data views and related records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type notes or other information about the competitive opportunities or selling points you can make. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunities")] + public string Opportunities + { + get + { + return this.GetAttributeValue("opportunities"); + } + set + { + this.OnPropertyChanging("Opportunities"); + this.SetAttributeValue("opportunities", value); + this.OnPropertyChanged("Opportunities"); + } + } + + /// + /// Unique identifier of the associated 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"); + } + } + + /// + /// Type notes or other information about the competitor's business, such as location, revenue, or distribution channel. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overview")] + public string Overview + { + get + { + return this.GetAttributeValue("overview"); + } + set + { + this.OnPropertyChanging("Overview"); + this.SetAttributeValue("overview", value); + this.OnPropertyChanged("Overview"); + } + } + + /// + /// 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 URL for the website used to obtain reference information about the competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("referenceinfourl")] + public string ReferenceInfoUrl + { + get + { + return this.GetAttributeValue("referenceinfourl"); + } + set + { + this.OnPropertyChanging("ReferenceInfoUrl"); + this.SetAttributeValue("referenceinfourl", value); + this.OnPropertyChanged("ReferenceInfoUrl"); + } + } + + /// + /// Type the amount of revenue reported in the competitor's annual report or other source. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportedrevenue")] + public Microsoft.Xrm.Sdk.Money ReportedRevenue + { + get + { + return this.GetAttributeValue("reportedrevenue"); + } + set + { + this.OnPropertyChanging("ReportedRevenue"); + this.SetAttributeValue("reportedrevenue", value); + this.OnPropertyChanged("ReportedRevenue"); + } + } + + /// + /// Shows the Reported Revenue 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("reportedrevenue_base")] + public Microsoft.Xrm.Sdk.Money ReportedRevenue_Base + { + get + { + return this.GetAttributeValue("reportedrevenue_base"); + } + } + + /// + /// Type the quarter number during which the competitor's reported revenue was recorded or announced for use in reporting and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportingquarter")] + public System.Nullable ReportingQuarter + { + get + { + return this.GetAttributeValue>("reportingquarter"); + } + set + { + this.OnPropertyChanging("ReportingQuarter"); + this.SetAttributeValue("reportingquarter", value); + this.OnPropertyChanged("ReportingQuarter"); + } + } + + /// + /// Type the fiscal year during which the competitor's reported revenue was announced for use in reporting and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportingyear")] + public System.Nullable ReportingYear + { + get + { + return this.GetAttributeValue>("reportingyear"); + } + set + { + this.OnPropertyChanging("ReportingYear"); + this.SetAttributeValue("reportingyear", value); + this.OnPropertyChanged("ReportingYear"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the stock exchange at which the competitor 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"); + } + } + + /// + /// Type notes or other information about the competitor's strengths, such as top-selling products and targeted industries or markets. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("strengths")] + public string Strengths + { + get + { + return this.GetAttributeValue("strengths"); + } + set + { + this.OnPropertyChanging("Strengths"); + this.SetAttributeValue("strengths", value); + this.OnPropertyChanged("Strengths"); + } + } + + /// + /// Type notes or other information about the competitor's threats to your organization when you sell to the same prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("threats")] + public string Threats + { + get + { + return this.GetAttributeValue("threats"); + } + set + { + this.OnPropertyChanging("Threats"); + this.SetAttributeValue("threats", value); + this.OnPropertyChanged("Threats"); + } + } + + /// + /// Type the stock exchange symbol for the competitor 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type notes or other information about the competitor's weaknesses or areas in which your organization outperforms the competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("weaknesses")] + public string Weaknesses + { + get + { + return this.GetAttributeValue("weaknesses"); + } + set + { + this.OnPropertyChanging("Weaknesses"); + this.SetAttributeValue("weaknesses", value); + this.OnPropertyChanged("Weaknesses"); + } + } + + /// + /// Type the website URL for the competitor. + /// + [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 percentage of your organization's lost opportunities that are won by the competitor to identify your strongest competitors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("winpercentage")] + public System.Nullable WinPercentage + { + get + { + return this.GetAttributeValue>("winpercentage"); + } + set + { + this.OnPropertyChanging("WinPercentage"); + this.SetAttributeValue("winpercentage", value); + this.OnPropertyChanged("WinPercentage"); + } + } + + /// + /// Type the phonetic spelling of the competitor's 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"); + } + } + + /// + /// 1:N Competitor_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_Annotation")] + public System.Collections.Generic.IEnumerable Competitor_Annotation + { + get + { + return this.GetRelatedEntities("Competitor_Annotation", null); + } + set + { + this.OnPropertyChanging("Competitor_Annotation"); + this.SetRelatedEntities("Competitor_Annotation", null, value); + this.OnPropertyChanged("Competitor_Annotation"); + } + } + + /// + /// 1:N Competitor_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_AsyncOperations")] + public System.Collections.Generic.IEnumerable Competitor_AsyncOperations + { + get + { + return this.GetRelatedEntities("Competitor_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Competitor_AsyncOperations"); + this.SetRelatedEntities("Competitor_AsyncOperations", null, value); + this.OnPropertyChanged("Competitor_AsyncOperations"); + } + } + + /// + /// 1:N Competitor_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Competitor_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Competitor_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Competitor_BulkDeleteFailures"); + this.SetRelatedEntities("Competitor_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Competitor_BulkDeleteFailures"); + } + } + + /// + /// 1:N competitor_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections1")] + public System.Collections.Generic.IEnumerable competitor_connections1 + { + get + { + return this.GetRelatedEntities("competitor_connections1", null); + } + set + { + this.OnPropertyChanging("competitor_connections1"); + this.SetRelatedEntities("competitor_connections1", null, value); + this.OnPropertyChanged("competitor_connections1"); + } + } + + /// + /// 1:N competitor_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections2")] + public System.Collections.Generic.IEnumerable competitor_connections2 + { + get + { + return this.GetRelatedEntities("competitor_connections2", null); + } + set + { + this.OnPropertyChanging("competitor_connections2"); + this.SetRelatedEntities("competitor_connections2", null, value); + this.OnPropertyChanged("competitor_connections2"); + } + } + + /// + /// 1:N Competitor_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Competitor_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Competitor_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Competitor_DuplicateBaseRecord"); + this.SetRelatedEntities("Competitor_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Competitor_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Competitor_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Competitor_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Competitor_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Competitor_DuplicateMatchingRecord"); + this.SetRelatedEntities("Competitor_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Competitor_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N competitor_opportunity_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_opportunity_activities")] + public System.Collections.Generic.IEnumerable competitor_opportunity_activities + { + get + { + return this.GetRelatedEntities("competitor_opportunity_activities", null); + } + set + { + this.OnPropertyChanging("competitor_opportunity_activities"); + this.SetRelatedEntities("competitor_opportunity_activities", null, value); + this.OnPropertyChanged("competitor_opportunity_activities"); + } + } + + /// + /// 1:N competitor_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_PostFollows")] + public System.Collections.Generic.IEnumerable competitor_PostFollows + { + get + { + return this.GetRelatedEntities("competitor_PostFollows", null); + } + set + { + this.OnPropertyChanging("competitor_PostFollows"); + this.SetRelatedEntities("competitor_PostFollows", null, value); + this.OnPropertyChanged("competitor_PostFollows"); + } + } + + /// + /// 1:N competitor_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable competitor_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("competitor_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("competitor_principalobjectattributeaccess"); + this.SetRelatedEntities("competitor_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("competitor_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Competitor_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_ProcessSessions")] + public System.Collections.Generic.IEnumerable Competitor_ProcessSessions + { + get + { + return this.GetRelatedEntities("Competitor_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Competitor_ProcessSessions"); + this.SetRelatedEntities("Competitor_ProcessSessions", null, value); + this.OnPropertyChanged("Competitor_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_competitor + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitor")] + public System.Collections.Generic.IEnumerable userentityinstancedata_competitor + { + get + { + return this.GetRelatedEntities("userentityinstancedata_competitor", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitor"); + this.SetRelatedEntities("userentityinstancedata_competitor", null, value); + this.OnPropertyChanged("userentityinstancedata_competitor"); + } + } + + /// + /// N:N competitorproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorproduct_association")] + public System.Collections.Generic.IEnumerable competitorproduct_association + { + get + { + return this.GetRelatedEntities("competitorproduct_association", null); + } + set + { + this.OnPropertyChanging("competitorproduct_association"); + this.SetRelatedEntities("competitorproduct_association", null, value); + this.OnPropertyChanged("competitorproduct_association"); + } + } + + /// + /// N:N competitorsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorsalesliterature_association")] + public System.Collections.Generic.IEnumerable competitorsalesliterature_association + { + get + { + return this.GetRelatedEntities("competitorsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("competitorsalesliterature_association"); + this.SetRelatedEntities("competitorsalesliterature_association", null, value); + this.OnPropertyChanged("competitorsalesliterature_association"); + } + } + + /// + /// N:N leadcompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadcompetitors_association")] + public System.Collections.Generic.IEnumerable leadcompetitors_association + { + get + { + return this.GetRelatedEntities("leadcompetitors_association", null); + } + set + { + this.OnPropertyChanging("leadcompetitors_association"); + this.SetRelatedEntities("leadcompetitors_association", null, value); + this.OnPropertyChanged("leadcompetitors_association"); + } + } + + /// + /// N:N opportunitycompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunitycompetitors_association")] + public System.Collections.Generic.IEnumerable opportunitycompetitors_association + { + get + { + return this.GetRelatedEntities("opportunitycompetitors_association", null); + } + set + { + this.OnPropertyChanging("opportunitycompetitors_association"); + this.SetRelatedEntities("opportunitycompetitors_association", null, value); + this.OnPropertyChanged("opportunitycompetitors_association"); + } + } + + /// + /// N:1 lk_competitor_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitor_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_competitor_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_competitor_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitor_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_competitor_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_competitorbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitorbase_createdby + { + get + { + return this.GetRelatedEntity("lk_competitorbase_createdby", null); + } + } + + /// + /// N:1 lk_competitorbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitorbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_competitorbase_modifiedby", null); + } + } + + /// + /// N:1 organization_competitors + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_competitors")] + public Xrm.Framework.CI.Common.Entities.Organization organization_competitors + { + get + { + return this.GetRelatedEntity("organization_competitors", null); + } + } + + /// + /// N:1 processstage_competitors + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_competitors")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_competitors + { + get + { + return this.GetRelatedEntity("processstage_competitors", null); + } + set + { + this.OnPropertyChanging("processstage_competitors"); + this.SetRelatedEntity("processstage_competitors", null, value); + this.OnPropertyChanged("processstage_competitors"); + } + } + + /// + /// N:1 transactioncurrency_competitor + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_competitor")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_competitor + { + get + { + return this.GetRelatedEntity("transactioncurrency_competitor", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_competitor"); + this.SetRelatedEntity("transactioncurrency_competitor", null, value); + this.OnPropertyChanged("transactioncurrency_competitor"); + } + } + } + + /// + /// Association between a competitor and a product offered by the competitor. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("competitorproduct")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CompetitorProduct : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CompetitorProduct() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "competitorproduct"; + + public const int EntityTypeCode = 1006; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the competitor product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorproductid")] + public System.Nullable CompetitorProductId + { + get + { + return this.GetAttributeValue>("competitorproductid"); + } + set + { + this.OnPropertyChanging("CompetitorProductId"); + this.SetAttributeValue("competitorproductid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CompetitorProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorproductid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CompetitorProductId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_competitorproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorproduct")] + public System.Collections.Generic.IEnumerable userentityinstancedata_competitorproduct + { + get + { + return this.GetRelatedEntities("userentityinstancedata_competitorproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorproduct"); + this.SetRelatedEntities("userentityinstancedata_competitorproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorproduct"); + } + } + + /// + /// N:N competitorproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorproduct_association")] + public System.Collections.Generic.IEnumerable competitorproduct_association + { + get + { + return this.GetRelatedEntities("competitorproduct_association", null); + } + set + { + this.OnPropertyChanging("competitorproduct_association"); + this.SetRelatedEntities("competitorproduct_association", null, value); + this.OnPropertyChanged("competitorproduct_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("competitorsalesliterature")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CompetitorSalesLiterature : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CompetitorSalesLiterature() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "competitorsalesliterature"; + + public const int EntityTypeCode = 26; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the sales literature for the competitor product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorsalesliteratureid")] + public System.Nullable CompetitorSalesLiteratureId + { + get + { + return this.GetAttributeValue>("competitorsalesliteratureid"); + } + set + { + this.OnPropertyChanging("CompetitorSalesLiteratureId"); + this.SetAttributeValue("competitorsalesliteratureid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CompetitorSalesLiteratureId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorsalesliteratureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CompetitorSalesLiteratureId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public System.Nullable SalesLiteratureId + { + get + { + return this.GetAttributeValue>("salesliteratureid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_competitorsalesliterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorsalesliterature")] + public System.Collections.Generic.IEnumerable userentityinstancedata_competitorsalesliterature + { + get + { + return this.GetRelatedEntities("userentityinstancedata_competitorsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorsalesliterature"); + this.SetRelatedEntities("userentityinstancedata_competitorsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorsalesliterature"); + } + } + + /// + /// N:N competitorsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorsalesliterature_association")] + public System.Collections.Generic.IEnumerable competitorsalesliterature_association + { + get + { + return this.GetRelatedEntities("competitorsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("competitorsalesliterature_association"); + this.SetRelatedEntities("competitorsalesliterature_association", null, value); + this.OnPropertyChanged("competitorsalesliterature_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ConnectionState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Relationship between two entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connection")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Connection : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Connection() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connection"; + + public const int EntityTypeCode = 3234; + + 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 connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionid")] + public System.Nullable ConnectionId + { + get + { + return this.GetAttributeValue>("connectionid"); + } + set + { + this.OnPropertyChanging("ConnectionId"); + this.SetAttributeValue("connectionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionId = value; + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the connection, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Enter the end date of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveend")] + public System.Nullable EffectiveEnd + { + get + { + return this.GetAttributeValue>("effectiveend"); + } + set + { + this.OnPropertyChanging("EffectiveEnd"); + this.SetAttributeValue("effectiveend", value); + this.OnPropertyChanged("EffectiveEnd"); + } + } + + /// + /// Enter the start date of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivestart")] + public System.Nullable EffectiveStart + { + get + { + return this.GetAttributeValue>("effectivestart"); + } + set + { + this.OnPropertyChanging("EffectiveStart"); + this.SetAttributeValue("effectivestart", value); + this.OnPropertyChanged("EffectiveStart"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indicates that this is the master record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismaster")] + public System.Nullable IsMaster + { + get + { + return this.GetAttributeValue>("ismaster"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Name of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the source record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + public Microsoft.Xrm.Sdk.EntityReference Record1Id + { + get + { + return this.GetAttributeValue("record1id"); + } + set + { + this.OnPropertyChanging("Record1Id"); + this.SetAttributeValue("record1id", value); + this.OnPropertyChanged("Record1Id"); + } + } + + /// + /// Shows the record type of the source record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1objecttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Record1ObjectTypeCode + { + get + { + return this.GetAttributeValue("record1objecttypecode"); + } + } + + /// + /// Choose the primary party's role or relationship with the second party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1roleid")] + public Microsoft.Xrm.Sdk.EntityReference Record1RoleId + { + get + { + return this.GetAttributeValue("record1roleid"); + } + set + { + this.OnPropertyChanging("Record1RoleId"); + this.SetAttributeValue("record1roleid", value); + this.OnPropertyChanged("Record1RoleId"); + } + } + + /// + /// Unique identifier of the target record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + public Microsoft.Xrm.Sdk.EntityReference Record2Id + { + get + { + return this.GetAttributeValue("record2id"); + } + set + { + this.OnPropertyChanging("Record2Id"); + this.SetAttributeValue("record2id", value); + this.OnPropertyChanged("Record2Id"); + } + } + + /// + /// Shows the record type of the target record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2objecttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Record2ObjectTypeCode + { + get + { + return this.GetAttributeValue("record2objecttypecode"); + } + } + + /// + /// Choose the secondary party's role or relationship with the primary party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2roleid")] + public Microsoft.Xrm.Sdk.EntityReference Record2RoleId + { + get + { + return this.GetAttributeValue("record2roleid"); + } + set + { + this.OnPropertyChanging("Record2RoleId"); + this.SetAttributeValue("record2roleid", value); + this.OnPropertyChanged("Record2RoleId"); + } + } + + /// + /// Unique identifier for the reciprocal connection record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedconnectionid")] + public Microsoft.Xrm.Sdk.EntityReference RelatedConnectionId + { + get + { + return this.GetAttributeValue("relatedconnectionid"); + } + } + + /// + /// Shows whether the connection is active or inactive. Inactive connections 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 ((Xrm.Framework.CI.Common.Entities.ConnectionState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ConnectionState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the connection. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version number of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Connection_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_AsyncOperations")] + public System.Collections.Generic.IEnumerable Connection_AsyncOperations + { + get + { + return this.GetRelatedEntities("Connection_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_AsyncOperations"); + this.SetRelatedEntities("Connection_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_AsyncOperations"); + } + } + + /// + /// 1:N connection_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable connection_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("connection_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("connection_principalobjectattributeaccess"); + this.SetRelatedEntities("connection_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("connection_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Connection_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_ProcessSessions")] + public System.Collections.Generic.IEnumerable Connection_ProcessSessions + { + get + { + return this.GetRelatedEntities("Connection_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Connection_ProcessSessions"); + this.SetRelatedEntities("Connection_ProcessSessions", null, value); + this.OnPropertyChanged("Connection_ProcessSessions"); + } + } + + /// + /// 1:N connection_related_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedconnection_related_connection + { + get + { + return this.GetRelatedEntities("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedconnection_related_connection"); + this.SetRelatedEntities("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedconnection_related_connection"); + } + } + + /// + /// 1:N userentityinstancedata_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connection")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connection + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connection", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connection"); + this.SetRelatedEntities("userentityinstancedata_connection", null, value); + this.OnPropertyChanged("userentityinstancedata_connection"); + } + } + + /// + /// N:1 account_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections1")] + public Xrm.Framework.CI.Common.Entities.Account account_connections1 + { + get + { + return this.GetRelatedEntity("account_connections1", null); + } + set + { + this.OnPropertyChanging("account_connections1"); + this.SetRelatedEntity("account_connections1", null, value); + this.OnPropertyChanged("account_connections1"); + } + } + + /// + /// N:1 account_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections2")] + public Xrm.Framework.CI.Common.Entities.Account account_connections2 + { + get + { + return this.GetRelatedEntity("account_connections2", null); + } + set + { + this.OnPropertyChanging("account_connections2"); + this.SetRelatedEntity("account_connections2", null, value); + this.OnPropertyChanged("account_connections2"); + } + } + + /// + /// N:1 activitypointer_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections1")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activitypointer_connections1 + { + get + { + return this.GetRelatedEntity("activitypointer_connections1", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections1"); + this.SetRelatedEntity("activitypointer_connections1", null, value); + this.OnPropertyChanged("activitypointer_connections1"); + } + } + + /// + /// N:1 activitypointer_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections2")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activitypointer_connections2 + { + get + { + return this.GetRelatedEntity("activitypointer_connections2", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections2"); + this.SetRelatedEntity("activitypointer_connections2", null, value); + this.OnPropertyChanged("activitypointer_connections2"); + } + } + + /// + /// N:1 appointment_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections1")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_connections1 + { + get + { + return this.GetRelatedEntity("appointment_connections1", null); + } + set + { + this.OnPropertyChanging("appointment_connections1"); + this.SetRelatedEntity("appointment_connections1", null, value); + this.OnPropertyChanged("appointment_connections1"); + } + } + + /// + /// N:1 appointment_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections2")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_connections2 + { + get + { + return this.GetRelatedEntity("appointment_connections2", null); + } + set + { + this.OnPropertyChanging("appointment_connections2"); + this.SetRelatedEntity("appointment_connections2", null, value); + this.OnPropertyChanged("appointment_connections2"); + } + } + + /// + /// N:1 business_unit_connections + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_connections")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_connections + { + get + { + return this.GetRelatedEntity("business_unit_connections", null); + } + } + + /// + /// N:1 campaign_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections1")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_connections1 + { + get + { + return this.GetRelatedEntity("campaign_connections1", null); + } + set + { + this.OnPropertyChanging("campaign_connections1"); + this.SetRelatedEntity("campaign_connections1", null, value); + this.OnPropertyChanged("campaign_connections1"); + } + } + + /// + /// N:1 campaign_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections2")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_connections2 + { + get + { + return this.GetRelatedEntity("campaign_connections2", null); + } + set + { + this.OnPropertyChanging("campaign_connections2"); + this.SetRelatedEntity("campaign_connections2", null, value); + this.OnPropertyChanged("campaign_connections2"); + } + } + + /// + /// N:1 campaignactivity_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections1")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_connections1 + { + get + { + return this.GetRelatedEntity("campaignactivity_connections1", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections1"); + this.SetRelatedEntity("campaignactivity_connections1", null, value); + this.OnPropertyChanged("campaignactivity_connections1"); + } + } + + /// + /// N:1 campaignactivity_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections2")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_connections2 + { + get + { + return this.GetRelatedEntity("campaignactivity_connections2", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections2"); + this.SetRelatedEntity("campaignactivity_connections2", null, value); + this.OnPropertyChanged("campaignactivity_connections2"); + } + } + + /// + /// N:1 competitor_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections1")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_connections1 + { + get + { + return this.GetRelatedEntity("competitor_connections1", null); + } + set + { + this.OnPropertyChanging("competitor_connections1"); + this.SetRelatedEntity("competitor_connections1", null, value); + this.OnPropertyChanged("competitor_connections1"); + } + } + + /// + /// N:1 competitor_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections2")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_connections2 + { + get + { + return this.GetRelatedEntity("competitor_connections2", null); + } + set + { + this.OnPropertyChanging("competitor_connections2"); + this.SetRelatedEntity("competitor_connections2", null, value); + this.OnPropertyChanged("competitor_connections2"); + } + } + + /// + /// N:1 connection_related_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedconnectionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Connection Referencingconnection_related_connection + { + get + { + return this.GetRelatedEntity("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 connection_role_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1roleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections1")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole connection_role_connections1 + { + get + { + return this.GetRelatedEntity("connection_role_connections1", null); + } + set + { + this.OnPropertyChanging("connection_role_connections1"); + this.SetRelatedEntity("connection_role_connections1", null, value); + this.OnPropertyChanged("connection_role_connections1"); + } + } + + /// + /// N:1 connection_role_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2roleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections2")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole connection_role_connections2 + { + get + { + return this.GetRelatedEntity("connection_role_connections2", null); + } + set + { + this.OnPropertyChanging("connection_role_connections2"); + this.SetRelatedEntity("connection_role_connections2", null, value); + this.OnPropertyChanged("connection_role_connections2"); + } + } + + /// + /// N:1 constraintbasedgroup_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections1")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraintbasedgroup_connections1 + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_connections1", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections1"); + this.SetRelatedEntity("constraintbasedgroup_connections1", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections1"); + } + } + + /// + /// N:1 constraintbasedgroup_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections2")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraintbasedgroup_connections2 + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_connections2", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections2"); + this.SetRelatedEntity("constraintbasedgroup_connections2", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections2"); + } + } + + /// + /// N:1 contact_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections1")] + public Xrm.Framework.CI.Common.Entities.Contact contact_connections1 + { + get + { + return this.GetRelatedEntity("contact_connections1", null); + } + set + { + this.OnPropertyChanging("contact_connections1"); + this.SetRelatedEntity("contact_connections1", null, value); + this.OnPropertyChanged("contact_connections1"); + } + } + + /// + /// N:1 contact_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections2")] + public Xrm.Framework.CI.Common.Entities.Contact contact_connections2 + { + get + { + return this.GetRelatedEntity("contact_connections2", null); + } + set + { + this.OnPropertyChanging("contact_connections2"); + this.SetRelatedEntity("contact_connections2", null, value); + this.OnPropertyChanged("contact_connections2"); + } + } + + /// + /// N:1 contract_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections1")] + public Xrm.Framework.CI.Common.Entities.Contract contract_connections1 + { + get + { + return this.GetRelatedEntity("contract_connections1", null); + } + set + { + this.OnPropertyChanging("contract_connections1"); + this.SetRelatedEntity("contract_connections1", null, value); + this.OnPropertyChanged("contract_connections1"); + } + } + + /// + /// N:1 contract_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections2")] + public Xrm.Framework.CI.Common.Entities.Contract contract_connections2 + { + get + { + return this.GetRelatedEntity("contract_connections2", null); + } + set + { + this.OnPropertyChanging("contract_connections2"); + this.SetRelatedEntity("contract_connections2", null, value); + this.OnPropertyChanged("contract_connections2"); + } + } + + /// + /// N:1 createdby_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_connection + { + get + { + return this.GetRelatedEntity("createdby_connection", null); + } + } + + /// + /// N:1 email_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections1")] + public Xrm.Framework.CI.Common.Entities.Email email_connections1 + { + get + { + return this.GetRelatedEntity("email_connections1", null); + } + set + { + this.OnPropertyChanging("email_connections1"); + this.SetRelatedEntity("email_connections1", null, value); + this.OnPropertyChanged("email_connections1"); + } + } + + /// + /// N:1 email_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections2")] + public Xrm.Framework.CI.Common.Entities.Email email_connections2 + { + get + { + return this.GetRelatedEntity("email_connections2", null); + } + set + { + this.OnPropertyChanging("email_connections2"); + this.SetRelatedEntity("email_connections2", null, value); + this.OnPropertyChanged("email_connections2"); + } + } + + /// + /// N:1 equipment_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections1")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_connections1 + { + get + { + return this.GetRelatedEntity("equipment_connections1", null); + } + set + { + this.OnPropertyChanging("equipment_connections1"); + this.SetRelatedEntity("equipment_connections1", null, value); + this.OnPropertyChanged("equipment_connections1"); + } + } + + /// + /// N:1 equipment_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections2")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_connections2 + { + get + { + return this.GetRelatedEntity("equipment_connections2", null); + } + set + { + this.OnPropertyChanging("equipment_connections2"); + this.SetRelatedEntity("equipment_connections2", null, value); + this.OnPropertyChanged("equipment_connections2"); + } + } + + /// + /// N:1 fax_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections1")] + public Xrm.Framework.CI.Common.Entities.Fax fax_connections1 + { + get + { + return this.GetRelatedEntity("fax_connections1", null); + } + set + { + this.OnPropertyChanging("fax_connections1"); + this.SetRelatedEntity("fax_connections1", null, value); + this.OnPropertyChanged("fax_connections1"); + } + } + + /// + /// N:1 fax_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections2")] + public Xrm.Framework.CI.Common.Entities.Fax fax_connections2 + { + get + { + return this.GetRelatedEntity("fax_connections2", null); + } + set + { + this.OnPropertyChanging("fax_connections2"); + this.SetRelatedEntity("fax_connections2", null, value); + this.OnPropertyChanged("fax_connections2"); + } + } + + /// + /// N:1 goal_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections1")] + public Xrm.Framework.CI.Common.Entities.Goal goal_connections1 + { + get + { + return this.GetRelatedEntity("goal_connections1", null); + } + set + { + this.OnPropertyChanging("goal_connections1"); + this.SetRelatedEntity("goal_connections1", null, value); + this.OnPropertyChanged("goal_connections1"); + } + } + + /// + /// N:1 goal_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections2")] + public Xrm.Framework.CI.Common.Entities.Goal goal_connections2 + { + get + { + return this.GetRelatedEntity("goal_connections2", null); + } + set + { + this.OnPropertyChanging("goal_connections2"); + this.SetRelatedEntity("goal_connections2", null, value); + this.OnPropertyChanged("goal_connections2"); + } + } + + /// + /// N:1 incident_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections1")] + public Xrm.Framework.CI.Common.Entities.Incident incident_connections1 + { + get + { + return this.GetRelatedEntity("incident_connections1", null); + } + set + { + this.OnPropertyChanging("incident_connections1"); + this.SetRelatedEntity("incident_connections1", null, value); + this.OnPropertyChanged("incident_connections1"); + } + } + + /// + /// N:1 incident_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections2")] + public Xrm.Framework.CI.Common.Entities.Incident incident_connections2 + { + get + { + return this.GetRelatedEntity("incident_connections2", null); + } + set + { + this.OnPropertyChanging("incident_connections2"); + this.SetRelatedEntity("incident_connections2", null, value); + this.OnPropertyChanged("incident_connections2"); + } + } + + /// + /// N:1 invoice_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections1")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_connections1 + { + get + { + return this.GetRelatedEntity("invoice_connections1", null); + } + set + { + this.OnPropertyChanging("invoice_connections1"); + this.SetRelatedEntity("invoice_connections1", null, value); + this.OnPropertyChanged("invoice_connections1"); + } + } + + /// + /// N:1 invoice_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections2")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_connections2 + { + get + { + return this.GetRelatedEntity("invoice_connections2", null); + } + set + { + this.OnPropertyChanging("invoice_connections2"); + this.SetRelatedEntity("invoice_connections2", null, value); + this.OnPropertyChanged("invoice_connections2"); + } + } + + /// + /// N:1 lead_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections1")] + public Xrm.Framework.CI.Common.Entities.Lead lead_connections1 + { + get + { + return this.GetRelatedEntity("lead_connections1", null); + } + set + { + this.OnPropertyChanging("lead_connections1"); + this.SetRelatedEntity("lead_connections1", null, value); + this.OnPropertyChanged("lead_connections1"); + } + } + + /// + /// N:1 lead_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections2")] + public Xrm.Framework.CI.Common.Entities.Lead lead_connections2 + { + get + { + return this.GetRelatedEntity("lead_connections2", null); + } + set + { + this.OnPropertyChanging("lead_connections2"); + this.SetRelatedEntity("lead_connections2", null, value); + this.OnPropertyChanged("lead_connections2"); + } + } + + /// + /// N:1 letter_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections1")] + public Xrm.Framework.CI.Common.Entities.Letter letter_connections1 + { + get + { + return this.GetRelatedEntity("letter_connections1", null); + } + set + { + this.OnPropertyChanging("letter_connections1"); + this.SetRelatedEntity("letter_connections1", null, value); + this.OnPropertyChanged("letter_connections1"); + } + } + + /// + /// N:1 letter_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections2")] + public Xrm.Framework.CI.Common.Entities.Letter letter_connections2 + { + get + { + return this.GetRelatedEntity("letter_connections2", null); + } + set + { + this.OnPropertyChanging("letter_connections2"); + this.SetRelatedEntity("letter_connections2", null, value); + this.OnPropertyChanged("letter_connections2"); + } + } + + /// + /// N:1 list_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections1")] + public Xrm.Framework.CI.Common.Entities.List list_connections1 + { + get + { + return this.GetRelatedEntity("list_connections1", null); + } + set + { + this.OnPropertyChanging("list_connections1"); + this.SetRelatedEntity("list_connections1", null, value); + this.OnPropertyChanged("list_connections1"); + } + } + + /// + /// N:1 list_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections2")] + public Xrm.Framework.CI.Common.Entities.List list_connections2 + { + get + { + return this.GetRelatedEntity("list_connections2", null); + } + set + { + this.OnPropertyChanging("list_connections2"); + this.SetRelatedEntity("list_connections2", null, value); + this.OnPropertyChanged("list_connections2"); + } + } + + /// + /// N:1 lk_connectionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_connectionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_connection + { + get + { + return this.GetRelatedEntity("modifiedby_connection", null); + } + } + + /// + /// N:1 msdyn_postalbum_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections1")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_connections1 + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_connections1", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections1"); + this.SetRelatedEntity("msdyn_postalbum_connections1", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections1"); + } + } + + /// + /// N:1 msdyn_postalbum_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections2")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_connections2 + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_connections2", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections2"); + this.SetRelatedEntity("msdyn_postalbum_connections2", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections2"); + } + } + + /// + /// N:1 opportunity_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections1")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_connections1 + { + get + { + return this.GetRelatedEntity("opportunity_connections1", null); + } + set + { + this.OnPropertyChanging("opportunity_connections1"); + this.SetRelatedEntity("opportunity_connections1", null, value); + this.OnPropertyChanged("opportunity_connections1"); + } + } + + /// + /// N:1 opportunity_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections2")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_connections2 + { + get + { + return this.GetRelatedEntity("opportunity_connections2", null); + } + set + { + this.OnPropertyChanging("opportunity_connections2"); + this.SetRelatedEntity("opportunity_connections2", null, value); + this.OnPropertyChanged("opportunity_connections2"); + } + } + + /// + /// N:1 phonecall_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections1")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_connections1 + { + get + { + return this.GetRelatedEntity("phonecall_connections1", null); + } + set + { + this.OnPropertyChanging("phonecall_connections1"); + this.SetRelatedEntity("phonecall_connections1", null, value); + this.OnPropertyChanged("phonecall_connections1"); + } + } + + /// + /// N:1 phonecall_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections2")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_connections2 + { + get + { + return this.GetRelatedEntity("phonecall_connections2", null); + } + set + { + this.OnPropertyChanging("phonecall_connections2"); + this.SetRelatedEntity("phonecall_connections2", null, value); + this.OnPropertyChanged("phonecall_connections2"); + } + } + + /// + /// N:1 processsession_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections1")] + public Xrm.Framework.CI.Common.Entities.ProcessSession processsession_connections1 + { + get + { + return this.GetRelatedEntity("processsession_connections1", null); + } + set + { + this.OnPropertyChanging("processsession_connections1"); + this.SetRelatedEntity("processsession_connections1", null, value); + this.OnPropertyChanged("processsession_connections1"); + } + } + + /// + /// N:1 processsession_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections2")] + public Xrm.Framework.CI.Common.Entities.ProcessSession processsession_connections2 + { + get + { + return this.GetRelatedEntity("processsession_connections2", null); + } + set + { + this.OnPropertyChanging("processsession_connections2"); + this.SetRelatedEntity("processsession_connections2", null, value); + this.OnPropertyChanged("processsession_connections2"); + } + } + + /// + /// N:1 quote_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections1")] + public Xrm.Framework.CI.Common.Entities.Quote quote_connections1 + { + get + { + return this.GetRelatedEntity("quote_connections1", null); + } + set + { + this.OnPropertyChanging("quote_connections1"); + this.SetRelatedEntity("quote_connections1", null, value); + this.OnPropertyChanged("quote_connections1"); + } + } + + /// + /// N:1 quote_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections2")] + public Xrm.Framework.CI.Common.Entities.Quote quote_connections2 + { + get + { + return this.GetRelatedEntity("quote_connections2", null); + } + set + { + this.OnPropertyChanging("quote_connections2"); + this.SetRelatedEntity("quote_connections2", null, value); + this.OnPropertyChanged("quote_connections2"); + } + } + + /// + /// N:1 recurringappointmentmaster_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections1")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_connections1 + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_connections1", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections1"); + this.SetRelatedEntity("recurringappointmentmaster_connections1", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections1"); + } + } + + /// + /// N:1 recurringappointmentmaster_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections2")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_connections2 + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_connections2", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections2"); + this.SetRelatedEntity("recurringappointmentmaster_connections2", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections2"); + } + } + + /// + /// N:1 resourcegroup_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections1")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup resourcegroup_connections1 + { + get + { + return this.GetRelatedEntity("resourcegroup_connections1", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections1"); + this.SetRelatedEntity("resourcegroup_connections1", null, value); + this.OnPropertyChanged("resourcegroup_connections1"); + } + } + + /// + /// N:1 resourcegroup_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections2")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup resourcegroup_connections2 + { + get + { + return this.GetRelatedEntity("resourcegroup_connections2", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections2"); + this.SetRelatedEntity("resourcegroup_connections2", null, value); + this.OnPropertyChanged("resourcegroup_connections2"); + } + } + + /// + /// N:1 salesorder_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections1")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_connections1 + { + get + { + return this.GetRelatedEntity("salesorder_connections1", null); + } + set + { + this.OnPropertyChanging("salesorder_connections1"); + this.SetRelatedEntity("salesorder_connections1", null, value); + this.OnPropertyChanged("salesorder_connections1"); + } + } + + /// + /// N:1 salesorder_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections2")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_connections2 + { + get + { + return this.GetRelatedEntity("salesorder_connections2", null); + } + set + { + this.OnPropertyChanging("salesorder_connections2"); + this.SetRelatedEntity("salesorder_connections2", null, value); + this.OnPropertyChanged("salesorder_connections2"); + } + } + + /// + /// N:1 serviceappointment_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections1")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_connections1 + { + get + { + return this.GetRelatedEntity("serviceappointment_connections1", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections1"); + this.SetRelatedEntity("serviceappointment_connections1", null, value); + this.OnPropertyChanged("serviceappointment_connections1"); + } + } + + /// + /// N:1 serviceappointment_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections2")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_connections2 + { + get + { + return this.GetRelatedEntity("serviceappointment_connections2", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections2"); + this.SetRelatedEntity("serviceappointment_connections2", null, value); + this.OnPropertyChanged("serviceappointment_connections2"); + } + } + + /// + /// N:1 systemuser_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections1")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_connections1 + { + get + { + return this.GetRelatedEntity("systemuser_connections1", null); + } + set + { + this.OnPropertyChanging("systemuser_connections1"); + this.SetRelatedEntity("systemuser_connections1", null, value); + this.OnPropertyChanged("systemuser_connections1"); + } + } + + /// + /// N:1 systemuser_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections2")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_connections2 + { + get + { + return this.GetRelatedEntity("systemuser_connections2", null); + } + set + { + this.OnPropertyChanging("systemuser_connections2"); + this.SetRelatedEntity("systemuser_connections2", null, value); + this.OnPropertyChanged("systemuser_connections2"); + } + } + + /// + /// N:1 task_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections1")] + public Xrm.Framework.CI.Common.Entities.Task task_connections1 + { + get + { + return this.GetRelatedEntity("task_connections1", null); + } + set + { + this.OnPropertyChanging("task_connections1"); + this.SetRelatedEntity("task_connections1", null, value); + this.OnPropertyChanged("task_connections1"); + } + } + + /// + /// N:1 task_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections2")] + public Xrm.Framework.CI.Common.Entities.Task task_connections2 + { + get + { + return this.GetRelatedEntity("task_connections2", null); + } + set + { + this.OnPropertyChanging("task_connections2"); + this.SetRelatedEntity("task_connections2", null, value); + this.OnPropertyChanged("task_connections2"); + } + } + + /// + /// N:1 team_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections1")] + public Xrm.Framework.CI.Common.Entities.Team team_connections1 + { + get + { + return this.GetRelatedEntity("team_connections1", null); + } + set + { + this.OnPropertyChanging("team_connections1"); + this.SetRelatedEntity("team_connections1", null, value); + this.OnPropertyChanged("team_connections1"); + } + } + + /// + /// N:1 team_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections2")] + public Xrm.Framework.CI.Common.Entities.Team team_connections2 + { + get + { + return this.GetRelatedEntity("team_connections2", null); + } + set + { + this.OnPropertyChanging("team_connections2"); + this.SetRelatedEntity("team_connections2", null, value); + this.OnPropertyChanged("team_connections2"); + } + } + + /// + /// N:1 TransactionCurrency_Connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Connection")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Connection + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Connection", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Connection"); + this.SetRelatedEntity("TransactionCurrency_Connection", null, value); + this.OnPropertyChanged("TransactionCurrency_Connection"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ConnectionRoleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Role describing a relationship between a two records. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connectionrole")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConnectionRole : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConnectionRole() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connectionrole"; + + public const int EntityTypeCode = 3231; + + 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)); + } + } + + /// + /// Categories for connection roles. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public Microsoft.Xrm.Sdk.OptionSetValue Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// State of the component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public System.Nullable ConnectionRoleId + { + get + { + return this.GetAttributeValue>("connectionroleid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleId"); + this.SetAttributeValue("connectionroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionRoleId = value; + } + } + + /// + /// Unique identifier of the published or unpublished connection role record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleidunique")] + public System.Nullable ConnectionRoleIdUnique + { + get + { + return this.GetAttributeValue>("connectionroleidunique"); + } + } + + /// + /// Unique identifier of the user who created the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the connection role 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 relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the connection role was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization that this connection role belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time when the record was last overwritten. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ConnectionRoleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ConnectionRoleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the connection role. + /// + [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"); + } + } + + /// + /// Version number of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Connection_Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_Role_AsyncOperations")] + public System.Collections.Generic.IEnumerable Connection_Role_AsyncOperations + { + get + { + return this.GetRelatedEntities("Connection_Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_Role_AsyncOperations"); + this.SetRelatedEntities("Connection_Role_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_Role_AsyncOperations"); + } + } + + /// + /// 1:N connection_role_connection_role_object_type_codes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connection_role_object_type_codes")] + public System.Collections.Generic.IEnumerable connection_role_connection_role_object_type_codes + { + get + { + return this.GetRelatedEntities("connection_role_connection_role_object_type_codes", null); + } + set + { + this.OnPropertyChanging("connection_role_connection_role_object_type_codes"); + this.SetRelatedEntities("connection_role_connection_role_object_type_codes", null, value); + this.OnPropertyChanged("connection_role_connection_role_object_type_codes"); + } + } + + /// + /// 1:N connection_role_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections1")] + public System.Collections.Generic.IEnumerable connection_role_connections1 + { + get + { + return this.GetRelatedEntities("connection_role_connections1", null); + } + set + { + this.OnPropertyChanging("connection_role_connections1"); + this.SetRelatedEntities("connection_role_connections1", null, value); + this.OnPropertyChanged("connection_role_connections1"); + } + } + + /// + /// 1:N connection_role_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections2")] + public System.Collections.Generic.IEnumerable connection_role_connections2 + { + get + { + return this.GetRelatedEntities("connection_role_connections2", null); + } + set + { + this.OnPropertyChanging("connection_role_connections2"); + this.SetRelatedEntities("connection_role_connections2", null, value); + this.OnPropertyChanged("connection_role_connections2"); + } + } + + /// + /// 1:N ConnectionRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConnectionRole_ProcessSessions")] + public System.Collections.Generic.IEnumerable ConnectionRole_ProcessSessions + { + get + { + return this.GetRelatedEntities("ConnectionRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConnectionRole_ProcessSessions"); + this.SetRelatedEntities("ConnectionRole_ProcessSessions", null, value); + this.OnPropertyChanged("ConnectionRole_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_connectionrole + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionrole")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connectionrole + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connectionrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionrole"); + this.SetRelatedEntities("userentityinstancedata_connectionrole", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionrole"); + } + } + + /// + /// N:N connectionroleassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingconnectionroleassociation_association + { + get + { + return this.GetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingconnectionroleassociation_association"); + this.SetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingconnectionroleassociation_association"); + } + } + + /// + /// N:N connectionroleassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedconnectionroleassociation_association + { + get + { + return this.GetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedconnectionroleassociation_association"); + this.SetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedconnectionroleassociation_association"); + } + } + + /// + /// N:1 createdby_connection_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_connection_role + { + get + { + return this.GetRelatedEntity("createdby_connection_role", null); + } + } + + /// + /// N:1 lk_connectionrolebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionrolebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionrolebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_connectionrolebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionrolebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionrolebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_connection_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_connection_role + { + get + { + return this.GetRelatedEntity("modifiedby_connection_role", null); + } + } + + /// + /// N:1 organization_connection_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_connection_roles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_connection_roles + { + get + { + return this.GetRelatedEntity("organization_connection_roles", null); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connectionroleassociation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConnectionRoleAssociation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConnectionRoleAssociation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connectionroleassociation"; + + public const int EntityTypeCode = 3232; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedconnectionroleid")] + public System.Nullable AssociatedConnectionRoleId + { + get + { + return this.GetAttributeValue>("associatedconnectionroleid"); + } + set + { + this.OnPropertyChanging("AssociatedConnectionRoleId"); + this.SetAttributeValue("associatedconnectionroleid", value); + this.OnPropertyChanged("AssociatedConnectionRoleId"); + } + } + + /// + /// Unique identifier of the connection role association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleassociationid")] + public System.Nullable ConnectionRoleAssociationId + { + get + { + return this.GetAttributeValue>("connectionroleassociationid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleAssociationId"); + this.SetAttributeValue("connectionroleassociationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionRoleAssociationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleassociationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionRoleAssociationId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public System.Nullable ConnectionRoleId + { + get + { + return this.GetAttributeValue>("connectionroleid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleId"); + this.SetAttributeValue("connectionroleid", value); + this.OnPropertyChanged("ConnectionRoleId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_connectionroleassociation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleassociation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connectionroleassociation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connectionroleassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleassociation"); + this.SetRelatedEntities("userentityinstancedata_connectionroleassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleassociation"); + } + } + + /// + /// N:N connectionroleassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connectionroleassociation_association")] + public System.Collections.Generic.IEnumerable connectionroleassociation_association + { + get + { + return this.GetRelatedEntities("connectionroleassociation_association", null); + } + set + { + this.OnPropertyChanging("connectionroleassociation_association"); + this.SetRelatedEntities("connectionroleassociation_association", null, value); + this.OnPropertyChanged("connectionroleassociation_association"); + } + } + } + + /// + /// Specifies the entity type that can play specific role in a connection. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connectionroleobjecttypecode")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConnectionRoleObjectTypeCode : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConnectionRoleObjectTypeCode() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connectionroleobjecttypecode"; + + public const int EntityTypeCode = 3233; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedobjecttypecode")] + public string AssociatedObjectTypeCode + { + get + { + return this.GetAttributeValue("associatedobjecttypecode"); + } + set + { + this.OnPropertyChanging("AssociatedObjectTypeCode"); + this.SetAttributeValue("associatedobjecttypecode", value); + this.OnPropertyChanged("AssociatedObjectTypeCode"); + } + } + + /// + /// Unique identifier of the connection role associated with the Connection Role Object Type Code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public Microsoft.Xrm.Sdk.EntityReference ConnectionRoleId + { + get + { + return this.GetAttributeValue("connectionroleid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleId"); + this.SetAttributeValue("connectionroleid", value); + this.OnPropertyChanged("ConnectionRoleId"); + } + } + + /// + /// Unique identifier of the connection role object type association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleobjecttypecodeid")] + public System.Nullable ConnectionRoleObjectTypeCodeId + { + get + { + return this.GetAttributeValue>("connectionroleobjecttypecodeid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleObjectTypeCodeId"); + this.SetAttributeValue("connectionroleobjecttypecodeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionRoleObjectTypeCodeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleobjecttypecodeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionRoleObjectTypeCodeId = value; + } + } + + /// + /// Unique identifier of the organization associated with the connectionroleobjecttypecode. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_connectionroleobjecttypecode + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleobjecttypecode")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connectionroleobjecttypecode + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connectionroleobjecttypecode", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleobjecttypecode"); + this.SetRelatedEntities("userentityinstancedata_connectionroleobjecttypecode", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleobjecttypecode"); + } + } + + /// + /// N:1 connection_role_connection_role_object_type_codes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connection_role_object_type_codes")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole connection_role_connection_role_object_type_codes + { + get + { + return this.GetRelatedEntity("connection_role_connection_role_object_type_codes", null); + } + set + { + this.OnPropertyChanging("connection_role_connection_role_object_type_codes"); + this.SetRelatedEntity("connection_role_connection_role_object_type_codes", null, value); + this.OnPropertyChanged("connection_role_connection_role_object_type_codes"); + } + } + } + + /// + /// Group or collection of people, equipment, and/or facilities that can be scheduled. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("constraintbasedgroup")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConstraintBasedGroup : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConstraintBasedGroup() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "constraintbasedgroup"; + + public const int EntityTypeCode = 4007; + + 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 business unit that the record owner belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraintbasedgroupid")] + public System.Nullable ConstraintBasedGroupId + { + get + { + return this.GetAttributeValue>("constraintbasedgroupid"); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroupId"); + this.SetAttributeValue("constraintbasedgroupid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConstraintBasedGroupId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraintbasedgroupid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConstraintBasedGroupId = value; + } + } + + /// + /// Shows the constraints defined for the users, equipment, teams, and other resource groups included as resources for the group, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraints")] + public string Constraints + { + get + { + return this.GetAttributeValue("constraints"); + } + set + { + this.OnPropertyChanging("Constraints"); + this.SetAttributeValue("constraints", value); + this.OnPropertyChanged("Constraints"); + } + } + + /// + /// Unique identifier of the user who created the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the resource group 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 constraintbasedgroup. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Type additional information to describe the resource group, such as the intended use or associated resource types. + /// + [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 whether the resource group is static, dynamic or hidden. Hidden groups are for system use only and are not viewable in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("grouptypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue GroupTypeCode + { + get + { + return this.GetAttributeValue("grouptypecode"); + } + set + { + this.OnPropertyChanging("GroupTypeCode"); + this.SetAttributeValue("grouptypecode", value); + this.OnPropertyChanged("GroupTypeCode"); + } + } + + /// + /// Unique identifier of the user who last modified the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the resource group 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 constraintbasedgroup. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Type a title or name that describes the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N constraint_based_group_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraint_based_group_resource_specs")] + public System.Collections.Generic.IEnumerable constraint_based_group_resource_specs + { + get + { + return this.GetRelatedEntities("constraint_based_group_resource_specs", null); + } + set + { + this.OnPropertyChanging("constraint_based_group_resource_specs"); + this.SetRelatedEntities("constraint_based_group_resource_specs", null, value); + this.OnPropertyChanged("constraint_based_group_resource_specs"); + } + } + + /// + /// 1:N ConstraintBasedGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_AsyncOperations")] + public System.Collections.Generic.IEnumerable ConstraintBasedGroup_AsyncOperations + { + get + { + return this.GetRelatedEntities("ConstraintBasedGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_AsyncOperations"); + this.SetRelatedEntities("ConstraintBasedGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_AsyncOperations"); + } + } + + /// + /// 1:N ConstraintBasedGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ConstraintBasedGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ConstraintBasedGroup_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_BulkDeleteFailures"); + this.SetRelatedEntities("ConstraintBasedGroup_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_BulkDeleteFailures"); + } + } + + /// + /// 1:N constraintbasedgroup_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections1")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_connections1 + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_connections1", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections1"); + this.SetRelatedEntities("constraintbasedgroup_connections1", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections1"); + } + } + + /// + /// 1:N constraintbasedgroup_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections2")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_connections2 + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_connections2", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections2"); + this.SetRelatedEntities("constraintbasedgroup_connections2", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections2"); + } + } + + /// + /// 1:N ConstraintBasedGroup_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_ProcessSessions")] + public System.Collections.Generic.IEnumerable ConstraintBasedGroup_ProcessSessions + { + get + { + return this.GetRelatedEntities("ConstraintBasedGroup_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_ProcessSessions"); + this.SetRelatedEntities("ConstraintBasedGroup_ProcessSessions", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_ProcessSessions"); + } + } + + /// + /// 1:N constraintbasedgroup_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_resource_groups")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_resource_groups + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_resource_groups", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_resource_groups"); + this.SetRelatedEntities("constraintbasedgroup_resource_groups", null, value); + this.OnPropertyChanged("constraintbasedgroup_resource_groups"); + } + } + + /// + /// 1:N userentityinstancedata_constraintbasedgroup + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_constraintbasedgroup")] + public System.Collections.Generic.IEnumerable userentityinstancedata_constraintbasedgroup + { + get + { + return this.GetRelatedEntities("userentityinstancedata_constraintbasedgroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_constraintbasedgroup"); + this.SetRelatedEntities("userentityinstancedata_constraintbasedgroup", null, value); + this.OnPropertyChanged("userentityinstancedata_constraintbasedgroup"); + } + } + + /// + /// N:1 business_unit_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_constraint_based_groups")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_constraint_based_groups + { + get + { + return this.GetRelatedEntity("business_unit_constraint_based_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_constraint_based_groups"); + this.SetRelatedEntity("business_unit_constraint_based_groups", null, value); + this.OnPropertyChanged("business_unit_constraint_based_groups"); + } + } + + /// + /// N:1 constraintbasedgroup_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser constraintbasedgroup_systemuser + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_systemuser", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_systemuser"); + this.SetRelatedEntity("constraintbasedgroup_systemuser", null, value); + this.OnPropertyChanged("constraintbasedgroup_systemuser"); + } + } + + /// + /// N:1 lk_constraintbasedgroup_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_createdby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_createdby", null); + } + } + + /// + /// N:1 lk_constraintbasedgroup_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_constraintbasedgroup_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_modifiedby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_modifiedby", null); + } + } + + /// + /// N:1 lk_constraintbasedgroup_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_constraint_based_groups")] + public Xrm.Framework.CI.Common.Entities.Organization organization_constraint_based_groups + { + get + { + return this.GetRelatedEntity("organization_constraint_based_groups", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Contact : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Contact() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contact"; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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; + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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 CRM. If Do Not Allow is selected, Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 the lead that the contact was created if the contact was created by converting a lead in Microsoft Dynamics CRM. 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 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 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 ((Xrm.Framework.CI.Common.Entities.ContactState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ContactState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N account_primary_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_primary_contact")] + public System.Collections.Generic.IEnumerable account_primary_contact + { + get + { + return this.GetRelatedEntities("account_primary_contact", null); + } + set + { + this.OnPropertyChanging("account_primary_contact"); + this.SetRelatedEntities("account_primary_contact", null, value); + this.OnPropertyChanged("account_primary_contact"); + } + } + + /// + /// 1:N contact_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_activity_parties")] + public System.Collections.Generic.IEnumerable contact_activity_parties + { + get + { + return this.GetRelatedEntities("contact_activity_parties", null); + } + set + { + this.OnPropertyChanging("contact_activity_parties"); + this.SetRelatedEntities("contact_activity_parties", null, value); + this.OnPropertyChanged("contact_activity_parties"); + } + } + + /// + /// 1:N Contact_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ActivityPointers")] + public System.Collections.Generic.IEnumerable Contact_ActivityPointers + { + get + { + return this.GetRelatedEntities("Contact_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contact_ActivityPointers"); + this.SetRelatedEntities("Contact_ActivityPointers", null, value); + this.OnPropertyChanged("Contact_ActivityPointers"); + } + } + + /// + /// 1:N Contact_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Annotation")] + public System.Collections.Generic.IEnumerable Contact_Annotation + { + get + { + return this.GetRelatedEntities("Contact_Annotation", null); + } + set + { + this.OnPropertyChanging("Contact_Annotation"); + this.SetRelatedEntities("Contact_Annotation", null, value); + this.OnPropertyChanged("Contact_Annotation"); + } + } + + /// + /// 1:N Contact_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Appointments")] + public System.Collections.Generic.IEnumerable Contact_Appointments + { + get + { + return this.GetRelatedEntities("Contact_Appointments", null); + } + set + { + this.OnPropertyChanging("Contact_Appointments"); + this.SetRelatedEntities("Contact_Appointments", null, value); + this.OnPropertyChanged("Contact_Appointments"); + } + } + + /// + /// 1:N contact_as_responsible_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_as_responsible_contact")] + public System.Collections.Generic.IEnumerable contact_as_responsible_contact + { + get + { + return this.GetRelatedEntities("contact_as_responsible_contact", null); + } + set + { + this.OnPropertyChanging("contact_as_responsible_contact"); + this.SetRelatedEntities("contact_as_responsible_contact", null, value); + this.OnPropertyChanged("contact_as_responsible_contact"); + } + } + + /// + /// 1:N Contact_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_AsyncOperations")] + public System.Collections.Generic.IEnumerable Contact_AsyncOperations + { + get + { + return this.GetRelatedEntities("Contact_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contact_AsyncOperations"); + this.SetRelatedEntities("Contact_AsyncOperations", null, value); + this.OnPropertyChanged("Contact_AsyncOperations"); + } + } + + /// + /// 1:N Contact_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Contact_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Contact_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Contact_BulkDeleteFailures"); + this.SetRelatedEntities("Contact_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Contact_BulkDeleteFailures"); + } + } + + /// + /// 1:N contact_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections1")] + public System.Collections.Generic.IEnumerable contact_connections1 + { + get + { + return this.GetRelatedEntities("contact_connections1", null); + } + set + { + this.OnPropertyChanging("contact_connections1"); + this.SetRelatedEntities("contact_connections1", null, value); + this.OnPropertyChanged("contact_connections1"); + } + } + + /// + /// 1:N contact_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections2")] + public System.Collections.Generic.IEnumerable contact_connections2 + { + get + { + return this.GetRelatedEntities("contact_connections2", null); + } + set + { + this.OnPropertyChanging("contact_connections2"); + this.SetRelatedEntities("contact_connections2", null, value); + this.OnPropertyChanged("contact_connections2"); + } + } + + /// + /// 1:N contact_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcontact_customer_contacts + { + get + { + return this.GetRelatedEntities("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcontact_customer_contacts"); + this.SetRelatedEntities("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcontact_customer_contacts"); + } + } + + /// + /// 1:N contact_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable contact_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("contact_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("contact_customer_opportunity_roles"); + this.SetRelatedEntities("contact_customer_opportunity_roles", null, value); + this.OnPropertyChanged("contact_customer_opportunity_roles"); + } + } + + /// + /// 1:N contact_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_customer")] + public System.Collections.Generic.IEnumerable contact_customer_relationship_customer + { + get + { + return this.GetRelatedEntities("contact_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_customer"); + this.SetRelatedEntities("contact_customer_relationship_customer", null, value); + this.OnPropertyChanged("contact_customer_relationship_customer"); + } + } + + /// + /// 1:N contact_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_partner")] + public System.Collections.Generic.IEnumerable contact_customer_relationship_partner + { + get + { + return this.GetRelatedEntities("contact_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_partner"); + this.SetRelatedEntities("contact_customer_relationship_partner", null, value); + this.OnPropertyChanged("contact_customer_relationship_partner"); + } + } + + /// + /// 1:N Contact_CustomerAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_CustomerAddress")] + public System.Collections.Generic.IEnumerable Contact_CustomerAddress + { + get + { + return this.GetRelatedEntities("Contact_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Contact_CustomerAddress"); + this.SetRelatedEntities("Contact_CustomerAddress", null, value); + this.OnPropertyChanged("Contact_CustomerAddress"); + } + } + + /// + /// 1:N Contact_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Contact_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Contact_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Contact_DuplicateBaseRecord"); + this.SetRelatedEntities("Contact_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Contact_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Contact_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Contact_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Contact_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Contact_DuplicateMatchingRecord"); + this.SetRelatedEntities("Contact_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Contact_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Contact_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Emails")] + public System.Collections.Generic.IEnumerable Contact_Emails + { + get + { + return this.GetRelatedEntities("Contact_Emails", null); + } + set + { + this.OnPropertyChanging("Contact_Emails"); + this.SetRelatedEntities("Contact_Emails", null, value); + this.OnPropertyChanged("Contact_Emails"); + } + } + + /// + /// 1:N Contact_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Faxes")] + public System.Collections.Generic.IEnumerable Contact_Faxes + { + get + { + return this.GetRelatedEntities("Contact_Faxes", null); + } + set + { + this.OnPropertyChanging("Contact_Faxes"); + this.SetRelatedEntities("Contact_Faxes", null, value); + this.OnPropertyChanged("Contact_Faxes"); + } + } + + /// + /// 1:N Contact_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Letters")] + public System.Collections.Generic.IEnumerable Contact_Letters + { + get + { + return this.GetRelatedEntities("Contact_Letters", null); + } + set + { + this.OnPropertyChanging("Contact_Letters"); + this.SetRelatedEntities("Contact_Letters", null, value); + this.OnPropertyChanged("Contact_Letters"); + } + } + + /// + /// 1:N contact_master_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcontact_master_contact + { + get + { + return this.GetRelatedEntities("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcontact_master_contact"); + this.SetRelatedEntities("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcontact_master_contact"); + } + } + + /// + /// 1:N Contact_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Phonecalls")] + public System.Collections.Generic.IEnumerable Contact_Phonecalls + { + get + { + return this.GetRelatedEntities("Contact_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contact_Phonecalls"); + this.SetRelatedEntities("Contact_Phonecalls", null, value); + this.OnPropertyChanged("Contact_Phonecalls"); + } + } + + /// + /// 1:N contact_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_PostFollows")] + public System.Collections.Generic.IEnumerable contact_PostFollows + { + get + { + return this.GetRelatedEntities("contact_PostFollows", null); + } + set + { + this.OnPropertyChanging("contact_PostFollows"); + this.SetRelatedEntities("contact_PostFollows", null, value); + this.OnPropertyChanged("contact_PostFollows"); + } + } + + /// + /// 1:N contact_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable contact_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("contact_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contact_principalobjectattributeaccess"); + this.SetRelatedEntities("contact_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contact_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Contact_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ProcessSessions")] + public System.Collections.Generic.IEnumerable Contact_ProcessSessions + { + get + { + return this.GetRelatedEntities("Contact_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contact_ProcessSessions"); + this.SetRelatedEntities("Contact_ProcessSessions", null, value); + this.OnPropertyChanged("Contact_ProcessSessions"); + } + } + + /// + /// 1:N Contact_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Contact_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Contact_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contact_RecurringAppointmentMasters"); + this.SetRelatedEntities("Contact_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contact_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Contact_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Contact_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Contact_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contact_ServiceAppointments"); + this.SetRelatedEntities("Contact_ServiceAppointments", null, value); + this.OnPropertyChanged("Contact_ServiceAppointments"); + } + } + + /// + /// 1:N Contact_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Tasks")] + public System.Collections.Generic.IEnumerable Contact_Tasks + { + get + { + return this.GetRelatedEntities("Contact_Tasks", null); + } + set + { + this.OnPropertyChanging("Contact_Tasks"); + this.SetRelatedEntities("Contact_Tasks", null, value); + this.OnPropertyChanged("Contact_Tasks"); + } + } + + /// + /// 1:N contract_billingcustomer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_contacts")] + public System.Collections.Generic.IEnumerable contract_billingcustomer_contacts + { + get + { + return this.GetRelatedEntities("contract_billingcustomer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_contacts"); + this.SetRelatedEntities("contract_billingcustomer_contacts", null, value); + this.OnPropertyChanged("contract_billingcustomer_contacts"); + } + } + + /// + /// 1:N contract_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_contacts")] + public System.Collections.Generic.IEnumerable contract_customer_contacts + { + get + { + return this.GetRelatedEntities("contract_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_customer_contacts"); + this.SetRelatedEntities("contract_customer_contacts", null, value); + this.OnPropertyChanged("contract_customer_contacts"); + } + } + + /// + /// 1:N contractlineitem_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_contacts")] + public System.Collections.Generic.IEnumerable contractlineitem_customer_contacts + { + get + { + return this.GetRelatedEntities("contractlineitem_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_contacts"); + this.SetRelatedEntities("contractlineitem_customer_contacts", null, value); + this.OnPropertyChanged("contractlineitem_customer_contacts"); + } + } + + /// + /// 1:N CreatedContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedContact_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedContact_BulkOperationLogs"); + this.SetRelatedEntities("CreatedContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedContact_BulkOperationLogs"); + } + } + + /// + /// 1:N incident_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_contacts")] + public System.Collections.Generic.IEnumerable incident_customer_contacts + { + get + { + return this.GetRelatedEntities("incident_customer_contacts", null); + } + set + { + this.OnPropertyChanging("incident_customer_contacts"); + this.SetRelatedEntities("incident_customer_contacts", null, value); + this.OnPropertyChanged("incident_customer_contacts"); + } + } + + /// + /// 1:N invoice_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_contacts")] + public System.Collections.Generic.IEnumerable invoice_customer_contacts + { + get + { + return this.GetRelatedEntities("invoice_customer_contacts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_contacts"); + this.SetRelatedEntities("invoice_customer_contacts", null, value); + this.OnPropertyChanged("invoice_customer_contacts"); + } + } + + /// + /// 1:N lead_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_contacts")] + public System.Collections.Generic.IEnumerable lead_customer_contacts + { + get + { + return this.GetRelatedEntities("lead_customer_contacts", null); + } + set + { + this.OnPropertyChanging("lead_customer_contacts"); + this.SetRelatedEntities("lead_customer_contacts", null, value); + this.OnPropertyChanged("lead_customer_contacts"); + } + } + + /// + /// 1:N lead_parent_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_contact")] + public System.Collections.Generic.IEnumerable lead_parent_contact + { + get + { + return this.GetRelatedEntities("lead_parent_contact", null); + } + set + { + this.OnPropertyChanging("lead_parent_contact"); + this.SetRelatedEntities("lead_parent_contact", null, value); + this.OnPropertyChanged("lead_parent_contact"); + } + } + + /// + /// 1:N opportunity_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_contacts")] + public System.Collections.Generic.IEnumerable opportunity_customer_contacts + { + get + { + return this.GetRelatedEntities("opportunity_customer_contacts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_contacts"); + this.SetRelatedEntities("opportunity_customer_contacts", null, value); + this.OnPropertyChanged("opportunity_customer_contacts"); + } + } + + /// + /// 1:N opportunity_parent_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_contact")] + public System.Collections.Generic.IEnumerable opportunity_parent_contact + { + get + { + return this.GetRelatedEntities("opportunity_parent_contact", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_contact"); + this.SetRelatedEntities("opportunity_parent_contact", null, value); + this.OnPropertyChanged("opportunity_parent_contact"); + } + } + + /// + /// 1:N order_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_contacts")] + public System.Collections.Generic.IEnumerable order_customer_contacts + { + get + { + return this.GetRelatedEntities("order_customer_contacts", null); + } + set + { + this.OnPropertyChanging("order_customer_contacts"); + this.SetRelatedEntities("order_customer_contacts", null, value); + this.OnPropertyChanged("order_customer_contacts"); + } + } + + /// + /// 1:N quote_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_contacts")] + public System.Collections.Generic.IEnumerable quote_customer_contacts + { + get + { + return this.GetRelatedEntities("quote_customer_contacts", null); + } + set + { + this.OnPropertyChanging("quote_customer_contacts"); + this.SetRelatedEntities("quote_customer_contacts", null, value); + this.OnPropertyChanged("quote_customer_contacts"); + } + } + + /// + /// 1:N SourceContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceContact_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable SourceContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("SourceContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceContact_BulkOperationLogs"); + this.SetRelatedEntities("SourceContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceContact_BulkOperationLogs"); + } + } + + /// + /// 1:N userentityinstancedata_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contact")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contact + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contact", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contact"); + this.SetRelatedEntities("userentityinstancedata_contact", null, value); + this.OnPropertyChanged("userentityinstancedata_contact"); + } + } + + /// + /// N:N contactinvoices_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactinvoices_association")] + public System.Collections.Generic.IEnumerable contactinvoices_association + { + get + { + return this.GetRelatedEntities("contactinvoices_association", null); + } + set + { + this.OnPropertyChanging("contactinvoices_association"); + this.SetRelatedEntities("contactinvoices_association", null, value); + this.OnPropertyChanged("contactinvoices_association"); + } + } + + /// + /// N:N contactleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactleads_association")] + public System.Collections.Generic.IEnumerable contactleads_association + { + get + { + return this.GetRelatedEntities("contactleads_association", null); + } + set + { + this.OnPropertyChanging("contactleads_association"); + this.SetRelatedEntities("contactleads_association", null, value); + this.OnPropertyChanged("contactleads_association"); + } + } + + /// + /// N:N contactorders_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactorders_association")] + public System.Collections.Generic.IEnumerable contactorders_association + { + get + { + return this.GetRelatedEntities("contactorders_association", null); + } + set + { + this.OnPropertyChanging("contactorders_association"); + this.SetRelatedEntities("contactorders_association", null, value); + this.OnPropertyChanged("contactorders_association"); + } + } + + /// + /// N:N contactquotes_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactquotes_association")] + public System.Collections.Generic.IEnumerable contactquotes_association + { + get + { + return this.GetRelatedEntities("contactquotes_association", null); + } + set + { + this.OnPropertyChanging("contactquotes_association"); + this.SetRelatedEntities("contactquotes_association", null, value); + this.OnPropertyChanged("contactquotes_association"); + } + } + + /// + /// N:N listcontact_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listcontact_association")] + public System.Collections.Generic.IEnumerable listcontact_association + { + get + { + return this.GetRelatedEntities("listcontact_association", null); + } + set + { + this.OnPropertyChanging("listcontact_association"); + this.SetRelatedEntities("listcontact_association", null, value); + this.OnPropertyChanged("listcontact_association"); + } + } + + /// + /// N:N servicecontractcontacts_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("servicecontractcontacts_association")] + public System.Collections.Generic.IEnumerable servicecontractcontacts_association + { + get + { + return this.GetRelatedEntities("servicecontractcontacts_association", null); + } + set + { + this.OnPropertyChanging("servicecontractcontacts_association"); + this.SetRelatedEntities("servicecontractcontacts_association", null, value); + this.OnPropertyChanged("servicecontractcontacts_association"); + } + } + + /// + /// N:1 business_unit_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_contacts")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_contacts + { + get + { + return this.GetRelatedEntity("business_unit_contacts", null); + } + } + + /// + /// N:1 contact_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contact_customer_accounts + { + get + { + return this.GetRelatedEntity("contact_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contact_customer_accounts"); + this.SetRelatedEntity("contact_customer_accounts", null, value); + this.OnPropertyChanged("contact_customer_accounts"); + } + } + + /// + /// N:1 contact_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Contact Referencingcontact_customer_contacts + { + get + { + return this.GetRelatedEntity("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcontact_customer_contacts"); + this.SetRelatedEntity("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcontact_customer_contacts"); + } + } + + /// + /// N:1 contact_master_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Contact Referencingcontact_master_contact + { + get + { + return this.GetRelatedEntity("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 contact_originating_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_originating_lead")] + public Xrm.Framework.CI.Common.Entities.Lead contact_originating_lead + { + get + { + return this.GetRelatedEntity("contact_originating_lead", null); + } + set + { + this.OnPropertyChanging("contact_originating_lead"); + this.SetRelatedEntity("contact_originating_lead", null, value); + this.OnPropertyChanged("contact_originating_lead"); + } + } + + /// + /// N:1 contact_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser contact_owning_user + { + get + { + return this.GetRelatedEntity("contact_owning_user", null); + } + } + + /// + /// N:1 equipment_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredequipmentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_contacts")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_contacts + { + get + { + return this.GetRelatedEntity("equipment_contacts", null); + } + set + { + this.OnPropertyChanging("equipment_contacts"); + this.SetRelatedEntity("equipment_contacts", null, value); + this.OnPropertyChanged("equipment_contacts"); + } + } + + /// + /// N:1 lk_contact_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contact_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contact_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contact_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contact_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contact_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contactbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contactbase_createdby + { + get + { + return this.GetRelatedEntity("lk_contactbase_createdby", null); + } + } + + /// + /// N:1 lk_contactbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contactbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contactbase_modifiedby", null); + } + } + + /// + /// N:1 price_level_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultpricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_contacts")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_contacts + { + get + { + return this.GetRelatedEntity("price_level_contacts", null); + } + set + { + this.OnPropertyChanging("price_level_contacts"); + this.SetRelatedEntity("price_level_contacts", null, value); + this.OnPropertyChanged("price_level_contacts"); + } + } + + /// + /// N:1 processstage_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_contact")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_contact + { + get + { + return this.GetRelatedEntity("processstage_contact", null); + } + set + { + this.OnPropertyChanging("processstage_contact"); + this.SetRelatedEntity("processstage_contact", null, value); + this.OnPropertyChanged("processstage_contact"); + } + } + + /// + /// N:1 service_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredserviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_contacts")] + public Xrm.Framework.CI.Common.Entities.Service service_contacts + { + get + { + return this.GetRelatedEntity("service_contacts", null); + } + set + { + this.OnPropertyChanging("service_contacts"); + this.SetRelatedEntity("service_contacts", null, value); + this.OnPropertyChanged("service_contacts"); + } + } + + /// + /// N:1 system_user_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_contacts")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_contacts + { + get + { + return this.GetRelatedEntity("system_user_contacts", null); + } + set + { + this.OnPropertyChanging("system_user_contacts"); + this.SetRelatedEntity("system_user_contacts", null, value); + this.OnPropertyChanged("system_user_contacts"); + } + } + + /// + /// N:1 team_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_contacts")] + public Xrm.Framework.CI.Common.Entities.Team team_contacts + { + get + { + return this.GetRelatedEntity("team_contacts", null); + } + } + + /// + /// N:1 transactioncurrency_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contact")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_contact + { + get + { + return this.GetRelatedEntity("transactioncurrency_contact", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contact"); + this.SetRelatedEntity("transactioncurrency_contact", null, value); + this.OnPropertyChanged("transactioncurrency_contact"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactinvoices")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactInvoices : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactInvoices() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactinvoices"; + + public const int EntityTypeCode = 17; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the invoices for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactinvoiceid")] + public System.Nullable ContactInvoiceId + { + get + { + return this.GetAttributeValue>("contactinvoiceid"); + } + set + { + this.OnPropertyChanging("ContactInvoiceId"); + this.SetAttributeValue("contactinvoiceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactInvoiceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactinvoiceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactInvoiceId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public System.Nullable InvoiceId + { + get + { + return this.GetAttributeValue>("invoiceid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactinvoices_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactinvoices_association")] + public System.Collections.Generic.IEnumerable contactinvoices_association + { + get + { + return this.GetRelatedEntities("contactinvoices_association", null); + } + set + { + this.OnPropertyChanging("contactinvoices_association"); + this.SetRelatedEntities("contactinvoices_association", null, value); + this.OnPropertyChanged("contactinvoices_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactleads")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactLeads : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactLeads() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactleads"; + + public const int EntityTypeCode = 22; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the leads for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactleadid")] + public System.Nullable ContactLeadId + { + get + { + return this.GetAttributeValue>("contactleadid"); + } + set + { + this.OnPropertyChanging("ContactLeadId"); + this.SetAttributeValue("contactleadid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactLeadId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactleadid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactLeadId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactleads_association")] + public System.Collections.Generic.IEnumerable contactleads_association + { + get + { + return this.GetRelatedEntities("contactleads_association", null); + } + set + { + this.OnPropertyChanging("contactleads_association"); + this.SetRelatedEntities("contactleads_association", null, value); + this.OnPropertyChanged("contactleads_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactorders")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactOrders : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactOrders() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactorders"; + + public const int EntityTypeCode = 19; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the orders for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactorderid")] + public System.Nullable ContactOrderId + { + get + { + return this.GetAttributeValue>("contactorderid"); + } + set + { + this.OnPropertyChanging("ContactOrderId"); + this.SetAttributeValue("contactorderid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactOrderId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactorderid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactOrderId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + public System.Nullable SalesOrderId + { + get + { + return this.GetAttributeValue>("salesorderid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactorders_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactorders_association")] + public System.Collections.Generic.IEnumerable contactorders_association + { + get + { + return this.GetRelatedEntities("contactorders_association", null); + } + set + { + this.OnPropertyChanging("contactorders_association"); + this.SetRelatedEntities("contactorders_association", null, value); + this.OnPropertyChanged("contactorders_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactquotes")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactQuotes : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactQuotes() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactquotes"; + + public const int EntityTypeCode = 18; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the quotes for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactquoteid")] + public System.Nullable ContactQuoteId + { + get + { + return this.GetAttributeValue>("contactquoteid"); + } + set + { + this.OnPropertyChanging("ContactQuoteId"); + this.SetAttributeValue("contactquoteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactQuoteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactquoteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactQuoteId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + public System.Nullable QuoteId + { + get + { + return this.GetAttributeValue>("quoteid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactquotes_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactquotes_association")] + public System.Collections.Generic.IEnumerable contactquotes_association + { + get + { + return this.GetRelatedEntities("contactquotes_association", null); + } + set + { + this.OnPropertyChanging("contactquotes_association"); + this.SetRelatedEntities("contactquotes_association", null, value); + this.OnPropertyChanged("contactquotes_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ContractState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Invoiced = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OnHold = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Expired = 5, + } + + /// + /// Agreement to provide customer service during a specified amount of time or number of cases. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contract")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Contract : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Contract() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contract"; + + public const int EntityTypeCode = 1010; + + 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 contract is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Enter the date when the contract becomes active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeon")] + public System.Nullable ActiveOn + { + get + { + return this.GetAttributeValue>("activeon"); + } + set + { + this.OnPropertyChanging("ActiveOn"); + this.SetAttributeValue("activeon", value); + this.OnPropertyChanged("ActiveOn"); + } + } + + /// + /// Type of allotment that the contract supports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmenttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AllotmentTypeCode + { + get + { + return this.GetAttributeValue("allotmenttypecode"); + } + set + { + this.OnPropertyChanging("AllotmentTypeCode"); + this.SetAttributeValue("allotmenttypecode", value); + this.OnPropertyChanged("AllotmentTypeCode"); + } + } + + /// + /// Unique identifier of the account to which the contract is to be billed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingaccountid")] + public Microsoft.Xrm.Sdk.EntityReference BillingAccountId + { + get + { + return this.GetAttributeValue("billingaccountid"); + } + } + + /// + /// Unique identifier of the contact to whom the contract is to be billed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcontactid")] + public Microsoft.Xrm.Sdk.EntityReference BillingContactId + { + get + { + return this.GetAttributeValue("billingcontactid"); + } + } + + /// + /// Select the customer account or contact to which the contract should be billed to provide a quick link to address and other customer details. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcustomerid")] + public Microsoft.Xrm.Sdk.EntityReference BillingCustomerId + { + get + { + return this.GetAttributeValue("billingcustomerid"); + } + set + { + this.OnPropertyChanging("BillingCustomerId"); + this.SetAttributeValue("billingcustomerid", value); + this.OnPropertyChanged("BillingCustomerId"); + } + } + + /// + /// Enter the end date for the contract's billing period to indicate the period for which the customer must pay for a service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingendon")] + public System.Nullable BillingEndOn + { + get + { + return this.GetAttributeValue>("billingendon"); + } + set + { + this.OnPropertyChanging("BillingEndOn"); + this.SetAttributeValue("billingendon", value); + this.OnPropertyChanged("BillingEndOn"); + } + } + + /// + /// Select the billing schedule of the contract to indicate how often the customer should be invoiced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingfrequencycode")] + public Microsoft.Xrm.Sdk.OptionSetValue BillingFrequencyCode + { + get + { + return this.GetAttributeValue("billingfrequencycode"); + } + set + { + this.OnPropertyChanging("BillingFrequencyCode"); + this.SetAttributeValue("billingfrequencycode", value); + this.OnPropertyChanged("BillingFrequencyCode"); + } + } + + /// + /// Enter the start date for the contract's billing period to indicate the period for which the customer must pay for a service. This defaults to the same date that is selected in the Contract Start Date field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingstarton")] + public System.Nullable BillingStartOn + { + get + { + return this.GetAttributeValue>("billingstarton"); + } + set + { + this.OnPropertyChanging("BillingStartOn"); + this.SetAttributeValue("billingstarton", value); + this.OnPropertyChanged("BillingStartOn"); + } + } + + /// + /// Choose which address to send the invoice to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billtoaddress")] + public Microsoft.Xrm.Sdk.EntityReference BillToAddress + { + get + { + return this.GetAttributeValue("billtoaddress"); + } + set + { + this.OnPropertyChanging("BillToAddress"); + this.SetAttributeValue("billtoaddress", value); + this.OnPropertyChanged("BillToAddress"); + } + } + + /// + /// Shows the date and time when the contract was canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cancelon")] + public System.Nullable CancelOn + { + get + { + return this.GetAttributeValue>("cancelon"); + } + } + + /// + /// Unique identifier of the contact specified for the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Unique identifier of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public System.Nullable ContractId + { + get + { + return this.GetAttributeValue>("contractid"); + } + set + { + this.OnPropertyChanging("ContractId"); + this.SetAttributeValue("contractid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContractId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContractId = value; + } + } + + /// + /// Type additional information about the contract, such as the products or services provided to the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractlanguage")] + public string ContractLanguage + { + get + { + return this.GetAttributeValue("contractlanguage"); + } + set + { + this.OnPropertyChanging("ContractLanguage"); + this.SetAttributeValue("contractlanguage", value); + this.OnPropertyChanged("ContractLanguage"); + } + } + + /// + /// Shows the number for the contract for customer reference and searching capabilities. You cannot modify this number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractnumber")] + public string ContractNumber + { + get + { + return this.GetAttributeValue("contractnumber"); + } + set + { + this.OnPropertyChanging("ContractNumber"); + this.SetAttributeValue("contractnumber", value); + this.OnPropertyChanged("ContractNumber"); + } + } + + /// + /// Select the level of service that should be provided for the contract based on your company's definition of bronze, silver, or gold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractservicelevelcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractServiceLevelCode + { + get + { + return this.GetAttributeValue("contractservicelevelcode"); + } + set + { + this.OnPropertyChanging("ContractServiceLevelCode"); + this.SetAttributeValue("contractservicelevelcode", value); + this.OnPropertyChanged("ContractServiceLevelCode"); + } + } + + /// + /// Shows the abbreviation of the contract template selected when the contract is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateabbreviation")] + public string ContractTemplateAbbreviation + { + get + { + return this.GetAttributeValue("contracttemplateabbreviation"); + } + } + + /// + /// Choose the contract template that should be used to determine the terms of the contract, such as allotment type, available hours, and billing frequency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + public Microsoft.Xrm.Sdk.EntityReference ContractTemplateId + { + get + { + return this.GetAttributeValue("contracttemplateid"); + } + set + { + this.OnPropertyChanging("ContractTemplateId"); + this.SetAttributeValue("contracttemplateid", value); + this.OnPropertyChanged("ContractTemplateId"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders. + /// + [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"); + } + } + + /// + /// Shows for the duration of the contract, in days, based on the contract start and end dates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + } + + /// + /// Days of the week and times during which customer service support is available for the duration of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivitycalendar")] + public string EffectivityCalendar + { + get + { + return this.GetAttributeValue("effectivitycalendar"); + } + set + { + this.OnPropertyChanging("EffectivityCalendar"); + this.SetAttributeValue("effectivitycalendar", value); + this.OnPropertyChanged("EffectivityCalendar"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the date when the contract expires. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the total charge to the customer for the service contract, calculated as the sum of values in the Net field for each existing contract line related to the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("netprice")] + public Microsoft.Xrm.Sdk.Money NetPrice + { + get + { + return this.GetAttributeValue("netprice"); + } + } + + /// + /// Shows the Net Price 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("netprice_base")] + public Microsoft.Xrm.Sdk.Money NetPrice_Base + { + get + { + return this.GetAttributeValue("netprice_base"); + } + } + + /// + /// Choose the original contract that this contract was created from. This information is used to track renewal history. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcontract")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingContract + { + get + { + return this.GetAttributeValue("originatingcontract"); + } + set + { + this.OnPropertyChanging("OriginatingContract"); + this.SetAttributeValue("originatingcontract", value); + this.OnPropertyChanged("OriginatingContract"); + } + } + + /// + /// 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 contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the address for the customer account or contact where the services are provided. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + public Microsoft.Xrm.Sdk.EntityReference ServiceAddress + { + get + { + return this.GetAttributeValue("serviceaddress"); + } + set + { + this.OnPropertyChanging("ServiceAddress"); + this.SetAttributeValue("serviceaddress", value); + this.OnPropertyChanged("ServiceAddress"); + } + } + + /// + /// Shows whether the contract is in draft, invoiced, active, on hold, canceled, or expired. You can edit only the contracts that are in draft status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ContractState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ContractState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the contract'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"); + } + } + + /// + /// Type a title or name for the contract that indicates the purpose of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Shows the total discount applied to the contract's service charges, calculated as the sum of values in the Discount fields for each existing contract line related to the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscount")] + public Microsoft.Xrm.Sdk.Money TotalDiscount + { + get + { + return this.GetAttributeValue("totaldiscount"); + } + } + + /// + /// Shows the Total Discount 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("totaldiscount_base")] + public Microsoft.Xrm.Sdk.Money TotalDiscount_Base + { + get + { + return this.GetAttributeValue("totaldiscount_base"); + } + } + + /// + /// Shows the total service charge for the contract, before any discounts are credited. This is calculated as the sum of values in the Total Price field for each existing contract line related to the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalprice")] + public Microsoft.Xrm.Sdk.Money TotalPrice + { + get + { + return this.GetAttributeValue("totalprice"); + } + } + + /// + /// Shows the Total Price 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("totalprice_base")] + public Microsoft.Xrm.Sdk.Money TotalPrice_Base + { + get + { + return this.GetAttributeValue("totalprice_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"); + } + } + + /// + /// Select whether the discounts entered on contract lines for this contract should be entered as a percentage or a fixed dollar value. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usediscountaspercentage")] + public System.Nullable UseDiscountAsPercentage + { + get + { + return this.GetAttributeValue>("usediscountaspercentage"); + } + set + { + this.OnPropertyChanging("UseDiscountAsPercentage"); + this.SetAttributeValue("usediscountaspercentage", value); + this.OnPropertyChanged("UseDiscountAsPercentage"); + } + } + + /// + /// 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 contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_activity_parties")] + public System.Collections.Generic.IEnumerable contract_activity_parties + { + get + { + return this.GetRelatedEntities("contract_activity_parties", null); + } + set + { + this.OnPropertyChanging("contract_activity_parties"); + this.SetRelatedEntities("contract_activity_parties", null, value); + this.OnPropertyChanged("contract_activity_parties"); + } + } + + /// + /// 1:N Contract_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ActivityPointers")] + public System.Collections.Generic.IEnumerable Contract_ActivityPointers + { + get + { + return this.GetRelatedEntities("Contract_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contract_ActivityPointers"); + this.SetRelatedEntities("Contract_ActivityPointers", null, value); + this.OnPropertyChanged("Contract_ActivityPointers"); + } + } + + /// + /// 1:N Contract_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Annotation")] + public System.Collections.Generic.IEnumerable Contract_Annotation + { + get + { + return this.GetRelatedEntities("Contract_Annotation", null); + } + set + { + this.OnPropertyChanging("Contract_Annotation"); + this.SetRelatedEntities("Contract_Annotation", null, value); + this.OnPropertyChanged("Contract_Annotation"); + } + } + + /// + /// 1:N Contract_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Appointments")] + public System.Collections.Generic.IEnumerable Contract_Appointments + { + get + { + return this.GetRelatedEntities("Contract_Appointments", null); + } + set + { + this.OnPropertyChanging("Contract_Appointments"); + this.SetRelatedEntities("Contract_Appointments", null, value); + this.OnPropertyChanged("Contract_Appointments"); + } + } + + /// + /// 1:N Contract_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_AsyncOperations")] + public System.Collections.Generic.IEnumerable Contract_AsyncOperations + { + get + { + return this.GetRelatedEntities("Contract_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contract_AsyncOperations"); + this.SetRelatedEntities("Contract_AsyncOperations", null, value); + this.OnPropertyChanged("Contract_AsyncOperations"); + } + } + + /// + /// 1:N Contract_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Contract_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Contract_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Contract_BulkDeleteFailures"); + this.SetRelatedEntities("Contract_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Contract_BulkDeleteFailures"); + } + } + + /// + /// 1:N contract_cases + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_cases")] + public System.Collections.Generic.IEnumerable contract_cases + { + get + { + return this.GetRelatedEntities("contract_cases", null); + } + set + { + this.OnPropertyChanging("contract_cases"); + this.SetRelatedEntities("contract_cases", null, value); + this.OnPropertyChanged("contract_cases"); + } + } + + /// + /// 1:N contract_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections1")] + public System.Collections.Generic.IEnumerable contract_connections1 + { + get + { + return this.GetRelatedEntities("contract_connections1", null); + } + set + { + this.OnPropertyChanging("contract_connections1"); + this.SetRelatedEntities("contract_connections1", null, value); + this.OnPropertyChanged("contract_connections1"); + } + } + + /// + /// 1:N contract_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections2")] + public System.Collections.Generic.IEnumerable contract_connections2 + { + get + { + return this.GetRelatedEntities("contract_connections2", null); + } + set + { + this.OnPropertyChanging("contract_connections2"); + this.SetRelatedEntities("contract_connections2", null, value); + this.OnPropertyChanged("contract_connections2"); + } + } + + /// + /// 1:N Contract_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Contract_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Contract_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Contract_DuplicateBaseRecord"); + this.SetRelatedEntities("Contract_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Contract_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Contract_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Contract_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Contract_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Contract_DuplicateMatchingRecord"); + this.SetRelatedEntities("Contract_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Contract_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Contract_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Emails")] + public System.Collections.Generic.IEnumerable Contract_Emails + { + get + { + return this.GetRelatedEntities("Contract_Emails", null); + } + set + { + this.OnPropertyChanging("Contract_Emails"); + this.SetRelatedEntities("Contract_Emails", null, value); + this.OnPropertyChanged("Contract_Emails"); + } + } + + /// + /// 1:N Contract_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Faxes")] + public System.Collections.Generic.IEnumerable Contract_Faxes + { + get + { + return this.GetRelatedEntities("Contract_Faxes", null); + } + set + { + this.OnPropertyChanging("Contract_Faxes"); + this.SetRelatedEntities("Contract_Faxes", null, value); + this.OnPropertyChanged("Contract_Faxes"); + } + } + + /// + /// 1:N Contract_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Letters")] + public System.Collections.Generic.IEnumerable Contract_Letters + { + get + { + return this.GetRelatedEntities("Contract_Letters", null); + } + set + { + this.OnPropertyChanging("Contract_Letters"); + this.SetRelatedEntities("Contract_Letters", null, value); + this.OnPropertyChanged("Contract_Letters"); + } + } + + /// + /// 1:N contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_line_items")] + public System.Collections.Generic.IEnumerable contract_line_items + { + get + { + return this.GetRelatedEntities("contract_line_items", null); + } + set + { + this.OnPropertyChanging("contract_line_items"); + this.SetRelatedEntities("contract_line_items", null, value); + this.OnPropertyChanged("contract_line_items"); + } + } + + /// + /// 1:N contract_originating_contract + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcontract_originating_contract + { + get + { + return this.GetRelatedEntities("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcontract_originating_contract"); + this.SetRelatedEntities("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcontract_originating_contract"); + } + } + + /// + /// 1:N Contract_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Phonecalls")] + public System.Collections.Generic.IEnumerable Contract_Phonecalls + { + get + { + return this.GetRelatedEntities("Contract_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contract_Phonecalls"); + this.SetRelatedEntities("Contract_Phonecalls", null, value); + this.OnPropertyChanged("Contract_Phonecalls"); + } + } + + /// + /// 1:N contract_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable contract_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("contract_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contract_principalobjectattributeaccess"); + this.SetRelatedEntities("contract_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contract_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Contract_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ProcessSessions")] + public System.Collections.Generic.IEnumerable Contract_ProcessSessions + { + get + { + return this.GetRelatedEntities("Contract_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contract_ProcessSessions"); + this.SetRelatedEntities("Contract_ProcessSessions", null, value); + this.OnPropertyChanged("Contract_ProcessSessions"); + } + } + + /// + /// 1:N Contract_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Contract_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Contract_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contract_RecurringAppointmentMasters"); + this.SetRelatedEntities("Contract_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contract_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Contract_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Contract_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Contract_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contract_ServiceAppointments"); + this.SetRelatedEntities("Contract_ServiceAppointments", null, value); + this.OnPropertyChanged("Contract_ServiceAppointments"); + } + } + + /// + /// 1:N Contract_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Tasks")] + public System.Collections.Generic.IEnumerable Contract_Tasks + { + get + { + return this.GetRelatedEntities("Contract_Tasks", null); + } + set + { + this.OnPropertyChanging("Contract_Tasks"); + this.SetRelatedEntities("Contract_Tasks", null, value); + this.OnPropertyChanged("Contract_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_contract + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contract")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contract + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contract", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contract"); + this.SetRelatedEntities("userentityinstancedata_contract", null, value); + this.OnPropertyChanged("userentityinstancedata_contract"); + } + } + + /// + /// N:N servicecontractcontacts_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("servicecontractcontacts_association")] + public System.Collections.Generic.IEnumerable servicecontractcontacts_association + { + get + { + return this.GetRelatedEntities("servicecontractcontacts_association", null); + } + set + { + this.OnPropertyChanging("servicecontractcontacts_association"); + this.SetRelatedEntities("servicecontractcontacts_association", null, value); + this.OnPropertyChanged("servicecontractcontacts_association"); + } + } + + /// + /// N:1 business_unit_service_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_contracts")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_service_contracts + { + get + { + return this.GetRelatedEntity("business_unit_service_contracts", null); + } + } + + /// + /// N:1 contract_billingcustomer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contract_billingcustomer_accounts + { + get + { + return this.GetRelatedEntity("contract_billingcustomer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_accounts"); + this.SetRelatedEntity("contract_billingcustomer_accounts", null, value); + this.OnPropertyChanged("contract_billingcustomer_accounts"); + } + } + + /// + /// N:1 contract_billingcustomer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact contract_billingcustomer_contacts + { + get + { + return this.GetRelatedEntity("contract_billingcustomer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_contacts"); + this.SetRelatedEntity("contract_billingcustomer_contacts", null, value); + this.OnPropertyChanged("contract_billingcustomer_contacts"); + } + } + + /// + /// N:1 contract_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contract_customer_accounts + { + get + { + return this.GetRelatedEntity("contract_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_customer_accounts"); + this.SetRelatedEntity("contract_customer_accounts", null, value); + this.OnPropertyChanged("contract_customer_accounts"); + } + } + + /// + /// N:1 contract_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact contract_customer_contacts + { + get + { + return this.GetRelatedEntity("contract_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_customer_contacts"); + this.SetRelatedEntity("contract_customer_contacts", null, value); + this.OnPropertyChanged("contract_customer_contacts"); + } + } + + /// + /// N:1 contract_originating_contract + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcontract")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Contract Referencingcontract_originating_contract + { + get + { + return this.GetRelatedEntity("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcontract_originating_contract"); + this.SetRelatedEntity("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcontract_originating_contract"); + } + } + + /// + /// N:1 contract_template_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_template_contracts")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate contract_template_contracts + { + get + { + return this.GetRelatedEntity("contract_template_contracts", null); + } + set + { + this.OnPropertyChanging("contract_template_contracts"); + this.SetRelatedEntity("contract_template_contracts", null, value); + this.OnPropertyChanged("contract_template_contracts"); + } + } + + /// + /// N:1 customer_address_contracts_as_billing_address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billtoaddress")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_billing_address")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customer_address_contracts_as_billing_address + { + get + { + return this.GetRelatedEntity("customer_address_contracts_as_billing_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_billing_address"); + this.SetRelatedEntity("customer_address_contracts_as_billing_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_billing_address"); + } + } + + /// + /// N:1 customer_address_contracts_as_service_address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_service_address")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customer_address_contracts_as_service_address + { + get + { + return this.GetRelatedEntity("customer_address_contracts_as_service_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_service_address"); + this.SetRelatedEntity("customer_address_contracts_as_service_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_service_address"); + } + } + + /// + /// N:1 lk_contract_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contract_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contract_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contract_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contract_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contract_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contractbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractbase_createdby + { + get + { + return this.GetRelatedEntity("lk_contractbase_createdby", null); + } + } + + /// + /// N:1 lk_contractbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contractbase_modifiedby", null); + } + } + + /// + /// N:1 system_user_service_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_contracts")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_service_contracts + { + get + { + return this.GetRelatedEntity("system_user_service_contracts", null); + } + } + + /// + /// N:1 team_service_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_contracts")] + public Xrm.Framework.CI.Common.Entities.Team team_service_contracts + { + get + { + return this.GetRelatedEntity("team_service_contracts", null); + } + } + + /// + /// N:1 transactioncurrency_contract + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contract")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_contract + { + get + { + return this.GetRelatedEntity("transactioncurrency_contract", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contract"); + this.SetRelatedEntity("transactioncurrency_contract", null, value); + this.OnPropertyChanged("transactioncurrency_contract"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ContractDetailState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Existing = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Renewed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Expired = 3, + } + + /// + /// Line item in a contract that specifies the type of service a customer is entitled to. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contractdetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContractDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContractDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contractdetail"; + + public const int EntityTypeCode = 1011; + + 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 contract is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Enter the date when the contract line becomes active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeon")] + public System.Nullable ActiveOn + { + get + { + return this.GetAttributeValue>("activeon"); + } + set + { + this.OnPropertyChanging("ActiveOn"); + this.SetAttributeValue("activeon", value); + this.OnPropertyChanged("ActiveOn"); + } + } + + /// + /// Shows the number of minutes over the Total Allotments field that have been spent on resolved cases related to the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmentsoverage")] + public System.Nullable AllotmentsOverage + { + get + { + return this.GetAttributeValue>("allotmentsoverage"); + } + } + + /// + /// Shows the number of cases or minutes remaining, based on the resolved cases logged to the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmentsremaining")] + public System.Nullable AllotmentsRemaining + { + get + { + return this.GetAttributeValue>("allotmentsremaining"); + } + } + + /// + /// Shows the number of cases or minutes used in the resolved cases on the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmentsused")] + public System.Nullable AllotmentsUsed + { + get + { + return this.GetAttributeValue>("allotmentsused"); + } + } + + /// + /// Unique identifier for the contact associated with the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Unique identifier of the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + public System.Nullable ContractDetailId + { + get + { + return this.GetAttributeValue>("contractdetailid"); + } + set + { + this.OnPropertyChanging("ContractDetailId"); + this.SetAttributeValue("contractdetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContractDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContractDetailId = value; + } + } + + /// + /// Unique identifier of the contract associated with the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public Microsoft.Xrm.Sdk.EntityReference ContractId + { + get + { + return this.GetAttributeValue("contractid"); + } + set + { + this.OnPropertyChanging("ContractId"); + this.SetAttributeValue("contractid", value); + this.OnPropertyChanged("ContractId"); + } + } + + /// + /// Status of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractstatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractStateCode + { + get + { + return this.GetAttributeValue("contractstatecode"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders. + /// + [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 the discount amount for the contract line to deduct any negotiated or other savings from the net amount due. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discount")] + public Microsoft.Xrm.Sdk.Money Discount + { + get + { + return this.GetAttributeValue("discount"); + } + set + { + this.OnPropertyChanging("Discount"); + this.SetAttributeValue("discount", value); + this.OnPropertyChanged("Discount"); + } + } + + /// + /// Shows the Discount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discount_base")] + public Microsoft.Xrm.Sdk.Money Discount_Base + { + get + { + return this.GetAttributeValue("discount_base"); + } + } + + /// + /// Type the discount rate that should be applied to the Total Price, for use in calculating the net amount due for the contract line. + /// + [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"); + } + } + + /// + /// Days of the week and times for which the contract line item is effective. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivitycalendar")] + public string EffectivityCalendar + { + get + { + return this.GetAttributeValue("effectivitycalendar"); + } + set + { + this.OnPropertyChanging("EffectivityCalendar"); + this.SetAttributeValue("effectivitycalendar", value); + this.OnPropertyChanged("EffectivityCalendar"); + } + } + + /// + /// 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 when the contract line expires. The date is automatically filled with the contract date, but you can change it if required. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the number of units of the specified product or service that are eligible for support on the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialquantity")] + public System.Nullable InitialQuantity + { + get + { + return this.GetAttributeValue>("initialquantity"); + } + set + { + this.OnPropertyChanging("InitialQuantity"); + this.SetAttributeValue("initialquantity", value); + this.OnPropertyChanged("InitialQuantity"); + } + } + + /// + /// Type the line item number for the contract line to easily identify the contract line and make sure it's listed in the correct order in the parent contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lineitemorder")] + public System.Nullable LineItemOrder + { + get + { + return this.GetAttributeValue>("lineitemorder"); + } + set + { + this.OnPropertyChanging("LineItemOrder"); + this.SetAttributeValue("lineitemorder", value); + this.OnPropertyChanged("LineItemOrder"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the total charge to the customer for the contract line, calculated as the Total Price minus any discounts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("net")] + public Microsoft.Xrm.Sdk.Money Net + { + get + { + return this.GetAttributeValue("net"); + } + } + + /// + /// Shows the Net field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("net_base")] + public Microsoft.Xrm.Sdk.Money Net_Base + { + get + { + return this.GetAttributeValue("net_base"); + } + } + + /// + /// 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 contract detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Type the total service charge for the contract line before any discounts are credited. + /// + [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"); + } + } + + /// + /// Shows the Total Price field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("price_base")] + public Microsoft.Xrm.Sdk.Money Price_Base + { + get + { + return this.GetAttributeValue("price_base"); + } + } + + /// + /// Choose the product that is eligible for services on the contract line. + /// + [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"); + } + } + + /// + /// Type the serial number for the product that is eligible for services on the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productserialnumber")] + public string ProductSerialNumber + { + get + { + return this.GetAttributeValue("productserialnumber"); + } + set + { + this.OnPropertyChanging("ProductSerialNumber"); + this.SetAttributeValue("productserialnumber", value); + this.OnPropertyChanged("ProductSerialNumber"); + } + } + + /// + /// Shows the cost per case or minute, calculated by dividing the Total Price value by the total number of cases or minutes allocated to the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rate")] + public Microsoft.Xrm.Sdk.Money Rate + { + get + { + return this.GetAttributeValue("rate"); + } + } + + /// + /// Shows the Rate field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rate_base")] + public Microsoft.Xrm.Sdk.Money Rate_Base + { + get + { + return this.GetAttributeValue("rate_base"); + } + } + + /// + /// Choose the address for the customer account or contact where the services are provided. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + public Microsoft.Xrm.Sdk.EntityReference ServiceAddress + { + get + { + return this.GetAttributeValue("serviceaddress"); + } + set + { + this.OnPropertyChanging("ServiceAddress"); + this.SetAttributeValue("serviceaddress", value); + this.OnPropertyChanged("ServiceAddress"); + } + } + + /// + /// Select the unit type allotted in the contract line, such as cases or minutes, to determine the level of support. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicecontractunitscode")] + public Microsoft.Xrm.Sdk.OptionSetValue ServiceContractUnitsCode + { + get + { + return this.GetAttributeValue("servicecontractunitscode"); + } + set + { + this.OnPropertyChanging("ServiceContractUnitsCode"); + this.SetAttributeValue("servicecontractunitscode", value); + this.OnPropertyChanged("ServiceContractUnitsCode"); + } + } + + /// + /// Shows whether the contract line is existing, renewed, canceled, or expired. You can't edit a contract line after it is saved, regardless of the status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ContractDetailState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ContractDetailState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the contract line'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"); + } + } + + /// + /// Type a title or name that describes the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Type the total number of minutes or cases allowed for the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalallotments")] + public System.Nullable TotalAllotments + { + get + { + return this.GetAttributeValue>("totalallotments"); + } + set + { + this.OnPropertyChanging("TotalAllotments"); + this.SetAttributeValue("totalallotments", value); + this.OnPropertyChanged("TotalAllotments"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the unit group associated with the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference UoMScheduleId + { + get + { + return this.GetAttributeValue("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + this.OnPropertyChanged("UoMScheduleId"); + } + } + + /// + /// 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 contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_detail_cases + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_cases")] + public System.Collections.Generic.IEnumerable contract_detail_cases + { + get + { + return this.GetRelatedEntities("contract_detail_cases", null); + } + set + { + this.OnPropertyChanging("contract_detail_cases"); + this.SetRelatedEntities("contract_detail_cases", null, value); + this.OnPropertyChanged("contract_detail_cases"); + } + } + + /// + /// 1:N ContractDetail_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_Annotation")] + public System.Collections.Generic.IEnumerable ContractDetail_Annotation + { + get + { + return this.GetRelatedEntities("ContractDetail_Annotation", null); + } + set + { + this.OnPropertyChanging("ContractDetail_Annotation"); + this.SetRelatedEntities("ContractDetail_Annotation", null, value); + this.OnPropertyChanged("ContractDetail_Annotation"); + } + } + + /// + /// 1:N ContractDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable ContractDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("ContractDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractDetail_AsyncOperations"); + this.SetRelatedEntities("ContractDetail_AsyncOperations", null, value); + this.OnPropertyChanged("ContractDetail_AsyncOperations"); + } + } + + /// + /// 1:N ContractDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ContractDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ContractDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ContractDetail_BulkDeleteFailures"); + this.SetRelatedEntities("ContractDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ContractDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N contractdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractdetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable contractdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("contractdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contractdetail_principalobjectattributeaccess"); + this.SetRelatedEntities("contractdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contractdetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N ContractDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable ContractDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("ContractDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractDetail_ProcessSessions"); + this.SetRelatedEntities("ContractDetail_ProcessSessions", null, value); + this.OnPropertyChanged("ContractDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_contractdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contractdetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contractdetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contractdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contractdetail"); + this.SetRelatedEntities("userentityinstancedata_contractdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_contractdetail"); + } + } + + /// + /// N:1 contract_detail_unit_of_measure_schedule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_unit_of_measure_schedule")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule contract_detail_unit_of_measure_schedule + { + get + { + return this.GetRelatedEntity("contract_detail_unit_of_measure_schedule", null); + } + set + { + this.OnPropertyChanging("contract_detail_unit_of_measure_schedule"); + this.SetRelatedEntity("contract_detail_unit_of_measure_schedule", null, value); + this.OnPropertyChanged("contract_detail_unit_of_measure_schedule"); + } + } + + /// + /// N:1 contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_line_items")] + public Xrm.Framework.CI.Common.Entities.Contract contract_line_items + { + get + { + return this.GetRelatedEntity("contract_line_items", null); + } + set + { + this.OnPropertyChanging("contract_line_items"); + this.SetRelatedEntity("contract_line_items", null, value); + this.OnPropertyChanged("contract_line_items"); + } + } + + /// + /// N:1 contractlineitem_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contractlineitem_customer_accounts + { + get + { + return this.GetRelatedEntity("contractlineitem_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_accounts"); + this.SetRelatedEntity("contractlineitem_customer_accounts", null, value); + this.OnPropertyChanged("contractlineitem_customer_accounts"); + } + } + + /// + /// N:1 contractlineitem_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact contractlineitem_customer_contacts + { + get + { + return this.GetRelatedEntity("contractlineitem_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_contacts"); + this.SetRelatedEntity("contractlineitem_customer_contacts", null, value); + this.OnPropertyChanged("contractlineitem_customer_contacts"); + } + } + + /// + /// N:1 customer_address_contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contract_line_items")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customer_address_contract_line_items + { + get + { + return this.GetRelatedEntity("customer_address_contract_line_items", null); + } + set + { + this.OnPropertyChanging("customer_address_contract_line_items"); + this.SetRelatedEntity("customer_address_contract_line_items", null, value); + this.OnPropertyChanged("customer_address_contract_line_items"); + } + } + + /// + /// N:1 lk_contractdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contractdetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contractdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contractdetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contractdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_contractdetailbase_createdby", null); + } + } + + /// + /// N:1 lk_contractdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contractdetailbase_modifiedby", null); + } + } + + /// + /// N:1 product_contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_contract_line_items")] + public Xrm.Framework.CI.Common.Entities.Product product_contract_line_items + { + get + { + return this.GetRelatedEntity("product_contract_line_items", null); + } + set + { + this.OnPropertyChanging("product_contract_line_items"); + this.SetRelatedEntity("product_contract_line_items", null, value); + this.OnPropertyChanged("product_contract_line_items"); + } + } + + /// + /// N:1 transactioncurrency_contractdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contractdetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_contractdetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_contractdetail", null); + } + } + + /// + /// N:1 unit_of_measurement_contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_contract_line_items")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_contract_line_items + { + get + { + return this.GetRelatedEntity("unit_of_measurement_contract_line_items", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_contract_line_items"); + this.SetRelatedEntity("unit_of_measurement_contract_line_items", null, value); + this.OnPropertyChanged("unit_of_measurement_contract_line_items"); + } + } + } + + /// + /// Template for a contract containing the standard attributes of a contract. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contracttemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContractTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContractTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contracttemplate"; + + public const int EntityTypeCode = 2011; + + 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)); + } + } + + /// + /// Abbreviation of the contract template name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("abbreviation")] + public string Abbreviation + { + get + { + return this.GetAttributeValue("abbreviation"); + } + set + { + this.OnPropertyChanging("Abbreviation"); + this.SetAttributeValue("abbreviation", value); + this.OnPropertyChanged("Abbreviation"); + } + } + + /// + /// Criteria for the contracts based on the template, such as number of cases, time, or coverage dates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmenttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AllotmentTypeCode + { + get + { + return this.GetAttributeValue("allotmenttypecode"); + } + set + { + this.OnPropertyChanging("AllotmentTypeCode"); + this.SetAttributeValue("allotmenttypecode", value); + this.OnPropertyChanged("AllotmentTypeCode"); + } + } + + /// + /// How often the customer or account is to be billed in contracts that are based on the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingfrequencycode")] + public Microsoft.Xrm.Sdk.OptionSetValue BillingFrequencyCode + { + get + { + return this.GetAttributeValue("billingfrequencycode"); + } + set + { + this.OnPropertyChanging("BillingFrequencyCode"); + this.SetAttributeValue("billingfrequencycode", value); + this.OnPropertyChanged("BillingFrequencyCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the level of service specified in contracts that are based on the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractservicelevelcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractServiceLevelCode + { + get + { + return this.GetAttributeValue("contractservicelevelcode"); + } + set + { + this.OnPropertyChanging("ContractServiceLevelCode"); + this.SetAttributeValue("contractservicelevelcode", value); + this.OnPropertyChanged("ContractServiceLevelCode"); + } + } + + /// + /// Unique identifier of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + public System.Nullable ContractTemplateId + { + get + { + return this.GetAttributeValue>("contracttemplateid"); + } + set + { + this.OnPropertyChanging("ContractTemplateId"); + this.SetAttributeValue("contracttemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContractTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContractTemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateidunique")] + public System.Nullable ContractTemplateIdUnique + { + get + { + return this.GetAttributeValue>("contracttemplateidunique"); + } + } + + /// + /// Unique identifier of the user who created the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the contract template 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 contracttemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Days of the week and times for which contracts based on the template are effective. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivitycalendar")] + public string EffectivityCalendar + { + get + { + return this.GetAttributeValue("effectivitycalendar"); + } + set + { + this.OnPropertyChanging("EffectivityCalendar"); + this.SetAttributeValue("effectivitycalendar", value); + this.OnPropertyChanged("EffectivityCalendar"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the contract template 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 contracttemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Specifies whether the discount is a percentage or a monetary amount in contracts based on the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usediscountaspercentage")] + public System.Nullable UseDiscountAsPercentage + { + get + { + return this.GetAttributeValue>("usediscountaspercentage"); + } + set + { + this.OnPropertyChanging("UseDiscountAsPercentage"); + this.SetAttributeValue("usediscountaspercentage", value); + this.OnPropertyChanged("UseDiscountAsPercentage"); + } + } + + /// + /// Version number of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_template_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_template_contracts")] + public System.Collections.Generic.IEnumerable contract_template_contracts + { + get + { + return this.GetRelatedEntities("contract_template_contracts", null); + } + set + { + this.OnPropertyChanging("contract_template_contracts"); + this.SetRelatedEntities("contract_template_contracts", null, value); + this.OnPropertyChanged("contract_template_contracts"); + } + } + + /// + /// 1:N ContractTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_AsyncOperations")] + public System.Collections.Generic.IEnumerable ContractTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntities("ContractTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_AsyncOperations"); + this.SetRelatedEntities("ContractTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("ContractTemplate_AsyncOperations"); + } + } + + /// + /// 1:N ContractTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ContractTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ContractTemplate_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_BulkDeleteFailures"); + this.SetRelatedEntities("ContractTemplate_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ContractTemplate_BulkDeleteFailures"); + } + } + + /// + /// 1:N ContractTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_ProcessSessions")] + public System.Collections.Generic.IEnumerable ContractTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntities("ContractTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_ProcessSessions"); + this.SetRelatedEntities("ContractTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("ContractTemplate_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_contracttemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contracttemplate")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contracttemplate + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contracttemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contracttemplate"); + this.SetRelatedEntities("userentityinstancedata_contracttemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_contracttemplate"); + } + } + + /// + /// N:1 lk_contracttemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contracttemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contracttemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contracttemplate_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contracttemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_contracttemplatebase_createdby", null); + } + } + + /// + /// N:1 lk_contracttemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contracttemplatebase_modifiedby", null); + } + } + + /// + /// N:1 organization_contract_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_contract_templates")] + public Xrm.Framework.CI.Common.Entities.Organization organization_contract_templates + { + get + { + return this.GetRelatedEntity("organization_contract_templates", null); + } + } + } + + /// + /// Address and shipping information. Used to store additional addresses for an account or contact. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customeraddress")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CustomerAddress : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CustomerAddress() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "customeraddress"; + + public const int EntityTypeCode = 1071; + + 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 number of the address, to indicate whether the address is the primary, secondary, or other address for the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressnumber")] + public System.Nullable AddressNumber + { + get + { + return this.GetAttributeValue>("addressnumber"); + } + set + { + this.OnPropertyChanging("AddressNumber"); + this.SetAttributeValue("addressnumber", value); + this.OnPropertyChanged("AddressNumber"); + } + } + + /// + /// Select the address type, such as primary or billing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AddressTypeCode + { + get + { + return this.GetAttributeValue("addresstypecode"); + } + set + { + this.OnPropertyChanging("AddressTypeCode"); + this.SetAttributeValue("addresstypecode", value); + this.OnPropertyChanged("AddressTypeCode"); + } + } + + /// + /// Type the city for the customer's address to help identify the location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("city")] + public string City + { + get + { + return this.GetAttributeValue("city"); + } + set + { + this.OnPropertyChanging("City"); + this.SetAttributeValue("city", value); + this.OnPropertyChanged("City"); + } + } + + /// + /// Shows the complete address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("composite")] + public string Composite + { + get + { + return this.GetAttributeValue("composite"); + } + } + + /// + /// Type the country or region for the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("country")] + public string Country + { + get + { + return this.GetAttributeValue("country"); + } + set + { + this.OnPropertyChanging("Country"); + this.SetAttributeValue("country", value); + this.OnPropertyChanged("Country"); + } + } + + /// + /// Type the county for the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("county")] + public string County + { + get + { + return this.GetAttributeValue("county"); + } + set + { + this.OnPropertyChanging("County"); + this.SetAttributeValue("county", value); + this.OnPropertyChanged("County"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Unique identifier of the customer address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeraddressid")] + public System.Nullable CustomerAddressId + { + get + { + return this.GetAttributeValue>("customeraddressid"); + } + set + { + this.OnPropertyChanging("CustomerAddressId"); + this.SetAttributeValue("customeraddressid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CustomerAddressId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeraddressid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CustomerAddressId = 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"); + } + } + + /// + /// Type the fax number associated with the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the latitude value for the customer's address, for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("latitude")] + public System.Nullable Latitude + { + get + { + return this.GetAttributeValue>("latitude"); + } + set + { + this.OnPropertyChanging("Latitude"); + this.SetAttributeValue("latitude", value); + this.OnPropertyChanged("Latitude"); + } + } + + /// + /// Type the first line of the customer's address to help identify the location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line1")] + public string Line1 + { + get + { + return this.GetAttributeValue("line1"); + } + set + { + this.OnPropertyChanging("Line1"); + this.SetAttributeValue("line1", value); + this.OnPropertyChanged("Line1"); + } + } + + /// + /// Type the second line of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line2")] + public string Line2 + { + get + { + return this.GetAttributeValue("line2"); + } + set + { + this.OnPropertyChanging("Line2"); + this.SetAttributeValue("line2", value); + this.OnPropertyChanged("Line2"); + } + } + + /// + /// Type the third line of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line3")] + public string Line3 + { + get + { + return this.GetAttributeValue("line3"); + } + set + { + this.OnPropertyChanging("Line3"); + this.SetAttributeValue("line3", value); + this.OnPropertyChanged("Line3"); + } + } + + /// + /// Type the longitude value for the customer's address, for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longitude")] + public System.Nullable Longitude + { + get + { + return this.GetAttributeValue>("longitude"); + } + set + { + this.OnPropertyChanging("Longitude"); + this.SetAttributeValue("longitude", value); + this.OnPropertyChanged("Longitude"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the customer's address, such as Corporate Headquarters. + /// + [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 type code of the customer record to indicate whether the address belongs to a customer account or contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 user who owns the customer address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + public Microsoft.Xrm.Sdk.EntityReference ParentId + { + get + { + return this.GetAttributeValue("parentid"); + } + set + { + this.OnPropertyChanging("ParentId"); + this.SetAttributeValue("parentid", value); + this.OnPropertyChanged("ParentId"); + } + } + + /// + /// Type the ZIP Code or postal code for the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postalcode")] + public string PostalCode + { + get + { + return this.GetAttributeValue("postalcode"); + } + set + { + this.OnPropertyChanging("PostalCode"); + this.SetAttributeValue("postalcode", value); + this.OnPropertyChanged("PostalCode"); + } + } + + /// + /// Type the post office box number of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postofficebox")] + public string PostOfficeBox + { + get + { + return this.GetAttributeValue("postofficebox"); + } + set + { + this.OnPropertyChanging("PostOfficeBox"); + this.SetAttributeValue("postofficebox", value); + this.OnPropertyChanged("PostOfficeBox"); + } + } + + /// + /// Type the name of the primary contact person for the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactname")] + public string PrimaryContactName + { + get + { + return this.GetAttributeValue("primarycontactname"); + } + set + { + this.OnPropertyChanging("PrimaryContactName"); + this.SetAttributeValue("primarycontactname", value); + this.OnPropertyChanged("PrimaryContactName"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the state or province of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stateorprovince")] + public string StateOrProvince + { + get + { + return this.GetAttributeValue("stateorprovince"); + } + set + { + this.OnPropertyChanging("StateOrProvince"); + this.SetAttributeValue("stateorprovince", value); + this.OnPropertyChanged("StateOrProvince"); + } + } + + /// + /// Type the primary phone number for the customer's address. + /// + [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 the customer's address. + /// + [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 the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the UPS zone of the customer's address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upszone")] + public string UPSZone + { + get + { + return this.GetAttributeValue("upszone"); + } + set + { + this.OnPropertyChanging("UPSZone"); + this.SetAttributeValue("upszone", value); + this.OnPropertyChanged("UPSZone"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the time zone for the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// Version number of the customer address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N customer_address_contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contract_line_items")] + public System.Collections.Generic.IEnumerable customer_address_contract_line_items + { + get + { + return this.GetRelatedEntities("customer_address_contract_line_items", null); + } + set + { + this.OnPropertyChanging("customer_address_contract_line_items"); + this.SetRelatedEntities("customer_address_contract_line_items", null, value); + this.OnPropertyChanged("customer_address_contract_line_items"); + } + } + + /// + /// 1:N customer_address_contracts_as_billing_address + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_billing_address")] + public System.Collections.Generic.IEnumerable customer_address_contracts_as_billing_address + { + get + { + return this.GetRelatedEntities("customer_address_contracts_as_billing_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_billing_address"); + this.SetRelatedEntities("customer_address_contracts_as_billing_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_billing_address"); + } + } + + /// + /// 1:N customer_address_contracts_as_service_address + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_service_address")] + public System.Collections.Generic.IEnumerable customer_address_contracts_as_service_address + { + get + { + return this.GetRelatedEntities("customer_address_contracts_as_service_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_service_address"); + this.SetRelatedEntities("customer_address_contracts_as_service_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_service_address"); + } + } + + /// + /// 1:N CustomerAddress_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_AsyncOperations")] + public System.Collections.Generic.IEnumerable CustomerAddress_AsyncOperations + { + get + { + return this.GetRelatedEntities("CustomerAddress_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_AsyncOperations"); + this.SetRelatedEntities("CustomerAddress_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerAddress_AsyncOperations"); + } + } + + /// + /// 1:N CustomerAddress_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CustomerAddress_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CustomerAddress_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_BulkDeleteFailures"); + this.SetRelatedEntities("CustomerAddress_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CustomerAddress_BulkDeleteFailures"); + } + } + + /// + /// 1:N customeraddress_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customeraddress_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable customeraddress_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("customeraddress_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("customeraddress_principalobjectattributeaccess"); + this.SetRelatedEntities("customeraddress_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("customeraddress_principalobjectattributeaccess"); + } + } + + /// + /// 1:N CustomerAddress_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_ProcessSessions")] + public System.Collections.Generic.IEnumerable CustomerAddress_ProcessSessions + { + get + { + return this.GetRelatedEntities("CustomerAddress_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_ProcessSessions"); + this.SetRelatedEntities("CustomerAddress_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerAddress_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_customeraddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeraddress")] + public System.Collections.Generic.IEnumerable userentityinstancedata_customeraddress + { + get + { + return this.GetRelatedEntities("userentityinstancedata_customeraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeraddress"); + this.SetRelatedEntities("userentityinstancedata_customeraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_customeraddress"); + } + } + + /// + /// N:1 Account_CustomerAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_CustomerAddress")] + public Xrm.Framework.CI.Common.Entities.Account Account_CustomerAddress + { + get + { + return this.GetRelatedEntity("Account_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Account_CustomerAddress"); + this.SetRelatedEntity("Account_CustomerAddress", null, value); + this.OnPropertyChanged("Account_CustomerAddress"); + } + } + + /// + /// N:1 Contact_CustomerAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_CustomerAddress")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_CustomerAddress + { + get + { + return this.GetRelatedEntity("Contact_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Contact_CustomerAddress"); + this.SetRelatedEntity("Contact_CustomerAddress", null, value); + this.OnPropertyChanged("Contact_CustomerAddress"); + } + } + + /// + /// N:1 lk_customeraddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddress_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeraddress_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_customeraddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeraddress_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_customeraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddressbase_createdby + { + get + { + return this.GetRelatedEntity("lk_customeraddressbase_createdby", null); + } + } + + /// + /// N:1 lk_customeraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddressbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_customeraddressbase_modifiedby", null); + } + } + + /// + /// N:1 TransactionCurrency_CustomerAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CustomerAddress")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_CustomerAddress + { + get + { + return this.GetRelatedEntity("TransactionCurrency_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CustomerAddress"); + this.SetRelatedEntity("TransactionCurrency_CustomerAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_CustomerAddress"); + } + } + } + + /// + /// Relationship between an account or contact and an opportunity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customeropportunityrole")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CustomerOpportunityRole : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CustomerOpportunityRole() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "customeropportunityrole"; + + public const int EntityTypeCode = 4503; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the account or contact associated to the opportunity, such as a strategic partner, third-party vendor, or key decision maker. + /// + [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"); + } + } + + /// + /// Unique identifier of the opportunity relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeropportunityroleid")] + public System.Nullable CustomerOpportunityRoleId + { + get + { + return this.GetAttributeValue>("customeropportunityroleid"); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRoleId"); + this.SetAttributeValue("customeropportunityroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CustomerOpportunityRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeropportunityroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CustomerOpportunityRoleId = value; + } + } + + /// + /// Type additional information to describe the opportunity relationship, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Choose the opportunity that the specified account or contact is related to. The opportunity relationship will be displayed in the Relationships view on the selected opportunity. + /// + [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"); + } + } + + /// + /// Choose the role or nature of the relationship that the customer has with the opportunity. The field is read-only until a customer has been selected. Administrators can configure role values under Business Management in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityroleid")] + public Microsoft.Xrm.Sdk.EntityReference OpportunityRoleId + { + get + { + return this.GetAttributeValue("opportunityroleid"); + } + set + { + this.OnPropertyChanging("OpportunityRoleId"); + this.SetAttributeValue("opportunityroleid", value); + this.OnPropertyChanged("OpportunityRoleId"); + } + } + + /// + /// Status of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitystatecode")] + public System.Nullable OpportunityStateCode + { + get + { + return this.GetAttributeValue>("opportunitystatecode"); + } + } + + /// + /// Reason for the status of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitystatuscode")] + public System.Nullable OpportunityStatusCode + { + get + { + return this.GetAttributeValue>("opportunitystatuscode"); + } + } + + /// + /// 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 customer opportunity role. + /// + [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 customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Version number of the customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N CustomerOpportunityRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_AsyncOperations")] + public System.Collections.Generic.IEnumerable CustomerOpportunityRole_AsyncOperations + { + get + { + return this.GetRelatedEntities("CustomerOpportunityRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_AsyncOperations"); + this.SetRelatedEntities("CustomerOpportunityRole_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_AsyncOperations"); + } + } + + /// + /// 1:N CustomerOpportunityRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CustomerOpportunityRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CustomerOpportunityRole_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_BulkDeleteFailures"); + this.SetRelatedEntities("CustomerOpportunityRole_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_BulkDeleteFailures"); + } + } + + /// + /// 1:N CustomerOpportunityRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_ProcessSessions")] + public System.Collections.Generic.IEnumerable CustomerOpportunityRole_ProcessSessions + { + get + { + return this.GetRelatedEntities("CustomerOpportunityRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_ProcessSessions"); + this.SetRelatedEntities("CustomerOpportunityRole_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_customeropportunityrole + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeropportunityrole")] + public System.Collections.Generic.IEnumerable userentityinstancedata_customeropportunityrole + { + get + { + return this.GetRelatedEntities("userentityinstancedata_customeropportunityrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeropportunityrole"); + this.SetRelatedEntities("userentityinstancedata_customeropportunityrole", null, value); + this.OnPropertyChanged("userentityinstancedata_customeropportunityrole"); + } + } + + /// + /// N:1 account_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Account account_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("account_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("account_customer_opportunity_roles"); + this.SetRelatedEntity("account_customer_opportunity_roles", null, value); + this.OnPropertyChanged("account_customer_opportunity_roles"); + } + } + + /// + /// N:1 business_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("business_customer_opportunity_roles", null); + } + } + + /// + /// N:1 contact_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Contact contact_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("contact_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("contact_customer_opportunity_roles"); + this.SetRelatedEntity("contact_customer_opportunity_roles", null, value); + this.OnPropertyChanged("contact_customer_opportunity_roles"); + } + } + + /// + /// N:1 lk_customeropportunityrole_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_createdby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_createdby", null); + } + } + + /// + /// N:1 lk_customeropportunityrole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_customeropportunityrole_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_modifiedby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_modifiedby", null); + } + } + + /// + /// N:1 lk_customeropportunityrole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_modifiedonbehalfby", null); + } + } + + /// + /// N:1 opportunity_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("opportunity_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_opportunity_roles"); + this.SetRelatedEntity("opportunity_customer_opportunity_roles", null, value); + this.OnPropertyChanged("opportunity_customer_opportunity_roles"); + } + } + + /// + /// N:1 relationship_role_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("relationship_role_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_opportunity_roles"); + this.SetRelatedEntity("relationship_role_customer_opportunity_roles", null, value); + this.OnPropertyChanged("relationship_role_customer_opportunity_roles"); + } + } + + /// + /// N:1 team_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Team team_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("team_customer_opportunity_roles", null); + } + } + + /// + /// N:1 user_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("user_customer_opportunity_roles", null); + } + } + } + + /// + /// Relationship between a customer and a partner in which either can be an account or contact. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customerrelationship")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CustomerRelationship : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CustomerRelationship() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "customerrelationship"; + + public const int EntityTypeCode = 4502; + + 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 converse relationship of the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("converserelationshipid")] + public Microsoft.Xrm.Sdk.EntityReference ConverseRelationshipId + { + get + { + return this.GetAttributeValue("converserelationshipid"); + } + set + { + this.OnPropertyChanging("ConverseRelationshipId"); + this.SetAttributeValue("converserelationshipid", value); + this.OnPropertyChanged("ConverseRelationshipId"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the customer relationship was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the primary account or contact involved in the customer relationship. + /// + [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"); + } + } + + /// + /// Unique identifier of the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerrelationshipid")] + public System.Nullable CustomerRelationshipId + { + get + { + return this.GetAttributeValue>("customerrelationshipid"); + } + set + { + this.OnPropertyChanging("CustomerRelationshipId"); + this.SetAttributeValue("customerrelationshipid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CustomerRelationshipId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerrelationshipid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CustomerRelationshipId = value; + } + } + + /// + /// Type additional information about the primary party's role in the customer relationship, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerroledescription")] + public string CustomerRoleDescription + { + get + { + return this.GetAttributeValue("customerroledescription"); + } + set + { + this.OnPropertyChanging("CustomerRoleDescription"); + this.SetAttributeValue("customerroledescription", value); + this.OnPropertyChanged("CustomerRoleDescription"); + } + } + + /// + /// Choose the primary party's role or nature of the relationship the customer has with the second party. The field is read-only until both parties have been selected. Administrators can configure role values under Business Management in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerroleid")] + public Microsoft.Xrm.Sdk.EntityReference CustomerRoleId + { + get + { + return this.GetAttributeValue("customerroleid"); + } + set + { + this.OnPropertyChanging("CustomerRoleId"); + this.SetAttributeValue("customerroleid", value); + this.OnPropertyChanged("CustomerRoleId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the secondary account or contact involved in the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerid")] + public Microsoft.Xrm.Sdk.EntityReference PartnerId + { + get + { + return this.GetAttributeValue("partnerid"); + } + set + { + this.OnPropertyChanging("PartnerId"); + this.SetAttributeValue("partnerid", value); + this.OnPropertyChanged("PartnerId"); + } + } + + /// + /// Type additional information about the secondary party's role in the customer relationship, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerroledescription")] + public string PartnerRoleDescription + { + get + { + return this.GetAttributeValue("partnerroledescription"); + } + set + { + this.OnPropertyChanging("PartnerRoleDescription"); + this.SetAttributeValue("partnerroledescription", value); + this.OnPropertyChanged("PartnerRoleDescription"); + } + } + + /// + /// Choose the secondary party's role or nature of the relationship the customer has with the primary party. The field is read-only until both parties have been selected. Administrators can configure role values under Business Management in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerroleid")] + public Microsoft.Xrm.Sdk.EntityReference PartnerRoleId + { + get + { + return this.GetAttributeValue("partnerroleid"); + } + set + { + this.OnPropertyChanging("PartnerRoleId"); + this.SetAttributeValue("partnerroleid", value); + this.OnPropertyChanged("PartnerRoleId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N customer_relationship_converse_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcustomer_relationship_converse_relationship + { + get + { + return this.GetRelatedEntities("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcustomer_relationship_converse_relationship"); + this.SetRelatedEntities("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcustomer_relationship_converse_relationship"); + } + } + + /// + /// 1:N CustomerRelationship_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_AsyncOperations")] + public System.Collections.Generic.IEnumerable CustomerRelationship_AsyncOperations + { + get + { + return this.GetRelatedEntities("CustomerRelationship_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_AsyncOperations"); + this.SetRelatedEntities("CustomerRelationship_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerRelationship_AsyncOperations"); + } + } + + /// + /// 1:N CustomerRelationship_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CustomerRelationship_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CustomerRelationship_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_BulkDeleteFailures"); + this.SetRelatedEntities("CustomerRelationship_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CustomerRelationship_BulkDeleteFailures"); + } + } + + /// + /// 1:N CustomerRelationship_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_ProcessSessions")] + public System.Collections.Generic.IEnumerable CustomerRelationship_ProcessSessions + { + get + { + return this.GetRelatedEntities("CustomerRelationship_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_ProcessSessions"); + this.SetRelatedEntities("CustomerRelationship_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerRelationship_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_customerrelationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customerrelationship")] + public System.Collections.Generic.IEnumerable userentityinstancedata_customerrelationship + { + get + { + return this.GetRelatedEntities("userentityinstancedata_customerrelationship", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customerrelationship"); + this.SetRelatedEntities("userentityinstancedata_customerrelationship", null, value); + this.OnPropertyChanged("userentityinstancedata_customerrelationship"); + } + } + + /// + /// N:1 account_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_customer")] + public Xrm.Framework.CI.Common.Entities.Account account_customer_relationship_customer + { + get + { + return this.GetRelatedEntity("account_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_customer"); + this.SetRelatedEntity("account_customer_relationship_customer", null, value); + this.OnPropertyChanged("account_customer_relationship_customer"); + } + } + + /// + /// N:1 account_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_partner")] + public Xrm.Framework.CI.Common.Entities.Account account_customer_relationship_partner + { + get + { + return this.GetRelatedEntity("account_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_partner"); + this.SetRelatedEntity("account_customer_relationship_partner", null, value); + this.OnPropertyChanged("account_customer_relationship_partner"); + } + } + + /// + /// N:1 business_unit_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_customer_relationship + { + get + { + return this.GetRelatedEntity("business_unit_customer_relationship", null); + } + } + + /// + /// N:1 contact_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_customer")] + public Xrm.Framework.CI.Common.Entities.Contact contact_customer_relationship_customer + { + get + { + return this.GetRelatedEntity("contact_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_customer"); + this.SetRelatedEntity("contact_customer_relationship_customer", null, value); + this.OnPropertyChanged("contact_customer_relationship_customer"); + } + } + + /// + /// N:1 contact_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_partner")] + public Xrm.Framework.CI.Common.Entities.Contact contact_customer_relationship_partner + { + get + { + return this.GetRelatedEntity("contact_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_partner"); + this.SetRelatedEntity("contact_customer_relationship_partner", null, value); + this.OnPropertyChanged("contact_customer_relationship_partner"); + } + } + + /// + /// N:1 createdby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_customer_relationship + { + get + { + return this.GetRelatedEntity("createdby_customer_relationship", null); + } + } + + /// + /// N:1 createdonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntity("createdonbehalfby_customer_relationship", null); + } + } + + /// + /// N:1 customer_relationship_converse_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("converserelationshipid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship Referencingcustomer_relationship_converse_relationship + { + get + { + return this.GetRelatedEntity("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcustomer_relationship_converse_relationship"); + this.SetRelatedEntity("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcustomer_relationship_converse_relationship"); + } + } + + /// + /// N:1 modifiedby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_customer_relationship + { + get + { + return this.GetRelatedEntity("modifiedby_customer_relationship", null); + } + } + + /// + /// N:1 modifiedonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntity("modifiedonbehalfby_customer_relationship", null); + } + } + + /// + /// N:1 relationship_role_customer_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_role")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_customer_role + { + get + { + return this.GetRelatedEntity("relationship_role_customer_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_role"); + this.SetRelatedEntity("relationship_role_customer_role", null, value); + this.OnPropertyChanged("relationship_role_customer_role"); + } + } + + /// + /// N:1 relationship_role_partner_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_partner_role")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_partner_role + { + get + { + return this.GetRelatedEntity("relationship_role_partner_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_partner_role"); + this.SetRelatedEntity("relationship_role_partner_role", null, value); + this.OnPropertyChanged("relationship_role_partner_role"); + } + } + + /// + /// N:1 team_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.Team team_customer_relationship + { + get + { + return this.GetRelatedEntity("team_customer_relationship", null); + } + } + + /// + /// N:1 user_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_customer_relationship + { + get + { + return this.GetRelatedEntity("user_customer_relationship", null); + } + } + } + + /// + /// A component dependency in CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dependency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Dependency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Dependency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "dependency"; + + public const int EntityTypeCode = 7105; + + 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 a dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyid")] + public System.Nullable DependencyId + { + get + { + return this.GetAttributeValue>("dependencyid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// The dependency type of the dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytype")] + public Microsoft.Xrm.Sdk.OptionSetValue DependencyType + { + get + { + return this.GetAttributeValue("dependencytype"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentbasesolutionid")] + public System.Nullable DependentComponentBaseSolutionId + { + get + { + return this.GetAttributeValue>("dependentcomponentbasesolutionid"); + } + } + + /// + /// Unique identifier of the dependent component's node. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentnodeid")] + public Microsoft.Xrm.Sdk.EntityReference DependentComponentNodeId + { + get + { + return this.GetAttributeValue("dependentcomponentnodeid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentobjectid")] + public System.Nullable DependentComponentObjectId + { + get + { + return this.GetAttributeValue>("dependentcomponentobjectid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentparentid")] + public System.Nullable DependentComponentParentId + { + get + { + return this.GetAttributeValue>("dependentcomponentparentid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue DependentComponentType + { + get + { + return this.GetAttributeValue("dependentcomponenttype"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentbasesolutionid")] + public System.Nullable RequiredComponentBaseSolutionId + { + get + { + return this.GetAttributeValue>("requiredcomponentbasesolutionid"); + } + } + + /// + /// Unique identifier of the required component's node + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentnodeid")] + public Microsoft.Xrm.Sdk.EntityReference RequiredComponentNodeId + { + get + { + return this.GetAttributeValue("requiredcomponentnodeid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentobjectid")] + public System.Nullable RequiredComponentObjectId + { + get + { + return this.GetAttributeValue>("requiredcomponentobjectid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentparentid")] + public System.Nullable RequiredComponentParentId + { + get + { + return this.GetAttributeValue>("requiredcomponentparentid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue RequiredComponentType + { + get + { + return this.GetAttributeValue("requiredcomponenttype"); + } + } + + /// + /// 1:N userentityinstancedata_dependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_dependency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_dependency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_dependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_dependency"); + this.SetRelatedEntities("userentityinstancedata_dependency", null, value); + this.OnPropertyChanged("userentityinstancedata_dependency"); + } + } + } + + /// + /// Price reduction made from the list price of a product or service based on the quantity purchased. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("discount")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Discount : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Discount() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "discount"; + + public const int EntityTypeCode = 1013; + + 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)); + } + } + + /// + /// Amount of the discount, specified either as a percentage or as a monetary amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount")] + public Microsoft.Xrm.Sdk.Money Amount + { + get + { + return this.GetAttributeValue("amount"); + } + set + { + this.OnPropertyChanging("Amount"); + this.SetAttributeValue("amount", value); + this.OnPropertyChanged("Amount"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency, if specified as a fixed amount. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount_base")] + public Microsoft.Xrm.Sdk.Money Amount_Base + { + get + { + return this.GetAttributeValue("amount_base"); + } + } + + /// + /// Unique identifier of the user who created the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the discount 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 discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountid")] + public System.Nullable DiscountId + { + get + { + return this.GetAttributeValue>("discountid"); + } + set + { + this.OnPropertyChanging("DiscountId"); + this.SetAttributeValue("discountid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DiscountId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DiscountId = value; + } + } + + /// + /// Unique identifier of the discount list associated with the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public Microsoft.Xrm.Sdk.EntityReference DiscountTypeId + { + get + { + return this.GetAttributeValue("discounttypeid"); + } + set + { + this.OnPropertyChanging("DiscountTypeId"); + this.SetAttributeValue("discounttypeid", value); + this.OnPropertyChanged("DiscountTypeId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Upper boundary for the quantity range to which a particular discount can be applied. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("highquantity")] + public System.Nullable HighQuantity + { + get + { + return this.GetAttributeValue>("highquantity"); + } + set + { + this.OnPropertyChanging("HighQuantity"); + this.SetAttributeValue("highquantity", value); + this.OnPropertyChanged("HighQuantity"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the discount is specified as a monetary amount or a percentage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamounttype")] + public System.Nullable IsAmountType + { + get + { + return this.GetAttributeValue>("isamounttype"); + } + } + + /// + /// Lower boundary for the quantity range to which a particular discount is applied. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lowquantity")] + public System.Nullable LowQuantity + { + get + { + return this.GetAttributeValue>("lowquantity"); + } + set + { + this.OnPropertyChanging("LowQuantity"); + this.SetAttributeValue("lowquantity", value); + this.OnPropertyChanged("LowQuantity"); + } + } + + /// + /// Unique identifier of the user who last modified the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the discount 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 discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Percentage discount value. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentage")] + public System.Nullable Percentage + { + get + { + return this.GetAttributeValue>("percentage"); + } + set + { + this.OnPropertyChanging("Percentage"); + this.SetAttributeValue("percentage", value); + this.OnPropertyChanged("Percentage"); + } + } + + /// + /// Select the discount's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version number of the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Discount_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_AsyncOperations")] + public System.Collections.Generic.IEnumerable Discount_AsyncOperations + { + get + { + return this.GetRelatedEntities("Discount_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Discount_AsyncOperations"); + this.SetRelatedEntities("Discount_AsyncOperations", null, value); + this.OnPropertyChanged("Discount_AsyncOperations"); + } + } + + /// + /// 1:N Discount_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Discount_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Discount_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Discount_BulkDeleteFailures"); + this.SetRelatedEntities("Discount_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Discount_BulkDeleteFailures"); + } + } + + /// + /// 1:N Discount_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_ProcessSessions")] + public System.Collections.Generic.IEnumerable Discount_ProcessSessions + { + get + { + return this.GetRelatedEntities("Discount_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Discount_ProcessSessions"); + this.SetRelatedEntities("Discount_ProcessSessions", null, value); + this.OnPropertyChanged("Discount_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_discount + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discount")] + public System.Collections.Generic.IEnumerable userentityinstancedata_discount + { + get + { + return this.GetRelatedEntities("userentityinstancedata_discount", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discount"); + this.SetRelatedEntities("userentityinstancedata_discount", null, value); + this.OnPropertyChanged("userentityinstancedata_discount"); + } + } + + /// + /// N:1 discount_type_discounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_discounts")] + public Xrm.Framework.CI.Common.Entities.DiscountType discount_type_discounts + { + get + { + return this.GetRelatedEntity("discount_type_discounts", null); + } + set + { + this.OnPropertyChanging("discount_type_discounts"); + this.SetRelatedEntity("discount_type_discounts", null, value); + this.OnPropertyChanged("discount_type_discounts"); + } + } + + /// + /// N:1 lk_discount_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discount_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discount_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_discount_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discount_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discount_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_discountbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discountbase_createdby + { + get + { + return this.GetRelatedEntity("lk_discountbase_createdby", null); + } + } + + /// + /// N:1 lk_discountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discountbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_discountbase_modifiedby", null); + } + } + + /// + /// N:1 transactioncurrency_discount + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discount")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_discount + { + get + { + return this.GetRelatedEntity("transactioncurrency_discount", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum DiscountTypeState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Type of discount specified as either a percentage or an amount. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("discounttype")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DiscountType : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DiscountType() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "discounttype"; + + public const int EntityTypeCode = 1080; + + 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 discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the discount list 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 discounttype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public System.Nullable DiscountTypeId + { + get + { + return this.GetAttributeValue>("discounttypeid"); + } + set + { + this.OnPropertyChanging("DiscountTypeId"); + this.SetAttributeValue("discounttypeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DiscountTypeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DiscountTypeId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the discount list amounts are specified as monetary amounts or percentages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamounttype")] + public System.Nullable IsAmountType + { + get + { + return this.GetAttributeValue>("isamounttype"); + } + set + { + this.OnPropertyChanging("IsAmountType"); + this.SetAttributeValue("isamounttype", value); + this.OnPropertyChanged("IsAmountType"); + } + } + + /// + /// Unique identifier of the user who last modified the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the discount list 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 discounttype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the discount list. + /// + [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"); + } + } + + /// + /// Status of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.DiscountTypeState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.DiscountTypeState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the discount list. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the discount type. + /// + [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"); + } + } + + /// + /// Version number of the discount type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N discount_type_discounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_discounts")] + public System.Collections.Generic.IEnumerable discount_type_discounts + { + get + { + return this.GetRelatedEntities("discount_type_discounts", null); + } + set + { + this.OnPropertyChanging("discount_type_discounts"); + this.SetRelatedEntities("discount_type_discounts", null, value); + this.OnPropertyChanged("discount_type_discounts"); + } + } + + /// + /// 1:N discount_type_product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_product_price_levels")] + public System.Collections.Generic.IEnumerable discount_type_product_price_levels + { + get + { + return this.GetRelatedEntities("discount_type_product_price_levels", null); + } + set + { + this.OnPropertyChanging("discount_type_product_price_levels"); + this.SetRelatedEntities("discount_type_product_price_levels", null, value); + this.OnPropertyChanged("discount_type_product_price_levels"); + } + } + + /// + /// 1:N DiscountType_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_AsyncOperations")] + public System.Collections.Generic.IEnumerable DiscountType_AsyncOperations + { + get + { + return this.GetRelatedEntities("DiscountType_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DiscountType_AsyncOperations"); + this.SetRelatedEntities("DiscountType_AsyncOperations", null, value); + this.OnPropertyChanged("DiscountType_AsyncOperations"); + } + } + + /// + /// 1:N DiscountType_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable DiscountType_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("DiscountType_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("DiscountType_BulkDeleteFailures"); + this.SetRelatedEntities("DiscountType_BulkDeleteFailures", null, value); + this.OnPropertyChanged("DiscountType_BulkDeleteFailures"); + } + } + + /// + /// 1:N DiscountType_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_ProcessSessions")] + public System.Collections.Generic.IEnumerable DiscountType_ProcessSessions + { + get + { + return this.GetRelatedEntities("DiscountType_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("DiscountType_ProcessSessions"); + this.SetRelatedEntities("DiscountType_ProcessSessions", null, value); + this.OnPropertyChanged("DiscountType_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_discounttype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discounttype")] + public System.Collections.Generic.IEnumerable userentityinstancedata_discounttype + { + get + { + return this.GetRelatedEntities("userentityinstancedata_discounttype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discounttype"); + this.SetRelatedEntities("userentityinstancedata_discounttype", null, value); + this.OnPropertyChanged("userentityinstancedata_discounttype"); + } + } + + /// + /// N:1 lk_discounttype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttype_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discounttype_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_discounttype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discounttype_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_discounttypebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttypebase_createdby + { + get + { + return this.GetRelatedEntity("lk_discounttypebase_createdby", null); + } + } + + /// + /// N:1 lk_discounttypebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttypebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_discounttypebase_modifiedby", null); + } + } + + /// + /// N:1 organization_discount_types + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_discount_types")] + public Xrm.Framework.CI.Common.Entities.Organization organization_discount_types + { + get + { + return this.GetRelatedEntity("organization_discount_types", null); + } + } + + /// + /// N:1 transactioncurrency_discounttype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discounttype")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_discounttype + { + get + { + return this.GetRelatedEntity("transactioncurrency_discounttype", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_discounttype"); + this.SetRelatedEntity("transactioncurrency_discounttype", null, value); + this.OnPropertyChanged("transactioncurrency_discounttype"); + } + } + } + + /// + /// Customized messages for an entity that has been renamed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("displaystring")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DisplayString : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DisplayString() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "displaystring"; + + public const int EntityTypeCode = 4102; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the display string 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 displaystring. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Comment for a customized display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customcomment")] + public string CustomComment + { + get + { + return this.GetAttributeValue("customcomment"); + } + set + { + this.OnPropertyChanging("CustomComment"); + this.SetAttributeValue("customcomment", value); + this.OnPropertyChanged("CustomComment"); + } + } + + /// + /// Customized display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customdisplaystring")] + public string CustomDisplayString + { + get + { + return this.GetAttributeValue("customdisplaystring"); + } + set + { + this.OnPropertyChanging("CustomDisplayString"); + this.SetAttributeValue("customdisplaystring", value); + this.OnPropertyChanged("CustomDisplayString"); + } + } + + /// + /// Unique identifier of the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringid")] + public System.Nullable DisplayStringId + { + get + { + return this.GetAttributeValue>("displaystringid"); + } + set + { + this.OnPropertyChanging("DisplayStringId"); + this.SetAttributeValue("displaystringid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DisplayStringId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DisplayStringId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringidunique")] + public System.Nullable DisplayStringIdUnique + { + get + { + return this.GetAttributeValue>("displaystringidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringkey")] + public string DisplayStringKey + { + get + { + return this.GetAttributeValue("displaystringkey"); + } + } + + /// + /// Parameters used for formatting the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formatparameters")] + public System.Nullable FormatParameters + { + get + { + return this.GetAttributeValue>("formatparameters"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Language code of the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the display string 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 displaystring. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Published display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheddisplaystring")] + public string PublishedDisplayString + { + get + { + return this.GetAttributeValue("publisheddisplaystring"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N DisplayString_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_AsyncOperations")] + public System.Collections.Generic.IEnumerable DisplayString_AsyncOperations + { + get + { + return this.GetRelatedEntities("DisplayString_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DisplayString_AsyncOperations"); + this.SetRelatedEntities("DisplayString_AsyncOperations", null, value); + this.OnPropertyChanged("DisplayString_AsyncOperations"); + } + } + + /// + /// 1:N DisplayString_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable DisplayString_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("DisplayString_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("DisplayString_BulkDeleteFailures"); + this.SetRelatedEntities("DisplayString_BulkDeleteFailures", null, value); + this.OnPropertyChanged("DisplayString_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_displaystring + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_displaystring")] + public System.Collections.Generic.IEnumerable userentityinstancedata_displaystring + { + get + { + return this.GetRelatedEntities("userentityinstancedata_displaystring", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_displaystring"); + this.SetRelatedEntities("userentityinstancedata_displaystring", null, value); + this.OnPropertyChanged("userentityinstancedata_displaystring"); + } + } + + /// + /// N:1 lk_DisplayStringbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_createdby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_createdby", null); + } + } + + /// + /// N:1 lk_DisplayStringbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_DisplayStringbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_modifiedby", null); + } + } + + /// + /// N:1 lk_DisplayStringbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_custom_displaystrings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_custom_displaystrings")] + public Xrm.Framework.CI.Common.Entities.Organization organization_custom_displaystrings + { + get + { + return this.GetRelatedEntity("organization_custom_displaystrings", null); + } + } + } + + /// + /// Potential duplicate record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterecord")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DuplicateRecord : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DuplicateRecord() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "duplicaterecord"; + + public const int EntityTypeCode = 4415; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + } + + /// + /// Unique identifier of the base record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + public Microsoft.Xrm.Sdk.EntityReference BaseRecordId + { + get + { + return this.GetAttributeValue("baserecordid"); + } + } + + /// + /// Date and time when the duplicate record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateid")] + public System.Nullable DuplicateId + { + get + { + return this.GetAttributeValue>("duplicateid"); + } + set + { + this.OnPropertyChanging("DuplicateId"); + this.SetAttributeValue("duplicateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DuplicateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DuplicateId = value; + } + } + + /// + /// Unique identifier of the potential duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + public Microsoft.Xrm.Sdk.EntityReference DuplicateRecordId + { + get + { + return this.GetAttributeValue("duplicaterecordid"); + } + } + + /// + /// Unique identifier of the duplicate rule against which this duplicate was found. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + public Microsoft.Xrm.Sdk.EntityReference DuplicateRuleId + { + get + { + return this.GetAttributeValue("duplicateruleid"); + } + } + + /// + /// Unique identifier of the user or team who owns the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// 1:N userentityinstancedata_duplicaterecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterecord")] + public System.Collections.Generic.IEnumerable userentityinstancedata_duplicaterecord + { + get + { + return this.GetRelatedEntities("userentityinstancedata_duplicaterecord", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterecord"); + this.SetRelatedEntities("userentityinstancedata_duplicaterecord", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterecord"); + } + } + + /// + /// N:1 Account_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Account Account_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Account_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Account_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Account Account_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Account_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Appointment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Appointment_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Appointment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Appointment_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 AsyncOperation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation AsyncOperation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("AsyncOperation_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Campaign_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Campaign_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Campaign_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Campaign_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 CampaignResponse_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("CampaignResponse_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 CampaignResponse_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("CampaignResponse_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Competitor_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Competitor_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Competitor_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Competitor_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Contact_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Contact_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Contact_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Contact_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Contract_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Contract_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Contract_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Contract_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 DuplicateRule_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule DuplicateRule_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("DuplicateRule_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Email_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Email Email_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Email_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Email_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Email Email_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Email_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 emailserverprofile_duplicatebaserecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatebaserecord")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_duplicatebaserecord + { + get + { + return this.GetRelatedEntity("emailserverprofile_duplicatebaserecord", null); + } + } + + /// + /// N:1 emailserverprofile_duplicatematchingrecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatematchingrecord")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_duplicatematchingrecord + { + get + { + return this.GetRelatedEntity("emailserverprofile_duplicatematchingrecord", null); + } + } + + /// + /// N:1 Equipment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Equipment_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Equipment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Equipment_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Fax_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Fax_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Fax_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Fax_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Incident_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Incident_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Incident_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Incident_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 KbArticle_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("KbArticle_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 KbArticle_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("KbArticle_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Lead_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Lead_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Lead_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Lead_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Letter_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Letter_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Letter_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Letter_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 List_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.List List_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("List_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 List_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.List List_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("List_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 msdyn_postalbum_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 msdyn_postalbum_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Opportunity_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Opportunity_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Opportunity_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Opportunity_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 PhoneCall_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("PhoneCall_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 PhoneCall_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("PhoneCall_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Queue_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Queue_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Queue_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Queue_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Quote_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Quote_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Quote_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Quote_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 RecurringAppointmentMaster_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 RecurringAppointmentMaster_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 ResourceGroup_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("ResourceGroup_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 ResourceGroup_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("ResourceGroup_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Service_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Service Service_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Service_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Service_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Service Service_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Service_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 SharePointDocumentLocation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 SharePointDocumentLocation_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 SharePointSite_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("SharePointSite_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 SharePointSite_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("SharePointSite_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 SystemUser_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("SystemUser_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 SystemUser_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("SystemUser_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Task_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Task Task_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Task_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Task_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Task Task_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Task_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Team_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Team Team_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Team_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Team_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Team Team_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Team_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Territory_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Territory_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Territory_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Territory_DuplicateMatchingRecord", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum DuplicateRuleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + } + + /// + /// Rule used to identify potential duplicates. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DuplicateRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DuplicateRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "duplicaterule"; + + public const int EntityTypeCode = 4414; + + 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)); + } + } + + /// + /// Database table that stores match codes for the record type being evaluated for potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseentitymatchcodetable")] + public string BaseEntityMatchCodeTable + { + get + { + return this.GetAttributeValue("baseentitymatchcodetable"); + } + } + + /// + /// Record type of the record being evaluated for potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseentityname")] + public string BaseEntityName + { + get + { + return this.GetAttributeValue("baseentityname"); + } + set + { + this.OnPropertyChanging("BaseEntityName"); + this.SetAttributeValue("baseentityname", value); + this.OnPropertyChanged("BaseEntityName"); + } + } + + /// + /// Record type of the record being evaluated for potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseentitytypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue BaseEntityTypeCode + { + get + { + return this.GetAttributeValue("baseentitytypecode"); + } + } + + /// + /// Unique identifier of the user who created the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the duplicate detection rule 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 duplicaterule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + public System.Nullable DuplicateRuleId + { + get + { + return this.GetAttributeValue>("duplicateruleid"); + } + set + { + this.OnPropertyChanging("DuplicateRuleId"); + this.SetAttributeValue("duplicateruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DuplicateRuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DuplicateRuleId = value; + } + } + + /// + /// Determines whether to flag inactive records as duplicates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("excludeinactiverecords")] + public System.Nullable ExcludeInactiveRecords + { + get + { + return this.GetAttributeValue>("excludeinactiverecords"); + } + set + { + this.OnPropertyChanging("ExcludeInactiveRecords"); + this.SetAttributeValue("excludeinactiverecords", value); + this.OnPropertyChanged("ExcludeInactiveRecords"); + } + } + + /// + /// Indicates if the operator is case-sensitive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscasesensitive")] + public System.Nullable IsCaseSensitive + { + get + { + return this.GetAttributeValue>("iscasesensitive"); + } + set + { + this.OnPropertyChanging("IsCaseSensitive"); + this.SetAttributeValue("iscasesensitive", value); + this.OnPropertyChanged("IsCaseSensitive"); + } + } + + /// + /// Database table that stores match codes for potential duplicate records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingentitymatchcodetable")] + public string MatchingEntityMatchCodeTable + { + get + { + return this.GetAttributeValue("matchingentitymatchcodetable"); + } + } + + /// + /// Record type of the records being evaluated as potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingentityname")] + public string MatchingEntityName + { + get + { + return this.GetAttributeValue("matchingentityname"); + } + set + { + this.OnPropertyChanging("MatchingEntityName"); + this.SetAttributeValue("matchingentityname", value); + this.OnPropertyChanged("MatchingEntityName"); + } + } + + /// + /// Record type of the records being evaluated as potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingentitytypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue MatchingEntityTypeCode + { + get + { + return this.GetAttributeValue("matchingentitytypecode"); + } + } + + /// + /// Unique identifier of the user who last modified the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the duplicate detection rule 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 duplicaterule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the user or team who owns the duplicate detection rule. + /// + [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 duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.DuplicateRuleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.DuplicateRuleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the duplicate detection rule. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N DuplicateRule_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_Annotation")] + public System.Collections.Generic.IEnumerable DuplicateRule_Annotation + { + get + { + return this.GetRelatedEntities("DuplicateRule_Annotation", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_Annotation"); + this.SetRelatedEntities("DuplicateRule_Annotation", null, value); + this.OnPropertyChanged("DuplicateRule_Annotation"); + } + } + + /// + /// 1:N DuplicateRule_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable DuplicateRule_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("DuplicateRule_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_DuplicateBaseRecord"); + this.SetRelatedEntities("DuplicateRule_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("DuplicateRule_DuplicateBaseRecord"); + } + } + + /// + /// 1:N DuplicateRule_DuplicateRuleConditions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateRuleConditions")] + public System.Collections.Generic.IEnumerable DuplicateRule_DuplicateRuleConditions + { + get + { + return this.GetRelatedEntities("DuplicateRule_DuplicateRuleConditions", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_DuplicateRuleConditions"); + this.SetRelatedEntities("DuplicateRule_DuplicateRuleConditions", null, value); + this.OnPropertyChanged("DuplicateRule_DuplicateRuleConditions"); + } + } + + /// + /// 1:N userentityinstancedata_duplicaterule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_duplicaterule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_duplicaterule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterule"); + this.SetRelatedEntities("userentityinstancedata_duplicaterule", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterule"); + } + } + + /// + /// N:1 BusinessUnit_DuplicateRules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_DuplicateRules")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_DuplicateRules + { + get + { + return this.GetRelatedEntity("BusinessUnit_DuplicateRules", null); + } + } + + /// + /// N:1 lk_duplicaterule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicaterule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicaterulebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulebase_createdby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulebase_createdby", null); + } + } + + /// + /// N:1 lk_duplicaterulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulebase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_DuplicateRules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateRules")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_DuplicateRules + { + get + { + return this.GetRelatedEntity("SystemUser_DuplicateRules", null); + } + } + + /// + /// N:1 team_DuplicateRules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_DuplicateRules")] + public Xrm.Framework.CI.Common.Entities.Team team_DuplicateRules + { + get + { + return this.GetRelatedEntity("team_DuplicateRules", null); + } + } + } + + /// + /// Condition of a duplicate detection rule. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterulecondition")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DuplicateRuleCondition : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DuplicateRuleCondition() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "duplicaterulecondition"; + + public const int EntityTypeCode = 4416; + + 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)); + } + } + + /// + /// Field that is being compared. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseattributename")] + public string BaseAttributeName + { + get + { + return this.GetAttributeValue("baseattributename"); + } + set + { + this.OnPropertyChanging("BaseAttributeName"); + this.SetAttributeValue("baseattributename", value); + this.OnPropertyChanged("BaseAttributeName"); + } + } + + /// + /// Unique identifier of the user who created the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the condition 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 duplicate rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleconditionid")] + public System.Nullable DuplicateRuleConditionId + { + get + { + return this.GetAttributeValue>("duplicateruleconditionid"); + } + set + { + this.OnPropertyChanging("DuplicateRuleConditionId"); + this.SetAttributeValue("duplicateruleconditionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DuplicateRuleConditionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleconditionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DuplicateRuleConditionId = value; + } + } + + /// + /// Determines whether to consider blank values as non-duplicate values + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreblankvalues")] + public System.Nullable IgnoreBlankValues + { + get + { + return this.GetAttributeValue>("ignoreblankvalues"); + } + set + { + this.OnPropertyChanging("IgnoreBlankValues"); + this.SetAttributeValue("ignoreblankvalues", value); + this.OnPropertyChanged("IgnoreBlankValues"); + } + } + + /// + /// Field that is being compared with the base field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingattributename")] + public string MatchingAttributeName + { + get + { + return this.GetAttributeValue("matchingattributename"); + } + set + { + this.OnPropertyChanging("MatchingAttributeName"); + this.SetAttributeValue("matchingattributename", value); + this.OnPropertyChanged("MatchingAttributeName"); + } + } + + /// + /// Unique identifier of the user who last modified the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the condition 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 duplicate rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Operator for this rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operatorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue OperatorCode + { + get + { + return this.GetAttributeValue("operatorcode"); + } + set + { + this.OnPropertyChanging("OperatorCode"); + this.SetAttributeValue("operatorcode", value); + this.OnPropertyChanged("OperatorCode"); + } + } + + /// + /// Parameter value of N if the operator is Same First Characters or Same Last Characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operatorparam")] + public System.Nullable OperatorParam + { + get + { + return this.GetAttributeValue>("operatorparam"); + } + set + { + this.OnPropertyChanging("OperatorParam"); + this.SetAttributeValue("operatorparam", value); + this.OnPropertyChanged("OperatorParam"); + } + } + + /// + /// Unique identifier of the user or team who owns the duplicate rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the object with which the condition 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"); + } + } + + /// + /// 1:N userentityinstancedata_duplicaterulecondition + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterulecondition")] + public System.Collections.Generic.IEnumerable userentityinstancedata_duplicaterulecondition + { + get + { + return this.GetRelatedEntities("userentityinstancedata_duplicaterulecondition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterulecondition"); + this.SetRelatedEntities("userentityinstancedata_duplicaterulecondition", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterulecondition"); + } + } + + /// + /// N:1 DuplicateRule_DuplicateRuleConditions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateRuleConditions")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule DuplicateRule_DuplicateRuleConditions + { + get + { + return this.GetRelatedEntity("DuplicateRule_DuplicateRuleConditions", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_DuplicateRuleConditions"); + this.SetRelatedEntity("DuplicateRule_DuplicateRuleConditions", null, value); + this.OnPropertyChanged("DuplicateRule_DuplicateRuleConditions"); + } + } + + /// + /// N:1 lk_duplicaterulecondition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulecondition_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulecondition_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicaterulecondition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulecondition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulecondition_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicateruleconditionbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicateruleconditionbase_createdby + { + get + { + return this.GetRelatedEntity("lk_duplicateruleconditionbase_createdby", null); + } + } + + /// + /// N:1 lk_duplicateruleconditionbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicateruleconditionbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_duplicateruleconditionbase_modifiedby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum EmailState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that is delivered using email protocols. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("email")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Email : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Email() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "email"; + + public const int EntityTypeCode = 4202; + + 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 email 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Type the number of minutes spent creating and sending the email. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the email. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual time to create and send the email. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the email. By default, it displays the date and time when the activity was created, but can be edited to capture the actual time to create and send the email. + /// + [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"); + } + } + + /// + /// Shows the umber of attachments of the email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attachmentcount")] + public System.Nullable AttachmentCount + { + get + { + return this.GetAttributeValue>("attachmentcount"); + } + } + + /// + /// Enter the recipients that are included on the email distribution, but are not displayed to other recipients. + /// + [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"); + } + } + + /// + /// Type a category to identify the email type, such as lead outreach, customer follow-up, or service alert, to tie the email to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Enter the recipients that should be copied on the email. + /// + [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"); + } + } + + /// + /// Indicates if the body is compressed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("compressed")] + public System.Nullable Compressed + { + get + { + return this.GetAttributeValue>("compressed"); + } + } + + /// + /// Identifier for all the email responses for this conversation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("conversationindex")] + public string ConversationIndex + { + get + { + return this.GetAttributeValue("conversationindex"); + } + } + + /// + /// Shows how an email is matched to an existing email in Microsoft Dynamics CRM. For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue CorrelationMethod + { + get + { + return this.GetAttributeValue("correlationmethod"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Shows the count of the number of attempts made to send the email. The count is used as an indicator of email routing issues. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliveryattempts")] + public System.Nullable DeliveryAttempts + { + get + { + return this.GetAttributeValue>("deliveryattempts"); + } + set + { + this.OnPropertyChanging("DeliveryAttempts"); + this.SetAttributeValue("deliveryattempts", value); + this.OnPropertyChanged("DeliveryAttempts"); + } + } + + /// + /// Select the priority of delivery of the email 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"); + } + } + + /// + /// Select whether the sender should receive confirmation that the email was delivered. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliveryreceiptrequested")] + public System.Nullable DeliveryReceiptRequested + { + get + { + return this.GetAttributeValue>("deliveryreceiptrequested"); + } + set + { + this.OnPropertyChanging("DeliveryReceiptRequested"); + this.SetAttributeValue("deliveryreceiptrequested", value); + this.OnPropertyChanged("DeliveryReceiptRequested"); + } + } + + /// + /// Type the greeting and message text of the email. + /// + [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 the direction of the email as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 sender of the email. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the ID of the email message that this email activity is a response to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inreplyto")] + public string InReplyTo + { + get + { + return this.GetAttributeValue("inreplyto"); + } + } + + /// + /// Information regarding whether the email 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indication if the email was created by 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"); + } + } + + /// + /// Unique identifier of the email message. Used only for email that is received. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messageid")] + public string MessageId + { + get + { + return this.GetAttributeValue("messageid"); + } + set + { + this.OnPropertyChanging("MessageId"); + this.SetAttributeValue("messageid", value); + this.OnPropertyChanged("MessageId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messageiddupcheck")] + [System.ObsoleteAttribute()] + public System.Nullable MessageIdDupCheck + { + get + { + return this.GetAttributeValue>("messageiddupcheck"); + } + set + { + this.OnPropertyChanging("MessageIdDupCheck"); + this.SetAttributeValue("messageiddupcheck", value); + this.OnPropertyChanged("MessageIdDupCheck"); + } + } + + /// + /// MIME type of the email message data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Select the notification code to identify issues with the email recipients or attachments, such as blocked attachments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("notifications")] + public Microsoft.Xrm.Sdk.OptionSetValue Notifications + { + get + { + return this.GetAttributeValue("notifications"); + } + set + { + this.OnPropertyChanging("Notifications"); + this.SetAttributeValue("notifications", value); + this.OnPropertyChanged("Notifications"); + } + } + + /// + /// 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 email activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the email activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the email activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the activity that the email is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentactivityid")] + public Microsoft.Xrm.Sdk.EntityReference ParentActivityId + { + get + { + return this.GetAttributeValue("parentactivityid"); + } + set + { + this.OnPropertyChanging("ParentActivityId"); + this.SetAttributeValue("parentactivityid", value); + this.OnPropertyChanged("ParentActivityId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponeemailprocessinguntil")] + public System.Nullable PostponeEmailProcessingUntil + { + get + { + return this.GetAttributeValue>("postponeemailprocessinguntil"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indicates that a read receipt is requested. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("readreceiptrequested")] + public System.Nullable ReadReceiptRequested + { + get + { + return this.GetAttributeValue>("readreceiptrequested"); + } + set + { + this.OnPropertyChanging("ReadReceiptRequested"); + this.SetAttributeValue("readreceiptrequested", value); + this.OnPropertyChanged("ReadReceiptRequested"); + } + } + + /// + /// Unique identifier of the object with which the e-mail 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"); + } + } + + /// + /// Scheduled duration of the email activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about when the email will be sent. + /// + [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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about the tentative time when the email activity must be initiated. + /// + [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"); + } + } + + /// + /// Sender of the email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sender")] + public string Sender + { + get + { + return this.GetAttributeValue("sender"); + } + set + { + this.OnPropertyChanging("Sender"); + this.SetAttributeValue("sender", value); + this.OnPropertyChanged("Sender"); + } + } + + /// + /// Select 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"); + } + } + + /// + /// Shows the date and time that the email was sent. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("senton")] + public System.Nullable SentOn + { + get + { + return this.GetAttributeValue>("senton"); + } + } + + /// + /// Unique identifier for the associated service. + /// + [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"); + } + } + + /// + /// 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 email is open, completed, or canceled. Completed and canceled email is read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.EmailState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.EmailState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the email'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"); + } + } + + /// + /// Type a subcategory to identify the email type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Shows the Microsoft Office Outlook account for the user who submitted the email to Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("submittedby")] + public string SubmittedBy + { + get + { + return this.GetAttributeValue("submittedby"); + } + set + { + this.OnPropertyChanging("SubmittedBy"); + this.SetAttributeValue("submittedby", value); + this.OnPropertyChanged("SubmittedBy"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, queue, or user recipients for the email. + /// + [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"); + } + } + + /// + /// Shows the email addresses corresponding to the recipients. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("torecipients")] + public string ToRecipients + { + get + { + return this.GetAttributeValue("torecipients"); + } + set + { + this.OnPropertyChanging("ToRecipients"); + this.SetAttributeValue("torecipients", value); + this.OnPropertyChanged("ToRecipients"); + } + } + + /// + /// Shows the tracking token assigned to the email to make sure responses are automatically tracked in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtoken")] + public string TrackingToken + { + get + { + return this.GetAttributeValue("trackingtoken"); + } + set + { + this.OnPropertyChanging("TrackingToken"); + this.SetAttributeValue("trackingtoken", value); + this.OnPropertyChanged("TrackingToken"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N email_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_mime_attachment")] + public System.Collections.Generic.IEnumerable email_activity_mime_attachment + { + get + { + return this.GetRelatedEntities("email_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("email_activity_mime_attachment"); + this.SetRelatedEntities("email_activity_mime_attachment", null, value); + this.OnPropertyChanged("email_activity_mime_attachment"); + } + } + + /// + /// 1:N email_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_parties")] + public System.Collections.Generic.IEnumerable email_activity_parties + { + get + { + return this.GetRelatedEntities("email_activity_parties", null); + } + set + { + this.OnPropertyChanging("email_activity_parties"); + this.SetRelatedEntities("email_activity_parties", null, value); + this.OnPropertyChanged("email_activity_parties"); + } + } + + /// + /// 1:N Email_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_Annotation")] + public System.Collections.Generic.IEnumerable Email_Annotation + { + get + { + return this.GetRelatedEntities("Email_Annotation", null); + } + set + { + this.OnPropertyChanging("Email_Annotation"); + this.SetRelatedEntities("Email_Annotation", null, value); + this.OnPropertyChanged("Email_Annotation"); + } + } + + /// + /// 1:N Email_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_AsyncOperations")] + public System.Collections.Generic.IEnumerable Email_AsyncOperations + { + get + { + return this.GetRelatedEntities("Email_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Email_AsyncOperations"); + this.SetRelatedEntities("Email_AsyncOperations", null, value); + this.OnPropertyChanged("Email_AsyncOperations"); + } + } + + /// + /// 1:N Email_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Email_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Email_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Email_BulkDeleteFailures"); + this.SetRelatedEntities("Email_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Email_BulkDeleteFailures"); + } + } + + /// + /// 1:N email_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_campaignresponse")] + public System.Collections.Generic.IEnumerable email_campaignresponse + { + get + { + return this.GetRelatedEntities("email_campaignresponse", null); + } + set + { + this.OnPropertyChanging("email_campaignresponse"); + this.SetRelatedEntities("email_campaignresponse", null, value); + this.OnPropertyChanged("email_campaignresponse"); + } + } + + /// + /// 1:N email_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections1")] + public System.Collections.Generic.IEnumerable email_connections1 + { + get + { + return this.GetRelatedEntities("email_connections1", null); + } + set + { + this.OnPropertyChanging("email_connections1"); + this.SetRelatedEntities("email_connections1", null, value); + this.OnPropertyChanged("email_connections1"); + } + } + + /// + /// 1:N email_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections2")] + public System.Collections.Generic.IEnumerable email_connections2 + { + get + { + return this.GetRelatedEntities("email_connections2", null); + } + set + { + this.OnPropertyChanging("email_connections2"); + this.SetRelatedEntities("email_connections2", null, value); + this.OnPropertyChanged("email_connections2"); + } + } + + /// + /// 1:N Email_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Email_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Email_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Email_DuplicateBaseRecord"); + this.SetRelatedEntities("Email_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Email_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Email_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Email_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Email_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Email_DuplicateMatchingRecord"); + this.SetRelatedEntities("Email_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Email_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N email_email_parentactivityid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedemail_email_parentactivityid + { + get + { + return this.GetRelatedEntities("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedemail_email_parentactivityid"); + this.SetRelatedEntities("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedemail_email_parentactivityid"); + } + } + + /// + /// 1:N email_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable email_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("email_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("email_principalobjectattributeaccess"); + this.SetRelatedEntities("email_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("email_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Email_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_ProcessSessions")] + public System.Collections.Generic.IEnumerable Email_ProcessSessions + { + get + { + return this.GetRelatedEntities("Email_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Email_ProcessSessions"); + this.SetRelatedEntities("Email_ProcessSessions", null, value); + this.OnPropertyChanged("Email_ProcessSessions"); + } + } + + /// + /// 1:N Email_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_QueueItem")] + public System.Collections.Generic.IEnumerable Email_QueueItem + { + get + { + return this.GetRelatedEntities("Email_QueueItem", null); + } + set + { + this.OnPropertyChanging("Email_QueueItem"); + this.SetRelatedEntities("Email_QueueItem", null, value); + this.OnPropertyChanged("Email_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_email")] + public System.Collections.Generic.IEnumerable userentityinstancedata_email + { + get + { + return this.GetRelatedEntities("userentityinstancedata_email", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_email"); + this.SetRelatedEntities("userentityinstancedata_email", null, value); + this.OnPropertyChanged("userentityinstancedata_email"); + } + } + + /// + /// N:1 Account_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Emails")] + public Xrm.Framework.CI.Common.Entities.Account Account_Emails + { + get + { + return this.GetRelatedEntity("Account_Emails", null); + } + set + { + this.OnPropertyChanging("Account_Emails"); + this.SetRelatedEntity("Account_Emails", null, value); + this.OnPropertyChanged("Account_Emails"); + } + } + + /// + /// N:1 activity_pointer_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_email")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_email + { + get + { + return this.GetRelatedEntity("activity_pointer_email", null); + } + set + { + this.OnPropertyChanging("activity_pointer_email"); + this.SetRelatedEntity("activity_pointer_email", null, value); + this.OnPropertyChanged("activity_pointer_email"); + } + } + + /// + /// N:1 AsyncOperation_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_Emails")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation AsyncOperation_Emails + { + get + { + return this.GetRelatedEntity("AsyncOperation_Emails", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_Emails"); + this.SetRelatedEntity("AsyncOperation_Emails", null, value); + this.OnPropertyChanged("AsyncOperation_Emails"); + } + } + + /// + /// N:1 BulkOperation_Email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Email")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Email + { + get + { + return this.GetRelatedEntity("BulkOperation_Email", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Email"); + this.SetRelatedEntity("BulkOperation_Email", null, value); + this.OnPropertyChanged("BulkOperation_Email"); + } + } + + /// + /// N:1 business_unit_email_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_email_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_email_activities + { + get + { + return this.GetRelatedEntity("business_unit_email_activities", null); + } + } + + /// + /// N:1 Campaign_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Emails")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Emails + { + get + { + return this.GetRelatedEntity("Campaign_Emails", null); + } + set + { + this.OnPropertyChanging("Campaign_Emails"); + this.SetRelatedEntity("Campaign_Emails", null, value); + this.OnPropertyChanged("Campaign_Emails"); + } + } + + /// + /// N:1 CampaignActivity_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Emails")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Emails + { + get + { + return this.GetRelatedEntity("CampaignActivity_Emails", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Emails"); + this.SetRelatedEntity("CampaignActivity_Emails", null, value); + this.OnPropertyChanged("CampaignActivity_Emails"); + } + } + + /// + /// N:1 Contact_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Emails")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Emails + { + get + { + return this.GetRelatedEntity("Contact_Emails", null); + } + set + { + this.OnPropertyChanging("Contact_Emails"); + this.SetRelatedEntity("Contact_Emails", null, value); + this.OnPropertyChanged("Contact_Emails"); + } + } + + /// + /// N:1 Contract_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Emails")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Emails + { + get + { + return this.GetRelatedEntity("Contract_Emails", null); + } + set + { + this.OnPropertyChanging("Contract_Emails"); + this.SetRelatedEntity("Contract_Emails", null, value); + this.OnPropertyChanged("Contract_Emails"); + } + } + + /// + /// N:1 email_email_parentactivityid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Email Referencingemail_email_parentactivityid + { + get + { + return this.GetRelatedEntity("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingemail_email_parentactivityid"); + this.SetRelatedEntity("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingemail_email_parentactivityid"); + } + } + + /// + /// N:1 email_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendermailboxid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_sendermailboxid_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox email_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntity("email_sendermailboxid_mailbox", null); + } + } + + /// + /// N:1 Incident_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Emails")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Emails + { + get + { + return this.GetRelatedEntity("Incident_Emails", null); + } + set + { + this.OnPropertyChanging("Incident_Emails"); + this.SetRelatedEntity("Incident_Emails", null, value); + this.OnPropertyChanged("Incident_Emails"); + } + } + + /// + /// N:1 Invoice_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Emails")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Emails + { + get + { + return this.GetRelatedEntity("Invoice_Emails", null); + } + set + { + this.OnPropertyChanging("Invoice_Emails"); + this.SetRelatedEntity("Invoice_Emails", null, value); + this.OnPropertyChanged("Invoice_Emails"); + } + } + + /// + /// N:1 Lead_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Emails")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Emails + { + get + { + return this.GetRelatedEntity("Lead_Emails", null); + } + set + { + this.OnPropertyChanging("Lead_Emails"); + this.SetRelatedEntity("Lead_Emails", null, value); + this.OnPropertyChanged("Lead_Emails"); + } + } + + /// + /// N:1 lk_email_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_createdby + { + get + { + return this.GetRelatedEntity("lk_email_createdby", null); + } + } + + /// + /// N:1 lk_email_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_email_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_email_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_modifiedby + { + get + { + return this.GetRelatedEntity("lk_email_modifiedby", null); + } + } + + /// + /// N:1 lk_email_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_email_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Emails")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Emails + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Emails", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Emails"); + this.SetRelatedEntity("msdyn_postalbum_Emails", null, value); + this.OnPropertyChanged("msdyn_postalbum_Emails"); + } + } + + /// + /// N:1 Opportunity_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Emails")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Emails + { + get + { + return this.GetRelatedEntity("Opportunity_Emails", null); + } + set + { + this.OnPropertyChanging("Opportunity_Emails"); + this.SetRelatedEntity("Opportunity_Emails", null, value); + this.OnPropertyChanged("Opportunity_Emails"); + } + } + + /// + /// N:1 processstage_emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_emails")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_emails + { + get + { + return this.GetRelatedEntity("processstage_emails", null); + } + set + { + this.OnPropertyChanging("processstage_emails"); + this.SetRelatedEntity("processstage_emails", null, value); + this.OnPropertyChanged("processstage_emails"); + } + } + + /// + /// N:1 Quote_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Emails")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Emails + { + get + { + return this.GetRelatedEntity("Quote_Emails", null); + } + set + { + this.OnPropertyChanging("Quote_Emails"); + this.SetRelatedEntity("Quote_Emails", null, value); + this.OnPropertyChanged("Quote_Emails"); + } + } + + /// + /// N:1 SalesOrder_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Emails")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Emails + { + get + { + return this.GetRelatedEntity("SalesOrder_Emails", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Emails"); + this.SetRelatedEntity("SalesOrder_Emails", null, value); + this.OnPropertyChanged("SalesOrder_Emails"); + } + } + + /// + /// N:1 service_emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_emails")] + public Xrm.Framework.CI.Common.Entities.Service service_emails + { + get + { + return this.GetRelatedEntity("service_emails", null); + } + set + { + this.OnPropertyChanging("service_emails"); + this.SetRelatedEntity("service_emails", null, value); + this.OnPropertyChanged("service_emails"); + } + } + + /// + /// N:1 team_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email")] + public Xrm.Framework.CI.Common.Entities.Team team_email + { + get + { + return this.GetRelatedEntity("team_email", null); + } + } + + /// + /// N:1 TransactionCurrency_Email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Email")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Email + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Email", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Email"); + this.SetRelatedEntity("TransactionCurrency_Email", null, value); + this.OnPropertyChanged("TransactionCurrency_Email"); + } + } + + /// + /// N:1 user_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_email")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_email + { + get + { + return this.GetRelatedEntity("user_email", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum EmailServerProfileState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Holds the Email Server Profiles of an organization + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("emailserverprofile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class EmailServerProfile : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public EmailServerProfile() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "emailserverprofile"; + + public const int EntityTypeCode = 9605; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information that describes the email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofileid")] + public System.Nullable EmailServerProfileId + { + get + { + return this.GetAttributeValue>("emailserverprofileid"); + } + set + { + this.OnPropertyChanging("EmailServerProfileId"); + this.SetAttributeValue("emailserverprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("EmailServerProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.EmailServerProfileId = value; + } + } + + /// + /// Indicates the code page to use when encoding email content. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("encodingcodepage")] + public string EncodingCodePage + { + get + { + return this.GetAttributeValue("encodingcodepage"); + } + set + { + this.OnPropertyChanging("EncodingCodePage"); + this.SetAttributeValue("encodingcodepage", value); + this.OnPropertyChanged("EncodingCodePage"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Select the version of Exchange that is on the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeversion")] + public Microsoft.Xrm.Sdk.OptionSetValue ExchangeVersion + { + get + { + return this.GetAttributeValue("exchangeversion"); + } + set + { + this.OnPropertyChanging("ExchangeVersion"); + this.SetAttributeValue("exchangeversion", value); + this.OnPropertyChanged("ExchangeVersion"); + } + } + + /// + /// Select the incoming email authentication protocol that is used for connecting to the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingauthenticationprotocol")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingAuthenticationProtocol + { + get + { + return this.GetAttributeValue("incomingauthenticationprotocol"); + } + set + { + this.OnPropertyChanging("IncomingAuthenticationProtocol"); + this.SetAttributeValue("incomingauthenticationprotocol", value); + this.OnPropertyChanged("IncomingAuthenticationProtocol"); + } + } + + /// + /// Select how credentials will be retrieved for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingcredentialretrieval")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingCredentialRetrieval + { + get + { + return this.GetAttributeValue("incomingcredentialretrieval"); + } + set + { + this.OnPropertyChanging("IncomingCredentialRetrieval"); + this.SetAttributeValue("incomingcredentialretrieval", value); + this.OnPropertyChanged("IncomingCredentialRetrieval"); + } + } + + /// + /// Indicates the incoming partner application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingpartnerapplication")] + public Microsoft.Xrm.Sdk.EntityReference IncomingPartnerApplication + { + get + { + return this.GetAttributeValue("incomingpartnerapplication"); + } + } + + /// + /// Type the password for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingpassword")] + public string IncomingPassword + { + get + { + return this.GetAttributeValue("incomingpassword"); + } + set + { + this.OnPropertyChanging("IncomingPassword"); + this.SetAttributeValue("incomingpassword", value); + this.OnPropertyChanged("IncomingPassword"); + } + } + + /// + /// Type the port number for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingportnumber")] + public System.Nullable IncomingPortNumber + { + get + { + return this.GetAttributeValue>("incomingportnumber"); + } + set + { + this.OnPropertyChanging("IncomingPortNumber"); + this.SetAttributeValue("incomingportnumber", value); + this.OnPropertyChanged("IncomingPortNumber"); + } + } + + /// + /// Type the location of the server for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingserverlocation")] + public string IncomingServerLocation + { + get + { + return this.GetAttributeValue("incomingserverlocation"); + } + set + { + this.OnPropertyChanging("IncomingServerLocation"); + this.SetAttributeValue("incomingserverlocation", value); + this.OnPropertyChanged("IncomingServerLocation"); + } + } + + /// + /// Select whether to use impersonation to access the mailbox to process incoming emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incominguseimpersonation")] + public System.Nullable IncomingUseImpersonation + { + get + { + return this.GetAttributeValue>("incominguseimpersonation"); + } + set + { + this.OnPropertyChanging("IncomingUseImpersonation"); + this.SetAttributeValue("incominguseimpersonation", value); + this.OnPropertyChanged("IncomingUseImpersonation"); + } + } + + /// + /// Type the user name for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingusername")] + public string IncomingUserName + { + get + { + return this.GetAttributeValue("incomingusername"); + } + set + { + this.OnPropertyChanging("IncomingUserName"); + this.SetAttributeValue("incomingusername", value); + this.OnPropertyChanged("IncomingUserName"); + } + } + + /// + /// Select whether to use the Secure Sockets Layer (SSL) protocol for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingusessl")] + public System.Nullable IncomingUseSSL + { + get + { + return this.GetAttributeValue>("incomingusessl"); + } + set + { + this.OnPropertyChanging("IncomingUseSSL"); + this.SetAttributeValue("incomingusessl", value); + this.OnPropertyChanged("IncomingUseSSL"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isincomingpasswordset")] + public System.Nullable IsIncomingPasswordSet + { + get + { + return this.GetAttributeValue>("isincomingpasswordset"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoutgoingpasswordset")] + public System.Nullable IsOutgoingPasswordSet + { + get + { + return this.GetAttributeValue>("isoutgoingpasswordset"); + } + } + + /// + /// Maximum number of concurrent connections allowed to the email server per authenticated user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxconcurrentconnections")] + public System.Nullable MaxConcurrentConnections + { + get + { + return this.GetAttributeValue>("maxconcurrentconnections"); + } + set + { + this.OnPropertyChanging("MaxConcurrentConnections"); + this.SetAttributeValue("maxconcurrentconnections", value); + this.OnPropertyChanged("MaxConcurrentConnections"); + } + } + + /// + /// Minimum polling interval, in minutes, for mailboxes that are associated with this email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minpollingintervalinminutes")] + public System.Nullable MinPollingIntervalInMinutes + { + get + { + return this.GetAttributeValue>("minpollingintervalinminutes"); + } + set + { + this.OnPropertyChanging("MinPollingIntervalInMinutes"); + this.SetAttributeValue("minpollingintervalinminutes", value); + this.OnPropertyChanged("MinPollingIntervalInMinutes"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Indicates whether to move undelivered incoming emails to the Undeliverable folder in Microsoft Exchange. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("moveundeliveredemails")] + public System.Nullable MoveUndeliveredEmails + { + get + { + return this.GetAttributeValue>("moveundeliveredemails"); + } + set + { + this.OnPropertyChanging("MoveUndeliveredEmails"); + this.SetAttributeValue("moveundeliveredemails", value); + this.OnPropertyChanged("MoveUndeliveredEmails"); + } + } + + /// + /// Type the name of the email server profile record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Select the outgoing email authentication protocol that is used for connecting to the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingauthenticationprotocol")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingAuthenticationProtocol + { + get + { + return this.GetAttributeValue("outgoingauthenticationprotocol"); + } + set + { + this.OnPropertyChanging("OutgoingAuthenticationProtocol"); + this.SetAttributeValue("outgoingauthenticationprotocol", value); + this.OnPropertyChanged("OutgoingAuthenticationProtocol"); + } + } + + /// + /// Indicates whether the email connector will grant delegate access permissions to the accessing user when required while processing outgoing emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingautograntdelegateaccess")] + public System.Nullable OutgoingAutoGrantDelegateAccess + { + get + { + return this.GetAttributeValue>("outgoingautograntdelegateaccess"); + } + set + { + this.OnPropertyChanging("OutgoingAutoGrantDelegateAccess"); + this.SetAttributeValue("outgoingautograntdelegateaccess", value); + this.OnPropertyChanged("OutgoingAutoGrantDelegateAccess"); + } + } + + /// + /// Select how credentials will be retrieved for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingcredentialretrieval")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingCredentialRetrieval + { + get + { + return this.GetAttributeValue("outgoingcredentialretrieval"); + } + set + { + this.OnPropertyChanging("OutgoingCredentialRetrieval"); + this.SetAttributeValue("outgoingcredentialretrieval", value); + this.OnPropertyChanged("OutgoingCredentialRetrieval"); + } + } + + /// + /// Indicates the outgoing partner application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingpartnerapplication")] + public Microsoft.Xrm.Sdk.EntityReference OutgoingPartnerApplication + { + get + { + return this.GetAttributeValue("outgoingpartnerapplication"); + } + } + + /// + /// Type the password for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingpassword")] + public string OutgoingPassword + { + get + { + return this.GetAttributeValue("outgoingpassword"); + } + set + { + this.OnPropertyChanging("OutgoingPassword"); + this.SetAttributeValue("outgoingpassword", value); + this.OnPropertyChanged("OutgoingPassword"); + } + } + + /// + /// Type the port number for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingportnumber")] + public System.Nullable OutgoingPortNumber + { + get + { + return this.GetAttributeValue>("outgoingportnumber"); + } + set + { + this.OnPropertyChanging("OutgoingPortNumber"); + this.SetAttributeValue("outgoingportnumber", value); + this.OnPropertyChanged("OutgoingPortNumber"); + } + } + + /// + /// Type the location of the server for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingserverlocation")] + public string OutgoingServerLocation + { + get + { + return this.GetAttributeValue("outgoingserverlocation"); + } + set + { + this.OnPropertyChanging("OutgoingServerLocation"); + this.SetAttributeValue("outgoingserverlocation", value); + this.OnPropertyChanged("OutgoingServerLocation"); + } + } + + /// + /// Select whether to use impersonation for accessing the mailbox to process outgoing emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoinguseimpersonation")] + public System.Nullable OutgoingUseImpersonation + { + get + { + return this.GetAttributeValue>("outgoinguseimpersonation"); + } + set + { + this.OnPropertyChanging("OutgoingUseImpersonation"); + this.SetAttributeValue("outgoinguseimpersonation", value); + this.OnPropertyChanged("OutgoingUseImpersonation"); + } + } + + /// + /// Type the user name for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingusername")] + public string OutgoingUsername + { + get + { + return this.GetAttributeValue("outgoingusername"); + } + set + { + this.OnPropertyChanging("OutgoingUsername"); + this.SetAttributeValue("outgoingusername", value); + this.OnPropertyChanged("OutgoingUsername"); + } + } + + /// + /// Select whether to use the Secure Sockets Layer (SSL) protocol for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingusessl")] + public System.Nullable OutgoingUseSSL + { + get + { + return this.GetAttributeValue>("outgoingusessl"); + } + set + { + this.OnPropertyChanging("OutgoingUseSSL"); + this.SetAttributeValue("outgoingusessl", value); + this.OnPropertyChanged("OutgoingUseSSL"); + } + } + + /// + /// 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 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 date and time after which email messages that are received will be processed for mailboxes associated with the email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processemailsreceivedafter")] + public System.Nullable ProcessEmailsReceivedAfter + { + get + { + return this.GetAttributeValue>("processemailsreceivedafter"); + } + set + { + this.OnPropertyChanging("ProcessEmailsReceivedAfter"); + this.SetAttributeValue("processemailsreceivedafter", value); + this.OnPropertyChanged("ProcessEmailsReceivedAfter"); + } + } + + /// + /// Select the profile's email server type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servertype")] + public Microsoft.Xrm.Sdk.OptionSetValue ServerType + { + get + { + return this.GetAttributeValue("servertype"); + } + set + { + this.OnPropertyChanging("ServerType"); + this.SetAttributeValue("servertype", value); + this.OnPropertyChanged("ServerType"); + } + } + + /// + /// Shows whether the email server profile 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 ((Xrm.Framework.CI.Common.Entities.EmailServerProfileState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.EmailServerProfileState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the email server profile'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"); + } + } + + /// + /// Select whether to automatically discover the server location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useautodiscover")] + public System.Nullable UseAutoDiscover + { + get + { + return this.GetAttributeValue>("useautodiscover"); + } + set + { + this.OnPropertyChanging("UseAutoDiscover"); + this.SetAttributeValue("useautodiscover", value); + this.OnPropertyChanged("UseAutoDiscover"); + } + } + + /// + /// Select whether to use the same settings for incoming and outgoing connections. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usesamesettingsforoutgoingconnections")] + public System.Nullable UseSameSettingsForOutgoingConnections + { + get + { + return this.GetAttributeValue>("usesamesettingsforoutgoingconnections"); + } + set + { + this.OnPropertyChanging("UseSameSettingsForOutgoingConnections"); + this.SetAttributeValue("usesamesettingsforoutgoingconnections", value); + this.OnPropertyChanged("UseSameSettingsForOutgoingConnections"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N EmailServerProfile_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Annotation")] + public System.Collections.Generic.IEnumerable EmailServerProfile_Annotation + { + get + { + return this.GetRelatedEntities("EmailServerProfile_Annotation", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Annotation"); + this.SetRelatedEntities("EmailServerProfile_Annotation", null, value); + this.OnPropertyChanged("EmailServerProfile_Annotation"); + } + } + + /// + /// 1:N emailserverprofile_asyncoperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_asyncoperations")] + public System.Collections.Generic.IEnumerable emailserverprofile_asyncoperations + { + get + { + return this.GetRelatedEntities("emailserverprofile_asyncoperations", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_asyncoperations"); + this.SetRelatedEntities("emailserverprofile_asyncoperations", null, value); + this.OnPropertyChanged("emailserverprofile_asyncoperations"); + } + } + + /// + /// 1:N emailserverprofile_bulkdeletefailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_bulkdeletefailures")] + public System.Collections.Generic.IEnumerable emailserverprofile_bulkdeletefailures + { + get + { + return this.GetRelatedEntities("emailserverprofile_bulkdeletefailures", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_bulkdeletefailures"); + this.SetRelatedEntities("emailserverprofile_bulkdeletefailures", null, value); + this.OnPropertyChanged("emailserverprofile_bulkdeletefailures"); + } + } + + /// + /// 1:N emailserverprofile_duplicatebaserecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatebaserecord")] + public System.Collections.Generic.IEnumerable emailserverprofile_duplicatebaserecord + { + get + { + return this.GetRelatedEntities("emailserverprofile_duplicatebaserecord", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_duplicatebaserecord"); + this.SetRelatedEntities("emailserverprofile_duplicatebaserecord", null, value); + this.OnPropertyChanged("emailserverprofile_duplicatebaserecord"); + } + } + + /// + /// 1:N emailserverprofile_duplicatematchingrecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatematchingrecord")] + public System.Collections.Generic.IEnumerable emailserverprofile_duplicatematchingrecord + { + get + { + return this.GetRelatedEntities("emailserverprofile_duplicatematchingrecord", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_duplicatematchingrecord"); + this.SetRelatedEntities("emailserverprofile_duplicatematchingrecord", null, value); + this.OnPropertyChanged("emailserverprofile_duplicatematchingrecord"); + } + } + + /// + /// 1:N emailserverprofile_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_mailbox")] + public System.Collections.Generic.IEnumerable emailserverprofile_mailbox + { + get + { + return this.GetRelatedEntities("emailserverprofile_mailbox", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_mailbox"); + this.SetRelatedEntities("emailserverprofile_mailbox", null, value); + this.OnPropertyChanged("emailserverprofile_mailbox"); + } + } + + /// + /// 1:N EmailServerProfile_Organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Organization")] + public System.Collections.Generic.IEnumerable EmailServerProfile_Organization + { + get + { + return this.GetRelatedEntities("EmailServerProfile_Organization", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Organization"); + this.SetRelatedEntities("EmailServerProfile_Organization", null, value); + this.OnPropertyChanged("EmailServerProfile_Organization"); + } + } + + /// + /// 1:N tracelog_EmailServerProfile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_EmailServerProfile")] + public System.Collections.Generic.IEnumerable tracelog_EmailServerProfile + { + get + { + return this.GetRelatedEntities("tracelog_EmailServerProfile", null); + } + set + { + this.OnPropertyChanging("tracelog_EmailServerProfile"); + this.SetRelatedEntities("tracelog_EmailServerProfile", null, value); + this.OnPropertyChanged("tracelog_EmailServerProfile"); + } + } + + /// + /// N:1 business_unit_emailserverprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_emailserverprofile")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_emailserverprofile + { + get + { + return this.GetRelatedEntity("business_unit_emailserverprofile", null); + } + } + + /// + /// N:1 lk_emailserverprofile_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_createdby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_createdby", null); + } + } + + /// + /// N:1 lk_emailserverprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_emailserverprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_modifiedby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_modifiedby", null); + } + } + + /// + /// N:1 lk_emailserverprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_emailserverprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_emailserverprofile")] + public Xrm.Framework.CI.Common.Entities.Organization organization_emailserverprofile + { + get + { + return this.GetRelatedEntity("organization_emailserverprofile", null); + } + } + + /// + /// N:1 team_emailserverprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_emailserverprofile")] + public Xrm.Framework.CI.Common.Entities.Team team_emailserverprofile + { + get + { + return this.GetRelatedEntity("team_emailserverprofile", null); + } + } + } + + /// + /// Represents a mapping between two related entities so that data from one record can be copied into the form of a new related record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("entitymap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class EntityMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public EntityMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "entitymap"; + + public const int EntityTypeCode = 4600; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the entity map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the entity map 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 entitymap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the entity map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + public System.Nullable EntityMapId + { + get + { + return this.GetAttributeValue>("entitymapid"); + } + set + { + this.OnPropertyChanging("EntityMapId"); + this.SetAttributeValue("entitymapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("EntityMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.EntityMapId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapidunique")] + public System.Nullable EntityMapIdUnique + { + get + { + return this.GetAttributeValue>("entitymapidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the entity map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the entity map 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 entitymap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the entity map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Name of the source entity for the entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N entity_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entity_map_attribute_maps")] + public System.Collections.Generic.IEnumerable entity_map_attribute_maps + { + get + { + return this.GetRelatedEntities("entity_map_attribute_maps", null); + } + set + { + this.OnPropertyChanging("entity_map_attribute_maps"); + this.SetRelatedEntities("entity_map_attribute_maps", null, value); + this.OnPropertyChanged("entity_map_attribute_maps"); + } + } + + /// + /// 1:N EntityMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable EntityMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("EntityMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("EntityMap_AsyncOperations"); + this.SetRelatedEntities("EntityMap_AsyncOperations", null, value); + this.OnPropertyChanged("EntityMap_AsyncOperations"); + } + } + + /// + /// 1:N EntityMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable EntityMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("EntityMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("EntityMap_BulkDeleteFailures"); + this.SetRelatedEntities("EntityMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("EntityMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_entitymap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_entitymap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_entitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_entitymap"); + this.SetRelatedEntities("userentityinstancedata_entitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_entitymap"); + } + } + + /// + /// N:1 createdby_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_entitymap")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_entitymap + { + get + { + return this.GetRelatedEntity("createdby_entitymap", null); + } + } + + /// + /// N:1 lk_entitymap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_entitymap_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_entitymap_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_entitymap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_entitymap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_entitymap_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_entitymap")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_entitymap + { + get + { + return this.GetRelatedEntity("modifiedby_entitymap", null); + } + } + + /// + /// N:1 organization_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_entitymap")] + public Xrm.Framework.CI.Common.Entities.Organization organization_entitymap + { + get + { + return this.GetRelatedEntity("organization_entitymap", null); + } + } + } + + /// + /// Resource that can be scheduled. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("equipment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Equipment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Equipment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "equipment"; + + public const int EntityTypeCode = 4000; + + 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 associated business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Fiscal calendar associated with the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Unique identifier of the user who created the facility/equipment entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the facility/equipment entry 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 equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// Email address of person to contact about the use of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Unique identifier of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("equipmentid")] + public System.Nullable EquipmentId + { + get + { + return this.GetAttributeValue>("equipmentid"); + } + set + { + this.OnPropertyChanging("EquipmentId"); + this.SetAttributeValue("equipmentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("EquipmentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("equipmentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.EquipmentId = value; + } + } + + /// + /// Exchange rate for the currency associated with the equipment with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Whether the facility/equipment is disabled or operational. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + set + { + this.OnPropertyChanging("IsDisabled"); + this.SetAttributeValue("isdisabled", value); + this.OnPropertyChanged("IsDisabled"); + } + } + + /// + /// Unique identifier of the user who last modified the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the facility/equipment entry 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 equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the parent business unit. + /// + [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"); + } + } + + /// + /// Site where the facility/equipment is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Skills needed to operate the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] + public string Skills + { + get + { + return this.GetAttributeValue("skills"); + } + set + { + this.OnPropertyChanging("Skills"); + this.SetAttributeValue("skills", value); + this.OnPropertyChanged("Skills"); + } + } + + /// + /// Local time zone where the facility/equipment is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// 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 equipment. + /// + [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 of the equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N equipment_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_accounts")] + public System.Collections.Generic.IEnumerable equipment_accounts + { + get + { + return this.GetRelatedEntities("equipment_accounts", null); + } + set + { + this.OnPropertyChanging("equipment_accounts"); + this.SetRelatedEntities("equipment_accounts", null, value); + this.OnPropertyChanged("equipment_accounts"); + } + } + + /// + /// 1:N equipment_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_activity_parties")] + public System.Collections.Generic.IEnumerable equipment_activity_parties + { + get + { + return this.GetRelatedEntities("equipment_activity_parties", null); + } + set + { + this.OnPropertyChanging("equipment_activity_parties"); + this.SetRelatedEntities("equipment_activity_parties", null, value); + this.OnPropertyChanged("equipment_activity_parties"); + } + } + + /// + /// 1:N Equipment_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_Annotation")] + public System.Collections.Generic.IEnumerable Equipment_Annotation + { + get + { + return this.GetRelatedEntities("Equipment_Annotation", null); + } + set + { + this.OnPropertyChanging("Equipment_Annotation"); + this.SetRelatedEntities("Equipment_Annotation", null, value); + this.OnPropertyChanged("Equipment_Annotation"); + } + } + + /// + /// 1:N Equipment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_AsyncOperations")] + public System.Collections.Generic.IEnumerable Equipment_AsyncOperations + { + get + { + return this.GetRelatedEntities("Equipment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Equipment_AsyncOperations"); + this.SetRelatedEntities("Equipment_AsyncOperations", null, value); + this.OnPropertyChanged("Equipment_AsyncOperations"); + } + } + + /// + /// 1:N Equipment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Equipment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Equipment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Equipment_BulkDeleteFailures"); + this.SetRelatedEntities("Equipment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Equipment_BulkDeleteFailures"); + } + } + + /// + /// 1:N equipment_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections1")] + public System.Collections.Generic.IEnumerable equipment_connections1 + { + get + { + return this.GetRelatedEntities("equipment_connections1", null); + } + set + { + this.OnPropertyChanging("equipment_connections1"); + this.SetRelatedEntities("equipment_connections1", null, value); + this.OnPropertyChanged("equipment_connections1"); + } + } + + /// + /// 1:N equipment_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections2")] + public System.Collections.Generic.IEnumerable equipment_connections2 + { + get + { + return this.GetRelatedEntities("equipment_connections2", null); + } + set + { + this.OnPropertyChanging("equipment_connections2"); + this.SetRelatedEntities("equipment_connections2", null, value); + this.OnPropertyChanged("equipment_connections2"); + } + } + + /// + /// 1:N equipment_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_contacts")] + public System.Collections.Generic.IEnumerable equipment_contacts + { + get + { + return this.GetRelatedEntities("equipment_contacts", null); + } + set + { + this.OnPropertyChanging("equipment_contacts"); + this.SetRelatedEntities("equipment_contacts", null, value); + this.OnPropertyChanged("equipment_contacts"); + } + } + + /// + /// 1:N Equipment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Equipment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Equipment_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Equipment_DuplicateBaseRecord"); + this.SetRelatedEntities("Equipment_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Equipment_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Equipment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Equipment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Equipment_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Equipment_DuplicateMatchingRecord"); + this.SetRelatedEntities("Equipment_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Equipment_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N equipment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable equipment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("equipment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("equipment_principalobjectattributeaccess"); + this.SetRelatedEntities("equipment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("equipment_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Equipment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_ProcessSessions")] + public System.Collections.Generic.IEnumerable Equipment_ProcessSessions + { + get + { + return this.GetRelatedEntities("Equipment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Equipment_ProcessSessions"); + this.SetRelatedEntities("Equipment_ProcessSessions", null, value); + this.OnPropertyChanged("Equipment_ProcessSessions"); + } + } + + /// + /// 1:N equipment_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_resources")] + public System.Collections.Generic.IEnumerable equipment_resources + { + get + { + return this.GetRelatedEntities("equipment_resources", null); + } + set + { + this.OnPropertyChanging("equipment_resources"); + this.SetRelatedEntities("equipment_resources", null, value); + this.OnPropertyChanged("equipment_resources"); + } + } + + /// + /// 1:N userentityinstancedata_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_equipment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_equipment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_equipment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_equipment"); + this.SetRelatedEntities("userentityinstancedata_equipment", null, value); + this.OnPropertyChanged("userentityinstancedata_equipment"); + } + } + + /// + /// N:1 business_unit_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_equipment")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_equipment + { + get + { + return this.GetRelatedEntity("business_unit_equipment", null); + } + set + { + this.OnPropertyChanging("business_unit_equipment"); + this.SetRelatedEntity("business_unit_equipment", null, value); + this.OnPropertyChanged("business_unit_equipment"); + } + } + + /// + /// N:1 calendar_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_equipment")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_equipment + { + get + { + return this.GetRelatedEntity("calendar_equipment", null); + } + set + { + this.OnPropertyChanging("calendar_equipment"); + this.SetRelatedEntity("calendar_equipment", null, value); + this.OnPropertyChanged("calendar_equipment"); + } + } + + /// + /// N:1 equipment_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser equipment_systemuser + { + get + { + return this.GetRelatedEntity("equipment_systemuser", null); + } + set + { + this.OnPropertyChanging("equipment_systemuser"); + this.SetRelatedEntity("equipment_systemuser", null, value); + this.OnPropertyChanged("equipment_systemuser"); + } + } + + /// + /// N:1 lk_equipment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_createdby + { + get + { + return this.GetRelatedEntity("lk_equipment_createdby", null); + } + } + + /// + /// N:1 lk_equipment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_equipment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_equipment_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_modifiedby + { + get + { + return this.GetRelatedEntity("lk_equipment_modifiedby", null); + } + } + + /// + /// N:1 lk_equipment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_equipment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_equipment")] + public Xrm.Framework.CI.Common.Entities.Organization organization_equipment + { + get + { + return this.GetRelatedEntity("organization_equipment", null); + } + } + + /// + /// N:1 site_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_equipment")] + public Xrm.Framework.CI.Common.Entities.Site site_equipment + { + get + { + return this.GetRelatedEntity("site_equipment", null); + } + set + { + this.OnPropertyChanging("site_equipment"); + this.SetRelatedEntity("site_equipment", null, value); + this.OnPropertyChanged("site_equipment"); + } + } + + /// + /// N:1 TransactionCurrency_Equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Equipment")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Equipment + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Equipment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Equipment"); + this.SetRelatedEntity("TransactionCurrency_Equipment", null, value); + this.OnPropertyChanged("TransactionCurrency_Equipment"); + } + } + } + + /// + /// The mapping used to keep track of the IDs for items synced between CRM and Exchange. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("exchangesyncidmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ExchangeSyncIdMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ExchangeSyncIdMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "exchangesyncidmapping"; + + public const int EntityTypeCode = 4120; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeentryid")] + public string ExchangeEntryId + { + get + { + return this.GetAttributeValue("exchangeentryid"); + } + set + { + this.OnPropertyChanging("ExchangeEntryId"); + this.SetAttributeValue("exchangeentryid", value); + this.OnPropertyChanged("ExchangeEntryId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangesyncidmappingid")] + public System.Nullable ExchangeSyncIdmappingId + { + get + { + return this.GetAttributeValue>("exchangesyncidmappingid"); + } + set + { + this.OnPropertyChanging("ExchangeSyncIdmappingId"); + this.SetAttributeValue("exchangesyncidmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ExchangeSyncIdmappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangesyncidmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ExchangeSyncIdmappingId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fromcrmchangetype")] + public System.Nullable FromCrmChangeType + { + get + { + return this.GetAttributeValue>("fromcrmchangetype"); + } + set + { + this.OnPropertyChanging("FromCrmChangeType"); + this.SetAttributeValue("fromcrmchangetype", value); + this.OnPropertyChanged("FromCrmChangeType"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdeletedinexchange")] + public System.Nullable IsDeletedInExchange + { + get + { + return this.GetAttributeValue>("isdeletedinexchange"); + } + set + { + this.OnPropertyChanging("IsDeletedInExchange"); + this.SetAttributeValue("isdeletedinexchange", value); + this.OnPropertyChanged("IsDeletedInExchange"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isunlinkedincrm")] + public System.Nullable IsUnlinkedInCRM + { + get + { + return this.GetAttributeValue>("isunlinkedincrm"); + } + set + { + this.OnPropertyChanging("IsUnlinkedInCRM"); + this.SetAttributeValue("isunlinkedincrm", value); + this.OnPropertyChanged("IsUnlinkedInCRM"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastsyncerror")] + public string LastSyncError + { + get + { + return this.GetAttributeValue("lastsyncerror"); + } + set + { + this.OnPropertyChanging("LastSyncError"); + this.SetAttributeValue("lastsyncerror", value); + this.OnPropertyChanged("LastSyncError"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastsyncerrorcode")] + public System.Nullable LastSyncErrorCode + { + get + { + return this.GetAttributeValue>("lastsyncerrorcode"); + } + set + { + this.OnPropertyChanging("LastSyncErrorCode"); + this.SetAttributeValue("lastsyncerrorcode", value); + this.OnPropertyChanged("LastSyncErrorCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// + /// + [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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retries")] + public System.Nullable Retries + { + get + { + return this.GetAttributeValue>("retries"); + } + set + { + this.OnPropertyChanging("Retries"); + this.SetAttributeValue("retries", value); + this.OnPropertyChanged("Retries"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tocrmchangetype")] + public System.Nullable ToCrmChangeType + { + get + { + return this.GetAttributeValue>("tocrmchangetype"); + } + set + { + this.OnPropertyChanging("ToCrmChangeType"); + this.SetAttributeValue("tocrmchangetype", value); + this.OnPropertyChanged("ToCrmChangeType"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userdecision")] + public System.Nullable UserDecision + { + get + { + return this.GetAttributeValue>("userdecision"); + } + set + { + this.OnPropertyChanging("UserDecision"); + this.SetAttributeValue("userdecision", value); + this.OnPropertyChanged("UserDecision"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 business_unit_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_exchangesyncidmapping")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_exchangesyncidmapping + { + get + { + return this.GetRelatedEntity("business_unit_exchangesyncidmapping", null); + } + } + + /// + /// N:1 team_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_exchangesyncidmapping")] + public Xrm.Framework.CI.Common.Entities.Team team_exchangesyncidmapping + { + get + { + return this.GetRelatedEntity("team_exchangesyncidmapping", null); + } + } + + /// + /// N:1 user_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_exchangesyncidmapping")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_exchangesyncidmapping + { + get + { + return this.GetRelatedEntity("user_exchangesyncidmapping", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum FaxState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that tracks call outcome and number of pages for a fax and optionally stores an electronic copy of the document. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fax")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Fax : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Fax() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fax"; + + public const int EntityTypeCode = 4204; + + 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 fax 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"); + } + } + + /// + /// Type the number of minutes spent creating and sending the fax. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the fax. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual time to create and send the fax. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the fax. By default, it displays the date and time when the activity was created, but can be edited to capture the actual time to create and send the fax. + /// + [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"); + } + } + + /// + /// Type the billing code for the fax to make sure the fax is charged to the correct sender or customer account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcode")] + public string BillingCode + { + get + { + return this.GetAttributeValue("billingcode"); + } + set + { + this.OnPropertyChanging("BillingCode"); + this.SetAttributeValue("billingcode", value); + this.OnPropertyChanged("BillingCode"); + } + } + + /// + /// Type a category to identify the fax type, such as sales offer or press release, to tie the fax to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Type the name of the cover page to use when sending the fax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("coverpagename")] + public string CoverPageName + { + get + { + return this.GetAttributeValue("coverpagename"); + } + set + { + this.OnPropertyChanging("CoverPageName"); + this.SetAttributeValue("coverpagename", value); + this.OnPropertyChanged("CoverPageName"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the fax, such as the primary message or the products and services featured. + /// + [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 the direction of the fax as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 recipient's fax number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("faxnumber")] + public string FaxNumber + { + get + { + return this.GetAttributeValue("faxnumber"); + } + set + { + this.OnPropertyChanging("FaxNumber"); + this.SetAttributeValue("faxnumber", value); + this.OnPropertyChanged("FaxNumber"); + } + } + + /// + /// Enter the account, contact, lead, queue, or user who sent the fax. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information regarding whether the fax 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indication of whether the fax activity was created by 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type the number of pages included in the fax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberofpages")] + public System.Nullable NumberOfPages + { + get + { + return this.GetAttributeValue>("numberofpages"); + } + set + { + this.OnPropertyChanging("NumberOfPages"); + this.SetAttributeValue("numberofpages", value); + this.OnPropertyChanged("NumberOfPages"); + } + } + + /// + /// 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 fax 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 fax 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 fax activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the fax 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"); + } + } + + /// + /// Shows the expected duration of the fax activity, in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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 for an associated service. + /// + [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"); + } + } + + /// + /// 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 fax activity is open, completed, or canceled. Completed and canceled fax activities are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.FaxState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.FaxState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the fax'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"); + } + } + + /// + /// Type a subcategory to identify the fax type to relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the fax. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, queue, or user recipients for the fax. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the Transmitting Subscriber ID (TSID) associated with a send action. This is typically a combination of the recipient's fax or phone number and company name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tsid")] + public string Tsid + { + get + { + return this.GetAttributeValue("tsid"); + } + set + { + this.OnPropertyChanging("Tsid"); + this.SetAttributeValue("tsid", value); + this.OnPropertyChanged("Tsid"); + } + } + + /// + /// 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 fax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N fax_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_activity_parties")] + public System.Collections.Generic.IEnumerable fax_activity_parties + { + get + { + return this.GetRelatedEntities("fax_activity_parties", null); + } + set + { + this.OnPropertyChanging("fax_activity_parties"); + this.SetRelatedEntities("fax_activity_parties", null, value); + this.OnPropertyChanged("fax_activity_parties"); + } + } + + /// + /// 1:N Fax_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_Annotation")] + public System.Collections.Generic.IEnumerable Fax_Annotation + { + get + { + return this.GetRelatedEntities("Fax_Annotation", null); + } + set + { + this.OnPropertyChanging("Fax_Annotation"); + this.SetRelatedEntities("Fax_Annotation", null, value); + this.OnPropertyChanged("Fax_Annotation"); + } + } + + /// + /// 1:N Fax_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_AsyncOperations")] + public System.Collections.Generic.IEnumerable Fax_AsyncOperations + { + get + { + return this.GetRelatedEntities("Fax_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Fax_AsyncOperations"); + this.SetRelatedEntities("Fax_AsyncOperations", null, value); + this.OnPropertyChanged("Fax_AsyncOperations"); + } + } + + /// + /// 1:N Fax_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Fax_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Fax_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Fax_BulkDeleteFailures"); + this.SetRelatedEntities("Fax_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Fax_BulkDeleteFailures"); + } + } + + /// + /// 1:N fax_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_campaignresponse")] + public System.Collections.Generic.IEnumerable fax_campaignresponse + { + get + { + return this.GetRelatedEntities("fax_campaignresponse", null); + } + set + { + this.OnPropertyChanging("fax_campaignresponse"); + this.SetRelatedEntities("fax_campaignresponse", null, value); + this.OnPropertyChanged("fax_campaignresponse"); + } + } + + /// + /// 1:N fax_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections1")] + public System.Collections.Generic.IEnumerable fax_connections1 + { + get + { + return this.GetRelatedEntities("fax_connections1", null); + } + set + { + this.OnPropertyChanging("fax_connections1"); + this.SetRelatedEntities("fax_connections1", null, value); + this.OnPropertyChanged("fax_connections1"); + } + } + + /// + /// 1:N fax_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections2")] + public System.Collections.Generic.IEnumerable fax_connections2 + { + get + { + return this.GetRelatedEntities("fax_connections2", null); + } + set + { + this.OnPropertyChanging("fax_connections2"); + this.SetRelatedEntities("fax_connections2", null, value); + this.OnPropertyChanged("fax_connections2"); + } + } + + /// + /// 1:N Fax_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Fax_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Fax_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Fax_DuplicateBaseRecord"); + this.SetRelatedEntities("Fax_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Fax_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Fax_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Fax_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Fax_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Fax_DuplicateMatchingRecord"); + this.SetRelatedEntities("Fax_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Fax_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N fax_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable fax_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("fax_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("fax_principalobjectattributeaccess"); + this.SetRelatedEntities("fax_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("fax_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Fax_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_ProcessSessions")] + public System.Collections.Generic.IEnumerable Fax_ProcessSessions + { + get + { + return this.GetRelatedEntities("Fax_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Fax_ProcessSessions"); + this.SetRelatedEntities("Fax_ProcessSessions", null, value); + this.OnPropertyChanged("Fax_ProcessSessions"); + } + } + + /// + /// 1:N Fax_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_QueueItem")] + public System.Collections.Generic.IEnumerable Fax_QueueItem + { + get + { + return this.GetRelatedEntities("Fax_QueueItem", null); + } + set + { + this.OnPropertyChanging("Fax_QueueItem"); + this.SetRelatedEntities("Fax_QueueItem", null, value); + this.OnPropertyChanged("Fax_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fax")] + public System.Collections.Generic.IEnumerable userentityinstancedata_fax + { + get + { + return this.GetRelatedEntities("userentityinstancedata_fax", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fax"); + this.SetRelatedEntities("userentityinstancedata_fax", null, value); + this.OnPropertyChanged("userentityinstancedata_fax"); + } + } + + /// + /// N:1 Account_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Faxes")] + public Xrm.Framework.CI.Common.Entities.Account Account_Faxes + { + get + { + return this.GetRelatedEntity("Account_Faxes", null); + } + set + { + this.OnPropertyChanging("Account_Faxes"); + this.SetRelatedEntity("Account_Faxes", null, value); + this.OnPropertyChanged("Account_Faxes"); + } + } + + /// + /// N:1 activity_pointer_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_fax")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_fax + { + get + { + return this.GetRelatedEntity("activity_pointer_fax", null); + } + set + { + this.OnPropertyChanging("activity_pointer_fax"); + this.SetRelatedEntity("activity_pointer_fax", null, value); + this.OnPropertyChanged("activity_pointer_fax"); + } + } + + /// + /// N:1 BulkOperation_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Faxes")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Faxes + { + get + { + return this.GetRelatedEntity("BulkOperation_Faxes", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Faxes"); + this.SetRelatedEntity("BulkOperation_Faxes", null, value); + this.OnPropertyChanged("BulkOperation_Faxes"); + } + } + + /// + /// N:1 business_unit_fax_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_fax_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_fax_activities + { + get + { + return this.GetRelatedEntity("business_unit_fax_activities", null); + } + } + + /// + /// N:1 Campaign_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Faxes")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Faxes + { + get + { + return this.GetRelatedEntity("Campaign_Faxes", null); + } + set + { + this.OnPropertyChanging("Campaign_Faxes"); + this.SetRelatedEntity("Campaign_Faxes", null, value); + this.OnPropertyChanged("Campaign_Faxes"); + } + } + + /// + /// N:1 CampaignActivity_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Faxes")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Faxes + { + get + { + return this.GetRelatedEntity("CampaignActivity_Faxes", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Faxes"); + this.SetRelatedEntity("CampaignActivity_Faxes", null, value); + this.OnPropertyChanged("CampaignActivity_Faxes"); + } + } + + /// + /// N:1 Contact_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Faxes")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Faxes + { + get + { + return this.GetRelatedEntity("Contact_Faxes", null); + } + set + { + this.OnPropertyChanging("Contact_Faxes"); + this.SetRelatedEntity("Contact_Faxes", null, value); + this.OnPropertyChanged("Contact_Faxes"); + } + } + + /// + /// N:1 Contract_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Faxes")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Faxes + { + get + { + return this.GetRelatedEntity("Contract_Faxes", null); + } + set + { + this.OnPropertyChanging("Contract_Faxes"); + this.SetRelatedEntity("Contract_Faxes", null, value); + this.OnPropertyChanged("Contract_Faxes"); + } + } + + /// + /// N:1 Incident_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Faxes")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Faxes + { + get + { + return this.GetRelatedEntity("Incident_Faxes", null); + } + set + { + this.OnPropertyChanging("Incident_Faxes"); + this.SetRelatedEntity("Incident_Faxes", null, value); + this.OnPropertyChanged("Incident_Faxes"); + } + } + + /// + /// N:1 Invoice_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Faxes")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Faxes + { + get + { + return this.GetRelatedEntity("Invoice_Faxes", null); + } + set + { + this.OnPropertyChanging("Invoice_Faxes"); + this.SetRelatedEntity("Invoice_Faxes", null, value); + this.OnPropertyChanged("Invoice_Faxes"); + } + } + + /// + /// N:1 Lead_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Faxes")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Faxes + { + get + { + return this.GetRelatedEntity("Lead_Faxes", null); + } + set + { + this.OnPropertyChanging("Lead_Faxes"); + this.SetRelatedEntity("Lead_Faxes", null, value); + this.OnPropertyChanged("Lead_Faxes"); + } + } + + /// + /// N:1 lk_fax_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_createdby + { + get + { + return this.GetRelatedEntity("lk_fax_createdby", null); + } + } + + /// + /// N:1 lk_fax_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fax_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_fax_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_modifiedby + { + get + { + return this.GetRelatedEntity("lk_fax_modifiedby", null); + } + } + + /// + /// N:1 lk_fax_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fax_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Faxes")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Faxes + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Faxes", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Faxes"); + this.SetRelatedEntity("msdyn_postalbum_Faxes", null, value); + this.OnPropertyChanged("msdyn_postalbum_Faxes"); + } + } + + /// + /// N:1 Opportunity_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Faxes")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Faxes + { + get + { + return this.GetRelatedEntity("Opportunity_Faxes", null); + } + set + { + this.OnPropertyChanging("Opportunity_Faxes"); + this.SetRelatedEntity("Opportunity_Faxes", null, value); + this.OnPropertyChanged("Opportunity_Faxes"); + } + } + + /// + /// N:1 processstage_faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_faxes")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_faxes + { + get + { + return this.GetRelatedEntity("processstage_faxes", null); + } + set + { + this.OnPropertyChanging("processstage_faxes"); + this.SetRelatedEntity("processstage_faxes", null, value); + this.OnPropertyChanged("processstage_faxes"); + } + } + + /// + /// N:1 Quote_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Faxes")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Faxes + { + get + { + return this.GetRelatedEntity("Quote_Faxes", null); + } + set + { + this.OnPropertyChanging("Quote_Faxes"); + this.SetRelatedEntity("Quote_Faxes", null, value); + this.OnPropertyChanged("Quote_Faxes"); + } + } + + /// + /// N:1 SalesOrder_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Faxes")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Faxes + { + get + { + return this.GetRelatedEntity("SalesOrder_Faxes", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Faxes"); + this.SetRelatedEntity("SalesOrder_Faxes", null, value); + this.OnPropertyChanged("SalesOrder_Faxes"); + } + } + + /// + /// N:1 service_faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_faxes")] + public Xrm.Framework.CI.Common.Entities.Service service_faxes + { + get + { + return this.GetRelatedEntity("service_faxes", null); + } + set + { + this.OnPropertyChanging("service_faxes"); + this.SetRelatedEntity("service_faxes", null, value); + this.OnPropertyChanged("service_faxes"); + } + } + + /// + /// N:1 team_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_fax")] + public Xrm.Framework.CI.Common.Entities.Team team_fax + { + get + { + return this.GetRelatedEntity("team_fax", null); + } + } + + /// + /// N:1 TransactionCurrency_Fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Fax")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Fax + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Fax", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Fax"); + this.SetRelatedEntity("TransactionCurrency_Fax", null, value); + this.OnPropertyChanged("TransactionCurrency_Fax"); + } + } + + /// + /// N:1 user_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_fax")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_fax + { + get + { + return this.GetRelatedEntity("user_fax", null); + } + } + } + + /// + /// Group of privileges used to categorize users to provide appropriate access to secured columns. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fieldpermission")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class FieldPermission : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public FieldPermission() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fieldpermission"; + + public const int EntityTypeCode = 1201; + + 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)); + } + } + + /// + /// Attribute Name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributelogicalname")] + public string AttributeLogicalName + { + get + { + return this.GetAttributeValue("attributelogicalname"); + } + set + { + this.OnPropertyChanging("AttributeLogicalName"); + this.SetAttributeValue("attributelogicalname", value); + this.OnPropertyChanged("AttributeLogicalName"); + } + } + + /// + /// Can this Profile create the attribute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cancreate")] + public Microsoft.Xrm.Sdk.OptionSetValue CanCreate + { + get + { + return this.GetAttributeValue("cancreate"); + } + set + { + this.OnPropertyChanging("CanCreate"); + this.SetAttributeValue("cancreate", value); + this.OnPropertyChanged("CanCreate"); + } + } + + /// + /// Can this Profile read the attribute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canread")] + public Microsoft.Xrm.Sdk.OptionSetValue CanRead + { + get + { + return this.GetAttributeValue("canread"); + } + set + { + this.OnPropertyChanging("CanRead"); + this.SetAttributeValue("canread", value); + this.OnPropertyChanged("CanRead"); + } + } + + /// + /// Can this Profile update the attribute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canupdate")] + public Microsoft.Xrm.Sdk.OptionSetValue CanUpdate + { + get + { + return this.GetAttributeValue("canupdate"); + } + set + { + this.OnPropertyChanging("CanUpdate"); + this.SetAttributeValue("canupdate", value); + this.OnPropertyChanged("CanUpdate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Entity name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityname")] + public string EntityName + { + get + { + return this.GetAttributeValue("entityname"); + } + set + { + this.OnPropertyChanging("EntityName"); + this.SetAttributeValue("entityname", value); + this.OnPropertyChanged("EntityName"); + } + } + + /// + /// Unique identifier of the Field Permission. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldpermissionid")] + public System.Nullable FieldPermissionId + { + get + { + return this.GetAttributeValue>("fieldpermissionid"); + } + set + { + this.OnPropertyChanging("FieldPermissionId"); + this.SetAttributeValue("fieldpermissionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FieldPermissionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldpermissionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FieldPermissionId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldpermissionidunique")] + public System.Nullable FieldPermissionIdUnique + { + get + { + return this.GetAttributeValue>("fieldpermissionidunique"); + } + } + + /// + /// Unique identifier of profile to which this privilege belongs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public Microsoft.Xrm.Sdk.EntityReference FieldSecurityProfileId + { + get + { + return this.GetAttributeValue("fieldsecurityprofileid"); + } + set + { + this.OnPropertyChanging("FieldSecurityProfileId"); + this.SetAttributeValue("fieldsecurityprofileid", value); + this.OnPropertyChanged("FieldSecurityProfileId"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_fieldpermission + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldpermission")] + public System.Collections.Generic.IEnumerable userentityinstancedata_fieldpermission + { + get + { + return this.GetRelatedEntities("userentityinstancedata_fieldpermission", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldpermission"); + this.SetRelatedEntities("userentityinstancedata_fieldpermission", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldpermission"); + } + } + + /// + /// N:1 lk_fieldpermission_fieldsecurityprofileid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldpermission_fieldsecurityprofileid")] + public Xrm.Framework.CI.Common.Entities.FieldSecurityProfile lk_fieldpermission_fieldsecurityprofileid + { + get + { + return this.GetRelatedEntity("lk_fieldpermission_fieldsecurityprofileid", null); + } + set + { + this.OnPropertyChanging("lk_fieldpermission_fieldsecurityprofileid"); + this.SetRelatedEntity("lk_fieldpermission_fieldsecurityprofileid", null, value); + this.OnPropertyChanged("lk_fieldpermission_fieldsecurityprofileid"); + } + } + } + + /// + /// Profile which defines access level for secured attributes + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fieldsecurityprofile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class FieldSecurityProfile : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public FieldSecurityProfile() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fieldsecurityprofile"; + + public const int EntityTypeCode = 1200; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the profile 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 role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the Profile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public System.Nullable FieldSecurityProfileId + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileid"); + } + set + { + this.OnPropertyChanging("FieldSecurityProfileId"); + this.SetAttributeValue("fieldsecurityprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FieldSecurityProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FieldSecurityProfileId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileidunique")] + public System.Nullable FieldSecurityProfileIdUnique + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileidunique"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the profile 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 profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the associated organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N lk_fieldpermission_fieldsecurityprofileid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldpermission_fieldsecurityprofileid")] + public System.Collections.Generic.IEnumerable lk_fieldpermission_fieldsecurityprofileid + { + get + { + return this.GetRelatedEntities("lk_fieldpermission_fieldsecurityprofileid", null); + } + set + { + this.OnPropertyChanging("lk_fieldpermission_fieldsecurityprofileid"); + this.SetRelatedEntities("lk_fieldpermission_fieldsecurityprofileid", null, value); + this.OnPropertyChanged("lk_fieldpermission_fieldsecurityprofileid"); + } + } + + /// + /// 1:N userentityinstancedata_fieldsecurityprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldsecurityprofile")] + public System.Collections.Generic.IEnumerable userentityinstancedata_fieldsecurityprofile + { + get + { + return this.GetRelatedEntities("userentityinstancedata_fieldsecurityprofile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldsecurityprofile"); + this.SetRelatedEntities("userentityinstancedata_fieldsecurityprofile", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldsecurityprofile"); + } + } + + /// + /// N:N systemuserprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserprofiles_association")] + public System.Collections.Generic.IEnumerable systemuserprofiles_association + { + get + { + return this.GetRelatedEntities("systemuserprofiles_association", null); + } + set + { + this.OnPropertyChanging("systemuserprofiles_association"); + this.SetRelatedEntities("systemuserprofiles_association", null, value); + this.OnPropertyChanged("systemuserprofiles_association"); + } + } + + /// + /// N:N teamprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamprofiles_association")] + public System.Collections.Generic.IEnumerable teamprofiles_association + { + get + { + return this.GetRelatedEntities("teamprofiles_association", null); + } + set + { + this.OnPropertyChanging("teamprofiles_association"); + this.SetRelatedEntities("teamprofiles_association", null, value); + this.OnPropertyChanged("teamprofiles_association"); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_createdby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_createdby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_modifiedby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_modifiedby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_organizationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_organizationid")] + public Xrm.Framework.CI.Common.Entities.Organization lk_fieldsecurityprofile_organizationid + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_organizationid", null); + } + } + } + + /// + /// Fixed monthly fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fixedmonthlyfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class FixedMonthlyFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public FixedMonthlyFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fixedmonthlyfiscalcalendar"; + + public const int EntityTypeCode = 2004; + + 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)); + } + } + + /// + /// Business unit responsible for the quota associated with this calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the fixed monthly fiscal calendar 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 fixedmonthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the fixed monthly fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the fixed monthly fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the fixed monthly fiscal calendar sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the fixed monthly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the fixed monthly fiscal calendar 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 fixedmonthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period1")] + public Microsoft.Xrm.Sdk.Money Period1 + { + get + { + return this.GetAttributeValue("period1"); + } + set + { + this.OnPropertyChanging("Period1"); + this.SetAttributeValue("period1", value); + this.OnPropertyChanged("Period1"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period1_base")] + public Microsoft.Xrm.Sdk.Money Period1_Base + { + get + { + return this.GetAttributeValue("period1_base"); + } + } + + /// + /// Sales quota for the tenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period10")] + public Microsoft.Xrm.Sdk.Money Period10 + { + get + { + return this.GetAttributeValue("period10"); + } + set + { + this.OnPropertyChanging("Period10"); + this.SetAttributeValue("period10", value); + this.OnPropertyChanged("Period10"); + } + } + + /// + /// Base currency equivalent of the sales quota for the tenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period10_base")] + public Microsoft.Xrm.Sdk.Money Period10_Base + { + get + { + return this.GetAttributeValue("period10_base"); + } + } + + /// + /// Sales quota for the eleventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period11")] + public Microsoft.Xrm.Sdk.Money Period11 + { + get + { + return this.GetAttributeValue("period11"); + } + set + { + this.OnPropertyChanging("Period11"); + this.SetAttributeValue("period11", value); + this.OnPropertyChanged("Period11"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eleventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period11_base")] + public Microsoft.Xrm.Sdk.Money Period11_Base + { + get + { + return this.GetAttributeValue("period11_base"); + } + } + + /// + /// Sales quota for the twelfth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period12")] + public Microsoft.Xrm.Sdk.Money Period12 + { + get + { + return this.GetAttributeValue("period12"); + } + set + { + this.OnPropertyChanging("Period12"); + this.SetAttributeValue("period12", value); + this.OnPropertyChanged("Period12"); + } + } + + /// + /// Base currency equivalent of the sales quota for the twelfth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period12_base")] + public Microsoft.Xrm.Sdk.Money Period12_Base + { + get + { + return this.GetAttributeValue("period12_base"); + } + } + + /// + /// Sales quota for the thirteenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period13")] + public Microsoft.Xrm.Sdk.Money Period13 + { + get + { + return this.GetAttributeValue("period13"); + } + set + { + this.OnPropertyChanging("Period13"); + this.SetAttributeValue("period13", value); + this.OnPropertyChanged("Period13"); + } + } + + /// + /// Base currency equivalent of the sales quota for the thirteenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period13_base")] + public Microsoft.Xrm.Sdk.Money Period13_Base + { + get + { + return this.GetAttributeValue("period13_base"); + } + } + + /// + /// Sales quota for the second period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period2")] + public Microsoft.Xrm.Sdk.Money Period2 + { + get + { + return this.GetAttributeValue("period2"); + } + set + { + this.OnPropertyChanging("Period2"); + this.SetAttributeValue("period2", value); + this.OnPropertyChanged("Period2"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period2_base")] + public Microsoft.Xrm.Sdk.Money Period2_Base + { + get + { + return this.GetAttributeValue("period2_base"); + } + } + + /// + /// Sales quota for the third period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period3")] + public Microsoft.Xrm.Sdk.Money Period3 + { + get + { + return this.GetAttributeValue("period3"); + } + set + { + this.OnPropertyChanging("Period3"); + this.SetAttributeValue("period3", value); + this.OnPropertyChanged("Period3"); + } + } + + /// + /// Base currency equivalent of the sales quota for the third period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period3_base")] + public Microsoft.Xrm.Sdk.Money Period3_Base + { + get + { + return this.GetAttributeValue("period3_base"); + } + } + + /// + /// Sales quota for the fourth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period4")] + public Microsoft.Xrm.Sdk.Money Period4 + { + get + { + return this.GetAttributeValue("period4"); + } + set + { + this.OnPropertyChanging("Period4"); + this.SetAttributeValue("period4", value); + this.OnPropertyChanged("Period4"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fourth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period4_base")] + public Microsoft.Xrm.Sdk.Money Period4_Base + { + get + { + return this.GetAttributeValue("period4_base"); + } + } + + /// + /// Sales quota for the fifth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period5")] + public Microsoft.Xrm.Sdk.Money Period5 + { + get + { + return this.GetAttributeValue("period5"); + } + set + { + this.OnPropertyChanging("Period5"); + this.SetAttributeValue("period5", value); + this.OnPropertyChanged("Period5"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fifth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period5_base")] + public Microsoft.Xrm.Sdk.Money Period5_Base + { + get + { + return this.GetAttributeValue("period5_base"); + } + } + + /// + /// Sales quota for the sixth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period6")] + public Microsoft.Xrm.Sdk.Money Period6 + { + get + { + return this.GetAttributeValue("period6"); + } + set + { + this.OnPropertyChanging("Period6"); + this.SetAttributeValue("period6", value); + this.OnPropertyChanged("Period6"); + } + } + + /// + /// Base currency equivalent of the sales quota for the sixth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period6_base")] + public Microsoft.Xrm.Sdk.Money Period6_Base + { + get + { + return this.GetAttributeValue("period6_base"); + } + } + + /// + /// Sales quota for the seventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period7")] + public Microsoft.Xrm.Sdk.Money Period7 + { + get + { + return this.GetAttributeValue("period7"); + } + set + { + this.OnPropertyChanging("Period7"); + this.SetAttributeValue("period7", value); + this.OnPropertyChanged("Period7"); + } + } + + /// + /// Base currency equivalent of the sales quota for the seventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period7_base")] + public Microsoft.Xrm.Sdk.Money Period7_Base + { + get + { + return this.GetAttributeValue("period7_base"); + } + } + + /// + /// Sales quota for the eighth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period8")] + public Microsoft.Xrm.Sdk.Money Period8 + { + get + { + return this.GetAttributeValue("period8"); + } + set + { + this.OnPropertyChanging("Period8"); + this.SetAttributeValue("period8", value); + this.OnPropertyChanged("Period8"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eighth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period8_base")] + public Microsoft.Xrm.Sdk.Money Period8_Base + { + get + { + return this.GetAttributeValue("period8_base"); + } + } + + /// + /// Sales quota for the ninth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period9")] + public Microsoft.Xrm.Sdk.Money Period9 + { + get + { + return this.GetAttributeValue("period9"); + } + set + { + this.OnPropertyChanging("Period9"); + this.SetAttributeValue("period9", value); + this.OnPropertyChanged("Period9"); + } + } + + /// + /// Base currency equivalent of the sales quota for the ninth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period9_base")] + public Microsoft.Xrm.Sdk.Money Period9_Base + { + get + { + return this.GetAttributeValue("period9_base"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 fixed monthly fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the user of the fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N FixedMonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable FixedMonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("FixedMonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("FixedMonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("FixedMonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("FixedMonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N FixedMonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable FixedMonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("FixedMonthlyFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("FixedMonthlyFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("FixedMonthlyFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("FixedMonthlyFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_fixedmonthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_fixedmonthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_fixedmonthlyfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_fixedmonthlyfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_fixedmonthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_fixedmonthlyfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_fixedmonthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_fixedmonthlyfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum GoalState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Target objective for a user or a team for a specified time period. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("goal")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Goal : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Goal() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "goal"; + + public const int EntityTypeCode = 9600; + + 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 actual value (Decimal type) achieved towards the target as of the last rolled-up date. This field appears when the metric type of the goal is Amount and the amount data type is Decimal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdecimal")] + public System.Nullable ActualDecimal + { + get + { + return this.GetAttributeValue>("actualdecimal"); + } + set + { + this.OnPropertyChanging("ActualDecimal"); + this.SetAttributeValue("actualdecimal", value); + this.OnPropertyChanged("ActualDecimal"); + } + } + + /// + /// Shows the actual value (integer) achieved towards the target as of the last rolled-up date. This field appears when the metric type of the goal is Amount or Count and the amount data type is Integer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualinteger")] + public System.Nullable ActualInteger + { + get + { + return this.GetAttributeValue>("actualinteger"); + } + set + { + this.OnPropertyChanging("ActualInteger"); + this.SetAttributeValue("actualinteger", value); + this.OnPropertyChanged("ActualInteger"); + } + } + + /// + /// Shows the actual value (Money type) achieved towards the target as of the last rolled-up date. This field appears when the metric type of the goal is Amount and the amount data type is Money. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualmoney")] + public Microsoft.Xrm.Sdk.Money ActualMoney + { + get + { + return this.GetAttributeValue("actualmoney"); + } + set + { + this.OnPropertyChanging("ActualMoney"); + this.SetAttributeValue("actualmoney", value); + this.OnPropertyChanged("ActualMoney"); + } + } + + /// + /// Shows the actual value (money type) in base currency to track goal results against the target. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualmoney_base")] + public Microsoft.Xrm.Sdk.Money ActualMoney_Base + { + get + { + return this.GetAttributeValue("actualmoney_base"); + } + } + + /// + /// Actual Value of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualstring")] + public string ActualString + { + get + { + return this.GetAttributeValue("actualstring"); + } + } + + /// + /// Data type of the amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amountdatatype")] + public Microsoft.Xrm.Sdk.OptionSetValue AmountDataType + { + get + { + return this.GetAttributeValue("amountdatatype"); + } + set + { + this.OnPropertyChanging("AmountDataType"); + this.SetAttributeValue("amountdatatype", value); + this.OnPropertyChanged("AmountDataType"); + } + } + + /// + /// Shows the expected amount for actual value (decimal type) against the target goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaydecimal")] + public System.Nullable ComputedTargetAsOfTodayDecimal + { + get + { + return this.GetAttributeValue>("computedtargetasoftodaydecimal"); + } + } + + /// + /// Shows the expected amount for actual value (integer type) against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodayinteger")] + public System.Nullable ComputedTargetAsOfTodayInteger + { + get + { + return this.GetAttributeValue>("computedtargetasoftodayinteger"); + } + } + + /// + /// Shows the expected amount for actual value (money type) against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaymoney")] + public Microsoft.Xrm.Sdk.Money ComputedTargetAsOfTodayMoney + { + get + { + return this.GetAttributeValue("computedtargetasoftodaymoney"); + } + } + + /// + /// Shows the expected amount in base currency for actual value (money type) against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaymoney_base")] + public Microsoft.Xrm.Sdk.Money ComputedTargetAsOfTodayMoney_Base + { + get + { + return this.GetAttributeValue("computedtargetasoftodaymoney_base"); + } + } + + /// + /// Shows the expected value for percentage achieved against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaypercentageachieved")] + public System.Nullable ComputedTargetAsOfTodayPercentageAchieved + { + get + { + return this.GetAttributeValue>("computedtargetasoftodaypercentageachieved"); + } + } + + /// + /// Select whether only the goal owner's records, or all records, should be rolled up for goal results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("consideronlygoalownersrecords")] + public System.Nullable ConsiderOnlyGoalOwnersRecords + { + get + { + return this.GetAttributeValue>("consideronlygoalownersrecords"); + } + set + { + this.OnPropertyChanging("ConsiderOnlyGoalOwnersRecords"); + this.SetAttributeValue("consideronlygoalownersrecords", value); + this.OnPropertyChanged("ConsiderOnlyGoalOwnersRecords"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Indicates a placeholder rollup field for a decimal value to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfielddecimal")] + public System.Nullable CustomRollupFieldDecimal + { + get + { + return this.GetAttributeValue>("customrollupfielddecimal"); + } + set + { + this.OnPropertyChanging("CustomRollupFieldDecimal"); + this.SetAttributeValue("customrollupfielddecimal", value); + this.OnPropertyChanged("CustomRollupFieldDecimal"); + } + } + + /// + /// Indicates a placeholder rollup field for an integer value to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldinteger")] + public System.Nullable CustomRollupFieldInteger + { + get + { + return this.GetAttributeValue>("customrollupfieldinteger"); + } + set + { + this.OnPropertyChanging("CustomRollupFieldInteger"); + this.SetAttributeValue("customrollupfieldinteger", value); + this.OnPropertyChanged("CustomRollupFieldInteger"); + } + } + + /// + /// Indicates a placeholder rollup field for a money value to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldmoney")] + public Microsoft.Xrm.Sdk.Money CustomRollupFieldMoney + { + get + { + return this.GetAttributeValue("customrollupfieldmoney"); + } + set + { + this.OnPropertyChanging("CustomRollupFieldMoney"); + this.SetAttributeValue("customrollupfieldmoney", value); + this.OnPropertyChanged("CustomRollupFieldMoney"); + } + } + + /// + /// Indicates a placeholder rollup field for a money value in base currency to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldmoney_base")] + public Microsoft.Xrm.Sdk.Money CustomRollupFieldMoney_Base + { + get + { + return this.GetAttributeValue("customrollupfieldmoney_base"); + } + } + + /// + /// Placeholder rollup field for the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldstring")] + public string CustomRollupFieldString + { + get + { + return this.GetAttributeValue("customrollupfieldstring"); + } + } + + /// + /// Depth of the goal in the tree. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("depth")] + public System.Nullable Depth + { + get + { + return this.GetAttributeValue>("depth"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the fiscal period for the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiod")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalPeriod + { + get + { + return this.GetAttributeValue("fiscalperiod"); + } + set + { + this.OnPropertyChanging("FiscalPeriod"); + this.SetAttributeValue("fiscalperiod", value); + this.OnPropertyChanged("FiscalPeriod"); + } + } + + /// + /// Select the fiscal year for the goal that's being tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyear")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYear + { + get + { + return this.GetAttributeValue("fiscalyear"); + } + set + { + this.OnPropertyChanging("FiscalYear"); + this.SetAttributeValue("fiscalyear", value); + this.OnPropertyChanged("FiscalYear"); + } + } + + /// + /// Enter the date when the goal ends. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalenddate")] + public System.Nullable GoalEndDate + { + get + { + return this.GetAttributeValue>("goalenddate"); + } + set + { + this.OnPropertyChanging("GoalEndDate"); + this.SetAttributeValue("goalenddate", value); + this.OnPropertyChanged("GoalEndDate"); + } + } + + /// + /// Unique identifier of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalid")] + public System.Nullable GoalId + { + get + { + return this.GetAttributeValue>("goalid"); + } + set + { + this.OnPropertyChanging("GoalId"); + this.SetAttributeValue("goalid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("GoalId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.GoalId = value; + } + } + + /// + /// Choose the user or team responsible for meeting the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalownerid")] + public Microsoft.Xrm.Sdk.EntityReference GoalOwnerId + { + get + { + return this.GetAttributeValue("goalownerid"); + } + set + { + this.OnPropertyChanging("GoalOwnerId"); + this.SetAttributeValue("goalownerid", value); + this.OnPropertyChanged("GoalOwnerId"); + } + } + + /// + /// Enter the date and time when the period for tracking the goal begins. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalstartdate")] + public System.Nullable GoalStartDate + { + get + { + return this.GetAttributeValue>("goalstartdate"); + } + set + { + this.OnPropertyChanging("GoalStartDate"); + this.SetAttributeValue("goalstartdate", value); + this.OnPropertyChanged("GoalStartDate"); + } + } + + /// + /// Unique identifier of the goal that caused an error in the rollup of the goal hierarchy. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalwitherrorid")] + public Microsoft.Xrm.Sdk.EntityReference GoalWithErrorId + { + get + { + return this.GetAttributeValue("goalwitherrorid"); + } + set + { + this.OnPropertyChanging("GoalWithErrorId"); + this.SetAttributeValue("goalwitherrorid", value); + this.OnPropertyChanged("GoalWithErrorId"); + } + } + + /// + /// 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 in-progress value (decimal) against the target. This value could contribute to a goal, but is not counted yet as actual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressdecimal")] + public System.Nullable InProgressDecimal + { + get + { + return this.GetAttributeValue>("inprogressdecimal"); + } + set + { + this.OnPropertyChanging("InProgressDecimal"); + this.SetAttributeValue("inprogressdecimal", value); + this.OnPropertyChanged("InProgressDecimal"); + } + } + + /// + /// Shows the in-progress value (integer) against the target. This value could contribute to a goal, but is not counted yet as actual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressinteger")] + public System.Nullable InProgressInteger + { + get + { + return this.GetAttributeValue>("inprogressinteger"); + } + set + { + this.OnPropertyChanging("InProgressInteger"); + this.SetAttributeValue("inprogressinteger", value); + this.OnPropertyChanged("InProgressInteger"); + } + } + + /// + /// Shows the in-progress value (money) against the target. This value could contribute to a goal, but is not counted yet as actual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressmoney")] + public Microsoft.Xrm.Sdk.Money InProgressMoney + { + get + { + return this.GetAttributeValue("inprogressmoney"); + } + set + { + this.OnPropertyChanging("InProgressMoney"); + this.SetAttributeValue("inprogressmoney", value); + this.OnPropertyChanged("InProgressMoney"); + } + } + + /// + /// Shows the in-progress value (money) in base currency to track goal results against the target. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressmoney_base")] + public Microsoft.Xrm.Sdk.Money InProgressMoney_Base + { + get + { + return this.GetAttributeValue("inprogressmoney_base"); + } + } + + /// + /// In-progress value of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressstring")] + public string InProgressString + { + get + { + return this.GetAttributeValue("inprogressstring"); + } + } + + /// + /// Indicates whether the metric type is Count or Amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamount")] + public System.Nullable IsAmount + { + get + { + return this.GetAttributeValue>("isamount"); + } + set + { + this.OnPropertyChanging("IsAmount"); + this.SetAttributeValue("isamount", value); + this.OnPropertyChanged("IsAmount"); + } + } + + /// + /// Select whether the goal period is a fiscal period or custom period. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfiscalperiodgoal")] + public System.Nullable IsFiscalPeriodGoal + { + get + { + return this.GetAttributeValue>("isfiscalperiodgoal"); + } + set + { + this.OnPropertyChanging("IsFiscalPeriodGoal"); + this.SetAttributeValue("isfiscalperiodgoal", value); + this.OnPropertyChanged("IsFiscalPeriodGoal"); + } + } + + /// + /// Select whether the system rollup fields are updated. If set to Yes, the next system rollup will not update the values of the rollup fields with the system calculated values. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoverridden")] + public System.Nullable IsOverridden + { + get + { + return this.GetAttributeValue>("isoverridden"); + } + set + { + this.OnPropertyChanging("IsOverridden"); + this.SetAttributeValue("isoverridden", value); + this.OnPropertyChanged("IsOverridden"); + } + } + + /// + /// Indicates whether the values of system rollup fields can be updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoverride")] + public System.Nullable IsOverride + { + get + { + return this.GetAttributeValue>("isoverride"); + } + set + { + this.OnPropertyChanging("IsOverride"); + this.SetAttributeValue("isoverride", value); + this.OnPropertyChanged("IsOverride"); + } + } + + /// + /// Shows the date and time when the goal was last rolled up. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastrolledupdate")] + public System.Nullable LastRolledupDate + { + get + { + return this.GetAttributeValue>("lastrolledupdate"); + } + set + { + this.OnPropertyChanging("LastRolledupDate"); + this.SetAttributeValue("lastrolledupdate", value); + this.OnPropertyChanged("LastRolledupDate"); + } + } + + /// + /// Choose the metric for the goal. This metric determines how the goal is tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public Microsoft.Xrm.Sdk.EntityReference MetricId + { + get + { + return this.GetAttributeValue("metricid"); + } + set + { + this.OnPropertyChanging("MetricId"); + this.SetAttributeValue("metricid", value); + this.OnPropertyChanged("MetricId"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 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 of the team who owns the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose a parent goal if the current goal is a child goal. This sets up a parent-child relationship for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentgoalid")] + public Microsoft.Xrm.Sdk.EntityReference ParentGoalId + { + get + { + return this.GetAttributeValue("parentgoalid"); + } + set + { + this.OnPropertyChanging("ParentGoalId"); + this.SetAttributeValue("parentgoalid", value); + this.OnPropertyChanged("ParentGoalId"); + } + } + + /// + /// Shows the percentage achieved against the target goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentage")] + public System.Nullable Percentage + { + get + { + return this.GetAttributeValue>("percentage"); + } + set + { + this.OnPropertyChanging("Percentage"); + this.SetAttributeValue("percentage", value); + this.OnPropertyChanged("Percentage"); + } + } + + /// + /// Error code associated with rollup. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rolluperrorcode")] + public System.Nullable RollupErrorCode + { + get + { + return this.GetAttributeValue>("rolluperrorcode"); + } + set + { + this.OnPropertyChanging("RollupErrorCode"); + this.SetAttributeValue("rolluperrorcode", value); + this.OnPropertyChanged("RollupErrorCode"); + } + } + + /// + /// Select whether the data should be rolled up only from the child goals. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rolluponlyfromchildgoals")] + public System.Nullable RollupOnlyFromChildGoals + { + get + { + return this.GetAttributeValue>("rolluponlyfromchildgoals"); + } + set + { + this.OnPropertyChanging("RollupOnlyFromChildGoals"); + this.SetAttributeValue("rolluponlyfromchildgoals", value); + this.OnPropertyChanged("RollupOnlyFromChildGoals"); + } + } + + /// + /// Choose the query that will be used to calculate the actual data for the goal (decimal). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualdecimalid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryActualDecimalId + { + get + { + return this.GetAttributeValue("rollupqueryactualdecimalid"); + } + set + { + this.OnPropertyChanging("RollUpQueryActualDecimalId"); + this.SetAttributeValue("rollupqueryactualdecimalid", value); + this.OnPropertyChanged("RollUpQueryActualDecimalId"); + } + } + + /// + /// Choose the query that will be used to calculate the actual data for the goal (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualintegerid")] + public Microsoft.Xrm.Sdk.EntityReference RollupQueryActualIntegerId + { + get + { + return this.GetAttributeValue("rollupqueryactualintegerid"); + } + set + { + this.OnPropertyChanging("RollupQueryActualIntegerId"); + this.SetAttributeValue("rollupqueryactualintegerid", value); + this.OnPropertyChanged("RollupQueryActualIntegerId"); + } + } + + /// + /// Choose the query that will be used to calculate the actual data for the goal (money). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualmoneyid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryActualMoneyId + { + get + { + return this.GetAttributeValue("rollupqueryactualmoneyid"); + } + set + { + this.OnPropertyChanging("RollUpQueryActualMoneyId"); + this.SetAttributeValue("rollupqueryactualmoneyid", value); + this.OnPropertyChanged("RollUpQueryActualMoneyId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the custom rollup field (decimal). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomdecimalid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryCustomDecimalId + { + get + { + return this.GetAttributeValue("rollupquerycustomdecimalid"); + } + set + { + this.OnPropertyChanging("RollUpQueryCustomDecimalId"); + this.SetAttributeValue("rollupquerycustomdecimalid", value); + this.OnPropertyChanged("RollUpQueryCustomDecimalId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the custom rollup field (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomintegerid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryCustomIntegerId + { + get + { + return this.GetAttributeValue("rollupquerycustomintegerid"); + } + set + { + this.OnPropertyChanging("RollUpQueryCustomIntegerId"); + this.SetAttributeValue("rollupquerycustomintegerid", value); + this.OnPropertyChanged("RollUpQueryCustomIntegerId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the custom rollup field (money). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustommoneyid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryCustomMoneyId + { + get + { + return this.GetAttributeValue("rollupquerycustommoneyid"); + } + set + { + this.OnPropertyChanging("RollUpQueryCustomMoneyId"); + this.SetAttributeValue("rollupquerycustommoneyid", value); + this.OnPropertyChanged("RollUpQueryCustomMoneyId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the in-progress rollup field (decimal). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressdecimalid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryInprogressDecimalId + { + get + { + return this.GetAttributeValue("rollupqueryinprogressdecimalid"); + } + set + { + this.OnPropertyChanging("RollUpQueryInprogressDecimalId"); + this.SetAttributeValue("rollupqueryinprogressdecimalid", value); + this.OnPropertyChanged("RollUpQueryInprogressDecimalId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the in-progress rollup field (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressintegerid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryInprogressIntegerId + { + get + { + return this.GetAttributeValue("rollupqueryinprogressintegerid"); + } + set + { + this.OnPropertyChanging("RollUpQueryInprogressIntegerId"); + this.SetAttributeValue("rollupqueryinprogressintegerid", value); + this.OnPropertyChanged("RollUpQueryInprogressIntegerId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the in-progress rollup field (money). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressmoneyid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryInprogressMoneyId + { + get + { + return this.GetAttributeValue("rollupqueryinprogressmoneyid"); + } + set + { + this.OnPropertyChanging("RollUpQueryInprogressMoneyId"); + this.SetAttributeValue("rollupqueryinprogressmoneyid", value); + this.OnPropertyChanged("RollUpQueryInprogressMoneyId"); + } + } + + /// + /// Shows whether the goal is open, completed, or canceled. Completed and canceled goals are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.GoalState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.GoalState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the goal'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 a stretch target (decimal) of the goal to define a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetdecimal")] + public System.Nullable StretchTargetDecimal + { + get + { + return this.GetAttributeValue>("stretchtargetdecimal"); + } + set + { + this.OnPropertyChanging("StretchTargetDecimal"); + this.SetAttributeValue("stretchtargetdecimal", value); + this.OnPropertyChanged("StretchTargetDecimal"); + } + } + + /// + /// Select the stretch target (integer) of the goal to define a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetinteger")] + public System.Nullable StretchTargetInteger + { + get + { + return this.GetAttributeValue>("stretchtargetinteger"); + } + set + { + this.OnPropertyChanging("StretchTargetInteger"); + this.SetAttributeValue("stretchtargetinteger", value); + this.OnPropertyChanged("StretchTargetInteger"); + } + } + + /// + /// Select stretch target (money) of the goal to define a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetmoney")] + public Microsoft.Xrm.Sdk.Money StretchTargetMoney + { + get + { + return this.GetAttributeValue("stretchtargetmoney"); + } + set + { + this.OnPropertyChanging("StretchTargetMoney"); + this.SetAttributeValue("stretchtargetmoney", value); + this.OnPropertyChanged("StretchTargetMoney"); + } + } + + /// + /// Shows the stretch target (money) in base currency to indicate a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetmoney_base")] + public Microsoft.Xrm.Sdk.Money StretchTargetMoney_Base + { + get + { + return this.GetAttributeValue("stretchtargetmoney_base"); + } + } + + /// + /// Stretch target value for all data types. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetstring")] + public string StretchTargetString + { + get + { + return this.GetAttributeValue("stretchtargetstring"); + } + } + + /// + /// Select a goal target of the decimal type to use for tracking data that include partial numbers, such as pounds sold of a product sold by weight. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetdecimal")] + public System.Nullable TargetDecimal + { + get + { + return this.GetAttributeValue>("targetdecimal"); + } + set + { + this.OnPropertyChanging("TargetDecimal"); + this.SetAttributeValue("targetdecimal", value); + this.OnPropertyChanged("TargetDecimal"); + } + } + + /// + /// Select a goal target of the integer type to use for tracking anything countable in whole numbers, such as units sold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetinteger")] + public System.Nullable TargetInteger + { + get + { + return this.GetAttributeValue>("targetinteger"); + } + set + { + this.OnPropertyChanging("TargetInteger"); + this.SetAttributeValue("targetinteger", value); + this.OnPropertyChanged("TargetInteger"); + } + } + + /// + /// Select a goal target (money) to track a monetary amount such as revenue from a product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetmoney")] + public Microsoft.Xrm.Sdk.Money TargetMoney + { + get + { + return this.GetAttributeValue("targetmoney"); + } + set + { + this.OnPropertyChanging("TargetMoney"); + this.SetAttributeValue("targetmoney", value); + this.OnPropertyChanged("TargetMoney"); + } + } + + /// + /// Shows the goal target of the money type in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetmoney_base")] + public Microsoft.Xrm.Sdk.Money TargetMoney_Base + { + get + { + return this.GetAttributeValue("targetmoney_base"); + } + } + + /// + /// Target value of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetstring")] + public string TargetString + { + get + { + return this.GetAttributeValue("targetstring"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type a title or name that describes the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the goal tree. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("treeid")] + public System.Nullable TreeId + { + get + { + return this.GetAttributeValue>("treeid"); + } + } + + /// + /// 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 goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Goal_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_Annotation")] + public System.Collections.Generic.IEnumerable Goal_Annotation + { + get + { + return this.GetRelatedEntities("Goal_Annotation", null); + } + set + { + this.OnPropertyChanging("Goal_Annotation"); + this.SetRelatedEntities("Goal_Annotation", null, value); + this.OnPropertyChanged("Goal_Annotation"); + } + } + + /// + /// 1:N Goal_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_AsyncOperations")] + public System.Collections.Generic.IEnumerable Goal_AsyncOperations + { + get + { + return this.GetRelatedEntities("Goal_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Goal_AsyncOperations"); + this.SetRelatedEntities("Goal_AsyncOperations", null, value); + this.OnPropertyChanged("Goal_AsyncOperations"); + } + } + + /// + /// 1:N goal_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections1")] + public System.Collections.Generic.IEnumerable goal_connections1 + { + get + { + return this.GetRelatedEntities("goal_connections1", null); + } + set + { + this.OnPropertyChanging("goal_connections1"); + this.SetRelatedEntities("goal_connections1", null, value); + this.OnPropertyChanged("goal_connections1"); + } + } + + /// + /// 1:N goal_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections2")] + public System.Collections.Generic.IEnumerable goal_connections2 + { + get + { + return this.GetRelatedEntities("goal_connections2", null); + } + set + { + this.OnPropertyChanging("goal_connections2"); + this.SetRelatedEntities("goal_connections2", null, value); + this.OnPropertyChanged("goal_connections2"); + } + } + + /// + /// 1:N goal_parent_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedgoal_parent_goal + { + get + { + return this.GetRelatedEntities("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedgoal_parent_goal"); + this.SetRelatedEntities("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedgoal_parent_goal"); + } + } + + /// + /// 1:N goal_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable goal_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("goal_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("goal_principalobjectattributeaccess"); + this.SetRelatedEntities("goal_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("goal_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Goal_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_ProcessSessions")] + public System.Collections.Generic.IEnumerable Goal_ProcessSessions + { + get + { + return this.GetRelatedEntities("Goal_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Goal_ProcessSessions"); + this.SetRelatedEntities("Goal_ProcessSessions", null, value); + this.OnPropertyChanged("Goal_ProcessSessions"); + } + } + + /// + /// 1:N Goal_RollupError_Goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable ReferencedGoal_RollupError_Goal + { + get + { + return this.GetRelatedEntities("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("ReferencedGoal_RollupError_Goal"); + this.SetRelatedEntities("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("ReferencedGoal_RollupError_Goal"); + } + } + + /// + /// 1:N userentityinstancedata_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goal")] + public System.Collections.Generic.IEnumerable userentityinstancedata_goal + { + get + { + return this.GetRelatedEntities("userentityinstancedata_goal", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goal"); + this.SetRelatedEntities("userentityinstancedata_goal", null, value); + this.OnPropertyChanged("userentityinstancedata_goal"); + } + } + + /// + /// N:1 business_unit_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goal")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_goal + { + get + { + return this.GetRelatedEntity("business_unit_goal", null); + } + } + + /// + /// N:1 goal_parent_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentgoalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Goal Referencinggoal_parent_goal + { + get + { + return this.GetRelatedEntity("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinggoal_parent_goal"); + this.SetRelatedEntity("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinggoal_parent_goal"); + } + } + + /// + /// N:1 Goal_RollupError_Goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalwitherrorid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Goal ReferencingGoal_RollupError_Goal + { + get + { + return this.GetRelatedEntity("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("ReferencingGoal_RollupError_Goal"); + this.SetRelatedEntity("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("ReferencingGoal_RollupError_Goal"); + } + } + + /// + /// N:1 goal_rollupquery_actualdecimal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualdecimalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualdecimal")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_actualdecimal + { + get + { + return this.GetRelatedEntity("goal_rollupquery_actualdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualdecimal"); + this.SetRelatedEntity("goal_rollupquery_actualdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_actualdecimal"); + } + } + + /// + /// N:1 goal_rollupquery_actualmoney + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualmoneyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualmoney")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_actualmoney + { + get + { + return this.GetRelatedEntity("goal_rollupquery_actualmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualmoney"); + this.SetRelatedEntity("goal_rollupquery_actualmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_actualmoney"); + } + } + + /// + /// N:1 goal_rollupquery_customdecimal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomdecimalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customdecimal")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_customdecimal + { + get + { + return this.GetRelatedEntity("goal_rollupquery_customdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customdecimal"); + this.SetRelatedEntity("goal_rollupquery_customdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_customdecimal"); + } + } + + /// + /// N:1 goal_rollupquery_customint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomintegerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customint")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_customint + { + get + { + return this.GetRelatedEntity("goal_rollupquery_customint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customint"); + this.SetRelatedEntity("goal_rollupquery_customint", null, value); + this.OnPropertyChanged("goal_rollupquery_customint"); + } + } + + /// + /// N:1 goal_rollupquery_custommoney + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustommoneyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_custommoney")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_custommoney + { + get + { + return this.GetRelatedEntity("goal_rollupquery_custommoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_custommoney"); + this.SetRelatedEntity("goal_rollupquery_custommoney", null, value); + this.OnPropertyChanged("goal_rollupquery_custommoney"); + } + } + + /// + /// N:1 goal_rollupquery_inprogressdecimal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressdecimalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressdecimal")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_inprogressdecimal + { + get + { + return this.GetRelatedEntity("goal_rollupquery_inprogressdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressdecimal"); + this.SetRelatedEntity("goal_rollupquery_inprogressdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressdecimal"); + } + } + + /// + /// N:1 goal_rollupquery_inprogressint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressintegerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressint")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_inprogressint + { + get + { + return this.GetRelatedEntity("goal_rollupquery_inprogressint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressint"); + this.SetRelatedEntity("goal_rollupquery_inprogressint", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressint"); + } + } + + /// + /// N:1 goal_rollupquery_inprogressmoney + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressmoneyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressmoney")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_inprogressmoney + { + get + { + return this.GetRelatedEntity("goal_rollupquery_inprogressmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressmoney"); + this.SetRelatedEntity("goal_rollupquery_inprogressmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressmoney"); + } + } + + /// + /// N:1 goalrollupquery_actualint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualintegerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_actualint")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goalrollupquery_actualint + { + get + { + return this.GetRelatedEntity("goalrollupquery_actualint", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_actualint"); + this.SetRelatedEntity("goalrollupquery_actualint", null, value); + this.OnPropertyChanged("goalrollupquery_actualint"); + } + } + + /// + /// N:1 lk_goal_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_createdby + { + get + { + return this.GetRelatedEntity("lk_goal_createdby", null); + } + } + + /// + /// N:1 lk_goal_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goal_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_goal_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_modifiedby + { + get + { + return this.GetRelatedEntity("lk_goal_modifiedby", null); + } + } + + /// + /// N:1 lk_goal_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goal_modifiedonbehalfby", null); + } + } + + /// + /// N:1 metric_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_goal")] + public Xrm.Framework.CI.Common.Entities.Metric metric_goal + { + get + { + return this.GetRelatedEntity("metric_goal", null); + } + set + { + this.OnPropertyChanging("metric_goal"); + this.SetRelatedEntity("metric_goal", null, value); + this.OnPropertyChanged("metric_goal"); + } + } + + /// + /// N:1 team_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal")] + public Xrm.Framework.CI.Common.Entities.Team team_goal + { + get + { + return this.GetRelatedEntity("team_goal", null); + } + } + + /// + /// N:1 team_goal_goalowner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal_goalowner")] + public Xrm.Framework.CI.Common.Entities.Team team_goal_goalowner + { + get + { + return this.GetRelatedEntity("team_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("team_goal_goalowner"); + this.SetRelatedEntity("team_goal_goalowner", null, value); + this.OnPropertyChanged("team_goal_goalowner"); + } + } + + /// + /// N:1 TransactionCurrency_Goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Goal")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Goal + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Goal", null); + } + } + + /// + /// N:1 user_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_goal + { + get + { + return this.GetRelatedEntity("user_goal", null); + } + } + + /// + /// N:1 user_goal_goalowner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal_goalowner")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_goal_goalowner + { + get + { + return this.GetRelatedEntity("user_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("user_goal_goalowner"); + this.SetRelatedEntity("user_goal_goalowner", null, value); + this.OnPropertyChanged("user_goal_goalowner"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum GoalRollupQueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Query that is used to filter the results of the goal rollup. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("goalrollupquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class GoalRollupQuery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public GoalRollupQuery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "goalrollupquery"; + + public const int EntityTypeCode = 9602; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// String that specifies the condition criteria in FetchXML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fetchxml")] + public string FetchXml + { + get + { + return this.GetAttributeValue("fetchxml"); + } + set + { + this.OnPropertyChanging("FetchXml"); + this.SetAttributeValue("fetchxml", value); + this.OnPropertyChanged("FetchXml"); + } + } + + /// + /// Unique identifier of the rollup query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupqueryid")] + public System.Nullable GoalRollupQueryId + { + get + { + return this.GetAttributeValue>("goalrollupqueryid"); + } + set + { + this.OnPropertyChanging("GoalRollupQueryId"); + this.SetAttributeValue("goalrollupqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("GoalRollupQueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.GoalRollupQueryId = 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the goal rollup query. + /// + [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"); + } + } + + /// + /// 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 record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Enter the record type of the rollup query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryentitytype")] + public string QueryEntityType + { + get + { + return this.GetAttributeValue("queryentitytype"); + } + set + { + this.OnPropertyChanging("QueryEntityType"); + this.SetAttributeValue("queryentitytype", value); + this.OnPropertyChanged("QueryEntityType"); + } + } + + /// + /// Shows whether the goal rollup query 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 ((Xrm.Framework.CI.Common.Entities.GoalRollupQueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.GoalRollupQueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the goal rollup query'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"); + } + } + + /// + /// 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 goal rollup query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N goal_rollupquery_actualdecimal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualdecimal")] + public System.Collections.Generic.IEnumerable goal_rollupquery_actualdecimal + { + get + { + return this.GetRelatedEntities("goal_rollupquery_actualdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualdecimal"); + this.SetRelatedEntities("goal_rollupquery_actualdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_actualdecimal"); + } + } + + /// + /// 1:N goal_rollupquery_actualmoney + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualmoney")] + public System.Collections.Generic.IEnumerable goal_rollupquery_actualmoney + { + get + { + return this.GetRelatedEntities("goal_rollupquery_actualmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualmoney"); + this.SetRelatedEntities("goal_rollupquery_actualmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_actualmoney"); + } + } + + /// + /// 1:N goal_rollupquery_customdecimal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customdecimal")] + public System.Collections.Generic.IEnumerable goal_rollupquery_customdecimal + { + get + { + return this.GetRelatedEntities("goal_rollupquery_customdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customdecimal"); + this.SetRelatedEntities("goal_rollupquery_customdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_customdecimal"); + } + } + + /// + /// 1:N goal_rollupquery_customint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customint")] + public System.Collections.Generic.IEnumerable goal_rollupquery_customint + { + get + { + return this.GetRelatedEntities("goal_rollupquery_customint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customint"); + this.SetRelatedEntities("goal_rollupquery_customint", null, value); + this.OnPropertyChanged("goal_rollupquery_customint"); + } + } + + /// + /// 1:N goal_rollupquery_custommoney + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_custommoney")] + public System.Collections.Generic.IEnumerable goal_rollupquery_custommoney + { + get + { + return this.GetRelatedEntities("goal_rollupquery_custommoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_custommoney"); + this.SetRelatedEntities("goal_rollupquery_custommoney", null, value); + this.OnPropertyChanged("goal_rollupquery_custommoney"); + } + } + + /// + /// 1:N goal_rollupquery_inprogressdecimal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressdecimal")] + public System.Collections.Generic.IEnumerable goal_rollupquery_inprogressdecimal + { + get + { + return this.GetRelatedEntities("goal_rollupquery_inprogressdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressdecimal"); + this.SetRelatedEntities("goal_rollupquery_inprogressdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressdecimal"); + } + } + + /// + /// 1:N goal_rollupquery_inprogressint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressint")] + public System.Collections.Generic.IEnumerable goal_rollupquery_inprogressint + { + get + { + return this.GetRelatedEntities("goal_rollupquery_inprogressint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressint"); + this.SetRelatedEntities("goal_rollupquery_inprogressint", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressint"); + } + } + + /// + /// 1:N goal_rollupquery_inprogressmoney + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressmoney")] + public System.Collections.Generic.IEnumerable goal_rollupquery_inprogressmoney + { + get + { + return this.GetRelatedEntities("goal_rollupquery_inprogressmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressmoney"); + this.SetRelatedEntities("goal_rollupquery_inprogressmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressmoney"); + } + } + + /// + /// 1:N goalrollupquery_actualint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_actualint")] + public System.Collections.Generic.IEnumerable goalrollupquery_actualint + { + get + { + return this.GetRelatedEntities("goalrollupquery_actualint", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_actualint"); + this.SetRelatedEntities("goalrollupquery_actualint", null, value); + this.OnPropertyChanged("goalrollupquery_actualint"); + } + } + + /// + /// 1:N goalrollupquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_AsyncOperations")] + public System.Collections.Generic.IEnumerable goalrollupquery_AsyncOperations + { + get + { + return this.GetRelatedEntities("goalrollupquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_AsyncOperations"); + this.SetRelatedEntities("goalrollupquery_AsyncOperations", null, value); + this.OnPropertyChanged("goalrollupquery_AsyncOperations"); + } + } + + /// + /// 1:N goalrollupquery_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_ProcessSessions")] + public System.Collections.Generic.IEnumerable goalrollupquery_ProcessSessions + { + get + { + return this.GetRelatedEntities("goalrollupquery_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_ProcessSessions"); + this.SetRelatedEntities("goalrollupquery_ProcessSessions", null, value); + this.OnPropertyChanged("goalrollupquery_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_goalrollupquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goalrollupquery")] + public System.Collections.Generic.IEnumerable userentityinstancedata_goalrollupquery + { + get + { + return this.GetRelatedEntities("userentityinstancedata_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goalrollupquery"); + this.SetRelatedEntities("userentityinstancedata_goalrollupquery", null, value); + this.OnPropertyChanged("userentityinstancedata_goalrollupquery"); + } + } + + /// + /// N:1 business_unit_goalrollupquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goalrollupquery")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_goalrollupquery + { + get + { + return this.GetRelatedEntity("business_unit_goalrollupquery", null); + } + } + + /// + /// N:1 lk_goalrollupquery_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_createdby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_createdby", null); + } + } + + /// + /// N:1 lk_goalrollupquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_goalrollupquery_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_modifiedby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_modifiedby", null); + } + } + + /// + /// N:1 lk_goalrollupquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_goalrollupquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goalrollupquery")] + public Xrm.Framework.CI.Common.Entities.Team team_goalrollupquery + { + get + { + return this.GetRelatedEntity("team_goalrollupquery", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Status and ownership information for an import job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("import")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Import : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Import() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "import"; + + public const int EntityTypeCode = 4410; + + 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"); + } + } + + /// + /// Shows the date and time when the import was initiated. + /// + [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"); + } + } + + /// + /// Type the email address that the import completion notification must be sent to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Unique identifier of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + public System.Nullable ImportId + { + get + { + return this.GetAttributeValue>("importid"); + } + set + { + this.OnPropertyChanging("ImportId"); + this.SetAttributeValue("importid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportId = value; + } + } + + /// + /// Information about whether the source of this import job is data import or data migration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isimport")] + [System.ObsoleteAttribute()] + public System.Nullable IsImport + { + get + { + return this.GetAttributeValue>("isimport"); + } + set + { + this.OnPropertyChanging("IsImport"); + this.SetAttributeValue("isimport", value); + this.OnPropertyChanged("IsImport"); + } + } + + /// + /// Select whether to create or update records in Microsoft Dynamics CRM during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ModeCode + { + get + { + return this.GetAttributeValue("modecode"); + } + set + { + this.OnPropertyChanging("ModeCode"); + this.SetAttributeValue("modecode", value); + this.OnPropertyChanged("ModeCode"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the name of the import job, based on the import file and the entity being imported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// Business unit that owns the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select whether to send a notification email message to a selected user after the import is completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendnotification")] + public System.Nullable SendNotification + { + get + { + return this.GetAttributeValue>("sendnotification"); + } + set + { + this.OnPropertyChanging("SendNotification"); + this.SetAttributeValue("sendnotification", value); + this.OnPropertyChanged("SendNotification"); + } + } + + /// + /// Order in which the import was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequence")] + public System.Nullable Sequence + { + get + { + return this.GetAttributeValue>("sequence"); + } + } + + /// + /// Shows the status of the import job. By default, import jobs are active and can't be deactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows the reason code that explains the import job's status to identify the job's stage of the import processes, from transforming the data to completed. + /// + [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"); + } + } + + /// + /// 1:N Import_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_AsyncOperations")] + public System.Collections.Generic.IEnumerable Import_AsyncOperations + { + get + { + return this.GetRelatedEntities("Import_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Import_AsyncOperations"); + this.SetRelatedEntities("Import_AsyncOperations", null, value); + this.OnPropertyChanged("Import_AsyncOperations"); + } + } + + /// + /// 1:N Import_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Import_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Import_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Import_BulkDeleteFailures"); + this.SetRelatedEntities("Import_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Import_BulkDeleteFailures"); + } + } + + /// + /// 1:N Import_ImportFile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_ImportFile")] + public System.Collections.Generic.IEnumerable Import_ImportFile + { + get + { + return this.GetRelatedEntities("Import_ImportFile", null); + } + set + { + this.OnPropertyChanging("Import_ImportFile"); + this.SetRelatedEntities("Import_ImportFile", null, value); + this.OnPropertyChanged("Import_ImportFile"); + } + } + + /// + /// 1:N userentityinstancedata_import + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_import")] + public System.Collections.Generic.IEnumerable userentityinstancedata_import + { + get + { + return this.GetRelatedEntities("userentityinstancedata_import", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_import"); + this.SetRelatedEntities("userentityinstancedata_import", null, value); + this.OnPropertyChanged("userentityinstancedata_import"); + } + } + + /// + /// N:1 BusinessUnit_Imports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Imports")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_Imports + { + get + { + return this.GetRelatedEntity("BusinessUnit_Imports", null); + } + } + + /// + /// N:1 lk_import_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_import_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_import_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_import_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_import_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_import_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_importbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importbase_createdby", null); + } + } + + /// + /// N:1 lk_importbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importbase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_Imports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Imports")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_Imports + { + get + { + return this.GetRelatedEntity("SystemUser_Imports", null); + } + } + + /// + /// N:1 team_Imports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Imports")] + public Xrm.Framework.CI.Common.Entities.Team team_Imports + { + get + { + return this.GetRelatedEntity("team_Imports", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportEntityMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Mapping for entities in a data map. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importentitymapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportEntityMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportEntityMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importentitymapping"; + + public const int EntityTypeCode = 4428; + + 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 import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import entity mapping 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 importentitymapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Information about whether the entity needs to be processed to find and delete duplicate records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dedupe")] + public Microsoft.Xrm.Sdk.OptionSetValue DeDupe + { + get + { + return this.GetAttributeValue("dedupe"); + } + set + { + this.OnPropertyChanging("DeDupe"); + this.SetAttributeValue("dedupe", value); + this.OnPropertyChanged("DeDupe"); + } + } + + /// + /// Unique identifier of the import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importentitymappingid")] + public System.Nullable ImportEntityMappingId + { + get + { + return this.GetAttributeValue>("importentitymappingid"); + } + set + { + this.OnPropertyChanging("ImportEntityMappingId"); + this.SetAttributeValue("importentitymappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportEntityMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importentitymappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportEntityMappingId = value; + } + } + + /// + /// Unique identifier of the associated data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import entity mapping 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 importentitymapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the import entity mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Name of the source entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Status of the import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportEntityMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportEntityMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the import entity mapping. + /// + [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"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// 1:N userentityinstancedata_importentitymapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importentitymapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importentitymapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importentitymapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importentitymapping"); + this.SetRelatedEntities("userentityinstancedata_importentitymapping", null, value); + this.OnPropertyChanged("userentityinstancedata_importentitymapping"); + } + } + + /// + /// N:1 ImportEntityMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportEntityMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportEntityMapping_ImportMap + { + get + { + return this.GetRelatedEntity("ImportEntityMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ImportEntityMapping_ImportMap"); + this.SetRelatedEntity("ImportEntityMapping_ImportMap", null, value); + this.OnPropertyChanged("ImportEntityMapping_ImportMap"); + } + } + + /// + /// N:1 lk_importentitymapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_createdby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_createdby", null); + } + } + + /// + /// N:1 lk_importentitymapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importentitymapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_modifiedby", null); + } + } + + /// + /// N:1 lk_importentitymapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_modifiedonbehalfby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportFileState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// File name of file used for import. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importfile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportFile : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportFile() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importfile"; + + public const int EntityTypeCode = 4412; + + 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 secondary column headers. The additional headers are used during the process of transforming the import file into import data records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("additionalheaderrow")] + public string AdditionalHeaderRow + { + get + { + return this.GetAttributeValue("additionalheaderrow"); + } + } + + /// + /// Shows the date and time when the import associated with the import file was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Stores the content of the import file, stored as comma-separated values. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the single-character data delimiter used in the import file. This is typically a single or double quotation mark. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datadelimitercode")] + public Microsoft.Xrm.Sdk.OptionSetValue DataDelimiterCode + { + get + { + return this.GetAttributeValue("datadelimitercode"); + } + set + { + this.OnPropertyChanging("DataDelimiterCode"); + this.SetAttributeValue("datadelimitercode", value); + this.OnPropertyChanged("DataDelimiterCode"); + } + } + + /// + /// Select whether duplicate-detection rules should be run against the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enableduplicatedetection")] + public System.Nullable EnableDuplicateDetection + { + get + { + return this.GetAttributeValue>("enableduplicatedetection"); + } + set + { + this.OnPropertyChanging("EnableDuplicateDetection"); + this.SetAttributeValue("enableduplicatedetection", value); + this.OnPropertyChanged("EnableDuplicateDetection"); + } + } + + /// + /// Shows the number of records in the import file that cannot be imported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// Select the character that is used to separate each field in the import file. Typically, it is a comma. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fielddelimitercode")] + public Microsoft.Xrm.Sdk.OptionSetValue FieldDelimiterCode + { + get + { + return this.GetAttributeValue("fielddelimitercode"); + } + set + { + this.OnPropertyChanging("FieldDelimiterCode"); + this.SetAttributeValue("fielddelimitercode", value); + this.OnPropertyChanged("FieldDelimiterCode"); + } + } + + /// + /// Shows the type of source file that is uploaded for import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue FileTypeCode + { + get + { + return this.GetAttributeValue("filetypecode"); + } + set + { + this.OnPropertyChanging("FileTypeCode"); + this.SetAttributeValue("filetypecode", value); + this.OnPropertyChanged("FileTypeCode"); + } + } + + /// + /// Shows a list of each column header in the import file separated by a comma. The header is used for parsing the file during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("headerrow")] + public string HeaderRow + { + get + { + return this.GetAttributeValue("headerrow"); + } + } + + /// + /// Unique identifier of the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + public System.Nullable ImportFileId + { + get + { + return this.GetAttributeValue>("importfileid"); + } + set + { + this.OnPropertyChanging("ImportFileId"); + this.SetAttributeValue("importfileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportFileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportFileId = value; + } + } + + /// + /// Choose the import job that the file was uploaded for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + public Microsoft.Xrm.Sdk.EntityReference ImportId + { + get + { + return this.GetAttributeValue("importid"); + } + set + { + this.OnPropertyChanging("ImportId"); + this.SetAttributeValue("importid", value); + this.OnPropertyChanged("ImportId"); + } + } + + /// + /// Choose a data map to match the import file and its column headers with the record types and fields in Microsoft Dynamics CRM. If the column headers in the file match the display names of the target fields in Microsoft Dynamics CRM, we import the data automatically. If not, you can manually define matches during import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Select whether the first row of the import file contains column headings, which are used for data mapping during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfirstrowheader")] + public System.Nullable IsFirstRowHeader + { + get + { + return this.GetAttributeValue>("isfirstrowheader"); + } + set + { + this.OnPropertyChanging("IsFirstRowHeader"); + this.SetAttributeValue("isfirstrowheader", value); + this.OnPropertyChanged("IsFirstRowHeader"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the name of the import file. This name is based on the name of the uploaded file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Enter the user who is assigned to follow up with or manage the import file. This field is updated every time the import file 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"); + } + } + + /// + /// 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 import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Shows the prefix applied to each column after the import file is parsed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablecolumnprefix")] + public string ParsedTableColumnPrefix + { + get + { + return this.GetAttributeValue("parsedtablecolumnprefix"); + } + } + + /// + /// Shows the number of columns included in the parsed import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablecolumnsnumber")] + public System.Nullable ParsedTableColumnsNumber + { + get + { + return this.GetAttributeValue>("parsedtablecolumnsnumber"); + } + } + + /// + /// Shows the name of the table that contains the parsed data from the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablename")] + public string ParsedTableName + { + get + { + return this.GetAttributeValue("parsedtablename"); + } + } + + /// + /// Shows the number of records in this file that had failures during the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partialfailurecount")] + public System.Nullable PartialFailureCount + { + get + { + return this.GetAttributeValue>("partialfailurecount"); + } + } + + /// + /// Tells whether the import file should be ignored or processed during the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Shows the import file's processing status code. This indicates whether the data in the import file has been parsed, transformed, or imported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processingstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessingStatus + { + get + { + return this.GetAttributeValue("processingstatus"); + } + } + + /// + /// Shows the progress code for the processing of the import file. This field is used when a paused import job is resumed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("progresscounter")] + public System.Nullable ProgressCounter + { + get + { + return this.GetAttributeValue>("progresscounter"); + } + } + + /// + /// Choose the user that the records created during the import job should be assigned to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recordsownerid")] + public Microsoft.Xrm.Sdk.EntityReference RecordsOwnerId + { + get + { + return this.GetAttributeValue("recordsownerid"); + } + set + { + this.OnPropertyChanging("RecordsOwnerId"); + this.SetAttributeValue("recordsownerid", value); + this.OnPropertyChanged("RecordsOwnerId"); + } + } + + /// + /// Shows the columns that are mapped to a related record type (entity) of the primary record type (entity) included in the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedentitycolumns")] + public string RelatedEntityColumns + { + get + { + return this.GetAttributeValue("relatedentitycolumns"); + } + set + { + this.OnPropertyChanging("RelatedEntityColumns"); + this.SetAttributeValue("relatedentitycolumns", value); + this.OnPropertyChanged("RelatedEntityColumns"); + } + } + + /// + /// Shows the size of the import file, in kilobytes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("size")] + public string Size + { + get + { + return this.GetAttributeValue("size"); + } + set + { + this.OnPropertyChanging("Size"); + this.SetAttributeValue("size", value); + this.OnPropertyChanged("Size"); + } + } + + /// + /// Shows the name of the data source file uploaded in the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public string Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// Shows the record type (entity) of the source data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Shows the status of the import file record. By default, all records are active and can't be deactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportFileState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportFileState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows the reason code that explains the import file's status to identify the stage of the import process, from parsing the data to completed. + /// + [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 the number of records in the import file that are imported successfully. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("successcount")] + public System.Nullable SuccessCount + { + get + { + return this.GetAttributeValue>("successcount"); + } + } + + /// + /// Select the target record type (entity) for the records that will be created during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// 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 number of records in the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalcount")] + public System.Nullable TotalCount + { + get + { + return this.GetAttributeValue>("totalcount"); + } + } + + /// + /// Tells whether an automatic system map was applied to the import file, which automatically maps the import data to the target entity in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usesystemmap")] + public System.Nullable UseSystemMap + { + get + { + return this.GetAttributeValue>("usesystemmap"); + } + set + { + this.OnPropertyChanging("UseSystemMap"); + this.SetAttributeValue("usesystemmap", value); + this.OnPropertyChanged("UseSystemMap"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N ImportFile_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_AsyncOperations")] + public System.Collections.Generic.IEnumerable ImportFile_AsyncOperations + { + get + { + return this.GetRelatedEntities("ImportFile_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportFile_AsyncOperations"); + this.SetRelatedEntities("ImportFile_AsyncOperations", null, value); + this.OnPropertyChanged("ImportFile_AsyncOperations"); + } + } + + /// + /// 1:N ImportFile_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ImportFile_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ImportFile_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ImportFile_BulkDeleteFailures"); + this.SetRelatedEntities("ImportFile_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ImportFile_BulkDeleteFailures"); + } + } + + /// + /// 1:N ImportLog_ImportFile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_ImportFile")] + public System.Collections.Generic.IEnumerable ImportLog_ImportFile + { + get + { + return this.GetRelatedEntities("ImportLog_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportLog_ImportFile"); + this.SetRelatedEntities("ImportLog_ImportFile", null, value); + this.OnPropertyChanged("ImportLog_ImportFile"); + } + } + + /// + /// 1:N userentityinstancedata_importfile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importfile")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importfile + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importfile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importfile"); + this.SetRelatedEntities("userentityinstancedata_importfile", null, value); + this.OnPropertyChanged("userentityinstancedata_importfile"); + } + } + + /// + /// N:1 BusinessUnit_ImportFiles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportFiles")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ImportFiles + { + get + { + return this.GetRelatedEntity("BusinessUnit_ImportFiles", null); + } + } + + /// + /// N:1 Import_ImportFile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_ImportFile")] + public Xrm.Framework.CI.Common.Entities.Import Import_ImportFile + { + get + { + return this.GetRelatedEntity("Import_ImportFile", null); + } + set + { + this.OnPropertyChanging("Import_ImportFile"); + this.SetRelatedEntity("Import_ImportFile", null, value); + this.OnPropertyChanged("Import_ImportFile"); + } + } + + /// + /// N:1 ImportFile_SystemUser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recordsownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_SystemUser")] + public Xrm.Framework.CI.Common.Entities.SystemUser ImportFile_SystemUser + { + get + { + return this.GetRelatedEntity("ImportFile_SystemUser", null); + } + set + { + this.OnPropertyChanging("ImportFile_SystemUser"); + this.SetRelatedEntity("ImportFile_SystemUser", null, value); + this.OnPropertyChanged("ImportFile_SystemUser"); + } + } + + /// + /// N:1 ImportFile_Team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recordsownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_Team")] + public Xrm.Framework.CI.Common.Entities.Team ImportFile_Team + { + get + { + return this.GetRelatedEntity("ImportFile_Team", null); + } + set + { + this.OnPropertyChanging("ImportFile_Team"); + this.SetRelatedEntity("ImportFile_Team", null, value); + this.OnPropertyChanged("ImportFile_Team"); + } + } + + /// + /// N:1 ImportMap_ImportFile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_ImportFile")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportMap_ImportFile + { + get + { + return this.GetRelatedEntity("ImportMap_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportMap_ImportFile"); + this.SetRelatedEntity("ImportMap_ImportFile", null, value); + this.OnPropertyChanged("ImportMap_ImportFile"); + } + } + + /// + /// N:1 lk_importfilebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_createdby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_createdby", null); + } + } + + /// + /// N:1 lk_importfilebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importfilebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_modifiedby", null); + } + } + + /// + /// N:1 lk_importfilebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 SystemUser_ImportFiles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportFiles")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ImportFiles + { + get + { + return this.GetRelatedEntity("SystemUser_ImportFiles", null); + } + } + + /// + /// N:1 team_ImportFiles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportFiles")] + public Xrm.Framework.CI.Common.Entities.Team team_ImportFiles + { + get + { + return this.GetRelatedEntity("team_ImportFiles", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importjob")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportJob : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportJob() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importjob"; + + public const int EntityTypeCode = 9107; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time when the import job was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Unique identifier of the user who created the importJob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import job record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the import job record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unstructured data associated with the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// Unique identifier of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importjobid")] + public System.Nullable ImportJobId + { + get + { + return this.GetAttributeValue>("importjobid"); + } + set + { + this.OnPropertyChanging("ImportJobId"); + this.SetAttributeValue("importjobid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportJobId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importjobid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportJobId = value; + } + } + + /// + /// Unique identifier of the user who modified the importJob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import job was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the import job record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the importjob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Import Progress Percentage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("progress")] + public System.Nullable Progress + { + get + { + return this.GetAttributeValue>("progress"); + } + set + { + this.OnPropertyChanging("Progress"); + this.SetAttributeValue("progress", value); + this.OnPropertyChanged("Progress"); + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionname")] + public string SolutionName + { + get + { + return this.GetAttributeValue("solutionname"); + } + set + { + this.OnPropertyChanging("SolutionName"); + this.SetAttributeValue("solutionname", value); + this.OnPropertyChanged("SolutionName"); + } + } + + /// + /// Date and time when the import job was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// 1:N userentityinstancedata_importjob + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importjob")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importjob + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importjob", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importjob"); + this.SetRelatedEntities("userentityinstancedata_importjob", null, value); + this.OnPropertyChanged("userentityinstancedata_importjob"); + } + } + + /// + /// N:1 lk_importjobbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_createdby", null); + } + } + + /// + /// N:1 lk_importjobbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importjobbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_modifiedby", null); + } + } + + /// + /// N:1 lk_importjobbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_importjob + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_importjob")] + public Xrm.Framework.CI.Common.Entities.Organization organization_importjob + { + get + { + return this.GetRelatedEntity("organization_importjob", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportLogState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Failure reason and other detailed information for a record that failed to import. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importlog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importlog"; + + public const int EntityTypeCode = 4423; + + 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 related to the error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("additionalinfo")] + public string AdditionalInfo + { + get + { + return this.GetAttributeValue("additionalinfo"); + } + set + { + this.OnPropertyChanging("AdditionalInfo"); + this.SetAttributeValue("additionalinfo", value); + this.OnPropertyChanged("AdditionalInfo"); + } + } + + /// + /// Value in the column. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnvalue")] + public string ColumnValue + { + get + { + return this.GetAttributeValue("columnvalue"); + } + set + { + this.OnPropertyChanging("ColumnValue"); + this.SetAttributeValue("columnvalue", value); + this.OnPropertyChanged("ColumnValue"); + } + } + + /// + /// Unique identifier of the user who created the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import log 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 importlog. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of an error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errordescription")] + public string ErrorDescription + { + get + { + return this.GetAttributeValue("errordescription"); + } + set + { + this.OnPropertyChanging("ErrorDescription"); + this.SetAttributeValue("errordescription", value); + this.OnPropertyChanged("ErrorDescription"); + } + } + + /// + /// Error code of an error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + set + { + this.OnPropertyChanging("ErrorNumber"); + this.SetAttributeValue("errornumber", value); + this.OnPropertyChanged("ErrorNumber"); + } + } + + /// + /// Name of the column heading. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("headercolumn")] + public string HeaderColumn + { + get + { + return this.GetAttributeValue("headercolumn"); + } + set + { + this.OnPropertyChanging("HeaderColumn"); + this.SetAttributeValue("headercolumn", value); + this.OnPropertyChanged("HeaderColumn"); + } + } + + /// + /// Unique identifier of the import data for this import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importdataid")] + public Microsoft.Xrm.Sdk.EntityReference ImportDataId + { + get + { + return this.GetAttributeValue("importdataid"); + } + set + { + this.OnPropertyChanging("ImportDataId"); + this.SetAttributeValue("importdataid", value); + this.OnPropertyChanged("ImportDataId"); + } + } + + /// + /// Unique identifier of the import file for this import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + public Microsoft.Xrm.Sdk.EntityReference ImportFileId + { + get + { + return this.GetAttributeValue("importfileid"); + } + set + { + this.OnPropertyChanging("ImportFileId"); + this.SetAttributeValue("importfileid", value); + this.OnPropertyChanged("ImportFileId"); + } + } + + /// + /// Unique identifier of the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importlogid")] + public System.Nullable ImportLogId + { + get + { + return this.GetAttributeValue>("importlogid"); + } + set + { + this.OnPropertyChanging("ImportLogId"); + this.SetAttributeValue("importlogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importlogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportLogId = value; + } + } + + /// + /// Original line number of the data used in this log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linenumber")] + public System.Nullable LineNumber + { + get + { + return this.GetAttributeValue>("linenumber"); + } + set + { + this.OnPropertyChanging("LineNumber"); + this.SetAttributeValue("linenumber", value); + this.OnPropertyChanged("LineNumber"); + } + } + + /// + /// Phase for which the log is recorded. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("logphasecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LogPhaseCode + { + get + { + return this.GetAttributeValue("logphasecode"); + } + set + { + this.OnPropertyChanging("LogPhaseCode"); + this.SetAttributeValue("logphasecode", value); + this.OnPropertyChanged("LogPhaseCode"); + } + } + + /// + /// Unique identifier of the user who last modified the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import log 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 importlog. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the import log. + /// + [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"); + } + } + + /// + /// Business unit that owns the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Sequence number of the error in this log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequencenumber")] + public System.Nullable SequenceNumber + { + get + { + return this.GetAttributeValue>("sequencenumber"); + } + } + + /// + /// Status of the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportLogState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportLogState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the import log. + /// + [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"); + } + } + + /// + /// 1:N ImportLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_AsyncOperations")] + public System.Collections.Generic.IEnumerable ImportLog_AsyncOperations + { + get + { + return this.GetRelatedEntities("ImportLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportLog_AsyncOperations"); + this.SetRelatedEntities("ImportLog_AsyncOperations", null, value); + this.OnPropertyChanged("ImportLog_AsyncOperations"); + } + } + + /// + /// 1:N ImportLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ImportLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ImportLog_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ImportLog_BulkDeleteFailures"); + this.SetRelatedEntities("ImportLog_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ImportLog_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_importlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importlog")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importlog + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importlog"); + this.SetRelatedEntities("userentityinstancedata_importlog", null, value); + this.OnPropertyChanged("userentityinstancedata_importlog"); + } + } + + /// + /// N:1 BusinessUnit_ImportLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportLogs")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ImportLogs + { + get + { + return this.GetRelatedEntity("BusinessUnit_ImportLogs", null); + } + } + + /// + /// N:1 ImportLog_ImportFile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_ImportFile")] + public Xrm.Framework.CI.Common.Entities.ImportFile ImportLog_ImportFile + { + get + { + return this.GetRelatedEntity("ImportLog_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportLog_ImportFile"); + this.SetRelatedEntity("ImportLog_ImportFile", null, value); + this.OnPropertyChanged("ImportLog_ImportFile"); + } + } + + /// + /// N:1 lk_importlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlog_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importlog_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importlog_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_importlogbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlogbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importlogbase_createdby", null); + } + } + + /// + /// N:1 lk_importlogbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlogbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importlogbase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_ImportLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportLogs")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ImportLogs + { + get + { + return this.GetRelatedEntity("SystemUser_ImportLogs", null); + } + } + + /// + /// N:1 team_ImportLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportLogs")] + public Xrm.Framework.CI.Common.Entities.Team team_ImportLogs + { + get + { + return this.GetRelatedEntity("team_ImportLogs", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportMapState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Data map used in import. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importmap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importmap"; + + public const int EntityTypeCode = 4411; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the data map, such as the intended use or data source. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Choose whether a data file can contain data for one or more record types. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitiesperfile")] + public Microsoft.Xrm.Sdk.OptionSetValue EntitiesPerFile + { + get + { + return this.GetAttributeValue("entitiesperfile"); + } + set + { + this.OnPropertyChanging("EntitiesPerFile"); + this.SetAttributeValue("entitiesperfile", value); + this.OnPropertyChanged("EntitiesPerFile"); + } + } + + /// + /// Unique identifier of the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public System.Nullable ImportMapId + { + get + { + return this.GetAttributeValue>("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportMapId = value; + } + } + + /// + /// Select the type of data map to distinguish out-of-the-box data maps from custom maps. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmaptype")] + public Microsoft.Xrm.Sdk.OptionSetValue ImportMapType + { + get + { + return this.GetAttributeValue("importmaptype"); + } + set + { + this.OnPropertyChanging("ImportMapType"); + this.SetAttributeValue("importmaptype", value); + this.OnPropertyChanged("ImportMapType"); + } + } + + /// + /// Information about whether the data map is valid for use with data import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvalidforimport")] + public System.Nullable IsValidForImport + { + get + { + return this.GetAttributeValue>("isvalidforimport"); + } + } + + /// + /// Information about whether this data map was created by the Data Migration Manager. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iswizardcreated")] + public System.Nullable IsWizardCreated + { + get + { + return this.GetAttributeValue>("iswizardcreated"); + } + set + { + this.OnPropertyChanging("IsWizardCreated"); + this.SetAttributeValue("iswizardcreated", value); + this.OnPropertyChanged("IsWizardCreated"); + } + } + + /// + /// Customizations XML + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mapcustomizations")] + public string MapCustomizations + { + get + { + return this.GetAttributeValue("mapcustomizations"); + } + set + { + this.OnPropertyChanging("MapCustomizations"); + this.SetAttributeValue("mapcustomizations", value); + this.OnPropertyChanged("MapCustomizations"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// Business unit that owns the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the name of the migration source that this data map is used for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public string Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// Select the migration source type that this data map is used for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetype")] + public Microsoft.Xrm.Sdk.OptionSetValue SourceType + { + get + { + return this.GetAttributeValue("sourcetype"); + } + set + { + this.OnPropertyChanging("SourceType"); + this.SetAttributeValue("sourcetype", value); + this.OnPropertyChanged("SourceType"); + } + } + + /// + /// Source user value for source Microsoft Dynamics CRM user link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceuseridentifierforsourcecrmuserlink")] + public string SourceUserIdentifierForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("sourceuseridentifierforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("SourceUserIdentifierForSourceCRMUserLink"); + this.SetAttributeValue("sourceuseridentifierforsourcecrmuserlink", value); + this.OnPropertyChanged("SourceUserIdentifierForSourceCRMUserLink"); + } + } + + /// + /// Column in the source file that uniquely identifies a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceuseridentifierforsourcedatasourceuserlink")] + public string SourceUserIdentifierForSourceDataSourceUserLink + { + get + { + return this.GetAttributeValue("sourceuseridentifierforsourcedatasourceuserlink"); + } + set + { + this.OnPropertyChanging("SourceUserIdentifierForSourceDataSourceUserLink"); + this.SetAttributeValue("sourceuseridentifierforsourcedatasourceuserlink", value); + this.OnPropertyChanged("SourceUserIdentifierForSourceDataSourceUserLink"); + } + } + + /// + /// Shows whether the data map is active or inactive. Inactive data maps are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportMapState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportMapState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the data map'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 name of the Microsoft Dynamics CRM record type that this data map is defined for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentity")] + public Microsoft.Xrm.Sdk.OptionSetValue TargetEntity + { + get + { + return this.GetAttributeValue("targetentity"); + } + } + + /// + /// Microsoft Dynamics CRM user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetuseridentifierforsourcecrmuserlink")] + public string TargetUserIdentifierForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("targetuseridentifierforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("TargetUserIdentifierForSourceCRMUserLink"); + this.SetAttributeValue("targetuseridentifierforsourcecrmuserlink", value); + this.OnPropertyChanged("TargetUserIdentifierForSourceCRMUserLink"); + } + } + + /// + /// 1:N ColumnMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ColumnMapping_ImportMap")] + public System.Collections.Generic.IEnumerable ColumnMapping_ImportMap + { + get + { + return this.GetRelatedEntities("ColumnMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ColumnMapping_ImportMap"); + this.SetRelatedEntities("ColumnMapping_ImportMap", null, value); + this.OnPropertyChanged("ColumnMapping_ImportMap"); + } + } + + /// + /// 1:N ImportEntityMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportEntityMapping_ImportMap")] + public System.Collections.Generic.IEnumerable ImportEntityMapping_ImportMap + { + get + { + return this.GetRelatedEntities("ImportEntityMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ImportEntityMapping_ImportMap"); + this.SetRelatedEntities("ImportEntityMapping_ImportMap", null, value); + this.OnPropertyChanged("ImportEntityMapping_ImportMap"); + } + } + + /// + /// 1:N ImportMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable ImportMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("ImportMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportMap_AsyncOperations"); + this.SetRelatedEntities("ImportMap_AsyncOperations", null, value); + this.OnPropertyChanged("ImportMap_AsyncOperations"); + } + } + + /// + /// 1:N ImportMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ImportMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ImportMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ImportMap_BulkDeleteFailures"); + this.SetRelatedEntities("ImportMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ImportMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N ImportMap_ImportFile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_ImportFile")] + public System.Collections.Generic.IEnumerable ImportMap_ImportFile + { + get + { + return this.GetRelatedEntities("ImportMap_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportMap_ImportFile"); + this.SetRelatedEntities("ImportMap_ImportFile", null, value); + this.OnPropertyChanged("ImportMap_ImportFile"); + } + } + + /// + /// 1:N OwnerMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_ImportMap")] + public System.Collections.Generic.IEnumerable OwnerMapping_ImportMap + { + get + { + return this.GetRelatedEntities("OwnerMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_ImportMap"); + this.SetRelatedEntities("OwnerMapping_ImportMap", null, value); + this.OnPropertyChanged("OwnerMapping_ImportMap"); + } + } + + /// + /// 1:N TransformationMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationMapping_ImportMap")] + public System.Collections.Generic.IEnumerable TransformationMapping_ImportMap + { + get + { + return this.GetRelatedEntities("TransformationMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("TransformationMapping_ImportMap"); + this.SetRelatedEntities("TransformationMapping_ImportMap", null, value); + this.OnPropertyChanged("TransformationMapping_ImportMap"); + } + } + + /// + /// 1:N userentityinstancedata_importmap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importmap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importmap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importmap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importmap"); + this.SetRelatedEntities("userentityinstancedata_importmap", null, value); + this.OnPropertyChanged("userentityinstancedata_importmap"); + } + } + + /// + /// N:1 BusinessUnit_ImportMaps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportMaps")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ImportMaps + { + get + { + return this.GetRelatedEntity("BusinessUnit_ImportMaps", null); + } + } + + /// + /// N:1 lk_importmap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmap_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importmap_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importmap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importmap_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_importmapbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmapbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importmapbase_createdby", null); + } + } + + /// + /// N:1 lk_importmapbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmapbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importmapbase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_ImportMaps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportMaps")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ImportMaps + { + get + { + return this.GetRelatedEntity("SystemUser_ImportMaps", null); + } + } + + /// + /// N:1 team_ImportMaps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportMaps")] + public Xrm.Framework.CI.Common.Entities.Team team_ImportMaps + { + get + { + return this.GetRelatedEntity("team_ImportMaps", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum IncidentState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Resolved = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Service request case associated with a contract. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("incident")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Incident : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Incident() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "incident"; + + public const int EntityTypeCode = 112; + + 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 case is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitiescomplete")] + public System.Nullable ActivitiesComplete + { + get + { + return this.GetAttributeValue>("activitiescomplete"); + } + set + { + this.OnPropertyChanging("ActivitiesComplete"); + this.SetAttributeValue("activitiescomplete", value); + this.OnPropertyChanged("ActivitiesComplete"); + } + } + + /// + /// Type the number of service units that were actually required to resolve the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualserviceunits")] + public System.Nullable ActualServiceUnits + { + get + { + return this.GetAttributeValue>("actualserviceunits"); + } + set + { + this.OnPropertyChanging("ActualServiceUnits"); + this.SetAttributeValue("actualserviceunits", value); + this.OnPropertyChanged("ActualServiceUnits"); + } + } + + /// + /// Type the number of service units that were billed to the customer for the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billedserviceunits")] + public System.Nullable BilledServiceUnits + { + get + { + return this.GetAttributeValue>("billedserviceunits"); + } + set + { + this.OnPropertyChanging("BilledServiceUnits"); + this.SetAttributeValue("billedserviceunits", value); + this.OnPropertyChanged("BilledServiceUnits"); + } + } + + /// + /// Select how contact about the case was originated, such as email, phone, or web, for use in reporting and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caseorigincode")] + public Microsoft.Xrm.Sdk.OptionSetValue CaseOriginCode + { + get + { + return this.GetAttributeValue("caseorigincode"); + } + set + { + this.OnPropertyChanging("CaseOriginCode"); + this.SetAttributeValue("caseorigincode", value); + this.OnPropertyChanged("CaseOriginCode"); + } + } + + /// + /// Select the type of case to identify the incident for use in case routing and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("casetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CaseTypeCode + { + get + { + return this.GetAttributeValue("casetypecode"); + } + set + { + this.OnPropertyChanging("CaseTypeCode"); + this.SetAttributeValue("casetypecode", value); + this.OnPropertyChanged("CaseTypeCode"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("checkemail")] + public System.Nullable CheckEmail + { + get + { + return this.GetAttributeValue>("checkemail"); + } + set + { + this.OnPropertyChanging("CheckEmail"); + this.SetAttributeValue("checkemail", value); + this.OnPropertyChanged("CheckEmail"); + } + } + + /// + /// Unique identifier of the contact associated with the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Choose the contract line that the case should be logged under to make sure the customer is charged correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + public Microsoft.Xrm.Sdk.EntityReference ContractDetailId + { + get + { + return this.GetAttributeValue("contractdetailid"); + } + set + { + this.OnPropertyChanging("ContractDetailId"); + this.SetAttributeValue("contractdetailid", value); + this.OnPropertyChanged("ContractDetailId"); + } + } + + /// + /// Choose the service contract that the case should be logged under to make sure the customer is eligible for support services. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public Microsoft.Xrm.Sdk.EntityReference ContractId + { + get + { + return this.GetAttributeValue("contractid"); + } + set + { + this.OnPropertyChanging("ContractId"); + this.SetAttributeValue("contractid", value); + this.OnPropertyChanged("ContractId"); + } + } + + /// + /// Select the service level for the case to make sure the case is handled correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractservicelevelcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractServiceLevelCode + { + get + { + return this.GetAttributeValue("contractservicelevelcode"); + } + set + { + this.OnPropertyChanging("ContractServiceLevelCode"); + this.SetAttributeValue("contractservicelevelcode", value); + this.OnPropertyChanged("ContractServiceLevelCode"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the customer's level of satisfaction with the handling and resolution of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customersatisfactioncode")] + public Microsoft.Xrm.Sdk.OptionSetValue CustomerSatisfactionCode + { + get + { + return this.GetAttributeValue("customersatisfactioncode"); + } + set + { + this.OnPropertyChanging("CustomerSatisfactionCode"); + this.SetAttributeValue("customersatisfactioncode", value); + this.OnPropertyChanged("CustomerSatisfactionCode"); + } + } + + /// + /// Type additional information to describe the case to assist the service team in reaching a resolution. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select an existing case for the customer that has been populated. For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcase")] + public Microsoft.Xrm.Sdk.EntityReference ExistingCase + { + get + { + return this.GetAttributeValue("existingcase"); + } + set + { + this.OnPropertyChanging("ExistingCase"); + this.SetAttributeValue("existingcase", value); + this.OnPropertyChanged("ExistingCase"); + } + } + + /// + /// Enter the date by which a customer service representative has to follow up with the customer on this case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("followupby")] + public System.Nullable FollowupBy + { + get + { + return this.GetAttributeValue>("followupby"); + } + set + { + this.OnPropertyChanging("FollowupBy"); + this.SetAttributeValue("followupby", value); + this.OnPropertyChanged("FollowupBy"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("followuptaskcreated")] + public System.Nullable FollowUpTaskCreated + { + get + { + return this.GetAttributeValue>("followuptaskcreated"); + } + set + { + this.OnPropertyChanging("FollowUpTaskCreated"); + this.SetAttributeValue("followuptaskcreated", value); + this.OnPropertyChanged("FollowUpTaskCreated"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + public System.Nullable IncidentId + { + get + { + return this.GetAttributeValue>("incidentid"); + } + set + { + this.OnPropertyChanging("IncidentId"); + this.SetAttributeValue("incidentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("IncidentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.IncidentId = value; + } + } + + /// + /// Select the current stage of the service process for the case to assist service team members when they review or transfer a case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentstagecode")] + public Microsoft.Xrm.Sdk.OptionSetValue IncidentStageCode + { + get + { + return this.GetAttributeValue("incidentstagecode"); + } + set + { + this.OnPropertyChanging("IncidentStageCode"); + this.SetAttributeValue("incidentstagecode", value); + this.OnPropertyChanged("IncidentStageCode"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdecrementing")] + public System.Nullable IsDecrementing + { + get + { + return this.GetAttributeValue>("isdecrementing"); + } + set + { + this.OnPropertyChanging("IsDecrementing"); + this.SetAttributeValue("isdecrementing", value); + this.OnPropertyChanged("IsDecrementing"); + } + } + + /// + /// Choose the article that contains additional information or a resolution for the case, for reference during research or follow up with the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public Microsoft.Xrm.Sdk.EntityReference KbArticleId + { + get + { + return this.GetAttributeValue("kbarticleid"); + } + set + { + this.OnPropertyChanging("KbArticleId"); + this.SetAttributeValue("kbarticleid", value); + this.OnPropertyChanged("KbArticleId"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the product associated with the case to identify warranty, service, or other product issues and be able to report the number of incidents for each product. + /// + [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"); + } + } + + /// + /// Type the serial number of the product that is associated with this case, so that the number of cases per product can be reported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productserialnumber")] + public string ProductSerialNumber + { + get + { + return this.GetAttributeValue("productserialnumber"); + } + set + { + this.OnPropertyChanging("ProductSerialNumber"); + this.SetAttributeValue("productserialnumber", value); + this.OnPropertyChanged("ProductSerialNumber"); + } + } + + /// + /// Choose the primary customer contact who submitted or is tasked with helping resolve the case. This lets you select a contact to access phone, email, and other contact information for quick follow up on the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("responsiblecontactid")] + public Microsoft.Xrm.Sdk.EntityReference ResponsibleContactId + { + get + { + return this.GetAttributeValue("responsiblecontactid"); + } + set + { + this.OnPropertyChanging("ResponsibleContactId"); + this.SetAttributeValue("responsiblecontactid", value); + this.OnPropertyChanged("ResponsibleContactId"); + } + } + + /// + /// Select the stage, in the case resolution process, that the case is in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicestage")] + public Microsoft.Xrm.Sdk.OptionSetValue ServiceStage + { + get + { + return this.GetAttributeValue("servicestage"); + } + set + { + this.OnPropertyChanging("ServiceStage"); + this.SetAttributeValue("servicestage", value); + this.OnPropertyChanged("ServiceStage"); + } + } + + /// + /// Select the severity of this case to indicate the incident's impact on the customer's business. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("severitycode")] + public Microsoft.Xrm.Sdk.OptionSetValue SeverityCode + { + get + { + return this.GetAttributeValue("severitycode"); + } + set + { + this.OnPropertyChanging("SeverityCode"); + this.SetAttributeValue("severitycode", value); + this.OnPropertyChanged("SeverityCode"); + } + } + + /// + /// 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 case is active, resolved, or canceled. Resolved and canceled cases 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 ((Xrm.Framework.CI.Common.Entities.IncidentState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.IncidentState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the case'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"); + } + } + + /// + /// Choose the subject for the case, such as catalog request or product complaint, so customer service managers can identify frequent requests or problem areas. Administrators can configure subjects under Business Management in the Settings area. + /// + [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"); + } + } + + /// + /// Shows the case number for customer reference and searching capabilities. This cannot be modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ticketnumber")] + public string TicketNumber + { + get + { + return this.GetAttributeValue("ticketnumber"); + } + set + { + this.OnPropertyChanging("TicketNumber"); + this.SetAttributeValue("ticketnumber", value); + this.OnPropertyChanged("TicketNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type a subject or descriptive name, such as the request, issue, or company name, to identify the case in Microsoft Dynamics CRM views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N incident_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_activity_parties")] + public System.Collections.Generic.IEnumerable incident_activity_parties + { + get + { + return this.GetRelatedEntities("incident_activity_parties", null); + } + set + { + this.OnPropertyChanging("incident_activity_parties"); + this.SetRelatedEntities("incident_activity_parties", null, value); + this.OnPropertyChanged("incident_activity_parties"); + } + } + + /// + /// 1:N Incident_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ActivityPointers")] + public System.Collections.Generic.IEnumerable Incident_ActivityPointers + { + get + { + return this.GetRelatedEntities("Incident_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Incident_ActivityPointers"); + this.SetRelatedEntities("Incident_ActivityPointers", null, value); + this.OnPropertyChanged("Incident_ActivityPointers"); + } + } + + /// + /// 1:N Incident_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Annotation")] + public System.Collections.Generic.IEnumerable Incident_Annotation + { + get + { + return this.GetRelatedEntities("Incident_Annotation", null); + } + set + { + this.OnPropertyChanging("Incident_Annotation"); + this.SetRelatedEntities("Incident_Annotation", null, value); + this.OnPropertyChanged("Incident_Annotation"); + } + } + + /// + /// 1:N Incident_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Appointments")] + public System.Collections.Generic.IEnumerable Incident_Appointments + { + get + { + return this.GetRelatedEntities("Incident_Appointments", null); + } + set + { + this.OnPropertyChanging("Incident_Appointments"); + this.SetRelatedEntities("Incident_Appointments", null, value); + this.OnPropertyChanged("Incident_Appointments"); + } + } + + /// + /// 1:N Incident_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_AsyncOperations")] + public System.Collections.Generic.IEnumerable Incident_AsyncOperations + { + get + { + return this.GetRelatedEntities("Incident_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Incident_AsyncOperations"); + this.SetRelatedEntities("Incident_AsyncOperations", null, value); + this.OnPropertyChanged("Incident_AsyncOperations"); + } + } + + /// + /// 1:N Incident_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Incident_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Incident_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Incident_BulkDeleteFailures"); + this.SetRelatedEntities("Incident_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Incident_BulkDeleteFailures"); + } + } + + /// + /// 1:N incident_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections1")] + public System.Collections.Generic.IEnumerable incident_connections1 + { + get + { + return this.GetRelatedEntities("incident_connections1", null); + } + set + { + this.OnPropertyChanging("incident_connections1"); + this.SetRelatedEntities("incident_connections1", null, value); + this.OnPropertyChanged("incident_connections1"); + } + } + + /// + /// 1:N incident_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections2")] + public System.Collections.Generic.IEnumerable incident_connections2 + { + get + { + return this.GetRelatedEntities("incident_connections2", null); + } + set + { + this.OnPropertyChanging("incident_connections2"); + this.SetRelatedEntities("incident_connections2", null, value); + this.OnPropertyChanged("incident_connections2"); + } + } + + /// + /// 1:N Incident_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Incident_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Incident_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Incident_DuplicateBaseRecord"); + this.SetRelatedEntities("Incident_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Incident_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Incident_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Incident_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Incident_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Incident_DuplicateMatchingRecord"); + this.SetRelatedEntities("Incident_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Incident_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Incident_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Emails")] + public System.Collections.Generic.IEnumerable Incident_Emails + { + get + { + return this.GetRelatedEntities("Incident_Emails", null); + } + set + { + this.OnPropertyChanging("Incident_Emails"); + this.SetRelatedEntities("Incident_Emails", null, value); + this.OnPropertyChanged("Incident_Emails"); + } + } + + /// + /// 1:N incident_existingcase + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedincident_existingcase + { + get + { + return this.GetRelatedEntities("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedincident_existingcase"); + this.SetRelatedEntities("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedincident_existingcase"); + } + } + + /// + /// 1:N Incident_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Faxes")] + public System.Collections.Generic.IEnumerable Incident_Faxes + { + get + { + return this.GetRelatedEntities("Incident_Faxes", null); + } + set + { + this.OnPropertyChanging("Incident_Faxes"); + this.SetRelatedEntities("Incident_Faxes", null, value); + this.OnPropertyChanged("Incident_Faxes"); + } + } + + /// + /// 1:N Incident_IncidentResolutions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_IncidentResolutions")] + public System.Collections.Generic.IEnumerable Incident_IncidentResolutions + { + get + { + return this.GetRelatedEntities("Incident_IncidentResolutions", null); + } + set + { + this.OnPropertyChanging("Incident_IncidentResolutions"); + this.SetRelatedEntities("Incident_IncidentResolutions", null, value); + this.OnPropertyChanged("Incident_IncidentResolutions"); + } + } + + /// + /// 1:N Incident_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Letters")] + public System.Collections.Generic.IEnumerable Incident_Letters + { + get + { + return this.GetRelatedEntities("Incident_Letters", null); + } + set + { + this.OnPropertyChanging("Incident_Letters"); + this.SetRelatedEntities("Incident_Letters", null, value); + this.OnPropertyChanged("Incident_Letters"); + } + } + + /// + /// 1:N Incident_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Phonecalls")] + public System.Collections.Generic.IEnumerable Incident_Phonecalls + { + get + { + return this.GetRelatedEntities("Incident_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Incident_Phonecalls"); + this.SetRelatedEntities("Incident_Phonecalls", null, value); + this.OnPropertyChanged("Incident_Phonecalls"); + } + } + + /// + /// 1:N incident_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_PostFollows")] + public System.Collections.Generic.IEnumerable incident_PostFollows + { + get + { + return this.GetRelatedEntities("incident_PostFollows", null); + } + set + { + this.OnPropertyChanging("incident_PostFollows"); + this.SetRelatedEntities("incident_PostFollows", null, value); + this.OnPropertyChanged("incident_PostFollows"); + } + } + + /// + /// 1:N incident_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable incident_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("incident_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("incident_principalobjectattributeaccess"); + this.SetRelatedEntities("incident_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("incident_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Incident_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ProcessSessions")] + public System.Collections.Generic.IEnumerable Incident_ProcessSessions + { + get + { + return this.GetRelatedEntities("Incident_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Incident_ProcessSessions"); + this.SetRelatedEntities("Incident_ProcessSessions", null, value); + this.OnPropertyChanged("Incident_ProcessSessions"); + } + } + + /// + /// 1:N Incident_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_QueueItem")] + public System.Collections.Generic.IEnumerable Incident_QueueItem + { + get + { + return this.GetRelatedEntities("Incident_QueueItem", null); + } + set + { + this.OnPropertyChanging("Incident_QueueItem"); + this.SetRelatedEntities("Incident_QueueItem", null, value); + this.OnPropertyChanged("Incident_QueueItem"); + } + } + + /// + /// 1:N Incident_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Incident_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Incident_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Incident_RecurringAppointmentMasters"); + this.SetRelatedEntities("Incident_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Incident_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Incident_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Incident_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Incident_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Incident_ServiceAppointments"); + this.SetRelatedEntities("Incident_ServiceAppointments", null, value); + this.OnPropertyChanged("Incident_ServiceAppointments"); + } + } + + /// + /// 1:N Incident_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Tasks")] + public System.Collections.Generic.IEnumerable Incident_Tasks + { + get + { + return this.GetRelatedEntities("Incident_Tasks", null); + } + set + { + this.OnPropertyChanging("Incident_Tasks"); + this.SetRelatedEntities("Incident_Tasks", null, value); + this.OnPropertyChanged("Incident_Tasks"); + } + } + + /// + /// 1:N OriginatingCase_Lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OriginatingCase_Lead")] + public System.Collections.Generic.IEnumerable OriginatingCase_Lead + { + get + { + return this.GetRelatedEntities("OriginatingCase_Lead", null); + } + set + { + this.OnPropertyChanging("OriginatingCase_Lead"); + this.SetRelatedEntities("OriginatingCase_Lead", null, value); + this.OnPropertyChanged("OriginatingCase_Lead"); + } + } + + /// + /// 1:N userentityinstancedata_incident + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incident")] + public System.Collections.Generic.IEnumerable userentityinstancedata_incident + { + get + { + return this.GetRelatedEntities("userentityinstancedata_incident", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incident"); + this.SetRelatedEntities("userentityinstancedata_incident", null, value); + this.OnPropertyChanged("userentityinstancedata_incident"); + } + } + + /// + /// N:1 business_unit_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incidents")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_incidents + { + get + { + return this.GetRelatedEntity("business_unit_incidents", null); + } + } + + /// + /// N:1 contact_as_responsible_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("responsiblecontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_as_responsible_contact")] + public Xrm.Framework.CI.Common.Entities.Contact contact_as_responsible_contact + { + get + { + return this.GetRelatedEntity("contact_as_responsible_contact", null); + } + set + { + this.OnPropertyChanging("contact_as_responsible_contact"); + this.SetRelatedEntity("contact_as_responsible_contact", null, value); + this.OnPropertyChanged("contact_as_responsible_contact"); + } + } + + /// + /// N:1 contract_cases + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_cases")] + public Xrm.Framework.CI.Common.Entities.Contract contract_cases + { + get + { + return this.GetRelatedEntity("contract_cases", null); + } + set + { + this.OnPropertyChanging("contract_cases"); + this.SetRelatedEntity("contract_cases", null, value); + this.OnPropertyChanged("contract_cases"); + } + } + + /// + /// N:1 contract_detail_cases + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_cases")] + public Xrm.Framework.CI.Common.Entities.ContractDetail contract_detail_cases + { + get + { + return this.GetRelatedEntity("contract_detail_cases", null); + } + set + { + this.OnPropertyChanging("contract_detail_cases"); + this.SetRelatedEntity("contract_detail_cases", null, value); + this.OnPropertyChanged("contract_detail_cases"); + } + } + + /// + /// N:1 incident_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account incident_customer_accounts + { + get + { + return this.GetRelatedEntity("incident_customer_accounts", null); + } + set + { + this.OnPropertyChanging("incident_customer_accounts"); + this.SetRelatedEntity("incident_customer_accounts", null, value); + this.OnPropertyChanged("incident_customer_accounts"); + } + } + + /// + /// N:1 incident_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact incident_customer_contacts + { + get + { + return this.GetRelatedEntity("incident_customer_contacts", null); + } + set + { + this.OnPropertyChanging("incident_customer_contacts"); + this.SetRelatedEntity("incident_customer_contacts", null, value); + this.OnPropertyChanged("incident_customer_contacts"); + } + } + + /// + /// N:1 incident_existingcase + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcase")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Incident Referencingincident_existingcase + { + get + { + return this.GetRelatedEntity("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingincident_existingcase"); + this.SetRelatedEntity("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingincident_existingcase"); + } + } + + /// + /// N:1 kbarticle_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_incidents")] + public Xrm.Framework.CI.Common.Entities.KbArticle kbarticle_incidents + { + get + { + return this.GetRelatedEntity("kbarticle_incidents", null); + } + set + { + this.OnPropertyChanging("kbarticle_incidents"); + this.SetRelatedEntity("kbarticle_incidents", null, value); + this.OnPropertyChanged("kbarticle_incidents"); + } + } + + /// + /// N:1 lk_incidentbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_createdby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_createdby", null); + } + } + + /// + /// N:1 lk_incidentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_incidentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_modifiedby", null); + } + } + + /// + /// N:1 lk_incidentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 processstage_incident + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_incident")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_incident + { + get + { + return this.GetRelatedEntity("processstage_incident", null); + } + set + { + this.OnPropertyChanging("processstage_incident"); + this.SetRelatedEntity("processstage_incident", null, value); + this.OnPropertyChanged("processstage_incident"); + } + } + + /// + /// N:1 product_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_incidents")] + public Xrm.Framework.CI.Common.Entities.Product product_incidents + { + get + { + return this.GetRelatedEntity("product_incidents", null); + } + set + { + this.OnPropertyChanging("product_incidents"); + this.SetRelatedEntity("product_incidents", null, value); + this.OnPropertyChanged("product_incidents"); + } + } + + /// + /// N:1 subject_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_incidents")] + public Xrm.Framework.CI.Common.Entities.Subject subject_incidents + { + get + { + return this.GetRelatedEntity("subject_incidents", null); + } + set + { + this.OnPropertyChanging("subject_incidents"); + this.SetRelatedEntity("subject_incidents", null, value); + this.OnPropertyChanged("subject_incidents"); + } + } + + /// + /// N:1 system_user_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_incidents")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_incidents + { + get + { + return this.GetRelatedEntity("system_user_incidents", null); + } + } + + /// + /// N:1 team_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidents")] + public Xrm.Framework.CI.Common.Entities.Team team_incidents + { + get + { + return this.GetRelatedEntity("team_incidents", null); + } + } + + /// + /// N:1 TransactionCurrency_Incident + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Incident")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Incident + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Incident", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Incident"); + this.SetRelatedEntity("TransactionCurrency_Incident", null, value); + this.OnPropertyChanged("TransactionCurrency_Incident"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum IncidentResolutionState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Special type of activity that includes description of the resolution, billing status, and the duration of the case. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("incidentresolution")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class IncidentResolution : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public IncidentResolution() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "incidentresolution"; + + public const int EntityTypeCode = 4206; + + 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 case resolution 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 case resolution 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 case resolution 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 case resolution 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"); + } + } + + /// + /// Category for the case resolution 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"); + } + } + + /// + /// Unique identifier of the user who created the case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the case resolution 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 incidentresolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Type additional information that describes the case resolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + public Microsoft.Xrm.Sdk.EntityReference IncidentId + { + get + { + return this.GetAttributeValue("incidentid"); + } + set + { + this.OnPropertyChanging("IncidentId"); + this.SetAttributeValue("incidentid", value); + this.OnPropertyChanged("IncidentId"); + } + } + + /// + /// Information about whether the case resolution 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"); + } + } + + /// + /// 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 case resolution 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"); + } + } + + /// + /// Unique identifier of the user who last modified the case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the case resolution 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 incidentresolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// Unique identifier of the user or team who owns the case resolution 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 case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the case resolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the case resolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Scheduled duration of the case resolution activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the case resolution 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 case resolution 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 service with which the case resolution 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"); + } + } + + /// + /// Shows whether the case resolution is open, completed, or canceled. By default, all case resolutions are completed and the status value can't be changed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.IncidentResolutionState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.IncidentResolutionState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the case resolution 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"); + } + } + + /// + /// Subcategory of the case resolution 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 case resolution 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"); + } + } + + /// + /// Time spent on the case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timespent")] + public System.Nullable TimeSpent + { + get + { + return this.GetAttributeValue>("timespent"); + } + set + { + this.OnPropertyChanging("TimeSpent"); + this.SetAttributeValue("timespent", value); + this.OnPropertyChanged("TimeSpent"); + } + } + + /// + /// 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 of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N incidentresolution_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incidentresolution_activity_parties")] + public System.Collections.Generic.IEnumerable incidentresolution_activity_parties + { + get + { + return this.GetRelatedEntities("incidentresolution_activity_parties", null); + } + set + { + this.OnPropertyChanging("incidentresolution_activity_parties"); + this.SetRelatedEntities("incidentresolution_activity_parties", null, value); + this.OnPropertyChanged("incidentresolution_activity_parties"); + } + } + + /// + /// 1:N IncidentResolution_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_Annotation")] + public System.Collections.Generic.IEnumerable IncidentResolution_Annotation + { + get + { + return this.GetRelatedEntities("IncidentResolution_Annotation", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_Annotation"); + this.SetRelatedEntities("IncidentResolution_Annotation", null, value); + this.OnPropertyChanged("IncidentResolution_Annotation"); + } + } + + /// + /// 1:N IncidentResolution_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_AsyncOperations")] + public System.Collections.Generic.IEnumerable IncidentResolution_AsyncOperations + { + get + { + return this.GetRelatedEntities("IncidentResolution_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_AsyncOperations"); + this.SetRelatedEntities("IncidentResolution_AsyncOperations", null, value); + this.OnPropertyChanged("IncidentResolution_AsyncOperations"); + } + } + + /// + /// 1:N IncidentResolution_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable IncidentResolution_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("IncidentResolution_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_BulkDeleteFailures"); + this.SetRelatedEntities("IncidentResolution_BulkDeleteFailures", null, value); + this.OnPropertyChanged("IncidentResolution_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_incidentresolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incidentresolution")] + public System.Collections.Generic.IEnumerable userentityinstancedata_incidentresolution + { + get + { + return this.GetRelatedEntities("userentityinstancedata_incidentresolution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incidentresolution"); + this.SetRelatedEntities("userentityinstancedata_incidentresolution", null, value); + this.OnPropertyChanged("userentityinstancedata_incidentresolution"); + } + } + + /// + /// N:1 activity_pointer_incident_resolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_incident_resolution")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_incident_resolution + { + get + { + return this.GetRelatedEntity("activity_pointer_incident_resolution", null); + } + set + { + this.OnPropertyChanging("activity_pointer_incident_resolution"); + this.SetRelatedEntity("activity_pointer_incident_resolution", null, value); + this.OnPropertyChanged("activity_pointer_incident_resolution"); + } + } + + /// + /// N:1 business_unit_incident_resolution_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incident_resolution_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_incident_resolution_activities + { + get + { + return this.GetRelatedEntity("business_unit_incident_resolution_activities", null); + } + } + + /// + /// N:1 Incident_IncidentResolutions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_IncidentResolutions")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_IncidentResolutions + { + get + { + return this.GetRelatedEntity("Incident_IncidentResolutions", null); + } + set + { + this.OnPropertyChanging("Incident_IncidentResolutions"); + this.SetRelatedEntity("Incident_IncidentResolutions", null, value); + this.OnPropertyChanged("Incident_IncidentResolutions"); + } + } + + /// + /// N:1 lk_incidentresolution_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_createdby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_createdby", null); + } + } + + /// + /// N:1 lk_incidentresolution_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_incidentresolution_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_modifiedby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_modifiedby", null); + } + } + + /// + /// N:1 lk_incidentresolution_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_modifiedonbehalfby", null); + } + } + + /// + /// N:1 service_incidentresolutions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_incidentresolutions")] + public Xrm.Framework.CI.Common.Entities.Service service_incidentresolutions + { + get + { + return this.GetRelatedEntity("service_incidentresolutions", null); + } + set + { + this.OnPropertyChanging("service_incidentresolutions"); + this.SetRelatedEntity("service_incidentresolutions", null, value); + this.OnPropertyChanged("service_incidentresolutions"); + } + } + + /// + /// N:1 team_incidentresolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidentresolution")] + public Xrm.Framework.CI.Common.Entities.Team team_incidentresolution + { + get + { + return this.GetRelatedEntity("team_incidentresolution", null); + } + } + + /// + /// N:1 user_incidentresolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_incidentresolution")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_incidentresolution + { + get + { + return this.GetRelatedEntity("user_incidentresolution", null); + } + } + } + + /// + /// An invalid dependency in the CRM system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("invaliddependency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class InvalidDependency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public InvalidDependency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "invaliddependency"; + + public const int EntityTypeCode = 7107; + + 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 object that has an invalid dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcomponentid")] + public System.Nullable ExistingComponentId + { + get + { + return this.GetAttributeValue>("existingcomponentid"); + } + } + + /// + /// Component type of the object that has an invalid dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue ExistingComponentType + { + get + { + return this.GetAttributeValue("existingcomponenttype"); + } + } + + /// + /// The dependency type of the invalid dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingdependencytype")] + public Microsoft.Xrm.Sdk.OptionSetValue ExistingDependencyType + { + get + { + return this.GetAttributeValue("existingdependencytype"); + } + } + + /// + /// Unique identifier of the invalid dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invaliddependencyid")] + public System.Nullable InvalidDependencyId + { + get + { + return this.GetAttributeValue>("invaliddependencyid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invaliddependencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Indicates whether the existing node is the required component in the dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isexistingnoderequiredcomponent")] + public System.Nullable IsExistingNodeRequiredComponent + { + get + { + return this.GetAttributeValue>("isexistingnoderequiredcomponent"); + } + } + + /// + /// Unique identifier of the missing component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponentid")] + public System.Nullable MissingComponentId + { + get + { + return this.GetAttributeValue>("missingcomponentid"); + } + set + { + this.OnPropertyChanging("MissingComponentId"); + this.SetAttributeValue("missingcomponentid", value); + this.OnPropertyChanged("MissingComponentId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponentinfo")] + public string MissingComponentInfo + { + get + { + return this.GetAttributeValue("missingcomponentinfo"); + } + } + + /// + /// The lookup type of the missing component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponentlookuptype")] + public System.Nullable MissingComponentLookupType + { + get + { + return this.GetAttributeValue>("missingcomponentlookuptype"); + } + } + + /// + /// The object type code of the missing component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue MissingComponentType + { + get + { + return this.GetAttributeValue("missingcomponenttype"); + } + } + + /// + /// 1:N userentityinstancedata_invaliddependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invaliddependency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_invaliddependency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_invaliddependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invaliddependency"); + this.SetRelatedEntities("userentityinstancedata_invaliddependency", null, value); + this.OnPropertyChanged("userentityinstancedata_invaliddependency"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum InvoiceState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Paid = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 3, + } + + /// + /// Order that has been billed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("invoice")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Invoice : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Invoice() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "invoice"; + + public const int EntityTypeCode = 1090; + + 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 invoice is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Unique identifier of the contact associated with the invoice. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 when the products included in the invoice were delivered. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datedelivered")] + public System.Nullable DateDelivered + { + get + { + return this.GetAttributeValue>("datedelivered"); + } + set + { + this.OnPropertyChanging("DateDelivered"); + this.SetAttributeValue("datedelivered", value); + this.OnPropertyChanged("DateDelivered"); + } + } + + /// + /// Type additional information to describe the invoice, such as shipping details or product 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"); + } + } + + /// + /// Type the discount amount for the invoice 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"); + } + } + + /// + /// Shows the Invoice Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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, for use in calculating the Pre-Freight Amount and Total Amount values for the invoice. + /// + [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 by which the invoice should be paid by the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duedate")] + public System.Nullable DueDate + { + get + { + return this.GetAttributeValue>("duedate"); + } + set + { + this.OnPropertyChanging("DueDate"); + this.SetAttributeValue("duedate", value); + this.OnPropertyChanged("DueDate"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 cost of freight or shipping for the products included in the invoice for use in calculating the total amount due. + /// + [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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount_base")] + public Microsoft.Xrm.Sdk.Money FreightAmount_Base + { + get + { + return this.GetAttributeValue("freightamount_base"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public System.Nullable InvoiceId + { + get + { + return this.GetAttributeValue>("invoiceid"); + } + set + { + this.OnPropertyChanging("InvoiceId"); + this.SetAttributeValue("invoiceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("InvoiceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.InvoiceId = value; + } + } + + /// + /// Shows the identifying number or code of the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicenumber")] + public string InvoiceNumber + { + get + { + return this.GetAttributeValue("invoicenumber"); + } + set + { + this.OnPropertyChanging("InvoiceNumber"); + this.SetAttributeValue("invoicenumber", value); + this.OnPropertyChanged("InvoiceNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the date and time when the invoice 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose the opportunity that the invoice 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"); + } + } + + /// + /// 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 invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the invoice. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of pricing error for the invoice. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the order related to the invoice to make sure the order is fulfilled and invoiced correctly. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 invoice is active, paid, or canceled. Paid and canceled invoices 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 ((Xrm.Framework.CI.Common.Entities.InvoiceState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.InvoiceState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the invoice'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, discount, freight, and taxes for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount")] + public Microsoft.Xrm.Sdk.Money TotalAmount + { + get + { + return this.GetAttributeValue("totalamount"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount_base")] + public Microsoft.Xrm.Sdk.Money TotalAmount_Base + { + get + { + return this.GetAttributeValue("totalamount_base"); + } + } + + /// + /// Shows the total product amount due, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount due for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight + { + get + { + return this.GetAttributeValue("totalamountlessfreight"); + } + } + + /// + /// Shows the Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount + { + get + { + return this.GetAttributeValue("totaldiscountamount"); + } + } + + /// + /// Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 invoice, based on the specified price list and quantities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount + { + get + { + return this.GetAttributeValue("totallineitemamount"); + } + } + + /// + /// Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount_base")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount_Base + { + get + { + return this.GetAttributeValue("totallineitemamount_base"); + } + } + + /// + /// Shows the Manual Discount amounts specified on all products included in the invoice. This value is reflected in the Detail Amount field on the invoice and is added to any discount amount or rate specified on the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount"); + } + } + + /// + /// Shows the total of the Manual Discount amounts specified on all products included in the invoice. This value is reflected in the Detail Amount field on the invoice and is added to any discount amount or rate specified on the invoice. + /// + [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 invoice, included in the Total Amount due calculation for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax")] + public Microsoft.Xrm.Sdk.Money TotalTax + { + get + { + return this.GetAttributeValue("totaltax"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Select whether the products included in the invoice 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"); + } + } + + /// + /// 1:N invoice_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_activity_parties")] + public System.Collections.Generic.IEnumerable invoice_activity_parties + { + get + { + return this.GetRelatedEntities("invoice_activity_parties", null); + } + set + { + this.OnPropertyChanging("invoice_activity_parties"); + this.SetRelatedEntities("invoice_activity_parties", null, value); + this.OnPropertyChanged("invoice_activity_parties"); + } + } + + /// + /// 1:N Invoice_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ActivityPointers")] + public System.Collections.Generic.IEnumerable Invoice_ActivityPointers + { + get + { + return this.GetRelatedEntities("Invoice_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Invoice_ActivityPointers"); + this.SetRelatedEntities("Invoice_ActivityPointers", null, value); + this.OnPropertyChanged("Invoice_ActivityPointers"); + } + } + + /// + /// 1:N Invoice_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Annotation")] + public System.Collections.Generic.IEnumerable Invoice_Annotation + { + get + { + return this.GetRelatedEntities("Invoice_Annotation", null); + } + set + { + this.OnPropertyChanging("Invoice_Annotation"); + this.SetRelatedEntities("Invoice_Annotation", null, value); + this.OnPropertyChanged("Invoice_Annotation"); + } + } + + /// + /// 1:N Invoice_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Appointments")] + public System.Collections.Generic.IEnumerable Invoice_Appointments + { + get + { + return this.GetRelatedEntities("Invoice_Appointments", null); + } + set + { + this.OnPropertyChanging("Invoice_Appointments"); + this.SetRelatedEntities("Invoice_Appointments", null, value); + this.OnPropertyChanged("Invoice_Appointments"); + } + } + + /// + /// 1:N Invoice_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_AsyncOperations")] + public System.Collections.Generic.IEnumerable Invoice_AsyncOperations + { + get + { + return this.GetRelatedEntities("Invoice_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Invoice_AsyncOperations"); + this.SetRelatedEntities("Invoice_AsyncOperations", null, value); + this.OnPropertyChanged("Invoice_AsyncOperations"); + } + } + + /// + /// 1:N Invoice_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Invoice_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Invoice_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Invoice_BulkDeleteFailures"); + this.SetRelatedEntities("Invoice_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Invoice_BulkDeleteFailures"); + } + } + + /// + /// 1:N invoice_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections1")] + public System.Collections.Generic.IEnumerable invoice_connections1 + { + get + { + return this.GetRelatedEntities("invoice_connections1", null); + } + set + { + this.OnPropertyChanging("invoice_connections1"); + this.SetRelatedEntities("invoice_connections1", null, value); + this.OnPropertyChanged("invoice_connections1"); + } + } + + /// + /// 1:N invoice_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections2")] + public System.Collections.Generic.IEnumerable invoice_connections2 + { + get + { + return this.GetRelatedEntities("invoice_connections2", null); + } + set + { + this.OnPropertyChanging("invoice_connections2"); + this.SetRelatedEntities("invoice_connections2", null, value); + this.OnPropertyChanged("invoice_connections2"); + } + } + + /// + /// 1:N invoice_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_details")] + public System.Collections.Generic.IEnumerable invoice_details + { + get + { + return this.GetRelatedEntities("invoice_details", null); + } + set + { + this.OnPropertyChanging("invoice_details"); + this.SetRelatedEntities("invoice_details", null, value); + this.OnPropertyChanged("invoice_details"); + } + } + + /// + /// 1:N Invoice_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Emails")] + public System.Collections.Generic.IEnumerable Invoice_Emails + { + get + { + return this.GetRelatedEntities("Invoice_Emails", null); + } + set + { + this.OnPropertyChanging("Invoice_Emails"); + this.SetRelatedEntities("Invoice_Emails", null, value); + this.OnPropertyChanged("Invoice_Emails"); + } + } + + /// + /// 1:N Invoice_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Faxes")] + public System.Collections.Generic.IEnumerable Invoice_Faxes + { + get + { + return this.GetRelatedEntities("Invoice_Faxes", null); + } + set + { + this.OnPropertyChanging("Invoice_Faxes"); + this.SetRelatedEntities("Invoice_Faxes", null, value); + this.OnPropertyChanged("Invoice_Faxes"); + } + } + + /// + /// 1:N Invoice_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Letters")] + public System.Collections.Generic.IEnumerable Invoice_Letters + { + get + { + return this.GetRelatedEntities("Invoice_Letters", null); + } + set + { + this.OnPropertyChanging("Invoice_Letters"); + this.SetRelatedEntities("Invoice_Letters", null, value); + this.OnPropertyChanged("Invoice_Letters"); + } + } + + /// + /// 1:N Invoice_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Phonecalls")] + public System.Collections.Generic.IEnumerable Invoice_Phonecalls + { + get + { + return this.GetRelatedEntities("Invoice_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Invoice_Phonecalls"); + this.SetRelatedEntities("Invoice_Phonecalls", null, value); + this.OnPropertyChanged("Invoice_Phonecalls"); + } + } + + /// + /// 1:N invoice_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable invoice_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("invoice_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoice_principalobjectattributeaccess"); + this.SetRelatedEntities("invoice_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoice_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Invoice_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ProcessSessions")] + public System.Collections.Generic.IEnumerable Invoice_ProcessSessions + { + get + { + return this.GetRelatedEntities("Invoice_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Invoice_ProcessSessions"); + this.SetRelatedEntities("Invoice_ProcessSessions", null, value); + this.OnPropertyChanged("Invoice_ProcessSessions"); + } + } + + /// + /// 1:N Invoice_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Invoice_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Invoice_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Invoice_RecurringAppointmentMasters"); + this.SetRelatedEntities("Invoice_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Invoice_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Invoice_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Invoice_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Invoice_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Invoice_ServiceAppointments"); + this.SetRelatedEntities("Invoice_ServiceAppointments", null, value); + this.OnPropertyChanged("Invoice_ServiceAppointments"); + } + } + + /// + /// 1:N Invoice_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Tasks")] + public System.Collections.Generic.IEnumerable Invoice_Tasks + { + get + { + return this.GetRelatedEntities("Invoice_Tasks", null); + } + set + { + this.OnPropertyChanging("Invoice_Tasks"); + this.SetRelatedEntities("Invoice_Tasks", null, value); + this.OnPropertyChanged("Invoice_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_invoice + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoice")] + public System.Collections.Generic.IEnumerable userentityinstancedata_invoice + { + get + { + return this.GetRelatedEntities("userentityinstancedata_invoice", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoice"); + this.SetRelatedEntities("userentityinstancedata_invoice", null, value); + this.OnPropertyChanged("userentityinstancedata_invoice"); + } + } + + /// + /// N:N contactinvoices_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactinvoices_association")] + public System.Collections.Generic.IEnumerable contactinvoices_association + { + get + { + return this.GetRelatedEntities("contactinvoices_association", null); + } + set + { + this.OnPropertyChanging("contactinvoices_association"); + this.SetRelatedEntities("contactinvoices_association", null, value); + this.OnPropertyChanged("contactinvoices_association"); + } + } + + /// + /// N:1 business_unit_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_invoices")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_invoices + { + get + { + return this.GetRelatedEntity("business_unit_invoices", null); + } + } + + /// + /// N:1 invoice_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account invoice_customer_accounts + { + get + { + return this.GetRelatedEntity("invoice_customer_accounts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_accounts"); + this.SetRelatedEntity("invoice_customer_accounts", null, value); + this.OnPropertyChanged("invoice_customer_accounts"); + } + } + + /// + /// N:1 invoice_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact invoice_customer_contacts + { + get + { + return this.GetRelatedEntity("invoice_customer_contacts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_contacts"); + this.SetRelatedEntity("invoice_customer_contacts", null, value); + this.OnPropertyChanged("invoice_customer_contacts"); + } + } + + /// + /// N:1 lk_invoice_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoice_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoice_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_invoice_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoice_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoice_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_invoicebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicebase_createdby + { + get + { + return this.GetRelatedEntity("lk_invoicebase_createdby", null); + } + } + + /// + /// N:1 lk_invoicebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_invoicebase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_invoices")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_invoices + { + get + { + return this.GetRelatedEntity("opportunity_invoices", null); + } + set + { + this.OnPropertyChanging("opportunity_invoices"); + this.SetRelatedEntity("opportunity_invoices", null, value); + this.OnPropertyChanged("opportunity_invoices"); + } + } + + /// + /// N:1 order_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_invoices")] + public Xrm.Framework.CI.Common.Entities.SalesOrder order_invoices + { + get + { + return this.GetRelatedEntity("order_invoices", null); + } + set + { + this.OnPropertyChanging("order_invoices"); + this.SetRelatedEntity("order_invoices", null, value); + this.OnPropertyChanged("order_invoices"); + } + } + + /// + /// N:1 price_level_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_invoices")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_invoices + { + get + { + return this.GetRelatedEntity("price_level_invoices", null); + } + set + { + this.OnPropertyChanging("price_level_invoices"); + this.SetRelatedEntity("price_level_invoices", null, value); + this.OnPropertyChanged("price_level_invoices"); + } + } + + /// + /// N:1 processstage_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_invoices")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_invoices + { + get + { + return this.GetRelatedEntity("processstage_invoices", null); + } + set + { + this.OnPropertyChanging("processstage_invoices"); + this.SetRelatedEntity("processstage_invoices", null, value); + this.OnPropertyChanged("processstage_invoices"); + } + } + + /// + /// N:1 system_user_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoices")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_invoices + { + get + { + return this.GetRelatedEntity("system_user_invoices", null); + } + } + + /// + /// N:1 team_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_invoices")] + public Xrm.Framework.CI.Common.Entities.Team team_invoices + { + get + { + return this.GetRelatedEntity("team_invoices", null); + } + } + + /// + /// N:1 transactioncurrency_invoice + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoice")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_invoice + { + get + { + return this.GetRelatedEntity("transactioncurrency_invoice", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_invoice"); + this.SetRelatedEntity("transactioncurrency_invoice", null, value); + this.OnPropertyChanged("transactioncurrency_invoice"); + } + } + } + + /// + /// Line item in an invoice containing detailed billing information for a product. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("invoicedetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class InvoiceDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public InvoiceDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "invoicedetail"; + + public const int EntityTypeCode = 1091; + + 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)); + } + } + + /// + /// Enter the date when the invoiced product was delivered to the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdeliveryon")] + public System.Nullable ActualDeliveryOn + { + get + { + return this.GetAttributeValue>("actualdeliveryon"); + } + set + { + this.OnPropertyChanging("ActualDeliveryOn"); + this.SetAttributeValue("actualdeliveryon", value); + this.OnPropertyChanged("ActualDeliveryOn"); + } + } + + /// + /// Shows the total price of the invoice 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the product line item of the invoice. + /// + [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 invoice 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"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicedetailid")] + public System.Nullable InvoiceDetailId + { + get + { + return this.GetAttributeValue>("invoicedetailid"); + } + set + { + this.OnPropertyChanging("InvoiceDetailId"); + this.SetAttributeValue("invoicedetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("InvoiceDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicedetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.InvoiceDetailId = value; + } + } + + /// + /// Unique identifier of the invoice associated with the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public Microsoft.Xrm.Sdk.EntityReference InvoiceId + { + get + { + return this.GetAttributeValue("invoiceid"); + } + set + { + this.OnPropertyChanging("InvoiceId"); + this.SetAttributeValue("invoiceid", value); + this.OnPropertyChanged("InvoiceId"); + } + } + + /// + /// Information about whether invoice product pricing is locked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceispricelocked")] + public System.Nullable InvoiceIsPriceLocked + { + get + { + return this.GetAttributeValue>("invoiceispricelocked"); + } + } + + /// + /// Status of the invoice product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicestatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InvoiceStateCode + { + get + { + return this.GetAttributeValue("invoicestatecode"); + } + } + + /// + /// Select whether the invoice product 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 invoice 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 CRM product catalog or is a write-in product specific to the parent invoice. + /// + [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 invoice product to easily identify the product in the invoice and make sure it's listed in the correct order. + /// + [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 invoice product to deduct any negotiated or other savings from the product total. + /// + [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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 invoice detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Type the price per unit of the invoice product. The default is the value in the price list specified on the parent invoice 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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priceperunit_base")] + public Microsoft.Xrm.Sdk.Money PricePerUnit_Base + { + get + { + return this.GetAttributeValue("priceperunit_base"); + } + } + + /// + /// Pricing error for the invoice product line item. + /// + [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"); + } + } + + /// + /// Type a name or description to identify the type of write-in product included in the invoice. + /// + [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 invoice. + /// + [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"); + } + } + + /// + /// Type the amount or quantity of the product included in the invoice's total amount due. + /// + [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 invoice. + /// + [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 for the invoice line item. + /// + [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. + /// + [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"); + } + } + + /// + /// Choose the user responsible for the sale of the invoice 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"); + } + } + + /// + /// Type a tracking number for shipment of the invoiced product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingtrackingnumber")] + public string ShippingTrackingNumber + { + get + { + return this.GetAttributeValue("shippingtrackingnumber"); + } + set + { + this.OnPropertyChanging("ShippingTrackingNumber"); + this.SetAttributeValue("shippingtrackingnumber", value); + this.OnPropertyChanged("ShippingTrackingNumber"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the tax amount for the invoice 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the invoice product line item. + /// + [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"); + } + } + + /// + /// Shows the Volume Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("volumediscountamount_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// Select whether the invoice 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"); + } + } + + /// + /// 1:N InvoiceDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable InvoiceDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("InvoiceDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_AsyncOperations"); + this.SetRelatedEntities("InvoiceDetail_AsyncOperations", null, value); + this.OnPropertyChanged("InvoiceDetail_AsyncOperations"); + } + } + + /// + /// 1:N InvoiceDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable InvoiceDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("InvoiceDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_BulkDeleteFailures"); + this.SetRelatedEntities("InvoiceDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("InvoiceDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N invoicedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoicedetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable invoicedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("invoicedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoicedetail_principalobjectattributeaccess"); + this.SetRelatedEntities("invoicedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoicedetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N InvoiceDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable InvoiceDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("InvoiceDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_ProcessSessions"); + this.SetRelatedEntities("InvoiceDetail_ProcessSessions", null, value); + this.OnPropertyChanged("InvoiceDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_invoicedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoicedetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_invoicedetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_invoicedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoicedetail"); + this.SetRelatedEntities("userentityinstancedata_invoicedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_invoicedetail"); + } + } + + /// + /// N:1 invoice_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_details")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_details + { + get + { + return this.GetRelatedEntity("invoice_details", null); + } + set + { + this.OnPropertyChanging("invoice_details"); + this.SetRelatedEntity("invoice_details", null, value); + this.OnPropertyChanged("invoice_details"); + } + } + + /// + /// N:1 lk_invoicedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoicedetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_invoicedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoicedetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_invoicedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_invoicedetailbase_createdby", null); + } + } + + /// + /// N:1 lk_invoicedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_invoicedetailbase_modifiedby", null); + } + } + + /// + /// N:1 product_invoice_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_invoice_details")] + public Xrm.Framework.CI.Common.Entities.Product product_invoice_details + { + get + { + return this.GetRelatedEntity("product_invoice_details", null); + } + set + { + this.OnPropertyChanging("product_invoice_details"); + this.SetRelatedEntity("product_invoice_details", null, value); + this.OnPropertyChanged("product_invoice_details"); + } + } + + /// + /// N:1 system_user_invoicedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoicedetail")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_invoicedetail + { + get + { + return this.GetRelatedEntity("system_user_invoicedetail", null); + } + set + { + this.OnPropertyChanging("system_user_invoicedetail"); + this.SetRelatedEntity("system_user_invoicedetail", null, value); + this.OnPropertyChanged("system_user_invoicedetail"); + } + } + + /// + /// N:1 transactioncurrency_invoicedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoicedetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_invoicedetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_invoicedetail", null); + } + } + + /// + /// N:1 unit_of_measurement_invoice_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_invoice_details")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_invoice_details + { + get + { + return this.GetRelatedEntity("unit_of_measurement_invoice_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_invoice_details"); + this.SetRelatedEntity("unit_of_measurement_invoice_details", null, value); + this.OnPropertyChanged("unit_of_measurement_invoice_details"); + } + } + } + + /// + /// An XML document used to configure client extension controls. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("isvconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class IsvConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public IsvConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "isvconfig"; + + public const int EntityTypeCode = 4705; + + 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)); + } + } + + /// + /// Structured XML data representing the customizations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configxml")] + public string ConfigXML + { + get + { + return this.GetAttributeValue("configxml"); + } + set + { + this.OnPropertyChanging("ConfigXML"); + this.SetAttributeValue("configxml", value); + this.OnPropertyChanged("ConfigXML"); + } + } + + /// + /// Unique identifier of the user who created the ISV configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the ISV configuration 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 isvconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the ISV configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvconfigid")] + public System.Nullable IsvConfigId + { + get + { + return this.GetAttributeValue>("isvconfigid"); + } + set + { + this.OnPropertyChanging("IsvConfigId"); + this.SetAttributeValue("isvconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("IsvConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.IsvConfigId = value; + } + } + + /// + /// Unique identifier of the user who last modified the ISV configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the ISV configuration 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 isvconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the ISV configuration XML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N IsvConfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_AsyncOperations")] + public System.Collections.Generic.IEnumerable IsvConfig_AsyncOperations + { + get + { + return this.GetRelatedEntities("IsvConfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IsvConfig_AsyncOperations"); + this.SetRelatedEntities("IsvConfig_AsyncOperations", null, value); + this.OnPropertyChanged("IsvConfig_AsyncOperations"); + } + } + + /// + /// 1:N IsvConfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable IsvConfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("IsvConfig_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("IsvConfig_BulkDeleteFailures"); + this.SetRelatedEntities("IsvConfig_BulkDeleteFailures", null, value); + this.OnPropertyChanged("IsvConfig_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_isvconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_isvconfig")] + public System.Collections.Generic.IEnumerable userentityinstancedata_isvconfig + { + get + { + return this.GetRelatedEntities("userentityinstancedata_isvconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_isvconfig"); + this.SetRelatedEntities("userentityinstancedata_isvconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_isvconfig"); + } + } + + /// + /// N:1 lk_isvconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_isvconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_isvconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_isvconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_isvconfigbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfigbase_createdby + { + get + { + return this.GetRelatedEntity("lk_isvconfigbase_createdby", null); + } + } + + /// + /// N:1 lk_isvconfigbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfigbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_isvconfigbase_modifiedby", null); + } + } + + /// + /// N:1 organization_isvconfigs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_isvconfigs")] + public Xrm.Framework.CI.Common.Entities.Organization organization_isvconfigs + { + get + { + return this.GetRelatedEntity("organization_isvconfigs", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum KbArticleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unapproved = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Published = 3, + } + + /// + /// Structured content that is part of the knowledge base. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("kbarticle")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class KbArticle : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public KbArticle() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "kbarticle"; + + public const int EntityTypeCode = 127; + + 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 article content and formatting, stored as XML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articlexml")] + public string ArticleXml + { + get + { + return this.GetAttributeValue("articlexml"); + } + set + { + this.OnPropertyChanging("ArticleXml"); + this.SetAttributeValue("articlexml", value); + this.OnPropertyChanged("ArticleXml"); + } + } + + /// + /// Comments regarding the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("comments")] + public string Comments + { + get + { + return this.GetAttributeValue("comments"); + } + set + { + this.OnPropertyChanging("Comments"); + this.SetAttributeValue("comments", value); + this.OnPropertyChanged("Comments"); + } + } + + /// + /// Description of the content of the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + } + + /// + /// Unique identifier of the user who created the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the knowledge base article 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 article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Type additional information that describes the knowledge base article. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public System.Nullable KbArticleId + { + get + { + return this.GetAttributeValue>("kbarticleid"); + } + set + { + this.OnPropertyChanging("KbArticleId"); + this.SetAttributeValue("kbarticleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("KbArticleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.KbArticleId = value; + } + } + + /// + /// Choose the template that you want to use as a base for creating the new article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + public Microsoft.Xrm.Sdk.EntityReference KbArticleTemplateId + { + get + { + return this.GetAttributeValue("kbarticletemplateid"); + } + set + { + this.OnPropertyChanging("KbArticleTemplateId"); + this.SetAttributeValue("kbarticletemplateid", value); + this.OnPropertyChanged("KbArticleTemplateId"); + } + } + + /// + /// Keywords to be used for searches in knowledge base articles. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keywords")] + public string KeyWords + { + get + { + return this.GetAttributeValue("keywords"); + } + set + { + this.OnPropertyChanging("KeyWords"); + this.SetAttributeValue("keywords", value); + this.OnPropertyChanged("KeyWords"); + } + } + + /// + /// Select which language the article must be available in. This list is based on the list of language packs that are installed in your Microsoft Dynamics CRM environment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the knowledge base article 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 kbarticle. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Knowledge base article number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("number")] + public string Number + { + get + { + return this.GetAttributeValue("number"); + } + } + + /// + /// Unique identifier of the organization associated with the article. + /// + [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 whether the knowledge base article is in draft, unapproved, or published status. Published articles are read-only and can't be edited unless they are unpublished. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.KbArticleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.KbArticleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the article'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"); + } + } + + /// + /// Choose the subject of the article to assist with article searches. You can configure subjects under Business Management in the Settings area. + /// + [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"); + } + } + + /// + /// Type a subject or descriptive name for the article to assist with article searches. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// 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"); + } + } + + /// + /// Title of the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N KbArticle_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_Annotation")] + public System.Collections.Generic.IEnumerable KbArticle_Annotation + { + get + { + return this.GetRelatedEntities("KbArticle_Annotation", null); + } + set + { + this.OnPropertyChanging("KbArticle_Annotation"); + this.SetRelatedEntities("KbArticle_Annotation", null, value); + this.OnPropertyChanged("KbArticle_Annotation"); + } + } + + /// + /// 1:N KbArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_AsyncOperations")] + public System.Collections.Generic.IEnumerable KbArticle_AsyncOperations + { + get + { + return this.GetRelatedEntities("KbArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticle_AsyncOperations"); + this.SetRelatedEntities("KbArticle_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticle_AsyncOperations"); + } + } + + /// + /// 1:N KbArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable KbArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("KbArticle_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("KbArticle_BulkDeleteFailures"); + this.SetRelatedEntities("KbArticle_BulkDeleteFailures", null, value); + this.OnPropertyChanged("KbArticle_BulkDeleteFailures"); + } + } + + /// + /// 1:N kbarticle_comments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_comments")] + public System.Collections.Generic.IEnumerable kbarticle_comments + { + get + { + return this.GetRelatedEntities("kbarticle_comments", null); + } + set + { + this.OnPropertyChanging("kbarticle_comments"); + this.SetRelatedEntities("kbarticle_comments", null, value); + this.OnPropertyChanged("kbarticle_comments"); + } + } + + /// + /// 1:N KbArticle_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable KbArticle_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("KbArticle_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("KbArticle_DuplicateBaseRecord"); + this.SetRelatedEntities("KbArticle_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("KbArticle_DuplicateBaseRecord"); + } + } + + /// + /// 1:N KbArticle_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable KbArticle_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("KbArticle_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("KbArticle_DuplicateMatchingRecord"); + this.SetRelatedEntities("KbArticle_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("KbArticle_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N kbarticle_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_incidents")] + public System.Collections.Generic.IEnumerable kbarticle_incidents + { + get + { + return this.GetRelatedEntities("kbarticle_incidents", null); + } + set + { + this.OnPropertyChanging("kbarticle_incidents"); + this.SetRelatedEntities("kbarticle_incidents", null, value); + this.OnPropertyChanged("kbarticle_incidents"); + } + } + + /// + /// 1:N kbarticle_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable kbarticle_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("kbarticle_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("kbarticle_principalobjectattributeaccess"); + this.SetRelatedEntities("kbarticle_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("kbarticle_principalobjectattributeaccess"); + } + } + + /// + /// 1:N KbArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_ProcessSessions")] + public System.Collections.Generic.IEnumerable KbArticle_ProcessSessions + { + get + { + return this.GetRelatedEntities("KbArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticle_ProcessSessions"); + this.SetRelatedEntities("KbArticle_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticle_ProcessSessions"); + } + } + + /// + /// 1:N KbArticle_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable KbArticle_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("KbArticle_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("KbArticle_SharepointDocumentLocation"); + this.SetRelatedEntities("KbArticle_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("KbArticle_SharepointDocumentLocation"); + } + } + + /// + /// 1:N userentityinstancedata_kbarticle + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticle")] + public System.Collections.Generic.IEnumerable userentityinstancedata_kbarticle + { + get + { + return this.GetRelatedEntities("userentityinstancedata_kbarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticle"); + this.SetRelatedEntities("userentityinstancedata_kbarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticle"); + } + } + + /// + /// N:1 kb_article_template_kb_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kb_article_template_kb_articles")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate kb_article_template_kb_articles + { + get + { + return this.GetRelatedEntity("kb_article_template_kb_articles", null); + } + set + { + this.OnPropertyChanging("kb_article_template_kb_articles"); + this.SetRelatedEntity("kb_article_template_kb_articles", null, value); + this.OnPropertyChanged("kb_article_template_kb_articles"); + } + } + + /// + /// N:1 lk_kbarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticle_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticle_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlebase_createdby + { + get + { + return this.GetRelatedEntity("lk_kbarticlebase_createdby", null); + } + } + + /// + /// N:1 lk_kbarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_kbarticlebase_modifiedby", null); + } + } + + /// + /// N:1 organization_kb_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_articles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_kb_articles + { + get + { + return this.GetRelatedEntity("organization_kb_articles", null); + } + } + + /// + /// N:1 subject_kb_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_kb_articles")] + public Xrm.Framework.CI.Common.Entities.Subject subject_kb_articles + { + get + { + return this.GetRelatedEntity("subject_kb_articles", null); + } + set + { + this.OnPropertyChanging("subject_kb_articles"); + this.SetRelatedEntity("subject_kb_articles", null, value); + this.OnPropertyChanged("subject_kb_articles"); + } + } + + /// + /// N:1 TransactionCurrency_KbArticle + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_KbArticle")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_KbArticle + { + get + { + return this.GetRelatedEntity("TransactionCurrency_KbArticle", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_KbArticle"); + this.SetRelatedEntity("TransactionCurrency_KbArticle", null, value); + this.OnPropertyChanged("TransactionCurrency_KbArticle"); + } + } + } + + /// + /// Comment on a knowledge base article. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("kbarticlecomment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class KbArticleComment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public KbArticleComment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "kbarticlecomment"; + + public const int EntityTypeCode = 1082; + + 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)); + } + } + + /// + /// Comment text for the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("commenttext")] + public string CommentText + { + get + { + return this.GetAttributeValue("commenttext"); + } + set + { + this.OnPropertyChanging("CommentText"); + this.SetAttributeValue("commenttext", value); + this.OnPropertyChanged("CommentText"); + } + } + + /// + /// Unique identifier of the user who created the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the knowledge base article comment 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 kbarticlecomment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticlecommentid")] + public System.Nullable KbArticleCommentId + { + get + { + return this.GetAttributeValue>("kbarticlecommentid"); + } + set + { + this.OnPropertyChanging("KbArticleCommentId"); + this.SetAttributeValue("kbarticlecommentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("KbArticleCommentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticlecommentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.KbArticleCommentId = value; + } + } + + /// + /// Unique identifier of the knowledge base article to which the comment applies. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public Microsoft.Xrm.Sdk.EntityReference KbArticleId + { + get + { + return this.GetAttributeValue("kbarticleid"); + } + set + { + this.OnPropertyChanging("KbArticleId"); + this.SetAttributeValue("kbarticleid", value); + this.OnPropertyChanged("KbArticleId"); + } + } + + /// + /// Unique identifier of the user who last modified the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the knowledge base article comment 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 kbarticlecomment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the article comment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Title of the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N KbArticleComment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_AsyncOperations")] + public System.Collections.Generic.IEnumerable KbArticleComment_AsyncOperations + { + get + { + return this.GetRelatedEntities("KbArticleComment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_AsyncOperations"); + this.SetRelatedEntities("KbArticleComment_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleComment_AsyncOperations"); + } + } + + /// + /// 1:N KbArticleComment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable KbArticleComment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("KbArticleComment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_BulkDeleteFailures"); + this.SetRelatedEntities("KbArticleComment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("KbArticleComment_BulkDeleteFailures"); + } + } + + /// + /// 1:N KbArticleComment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_ProcessSessions")] + public System.Collections.Generic.IEnumerable KbArticleComment_ProcessSessions + { + get + { + return this.GetRelatedEntities("KbArticleComment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_ProcessSessions"); + this.SetRelatedEntities("KbArticleComment_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleComment_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_kbarticlecomment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticlecomment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_kbarticlecomment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_kbarticlecomment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticlecomment"); + this.SetRelatedEntities("userentityinstancedata_kbarticlecomment", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticlecomment"); + } + } + + /// + /// N:1 kbarticle_comments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_comments")] + public Xrm.Framework.CI.Common.Entities.KbArticle kbarticle_comments + { + get + { + return this.GetRelatedEntity("kbarticle_comments", null); + } + set + { + this.OnPropertyChanging("kbarticle_comments"); + this.SetRelatedEntity("kbarticle_comments", null, value); + this.OnPropertyChanged("kbarticle_comments"); + } + } + + /// + /// N:1 lk_kbarticlecomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecomment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecomment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticlecomment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecomment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecomment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticlecommentbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecommentbase_createdby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecommentbase_createdby", null); + } + } + + /// + /// N:1 lk_kbarticlecommentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecommentbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecommentbase_modifiedby", null); + } + } + } + + /// + /// Template for a knowledge base article that contains the standard attributes of an article. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("kbarticletemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class KbArticleTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public KbArticleTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "kbarticletemplate"; + + public const int EntityTypeCode = 1016; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the knowledge base article template 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 kbarticletemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// XML format of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formatxml")] + public string FormatXml + { + get + { + return this.GetAttributeValue("formatxml"); + } + set + { + this.OnPropertyChanging("FormatXml"); + this.SetAttributeValue("formatxml", value); + this.OnPropertyChanged("FormatXml"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information about whether the knowledge base article is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactive")] + public System.Nullable IsActive + { + get + { + return this.GetAttributeValue>("isactive"); + } + set + { + this.OnPropertyChanging("IsActive"); + this.SetAttributeValue("isactive", value); + this.OnPropertyChanged("IsActive"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + public System.Nullable KbArticleTemplateId + { + get + { + return this.GetAttributeValue>("kbarticletemplateid"); + } + set + { + this.OnPropertyChanging("KbArticleTemplateId"); + this.SetAttributeValue("kbarticletemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("KbArticleTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.KbArticleTemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateidunique")] + public System.Nullable KbArticleTemplateIdUnique + { + get + { + return this.GetAttributeValue>("kbarticletemplateidunique"); + } + } + + /// + /// Language of the Article Template + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the knowledge base article template 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 kbarticletemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// XML structure of the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("structurexml")] + public string StructureXml + { + get + { + return this.GetAttributeValue("structurexml"); + } + set + { + this.OnPropertyChanging("StructureXml"); + this.SetAttributeValue("structurexml", value); + this.OnPropertyChanged("StructureXml"); + } + } + + /// + /// Title of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N kb_article_template_kb_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kb_article_template_kb_articles")] + public System.Collections.Generic.IEnumerable kb_article_template_kb_articles + { + get + { + return this.GetRelatedEntities("kb_article_template_kb_articles", null); + } + set + { + this.OnPropertyChanging("kb_article_template_kb_articles"); + this.SetRelatedEntities("kb_article_template_kb_articles", null, value); + this.OnPropertyChanged("kb_article_template_kb_articles"); + } + } + + /// + /// 1:N KbArticleTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_AsyncOperations")] + public System.Collections.Generic.IEnumerable KbArticleTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntities("KbArticleTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_AsyncOperations"); + this.SetRelatedEntities("KbArticleTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleTemplate_AsyncOperations"); + } + } + + /// + /// 1:N KbArticleTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable KbArticleTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("KbArticleTemplate_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_BulkDeleteFailures"); + this.SetRelatedEntities("KbArticleTemplate_BulkDeleteFailures", null, value); + this.OnPropertyChanged("KbArticleTemplate_BulkDeleteFailures"); + } + } + + /// + /// 1:N KbArticleTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_ProcessSessions")] + public System.Collections.Generic.IEnumerable KbArticleTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntities("KbArticleTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_ProcessSessions"); + this.SetRelatedEntities("KbArticleTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleTemplate_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_kbarticletemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticletemplate")] + public System.Collections.Generic.IEnumerable userentityinstancedata_kbarticletemplate + { + get + { + return this.GetRelatedEntities("userentityinstancedata_kbarticletemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticletemplate"); + this.SetRelatedEntities("userentityinstancedata_kbarticletemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticletemplate"); + } + } + + /// + /// N:1 lk_kbarticletemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticletemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplate_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticletemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplatebase_createdby", null); + } + } + + /// + /// N:1 lk_kbarticletemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplatebase_modifiedby", null); + } + } + + /// + /// N:1 organization_kb_article_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_article_templates")] + public Xrm.Framework.CI.Common.Entities.Organization organization_kb_article_templates + { + get + { + return this.GetRelatedEntity("organization_kb_article_templates", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum LeadState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Qualified = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disqualified = 2, + } + + /// + /// Prospect or potential sales opportunity. Leads are converted into accounts, contacts, or opportunities when they are qualified. Otherwise, they are deleted or archived. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("lead")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Lead : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Lead() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "lead"; + + public const int EntityTypeCode = 4; + + 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 lead is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about the budget amount of the lead's company or organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount")] + public Microsoft.Xrm.Sdk.Money BudgetAmount + { + get + { + return this.GetAttributeValue("budgetamount"); + } + set + { + this.OnPropertyChanging("BudgetAmount"); + this.SetAttributeValue("budgetamount", value); + this.OnPropertyChanged("BudgetAmount"); + } + } + + /// + /// Base currency equivalent of the estimated budget of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount_base")] + public Microsoft.Xrm.Sdk.Money BudgetAmount_Base + { + get + { + return this.GetAttributeValue("budgetamount_base"); + } + } + + /// + /// Information about the budget status of the lead's company or organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue BudgetStatus + { + get + { + return this.GetAttributeValue("budgetstatus"); + } + set + { + this.OnPropertyChanging("BudgetStatus"); + this.SetAttributeValue("budgetstatus", value); + this.OnPropertyChanged("BudgetStatus"); + } + } + + /// + /// Choose the campaign that the lead was generated from to track the effectiveness of marketing campaigns and identify communications received by the lead. + /// + [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"); + } + } + + /// + /// Type the name of the company associated with the lead. This becomes the account name when the lead is qualified and converted to a customer account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("companyname")] + public string CompanyName + { + get + { + return this.GetAttributeValue("companyname"); + } + set + { + this.OnPropertyChanging("CompanyName"); + this.SetAttributeValue("companyname", value); + this.OnPropertyChanged("CompanyName"); + } + } + + /// + /// Select whether the lead confirmed interest in your offerings. This helps in determining the lead quality. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("confirminterest")] + public System.Nullable ConfirmInterest + { + get + { + return this.GetAttributeValue>("confirminterest"); + } + set + { + this.OnPropertyChanging("ConfirmInterest"); + this.SetAttributeValue("confirminterest", value); + this.OnPropertyChanged("ConfirmInterest"); + } + } + + /// + /// Unique identifier of the contact with which the lead is associated. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select whether your notes include information about who makes the purchase decisions at the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decisionmaker")] + public System.Nullable DecisionMaker + { + get + { + return this.GetAttributeValue>("decisionmaker"); + } + set + { + this.OnPropertyChanging("DecisionMaker"); + this.SetAttributeValue("decisionmaker", value); + this.OnPropertyChanged("DecisionMaker"); + } + } + + /// + /// Type additional information to describe the lead, 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 lead accepts bulk email sent through marketing campaigns or quick campaigns. If Do Not Allow is selected, the lead 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 lead allows direct email sent from Microsoft Dynamics CRM. + /// + [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 lead allows faxes. + /// + [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 lead allows phone calls. + /// + [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 lead allows direct mail. + /// + [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 lead accepts marketing materials, such as brochures or catalogs. Leads 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"); + } + } + + /// + /// Type the primary email address for the lead. + /// + [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 lead. + /// + [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 a third email address for the lead. + /// + [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"); + } + } + + /// + /// Type the estimated revenue value that this lead will generate to assist in sales forecasting and planning. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedamount")] + public Microsoft.Xrm.Sdk.Money EstimatedAmount + { + get + { + return this.GetAttributeValue("estimatedamount"); + } + set + { + this.OnPropertyChanging("EstimatedAmount"); + this.SetAttributeValue("estimatedamount", value); + this.OnPropertyChanged("EstimatedAmount"); + } + } + + /// + /// Shows the Est. Value field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedamount_base")] + public Microsoft.Xrm.Sdk.Money EstimatedAmount_Base + { + get + { + return this.GetAttributeValue("estimatedamount_base"); + } + } + + /// + /// Enter the expected close date for the lead, so that the sales team can schedule timely follow-up meetings to move the prospect to the next sales stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedclosedate")] + public System.Nullable EstimatedCloseDate + { + get + { + return this.GetAttributeValue>("estimatedclosedate"); + } + set + { + this.OnPropertyChanging("EstimatedCloseDate"); + this.SetAttributeValue("estimatedclosedate", value); + this.OnPropertyChanged("EstimatedCloseDate"); + } + } + + /// + /// Type a numeric value of the lead's estimated value, such as a product quantity, if no revenue amount can be specified in the Est. Value field. This can be used for sales forecasting and planning. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedvalue")] + public System.Nullable EstimatedValue + { + get + { + return this.GetAttributeValue>("estimatedvalue"); + } + set + { + this.OnPropertyChanging("EstimatedValue"); + this.SetAttributeValue("estimatedvalue", value); + this.OnPropertyChanged("EstimatedValue"); + } + } + + /// + /// Select whether the fit between the lead's requirements and your offerings was evaluated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("evaluatefit")] + public System.Nullable EvaluateFit + { + get + { + return this.GetAttributeValue>("evaluatefit"); + } + set + { + this.OnPropertyChanging("EvaluateFit"); + this.SetAttributeValue("evaluatefit", value); + this.OnPropertyChanged("EvaluateFit"); + } + } + + /// + /// 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 primary contact for the lead. + /// + [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 first name of the primary contact for the lead to make sure the prospect 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"); + } + } + + /// + /// Combines and shows the lead's first and last names so the full name can be displayed in views and reports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] + public string FullName + { + get + { + return this.GetAttributeValue("fullname"); + } + } + + /// + /// 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 primary industry in which the lead's business is focused, 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"); + } + } + + /// + /// Choose whether someone from the sales team contacted this lead earlier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialcommunication")] + public Microsoft.Xrm.Sdk.OptionSetValue InitialCommunication + { + get + { + return this.GetAttributeValue("initialcommunication"); + } + set + { + this.OnPropertyChanging("InitialCommunication"); + this.SetAttributeValue("initialcommunication", value); + this.OnPropertyChanged("InitialCommunication"); + } + } + + /// + /// Type the job title of the primary contact for this lead to make sure the prospect 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 last name of the primary contact for the lead to make sure the prospect 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"); + } + } + + /// + /// Shows the date when the lead 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"); + } + } + + /// + /// Unique identifier of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + set + { + this.OnPropertyChanging("LeadId"); + this.SetAttributeValue("leadid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadId = value; + } + } + + /// + /// Select a rating value to indicate the lead's potential to become a customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadqualitycode")] + public Microsoft.Xrm.Sdk.OptionSetValue LeadQualityCode + { + get + { + return this.GetAttributeValue("leadqualitycode"); + } + set + { + this.OnPropertyChanging("LeadQualityCode"); + this.SetAttributeValue("leadqualitycode", value); + this.OnPropertyChanged("LeadQualityCode"); + } + } + + /// + /// Select the primary marketing source that prompted the lead to contact you. + /// + [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"); + } + } + + /// + /// Unique identifier of the master lead for merge. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + public Microsoft.Xrm.Sdk.EntityReference MasterId + { + get + { + return this.GetAttributeValue("masterid"); + } + } + + /// + /// Tells whether the lead has been merged with another lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("merged")] + public System.Nullable Merged + { + get + { + return this.GetAttributeValue>("merged"); + } + } + + /// + /// Type the middle name or initial of the primary contact for the lead to make sure the prospect 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 primary contact for the lead. + /// + [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 date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Choose how high the level of need is for the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("need")] + public Microsoft.Xrm.Sdk.OptionSetValue Need + { + get + { + return this.GetAttributeValue("need"); + } + set + { + this.OnPropertyChanging("Need"); + this.SetAttributeValue("need", value); + this.OnPropertyChanged("Need"); + } + } + + /// + /// Type the number of employees that work at the company associated with the lead, 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"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcaseid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingCaseId + { + get + { + return this.GetAttributeValue("originatingcaseid"); + } + set + { + this.OnPropertyChanging("OriginatingCaseId"); + this.SetAttributeValue("originatingcaseid", value); + this.OnPropertyChanged("OriginatingCaseId"); + } + } + + /// + /// 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 lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the pager number for the primary contact for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pager")] + public string Pager + { + get + { + return this.GetAttributeValue("pager"); + } + set + { + this.OnPropertyChanging("Pager"); + this.SetAttributeValue("pager", value); + this.OnPropertyChanged("Pager"); + } + } + + /// + /// Choose an account to connect this lead to, so that the relationship is visible in reports 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"); + } + } + + /// + /// Choose a contact to connect this lead to, so that the relationship is visible in reports and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + public Microsoft.Xrm.Sdk.EntityReference ParentContactId + { + get + { + return this.GetAttributeValue("parentcontactid"); + } + set + { + this.OnPropertyChanging("ParentContactId"); + this.SetAttributeValue("parentcontactid", value); + this.OnPropertyChanged("ParentContactId"); + } + } + + /// + /// Shows whether the lead 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 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose whether an individual or a committee will be involved in the purchase process for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchaseprocess")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseProcess + { + get + { + return this.GetAttributeValue("purchaseprocess"); + } + set + { + this.OnPropertyChanging("PurchaseProcess"); + this.SetAttributeValue("purchaseprocess", value); + this.OnPropertyChanged("PurchaseProcess"); + } + } + + /// + /// Choose how long the lead will likely take to make the purchase, so the sales team will be aware. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchasetimeframe")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseTimeFrame + { + get + { + return this.GetAttributeValue("purchasetimeframe"); + } + set + { + this.OnPropertyChanging("PurchaseTimeFrame"); + this.SetAttributeValue("purchasetimeframe", value); + this.OnPropertyChanged("PurchaseTimeFrame"); + } + } + + /// + /// Type comments about the qualification or scoring of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualificationcomments")] + public string QualificationComments + { + get + { + return this.GetAttributeValue("qualificationcomments"); + } + set + { + this.OnPropertyChanging("QualificationComments"); + this.SetAttributeValue("qualificationcomments", value); + this.OnPropertyChanged("QualificationComments"); + } + } + + /// + /// Choose the opportunity that the lead was qualified on and then converted to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualifyingopportunityid")] + public Microsoft.Xrm.Sdk.EntityReference QualifyingOpportunityId + { + get + { + return this.GetAttributeValue("qualifyingopportunityid"); + } + set + { + this.OnPropertyChanging("QualifyingOpportunityId"); + this.SetAttributeValue("qualifyingopportunityid", value); + this.OnPropertyChanged("QualifyingOpportunityId"); + } + } + + /// + /// Related Campaign Response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RelatedObjectId + { + get + { + return this.GetAttributeValue("relatedobjectid"); + } + set + { + this.OnPropertyChanging("RelatedObjectId"); + this.SetAttributeValue("relatedobjectid", value); + this.OnPropertyChanged("RelatedObjectId"); + } + } + + /// + /// Type the annual revenue of the company associated with the lead to provide an understanding of the prospect's business. + /// + [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 field converted to the system's default base currency. The calculation uses 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"); + } + } + + /// + /// Select the sales stage of this lead to aid the sales team in their efforts to convert this lead to an opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstage")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStage + { + get + { + return this.GetAttributeValue("salesstage"); + } + set + { + this.OnPropertyChanging("SalesStage"); + this.SetAttributeValue("salesstage", value); + this.OnPropertyChanged("SalesStage"); + } + } + + /// + /// Select the sales process stage for the lead to help determine the probability of the lead converting to an opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstagecode")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStageCode + { + get + { + return this.GetAttributeValue("salesstagecode"); + } + set + { + this.OnPropertyChanging("SalesStageCode"); + this.SetAttributeValue("salesstagecode", value); + this.OnPropertyChanged("SalesStageCode"); + } + } + + /// + /// Type the salutation of the primary contact for this lead to make sure the prospect 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"); + } + } + + /// + /// Enter the date and time of the prospecting follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_prospect")] + public System.Nullable ScheduleFollowUp_Prospect + { + get + { + return this.GetAttributeValue>("schedulefollowup_prospect"); + } + set + { + this.OnPropertyChanging("ScheduleFollowUp_Prospect"); + this.SetAttributeValue("schedulefollowup_prospect", value); + this.OnPropertyChanged("ScheduleFollowUp_Prospect"); + } + } + + /// + /// Enter the date and time of the qualifying follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_qualify")] + public System.Nullable ScheduleFollowUp_Qualify + { + get + { + return this.GetAttributeValue>("schedulefollowup_qualify"); + } + set + { + this.OnPropertyChanging("ScheduleFollowUp_Qualify"); + this.SetAttributeValue("schedulefollowup_qualify", value); + this.OnPropertyChanged("ScheduleFollowUp_Qualify"); + } + } + + /// + /// Type the Standard Industrial Classification (SIC) code that indicates the lead'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"); + } + } + + /// + /// 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 lead is open, qualified, or disqualified. Qualified and disqualified leads 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 ((Xrm.Framework.CI.Common.Entities.LeadState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.LeadState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the lead'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"); + } + } + + /// + /// Type a subject or descriptive name, such as the expected order, company name, or marketing source list, to identify the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Type the work phone number for the primary contact for the lead. + /// + [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 the home phone number for the primary contact for the lead. + /// + [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 an alternate phone number for the primary contact for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type the website URL for the company associated with this lead. + /// + [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 lead's company name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomicompanyname")] + public string YomiCompanyName + { + get + { + return this.GetAttributeValue("yomicompanyname"); + } + set + { + this.OnPropertyChanging("YomiCompanyName"); + this.SetAttributeValue("yomicompanyname", value); + this.OnPropertyChanged("YomiCompanyName"); + } + } + + /// + /// Type the phonetic spelling of the lead's first name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Combines and shows the lead's Yomi first and last names so 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 lead's last name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [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 lead's middle name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] + public string YomiMiddleName + { + get + { + return this.GetAttributeValue("yomimiddlename"); + } + set + { + this.OnPropertyChanging("YomiMiddleName"); + this.SetAttributeValue("yomimiddlename", value); + this.OnPropertyChanged("YomiMiddleName"); + } + } + + /// + /// 1:N account_originating_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_originating_lead")] + public System.Collections.Generic.IEnumerable account_originating_lead + { + get + { + return this.GetRelatedEntities("account_originating_lead", null); + } + set + { + this.OnPropertyChanging("account_originating_lead"); + this.SetRelatedEntities("account_originating_lead", null, value); + this.OnPropertyChanged("account_originating_lead"); + } + } + + /// + /// 1:N contact_originating_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_originating_lead")] + public System.Collections.Generic.IEnumerable contact_originating_lead + { + get + { + return this.GetRelatedEntities("contact_originating_lead", null); + } + set + { + this.OnPropertyChanging("contact_originating_lead"); + this.SetRelatedEntities("contact_originating_lead", null, value); + this.OnPropertyChanged("contact_originating_lead"); + } + } + + /// + /// 1:N CreatedLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedLead_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedLead_BulkOperationLogs"); + this.SetRelatedEntities("CreatedLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedLead_BulkOperationLogs"); + } + } + + /// + /// 1:N lead_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_activity_parties")] + public System.Collections.Generic.IEnumerable lead_activity_parties + { + get + { + return this.GetRelatedEntities("lead_activity_parties", null); + } + set + { + this.OnPropertyChanging("lead_activity_parties"); + this.SetRelatedEntities("lead_activity_parties", null, value); + this.OnPropertyChanged("lead_activity_parties"); + } + } + + /// + /// 1:N Lead_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ActivityPointers")] + public System.Collections.Generic.IEnumerable Lead_ActivityPointers + { + get + { + return this.GetRelatedEntities("Lead_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Lead_ActivityPointers"); + this.SetRelatedEntities("Lead_ActivityPointers", null, value); + this.OnPropertyChanged("Lead_ActivityPointers"); + } + } + + /// + /// 1:N lead_addresses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_addresses")] + public System.Collections.Generic.IEnumerable lead_addresses + { + get + { + return this.GetRelatedEntities("lead_addresses", null); + } + set + { + this.OnPropertyChanging("lead_addresses"); + this.SetRelatedEntities("lead_addresses", null, value); + this.OnPropertyChanged("lead_addresses"); + } + } + + /// + /// 1:N Lead_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Annotation")] + public System.Collections.Generic.IEnumerable Lead_Annotation + { + get + { + return this.GetRelatedEntities("Lead_Annotation", null); + } + set + { + this.OnPropertyChanging("Lead_Annotation"); + this.SetRelatedEntities("Lead_Annotation", null, value); + this.OnPropertyChanged("Lead_Annotation"); + } + } + + /// + /// 1:N Lead_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Appointments")] + public System.Collections.Generic.IEnumerable Lead_Appointments + { + get + { + return this.GetRelatedEntities("Lead_Appointments", null); + } + set + { + this.OnPropertyChanging("Lead_Appointments"); + this.SetRelatedEntities("Lead_Appointments", null, value); + this.OnPropertyChanged("Lead_Appointments"); + } + } + + /// + /// 1:N Lead_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_AsyncOperations")] + public System.Collections.Generic.IEnumerable Lead_AsyncOperations + { + get + { + return this.GetRelatedEntities("Lead_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Lead_AsyncOperations"); + this.SetRelatedEntities("Lead_AsyncOperations", null, value); + this.OnPropertyChanged("Lead_AsyncOperations"); + } + } + + /// + /// 1:N Lead_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Lead_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Lead_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Lead_BulkDeleteFailures"); + this.SetRelatedEntities("Lead_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Lead_BulkDeleteFailures"); + } + } + + /// + /// 1:N lead_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections1")] + public System.Collections.Generic.IEnumerable lead_connections1 + { + get + { + return this.GetRelatedEntities("lead_connections1", null); + } + set + { + this.OnPropertyChanging("lead_connections1"); + this.SetRelatedEntities("lead_connections1", null, value); + this.OnPropertyChanged("lead_connections1"); + } + } + + /// + /// 1:N lead_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections2")] + public System.Collections.Generic.IEnumerable lead_connections2 + { + get + { + return this.GetRelatedEntities("lead_connections2", null); + } + set + { + this.OnPropertyChanging("lead_connections2"); + this.SetRelatedEntities("lead_connections2", null, value); + this.OnPropertyChanged("lead_connections2"); + } + } + + /// + /// 1:N Lead_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Lead_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Lead_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Lead_DuplicateBaseRecord"); + this.SetRelatedEntities("Lead_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Lead_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Lead_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Lead_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Lead_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Lead_DuplicateMatchingRecord"); + this.SetRelatedEntities("Lead_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Lead_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Lead_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Emails")] + public System.Collections.Generic.IEnumerable Lead_Emails + { + get + { + return this.GetRelatedEntities("Lead_Emails", null); + } + set + { + this.OnPropertyChanging("Lead_Emails"); + this.SetRelatedEntities("Lead_Emails", null, value); + this.OnPropertyChanged("Lead_Emails"); + } + } + + /// + /// 1:N Lead_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Faxes")] + public System.Collections.Generic.IEnumerable Lead_Faxes + { + get + { + return this.GetRelatedEntities("Lead_Faxes", null); + } + set + { + this.OnPropertyChanging("Lead_Faxes"); + this.SetRelatedEntities("Lead_Faxes", null, value); + this.OnPropertyChanged("Lead_Faxes"); + } + } + + /// + /// 1:N Lead_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Letters")] + public System.Collections.Generic.IEnumerable Lead_Letters + { + get + { + return this.GetRelatedEntities("Lead_Letters", null); + } + set + { + this.OnPropertyChanging("Lead_Letters"); + this.SetRelatedEntities("Lead_Letters", null, value); + this.OnPropertyChanged("Lead_Letters"); + } + } + + /// + /// 1:N lead_master_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlead_master_lead + { + get + { + return this.GetRelatedEntities("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlead_master_lead"); + this.SetRelatedEntities("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlead_master_lead"); + } + } + + /// + /// 1:N Lead_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Phonecalls")] + public System.Collections.Generic.IEnumerable Lead_Phonecalls + { + get + { + return this.GetRelatedEntities("Lead_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Lead_Phonecalls"); + this.SetRelatedEntities("Lead_Phonecalls", null, value); + this.OnPropertyChanged("Lead_Phonecalls"); + } + } + + /// + /// 1:N lead_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_PostFollows")] + public System.Collections.Generic.IEnumerable lead_PostFollows + { + get + { + return this.GetRelatedEntities("lead_PostFollows", null); + } + set + { + this.OnPropertyChanging("lead_PostFollows"); + this.SetRelatedEntities("lead_PostFollows", null, value); + this.OnPropertyChanged("lead_PostFollows"); + } + } + + /// + /// 1:N lead_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable lead_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("lead_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("lead_principalobjectattributeaccess"); + this.SetRelatedEntities("lead_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("lead_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Lead_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ProcessSessions")] + public System.Collections.Generic.IEnumerable Lead_ProcessSessions + { + get + { + return this.GetRelatedEntities("Lead_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Lead_ProcessSessions"); + this.SetRelatedEntities("Lead_ProcessSessions", null, value); + this.OnPropertyChanged("Lead_ProcessSessions"); + } + } + + /// + /// 1:N Lead_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Lead_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Lead_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Lead_RecurringAppointmentMasters"); + this.SetRelatedEntities("Lead_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Lead_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Lead_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Lead_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Lead_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Lead_ServiceAppointments"); + this.SetRelatedEntities("Lead_ServiceAppointments", null, value); + this.OnPropertyChanged("Lead_ServiceAppointments"); + } + } + + /// + /// 1:N Lead_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Lead_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Lead_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Lead_SharepointDocumentLocation"); + this.SetRelatedEntities("Lead_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Lead_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Lead_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Tasks")] + public System.Collections.Generic.IEnumerable Lead_Tasks + { + get + { + return this.GetRelatedEntities("Lead_Tasks", null); + } + set + { + this.OnPropertyChanging("Lead_Tasks"); + this.SetRelatedEntities("Lead_Tasks", null, value); + this.OnPropertyChanged("Lead_Tasks"); + } + } + + /// + /// 1:N opportunity_originating_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_originating_lead")] + public System.Collections.Generic.IEnumerable opportunity_originating_lead + { + get + { + return this.GetRelatedEntities("opportunity_originating_lead", null); + } + set + { + this.OnPropertyChanging("opportunity_originating_lead"); + this.SetRelatedEntities("opportunity_originating_lead", null, value); + this.OnPropertyChanged("opportunity_originating_lead"); + } + } + + /// + /// 1:N SourceLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceLead_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable SourceLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("SourceLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceLead_BulkOperationLogs"); + this.SetRelatedEntities("SourceLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceLead_BulkOperationLogs"); + } + } + + /// + /// 1:N userentityinstancedata_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lead")] + public System.Collections.Generic.IEnumerable userentityinstancedata_lead + { + get + { + return this.GetRelatedEntities("userentityinstancedata_lead", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lead"); + this.SetRelatedEntities("userentityinstancedata_lead", null, value); + this.OnPropertyChanged("userentityinstancedata_lead"); + } + } + + /// + /// N:N accountleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("accountleads_association")] + public System.Collections.Generic.IEnumerable accountleads_association + { + get + { + return this.GetRelatedEntities("accountleads_association", null); + } + set + { + this.OnPropertyChanging("accountleads_association"); + this.SetRelatedEntities("accountleads_association", null, value); + this.OnPropertyChanged("accountleads_association"); + } + } + + /// + /// N:N contactleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactleads_association")] + public System.Collections.Generic.IEnumerable contactleads_association + { + get + { + return this.GetRelatedEntities("contactleads_association", null); + } + set + { + this.OnPropertyChanging("contactleads_association"); + this.SetRelatedEntities("contactleads_association", null, value); + this.OnPropertyChanged("contactleads_association"); + } + } + + /// + /// N:N leadcompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadcompetitors_association")] + public System.Collections.Generic.IEnumerable leadcompetitors_association + { + get + { + return this.GetRelatedEntities("leadcompetitors_association", null); + } + set + { + this.OnPropertyChanging("leadcompetitors_association"); + this.SetRelatedEntities("leadcompetitors_association", null, value); + this.OnPropertyChanged("leadcompetitors_association"); + } + } + + /// + /// N:N leadproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadproduct_association")] + public System.Collections.Generic.IEnumerable leadproduct_association + { + get + { + return this.GetRelatedEntities("leadproduct_association", null); + } + set + { + this.OnPropertyChanging("leadproduct_association"); + this.SetRelatedEntities("leadproduct_association", null, value); + this.OnPropertyChanged("leadproduct_association"); + } + } + + /// + /// N:N listlead_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listlead_association")] + public System.Collections.Generic.IEnumerable listlead_association + { + get + { + return this.GetRelatedEntities("listlead_association", null); + } + set + { + this.OnPropertyChanging("listlead_association"); + this.SetRelatedEntities("listlead_association", null, value); + this.OnPropertyChanged("listlead_association"); + } + } + + /// + /// N:1 business_unit_leads + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_leads")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_leads + { + get + { + return this.GetRelatedEntity("business_unit_leads", null); + } + } + + /// + /// N:1 campaign_leads + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_leads")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_leads + { + get + { + return this.GetRelatedEntity("campaign_leads", null); + } + set + { + this.OnPropertyChanging("campaign_leads"); + this.SetRelatedEntity("campaign_leads", null, value); + this.OnPropertyChanged("campaign_leads"); + } + } + + /// + /// N:1 CampaignResponse_Lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Lead")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_Lead + { + get + { + return this.GetRelatedEntity("CampaignResponse_Lead", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Lead"); + this.SetRelatedEntity("CampaignResponse_Lead", null, value); + this.OnPropertyChanged("CampaignResponse_Lead"); + } + } + + /// + /// N:1 lead_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account lead_customer_accounts + { + get + { + return this.GetRelatedEntity("lead_customer_accounts", null); + } + set + { + this.OnPropertyChanging("lead_customer_accounts"); + this.SetRelatedEntity("lead_customer_accounts", null, value); + this.OnPropertyChanged("lead_customer_accounts"); + } + } + + /// + /// N:1 lead_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact lead_customer_contacts + { + get + { + return this.GetRelatedEntity("lead_customer_contacts", null); + } + set + { + this.OnPropertyChanging("lead_customer_contacts"); + this.SetRelatedEntity("lead_customer_contacts", null, value); + this.OnPropertyChanged("lead_customer_contacts"); + } + } + + /// + /// N:1 lead_master_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Lead Referencinglead_master_lead + { + get + { + return this.GetRelatedEntity("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lead_owning_team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_team")] + public Xrm.Framework.CI.Common.Entities.Team lead_owning_team + { + get + { + return this.GetRelatedEntity("lead_owning_team", null); + } + } + + /// + /// N:1 lead_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser lead_owning_user + { + get + { + return this.GetRelatedEntity("lead_owning_user", null); + } + } + + /// + /// N:1 lead_parent_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_account")] + public Xrm.Framework.CI.Common.Entities.Account lead_parent_account + { + get + { + return this.GetRelatedEntity("lead_parent_account", null); + } + set + { + this.OnPropertyChanging("lead_parent_account"); + this.SetRelatedEntity("lead_parent_account", null, value); + this.OnPropertyChanged("lead_parent_account"); + } + } + + /// + /// N:1 lead_parent_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_contact")] + public Xrm.Framework.CI.Common.Entities.Contact lead_parent_contact + { + get + { + return this.GetRelatedEntity("lead_parent_contact", null); + } + set + { + this.OnPropertyChanging("lead_parent_contact"); + this.SetRelatedEntity("lead_parent_contact", null, value); + this.OnPropertyChanged("lead_parent_contact"); + } + } + + /// + /// N:1 lead_qualifying_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualifyingopportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_qualifying_opportunity")] + public Xrm.Framework.CI.Common.Entities.Opportunity lead_qualifying_opportunity + { + get + { + return this.GetRelatedEntity("lead_qualifying_opportunity", null); + } + set + { + this.OnPropertyChanging("lead_qualifying_opportunity"); + this.SetRelatedEntity("lead_qualifying_opportunity", null, value); + this.OnPropertyChanged("lead_qualifying_opportunity"); + } + } + + /// + /// N:1 lk_lead_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lead_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lead_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_lead_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lead_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lead_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_leadbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadbase_createdby + { + get + { + return this.GetRelatedEntity("lk_leadbase_createdby", null); + } + } + + /// + /// N:1 lk_leadbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_leadbase_modifiedby", null); + } + } + + /// + /// N:1 OriginatingCase_Lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcaseid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OriginatingCase_Lead")] + public Xrm.Framework.CI.Common.Entities.Incident OriginatingCase_Lead + { + get + { + return this.GetRelatedEntity("OriginatingCase_Lead", null); + } + set + { + this.OnPropertyChanging("OriginatingCase_Lead"); + this.SetRelatedEntity("OriginatingCase_Lead", null, value); + this.OnPropertyChanged("OriginatingCase_Lead"); + } + } + + /// + /// N:1 processstage_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lead")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_lead + { + get + { + return this.GetRelatedEntity("processstage_lead", null); + } + set + { + this.OnPropertyChanging("processstage_lead"); + this.SetRelatedEntity("processstage_lead", null, value); + this.OnPropertyChanged("processstage_lead"); + } + } + + /// + /// N:1 transactioncurrency_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_lead")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_lead + { + get + { + return this.GetRelatedEntity("transactioncurrency_lead", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_lead"); + this.SetRelatedEntity("transactioncurrency_lead", null, value); + this.OnPropertyChanged("transactioncurrency_lead"); + } + } + } + + /// + /// Address information for a lead. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("leadaddress")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LeadAddress : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LeadAddress() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "leadaddress"; + + public const int EntityTypeCode = 1017; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressnumber")] + public System.Nullable AddressNumber + { + get + { + return this.GetAttributeValue>("addressnumber"); + } + set + { + this.OnPropertyChanging("AddressNumber"); + this.SetAttributeValue("addressnumber", value); + this.OnPropertyChanged("AddressNumber"); + } + } + + /// + /// Type of address for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AddressTypeCode + { + get + { + return this.GetAttributeValue("addresstypecode"); + } + set + { + this.OnPropertyChanging("AddressTypeCode"); + this.SetAttributeValue("addresstypecode", value); + this.OnPropertyChanged("AddressTypeCode"); + } + } + + /// + /// City name in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("city")] + public string City + { + get + { + return this.GetAttributeValue("city"); + } + set + { + this.OnPropertyChanging("City"); + this.SetAttributeValue("city", value); + this.OnPropertyChanged("City"); + } + } + + /// + /// Shows the complete address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("composite")] + public string Composite + { + get + { + return this.GetAttributeValue("composite"); + } + } + + /// + /// Country/region name in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("country")] + public string Country + { + get + { + return this.GetAttributeValue("country"); + } + set + { + this.OnPropertyChanging("Country"); + this.SetAttributeValue("country", value); + this.OnPropertyChanged("Country"); + } + } + + /// + /// County name in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("county")] + public string County + { + get + { + return this.GetAttributeValue("county"); + } + set + { + this.OnPropertyChanging("County"); + this.SetAttributeValue("county", value); + this.OnPropertyChanged("County"); + } + } + + /// + /// Unique identifier of the user who created the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the lead address 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 leadaddress. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Exchange rate for the currency associated with the leadaddress with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Fax number for the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// Latitude for the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("latitude")] + public System.Nullable Latitude + { + get + { + return this.GetAttributeValue>("latitude"); + } + set + { + this.OnPropertyChanging("Latitude"); + this.SetAttributeValue("latitude", value); + this.OnPropertyChanged("Latitude"); + } + } + + /// + /// Unique identifier of the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadaddressid")] + public System.Nullable LeadAddressId + { + get + { + return this.GetAttributeValue>("leadaddressid"); + } + set + { + this.OnPropertyChanging("LeadAddressId"); + this.SetAttributeValue("leadaddressid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadAddressId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadaddressid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadAddressId = value; + } + } + + /// + /// First line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line1")] + public string Line1 + { + get + { + return this.GetAttributeValue("line1"); + } + set + { + this.OnPropertyChanging("Line1"); + this.SetAttributeValue("line1", value); + this.OnPropertyChanged("Line1"); + } + } + + /// + /// Second line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line2")] + public string Line2 + { + get + { + return this.GetAttributeValue("line2"); + } + set + { + this.OnPropertyChanging("Line2"); + this.SetAttributeValue("line2", value); + this.OnPropertyChanged("Line2"); + } + } + + /// + /// Third line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line3")] + public string Line3 + { + get + { + return this.GetAttributeValue("line3"); + } + set + { + this.OnPropertyChanging("Line3"); + this.SetAttributeValue("line3", value); + this.OnPropertyChanged("Line3"); + } + } + + /// + /// Longitude for the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longitude")] + public System.Nullable Longitude + { + get + { + return this.GetAttributeValue>("longitude"); + } + set + { + this.OnPropertyChanging("Longitude"); + this.SetAttributeValue("longitude", value); + this.OnPropertyChanged("Longitude"); + } + } + + /// + /// Unique identifier of the user who last modified the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the lead address 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 leadaddress. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name used to identify the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the parent object with which the lead address is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + public Microsoft.Xrm.Sdk.EntityReference ParentId + { + get + { + return this.GetAttributeValue("parentid"); + } + set + { + this.OnPropertyChanging("ParentId"); + this.SetAttributeValue("parentid", value); + this.OnPropertyChanged("ParentId"); + } + } + + /// + /// ZIP Code or postal code in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postalcode")] + public string PostalCode + { + get + { + return this.GetAttributeValue("postalcode"); + } + set + { + this.OnPropertyChanging("PostalCode"); + this.SetAttributeValue("postalcode", value); + this.OnPropertyChanged("PostalCode"); + } + } + + /// + /// Post office box number in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postofficebox")] + public string PostOfficeBox + { + get + { + return this.GetAttributeValue("postofficebox"); + } + set + { + this.OnPropertyChanging("PostOfficeBox"); + this.SetAttributeValue("postofficebox", value); + this.OnPropertyChanged("PostOfficeBox"); + } + } + + /// + /// Method of shipment for the lead. + /// + [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"); + } + } + + /// + /// State or province in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stateorprovince")] + public string StateOrProvince + { + get + { + return this.GetAttributeValue("stateorprovince"); + } + set + { + this.OnPropertyChanging("StateOrProvince"); + this.SetAttributeValue("stateorprovince", value); + this.OnPropertyChanged("StateOrProvince"); + } + } + + /// + /// First telephone number for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone1")] + public string Telephone1 + { + get + { + return this.GetAttributeValue("telephone1"); + } + set + { + this.OnPropertyChanging("Telephone1"); + this.SetAttributeValue("telephone1", value); + this.OnPropertyChanged("Telephone1"); + } + } + + /// + /// Second telephone number for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone2")] + public string Telephone2 + { + get + { + return this.GetAttributeValue("telephone2"); + } + set + { + this.OnPropertyChanging("Telephone2"); + this.SetAttributeValue("telephone2", value); + this.OnPropertyChanged("Telephone2"); + } + } + + /// + /// Third telephone number for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// Unique identifier of the currency associated with the leadaddress. + /// + [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"); + } + } + + /// + /// United Parcel Service (UPS) zone for the address of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upszone")] + public string UPSZone + { + get + { + return this.GetAttributeValue("upszone"); + } + set + { + this.OnPropertyChanging("UPSZone"); + this.SetAttributeValue("upszone", value); + this.OnPropertyChanged("UPSZone"); + } + } + + /// + /// UTC offset for the lead address. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// Version number of the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_leadaddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadaddress")] + public System.Collections.Generic.IEnumerable userentityinstancedata_leadaddress + { + get + { + return this.GetRelatedEntities("userentityinstancedata_leadaddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadaddress"); + this.SetRelatedEntities("userentityinstancedata_leadaddress", null, value); + this.OnPropertyChanged("userentityinstancedata_leadaddress"); + } + } + + /// + /// N:1 lead_addresses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_addresses")] + public Xrm.Framework.CI.Common.Entities.Lead lead_addresses + { + get + { + return this.GetRelatedEntity("lead_addresses", null); + } + set + { + this.OnPropertyChanging("lead_addresses"); + this.SetRelatedEntity("lead_addresses", null, value); + this.OnPropertyChanged("lead_addresses"); + } + } + + /// + /// N:1 lk_leadaddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddress_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_leadaddress_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_leadaddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_leadaddress_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_leadaddressbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddressbase_createdby + { + get + { + return this.GetRelatedEntity("lk_leadaddressbase_createdby", null); + } + } + + /// + /// N:1 lk_leadaddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddressbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_leadaddressbase_modifiedby", null); + } + } + + /// + /// N:1 TransactionCurrency_LeadAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_LeadAddress")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_LeadAddress + { + get + { + return this.GetRelatedEntity("TransactionCurrency_LeadAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_LeadAddress"); + this.SetRelatedEntity("TransactionCurrency_LeadAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_LeadAddress"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("leadcompetitors")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LeadCompetitors : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LeadCompetitors() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "leadcompetitors"; + + public const int EntityTypeCode = 24; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the lead competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadcompetitorid")] + public System.Nullable LeadCompetitorId + { + get + { + return this.GetAttributeValue>("leadcompetitorid"); + } + set + { + this.OnPropertyChanging("LeadCompetitorId"); + this.SetAttributeValue("leadcompetitorid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadCompetitorId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadcompetitorid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadCompetitorId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N leadcompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadcompetitors_association")] + public System.Collections.Generic.IEnumerable leadcompetitors_association + { + get + { + return this.GetRelatedEntities("leadcompetitors_association", null); + } + set + { + this.OnPropertyChanging("leadcompetitors_association"); + this.SetRelatedEntities("leadcompetitors_association", null, value); + this.OnPropertyChanged("leadcompetitors_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("leadproduct")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LeadProduct : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LeadProduct() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "leadproduct"; + + public const int EntityTypeCode = 27; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// Unique identifier of the lead product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadproductid")] + public System.Nullable LeadProductId + { + get + { + return this.GetAttributeValue>("leadproductid"); + } + set + { + this.OnPropertyChanging("LeadProductId"); + this.SetAttributeValue("leadproductid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadproductid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadProductId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_leadproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadproduct")] + public System.Collections.Generic.IEnumerable userentityinstancedata_leadproduct + { + get + { + return this.GetRelatedEntities("userentityinstancedata_leadproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadproduct"); + this.SetRelatedEntities("userentityinstancedata_leadproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_leadproduct"); + } + } + + /// + /// N:N leadproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadproduct_association")] + public System.Collections.Generic.IEnumerable leadproduct_association + { + get + { + return this.GetRelatedEntities("leadproduct_association", null); + } + set + { + this.OnPropertyChanging("leadproduct_association"); + this.SetRelatedEntities("leadproduct_association", null, value); + this.OnPropertyChanged("leadproduct_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum LetterState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that tracks the delivery of a letter. The activity can contain the electronic copy of the letter. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("letter")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Letter : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Letter() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "letter"; + + public const int EntityTypeCode = 4207; + + 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 letter 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Type the number of minutes spent creating and sending the letter. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the letter. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual time to create and send the letter. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the letter. By default, it displays the date and time when the activity was created, but can be edited to capture the actual time to create and send the letter. + /// + [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"); + } + } + + /// + /// Type the complete recipient address for the letter to ensure timely delivery. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address")] + public string Address + { + get + { + return this.GetAttributeValue("address"); + } + set + { + this.OnPropertyChanging("Address"); + this.SetAttributeValue("address", value); + this.OnPropertyChanged("Address"); + } + } + + /// + /// Enter the recipients that are included in the letter distribution, but are not displayed to other recipients. + /// + [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"); + } + } + + /// + /// Type a category to identify the letter type, such as sales offer or past due notice, to tie the letter to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Enter the recipients that should be copied on the letter. + /// + [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 who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type the letter body or additional information to describe the letter, such as the primary message or the products and services described. + /// + [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 the direction of the letter as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 account, contact, lead, or user who sent the letter. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows whether the letter 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"); + } + } + + /// + /// Shows 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"); + } + } + + /// + /// Shows whether the letter activity was created by 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 letter 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 letter 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 letter activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the letter 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"); + } + } + + /// + /// Scheduled duration of the letter activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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 for an associated service. + /// + [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"); + } + } + + /// + /// 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 letter is open, completed, or canceled. Completed and canceled letters are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.LetterState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.LetterState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the letter'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"); + } + } + + /// + /// Type a subcategory to identify the letter type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the letter. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, or user recipients for the letter. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 letter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N letter_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_activity_parties")] + public System.Collections.Generic.IEnumerable letter_activity_parties + { + get + { + return this.GetRelatedEntities("letter_activity_parties", null); + } + set + { + this.OnPropertyChanging("letter_activity_parties"); + this.SetRelatedEntities("letter_activity_parties", null, value); + this.OnPropertyChanged("letter_activity_parties"); + } + } + + /// + /// 1:N Letter_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_Annotation")] + public System.Collections.Generic.IEnumerable Letter_Annotation + { + get + { + return this.GetRelatedEntities("Letter_Annotation", null); + } + set + { + this.OnPropertyChanging("Letter_Annotation"); + this.SetRelatedEntities("Letter_Annotation", null, value); + this.OnPropertyChanged("Letter_Annotation"); + } + } + + /// + /// 1:N Letter_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_AsyncOperations")] + public System.Collections.Generic.IEnumerable Letter_AsyncOperations + { + get + { + return this.GetRelatedEntities("Letter_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Letter_AsyncOperations"); + this.SetRelatedEntities("Letter_AsyncOperations", null, value); + this.OnPropertyChanged("Letter_AsyncOperations"); + } + } + + /// + /// 1:N Letter_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Letter_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Letter_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Letter_BulkDeleteFailures"); + this.SetRelatedEntities("Letter_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Letter_BulkDeleteFailures"); + } + } + + /// + /// 1:N letter_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_campaignresponse")] + public System.Collections.Generic.IEnumerable letter_campaignresponse + { + get + { + return this.GetRelatedEntities("letter_campaignresponse", null); + } + set + { + this.OnPropertyChanging("letter_campaignresponse"); + this.SetRelatedEntities("letter_campaignresponse", null, value); + this.OnPropertyChanged("letter_campaignresponse"); + } + } + + /// + /// 1:N letter_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections1")] + public System.Collections.Generic.IEnumerable letter_connections1 + { + get + { + return this.GetRelatedEntities("letter_connections1", null); + } + set + { + this.OnPropertyChanging("letter_connections1"); + this.SetRelatedEntities("letter_connections1", null, value); + this.OnPropertyChanged("letter_connections1"); + } + } + + /// + /// 1:N letter_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections2")] + public System.Collections.Generic.IEnumerable letter_connections2 + { + get + { + return this.GetRelatedEntities("letter_connections2", null); + } + set + { + this.OnPropertyChanging("letter_connections2"); + this.SetRelatedEntities("letter_connections2", null, value); + this.OnPropertyChanged("letter_connections2"); + } + } + + /// + /// 1:N Letter_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Letter_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Letter_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Letter_DuplicateBaseRecord"); + this.SetRelatedEntities("Letter_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Letter_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Letter_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Letter_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Letter_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Letter_DuplicateMatchingRecord"); + this.SetRelatedEntities("Letter_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Letter_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N letter_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable letter_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("letter_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("letter_principalobjectattributeaccess"); + this.SetRelatedEntities("letter_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("letter_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Letter_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_ProcessSessions")] + public System.Collections.Generic.IEnumerable Letter_ProcessSessions + { + get + { + return this.GetRelatedEntities("Letter_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Letter_ProcessSessions"); + this.SetRelatedEntities("Letter_ProcessSessions", null, value); + this.OnPropertyChanged("Letter_ProcessSessions"); + } + } + + /// + /// 1:N Letter_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_QueueItem")] + public System.Collections.Generic.IEnumerable Letter_QueueItem + { + get + { + return this.GetRelatedEntities("Letter_QueueItem", null); + } + set + { + this.OnPropertyChanging("Letter_QueueItem"); + this.SetRelatedEntities("Letter_QueueItem", null, value); + this.OnPropertyChanged("Letter_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_letter")] + public System.Collections.Generic.IEnumerable userentityinstancedata_letter + { + get + { + return this.GetRelatedEntities("userentityinstancedata_letter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_letter"); + this.SetRelatedEntities("userentityinstancedata_letter", null, value); + this.OnPropertyChanged("userentityinstancedata_letter"); + } + } + + /// + /// N:1 Account_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Letters")] + public Xrm.Framework.CI.Common.Entities.Account Account_Letters + { + get + { + return this.GetRelatedEntity("Account_Letters", null); + } + set + { + this.OnPropertyChanging("Account_Letters"); + this.SetRelatedEntity("Account_Letters", null, value); + this.OnPropertyChanged("Account_Letters"); + } + } + + /// + /// N:1 activity_pointer_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_letter")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_letter + { + get + { + return this.GetRelatedEntity("activity_pointer_letter", null); + } + set + { + this.OnPropertyChanging("activity_pointer_letter"); + this.SetRelatedEntity("activity_pointer_letter", null, value); + this.OnPropertyChanged("activity_pointer_letter"); + } + } + + /// + /// N:1 BulkOperation_Letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Letter")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Letter + { + get + { + return this.GetRelatedEntity("BulkOperation_Letter", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Letter"); + this.SetRelatedEntity("BulkOperation_Letter", null, value); + this.OnPropertyChanged("BulkOperation_Letter"); + } + } + + /// + /// N:1 business_unit_letter_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_letter_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_letter_activities + { + get + { + return this.GetRelatedEntity("business_unit_letter_activities", null); + } + } + + /// + /// N:1 Campaign_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Letters")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Letters + { + get + { + return this.GetRelatedEntity("Campaign_Letters", null); + } + set + { + this.OnPropertyChanging("Campaign_Letters"); + this.SetRelatedEntity("Campaign_Letters", null, value); + this.OnPropertyChanged("Campaign_Letters"); + } + } + + /// + /// N:1 CampaignActivity_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Letters")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Letters + { + get + { + return this.GetRelatedEntity("CampaignActivity_Letters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Letters"); + this.SetRelatedEntity("CampaignActivity_Letters", null, value); + this.OnPropertyChanged("CampaignActivity_Letters"); + } + } + + /// + /// N:1 Contact_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Letters")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Letters + { + get + { + return this.GetRelatedEntity("Contact_Letters", null); + } + set + { + this.OnPropertyChanging("Contact_Letters"); + this.SetRelatedEntity("Contact_Letters", null, value); + this.OnPropertyChanged("Contact_Letters"); + } + } + + /// + /// N:1 Contract_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Letters")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Letters + { + get + { + return this.GetRelatedEntity("Contract_Letters", null); + } + set + { + this.OnPropertyChanging("Contract_Letters"); + this.SetRelatedEntity("Contract_Letters", null, value); + this.OnPropertyChanged("Contract_Letters"); + } + } + + /// + /// N:1 Incident_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Letters")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Letters + { + get + { + return this.GetRelatedEntity("Incident_Letters", null); + } + set + { + this.OnPropertyChanging("Incident_Letters"); + this.SetRelatedEntity("Incident_Letters", null, value); + this.OnPropertyChanged("Incident_Letters"); + } + } + + /// + /// N:1 Invoice_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Letters")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Letters + { + get + { + return this.GetRelatedEntity("Invoice_Letters", null); + } + set + { + this.OnPropertyChanging("Invoice_Letters"); + this.SetRelatedEntity("Invoice_Letters", null, value); + this.OnPropertyChanged("Invoice_Letters"); + } + } + + /// + /// N:1 Lead_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Letters")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Letters + { + get + { + return this.GetRelatedEntity("Lead_Letters", null); + } + set + { + this.OnPropertyChanging("Lead_Letters"); + this.SetRelatedEntity("Lead_Letters", null, value); + this.OnPropertyChanged("Lead_Letters"); + } + } + + /// + /// N:1 lk_letter_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_createdby + { + get + { + return this.GetRelatedEntity("lk_letter_createdby", null); + } + } + + /// + /// N:1 lk_letter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_letter_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_letter_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_modifiedby + { + get + { + return this.GetRelatedEntity("lk_letter_modifiedby", null); + } + } + + /// + /// N:1 lk_letter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_letter_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Letters")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Letters + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Letters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Letters"); + this.SetRelatedEntity("msdyn_postalbum_Letters", null, value); + this.OnPropertyChanged("msdyn_postalbum_Letters"); + } + } + + /// + /// N:1 Opportunity_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Letters")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Letters + { + get + { + return this.GetRelatedEntity("Opportunity_Letters", null); + } + set + { + this.OnPropertyChanging("Opportunity_Letters"); + this.SetRelatedEntity("Opportunity_Letters", null, value); + this.OnPropertyChanged("Opportunity_Letters"); + } + } + + /// + /// N:1 processstage_letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_letters")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_letters + { + get + { + return this.GetRelatedEntity("processstage_letters", null); + } + set + { + this.OnPropertyChanging("processstage_letters"); + this.SetRelatedEntity("processstage_letters", null, value); + this.OnPropertyChanged("processstage_letters"); + } + } + + /// + /// N:1 Quote_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Letters")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Letters + { + get + { + return this.GetRelatedEntity("Quote_Letters", null); + } + set + { + this.OnPropertyChanging("Quote_Letters"); + this.SetRelatedEntity("Quote_Letters", null, value); + this.OnPropertyChanged("Quote_Letters"); + } + } + + /// + /// N:1 SalesOrder_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Letters")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Letters + { + get + { + return this.GetRelatedEntity("SalesOrder_Letters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Letters"); + this.SetRelatedEntity("SalesOrder_Letters", null, value); + this.OnPropertyChanged("SalesOrder_Letters"); + } + } + + /// + /// N:1 service_letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_letters")] + public Xrm.Framework.CI.Common.Entities.Service service_letters + { + get + { + return this.GetRelatedEntity("service_letters", null); + } + set + { + this.OnPropertyChanging("service_letters"); + this.SetRelatedEntity("service_letters", null, value); + this.OnPropertyChanged("service_letters"); + } + } + + /// + /// N:1 team_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_letter")] + public Xrm.Framework.CI.Common.Entities.Team team_letter + { + get + { + return this.GetRelatedEntity("team_letter", null); + } + } + + /// + /// N:1 TransactionCurrency_Letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Letter")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Letter + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Letter", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Letter"); + this.SetRelatedEntity("TransactionCurrency_Letter", null, value); + this.OnPropertyChanged("TransactionCurrency_Letter"); + } + } + + /// + /// N:1 user_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_letter")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_letter + { + get + { + return this.GetRelatedEntity("user_letter", null); + } + } + } + + /// + /// Stores information about a Microsoft CRM license. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("license")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class License : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public License() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "license"; + + public const int EntityTypeCode = 2027; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time when the license was installed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("installedon")] + public System.Nullable InstalledOn + { + get + { + return this.GetAttributeValue>("installedon"); + } + set + { + this.OnPropertyChanging("InstalledOn"); + this.SetAttributeValue("installedon", value); + this.OnPropertyChanged("InstalledOn"); + } + } + + /// + /// Unique identifier of the license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licenseid")] + public System.Nullable LicenseId + { + get + { + return this.GetAttributeValue>("licenseid"); + } + set + { + this.OnPropertyChanging("LicenseId"); + this.SetAttributeValue("licenseid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LicenseId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licenseid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LicenseId = value; + } + } + + /// + /// Key for the license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licensekey")] + public string LicenseKey + { + get + { + return this.GetAttributeValue("licensekey"); + } + set + { + this.OnPropertyChanging("LicenseKey"); + this.SetAttributeValue("licensekey", value); + this.OnPropertyChanged("LicenseKey"); + } + } + + /// + /// Type of license, such as Professional, Standard, or Suite. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licensetype")] + public System.Nullable LicenseType + { + get + { + return this.GetAttributeValue>("licensetype"); + } + set + { + this.OnPropertyChanging("LicenseType"); + this.SetAttributeValue("licensetype", value); + this.OnPropertyChanged("LicenseType"); + } + } + + /// + /// Unique identifier of the organization associated with the license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N userentityinstancedata_license + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_license")] + public System.Collections.Generic.IEnumerable userentityinstancedata_license + { + get + { + return this.GetRelatedEntities("userentityinstancedata_license", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_license"); + this.SetRelatedEntities("userentityinstancedata_license", null, value); + this.OnPropertyChanged("userentityinstancedata_license"); + } + } + + /// + /// N:1 organization_licenses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_licenses")] + public Xrm.Framework.CI.Common.Entities.Organization organization_licenses + { + get + { + return this.GetRelatedEntity("organization_licenses", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ListState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Group of existing or potential customers created for a marketing campaign or other sales purposes. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("list")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class List : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public List() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "list"; + + public const int EntityTypeCode = 4300; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type the cost of obtaining the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cost")] + public Microsoft.Xrm.Sdk.Money Cost + { + get + { + return this.GetAttributeValue("cost"); + } + set + { + this.OnPropertyChanging("Cost"); + this.SetAttributeValue("cost", value); + this.OnPropertyChanged("Cost"); + } + } + + /// + /// Shows the Cost field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cost_base")] + public Microsoft.Xrm.Sdk.Money Cost_Base + { + get + { + return this.GetAttributeValue("cost_base"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Select the type of members that this marketing list will contain: accounts, contacts, or leads. Each list can have only one member type and this value can't be changed after the marketing list is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdfromcode")] + public Microsoft.Xrm.Sdk.OptionSetValue CreatedFromCode + { + get + { + return this.GetAttributeValue("createdfromcode"); + } + set + { + this.OnPropertyChanging("CreatedFromCode"); + this.SetAttributeValue("createdfromcode", value); + this.OnPropertyChanged("CreatedFromCode"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the marketing list, such as the intended use or date of the last update. + /// + [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 to override the opt-out settings on leads, contacts, and accounts for the members of the target marketing lists of the campaign activity. If No is selected, those who have chosen to opt out won't be excluded from the list. This means they will receive marketing materials. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotsendonoptout")] + public System.Nullable DoNotSendOnOptOut + { + get + { + return this.GetAttributeValue>("donotsendonoptout"); + } + set + { + this.OnPropertyChanging("DoNotSendOnOptOut"); + this.SetAttributeValue("donotsendonoptout", value); + this.OnPropertyChanged("DoNotSendOnOptOut"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select whether inactive accounts, contacts, or leads should be excluded from the campaign activity distribution when the marketing list is included in a campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreinactivelistmembers")] + public System.Nullable IgnoreInactiveListMembers + { + get + { + return this.GetAttributeValue>("ignoreinactivelistmembers"); + } + set + { + this.OnPropertyChanging("IgnoreInactiveListMembers"); + this.SetAttributeValue("ignoreinactivelistmembers", value); + this.OnPropertyChanged("IgnoreInactiveListMembers"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the date and time when the marketing list was last used in a campaign or in the creation of activities or opportunities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastusedon")] + public System.Nullable LastUsedOn + { + get + { + return this.GetAttributeValue>("lastusedon"); + } + } + + /// + /// Unique identifier of the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listid")] + public System.Nullable ListId + { + get + { + return this.GetAttributeValue>("listid"); + } + set + { + this.OnPropertyChanging("ListId"); + this.SetAttributeValue("listid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ListId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ListId = value; + } + } + + /// + /// Type a name for the marketing list so that it is identified correctly in lists. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listname")] + public string ListName + { + get + { + return this.GetAttributeValue("listname"); + } + set + { + this.OnPropertyChanging("ListName"); + this.SetAttributeValue("listname", value); + this.OnPropertyChanged("ListName"); + } + } + + /// + /// Select whether the marketing list is locked. If Yes is selected, no additional members can be added to the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lockstatus")] + public System.Nullable LockStatus + { + get + { + return this.GetAttributeValue>("lockstatus"); + } + set + { + this.OnPropertyChanging("LockStatus"); + this.SetAttributeValue("lockstatus", value); + this.OnPropertyChanged("LockStatus"); + } + } + + /// + /// Shows the sum of all members in the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("membercount")] + public System.Nullable MemberCount + { + get + { + return this.GetAttributeValue>("membercount"); + } + } + + /// + /// Type of the members that can be stored in the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("membertype")] + public System.Nullable MemberType + { + get + { + return this.GetAttributeValue>("membertype"); + } + set + { + this.OnPropertyChanging("MemberType"); + this.SetAttributeValue("membertype", value); + this.OnPropertyChanged("MemberType"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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 intended use of the marketing list to identify its key segments, target offers, or business group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purpose")] + public string Purpose + { + get + { + return this.GetAttributeValue("purpose"); + } + set + { + this.OnPropertyChanging("Purpose"); + this.SetAttributeValue("purpose", value); + this.OnPropertyChanged("Purpose"); + } + } + + /// + /// Query used for retrieving members of marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("query")] + public string Query + { + get + { + return this.GetAttributeValue("query"); + } + set + { + this.OnPropertyChanging("Query"); + this.SetAttributeValue("query", value); + this.OnPropertyChanged("Query"); + } + } + + /// + /// Type the source of the marketing list, such as a third-party supplier or internal database. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public string Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// 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 marketing list is active or inactive. Inactive marketing lists 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 ((Xrm.Framework.CI.Common.Entities.ListState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ListState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the marketing list'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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select whether you want the marketing list to be static or dynamic. The members in a static marketing list are unchanging. A dynamic marketing list is based on a dynamic query that retrieves the updated list of members + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public System.Nullable Type + { + get + { + return this.GetAttributeValue>("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// 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 marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N List_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_Annotation")] + public System.Collections.Generic.IEnumerable List_Annotation + { + get + { + return this.GetRelatedEntities("List_Annotation", null); + } + set + { + this.OnPropertyChanging("List_Annotation"); + this.SetRelatedEntities("List_Annotation", null, value); + this.OnPropertyChanged("List_Annotation"); + } + } + + /// + /// 1:N List_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_AsyncOperations")] + public System.Collections.Generic.IEnumerable List_AsyncOperations + { + get + { + return this.GetRelatedEntities("List_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("List_AsyncOperations"); + this.SetRelatedEntities("List_AsyncOperations", null, value); + this.OnPropertyChanged("List_AsyncOperations"); + } + } + + /// + /// 1:N List_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable List_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("List_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("List_BulkDeleteFailures"); + this.SetRelatedEntities("List_BulkDeleteFailures", null, value); + this.OnPropertyChanged("List_BulkDeleteFailures"); + } + } + + /// + /// 1:N List_BulkOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkOperations")] + public System.Collections.Generic.IEnumerable List_BulkOperations + { + get + { + return this.GetRelatedEntities("List_BulkOperations", null); + } + set + { + this.OnPropertyChanging("List_BulkOperations"); + this.SetRelatedEntities("List_BulkOperations", null, value); + this.OnPropertyChanged("List_BulkOperations"); + } + } + + /// + /// 1:N list_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections1")] + public System.Collections.Generic.IEnumerable list_connections1 + { + get + { + return this.GetRelatedEntities("list_connections1", null); + } + set + { + this.OnPropertyChanging("list_connections1"); + this.SetRelatedEntities("list_connections1", null, value); + this.OnPropertyChanged("list_connections1"); + } + } + + /// + /// 1:N list_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections2")] + public System.Collections.Generic.IEnumerable list_connections2 + { + get + { + return this.GetRelatedEntities("list_connections2", null); + } + set + { + this.OnPropertyChanging("list_connections2"); + this.SetRelatedEntities("list_connections2", null, value); + this.OnPropertyChanged("list_connections2"); + } + } + + /// + /// 1:N List_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable List_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("List_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("List_DuplicateBaseRecord"); + this.SetRelatedEntities("List_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("List_DuplicateBaseRecord"); + } + } + + /// + /// 1:N List_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable List_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("List_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("List_DuplicateMatchingRecord"); + this.SetRelatedEntities("List_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("List_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N list_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable list_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("list_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("list_principalobjectattributeaccess"); + this.SetRelatedEntities("list_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("list_principalobjectattributeaccess"); + } + } + + /// + /// 1:N List_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_ProcessSessions")] + public System.Collections.Generic.IEnumerable List_ProcessSessions + { + get + { + return this.GetRelatedEntities("List_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("List_ProcessSessions"); + this.SetRelatedEntities("List_ProcessSessions", null, value); + this.OnPropertyChanged("List_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_list")] + public System.Collections.Generic.IEnumerable userentityinstancedata_list + { + get + { + return this.GetRelatedEntities("userentityinstancedata_list", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_list"); + this.SetRelatedEntities("userentityinstancedata_list", null, value); + this.OnPropertyChanged("userentityinstancedata_list"); + } + } + + /// + /// N:N campaignactivitylist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitylist_association")] + public System.Collections.Generic.IEnumerable campaignactivitylist_association + { + get + { + return this.GetRelatedEntities("campaignactivitylist_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitylist_association"); + this.SetRelatedEntities("campaignactivitylist_association", null, value); + this.OnPropertyChanged("campaignactivitylist_association"); + } + } + + /// + /// N:N campaignlist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignlist_association")] + public System.Collections.Generic.IEnumerable campaignlist_association + { + get + { + return this.GetRelatedEntities("campaignlist_association", null); + } + set + { + this.OnPropertyChanging("campaignlist_association"); + this.SetRelatedEntities("campaignlist_association", null, value); + this.OnPropertyChanged("campaignlist_association"); + } + } + + /// + /// N:N listaccount_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listaccount_association")] + public System.Collections.Generic.IEnumerable listaccount_association + { + get + { + return this.GetRelatedEntities("listaccount_association", null); + } + set + { + this.OnPropertyChanging("listaccount_association"); + this.SetRelatedEntities("listaccount_association", null, value); + this.OnPropertyChanged("listaccount_association"); + } + } + + /// + /// N:N listcontact_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listcontact_association")] + public System.Collections.Generic.IEnumerable listcontact_association + { + get + { + return this.GetRelatedEntities("listcontact_association", null); + } + set + { + this.OnPropertyChanging("listcontact_association"); + this.SetRelatedEntities("listcontact_association", null, value); + this.OnPropertyChanged("listcontact_association"); + } + } + + /// + /// N:N listlead_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listlead_association")] + public System.Collections.Generic.IEnumerable listlead_association + { + get + { + return this.GetRelatedEntities("listlead_association", null); + } + set + { + this.OnPropertyChanging("listlead_association"); + this.SetRelatedEntities("listlead_association", null, value); + this.OnPropertyChanged("listlead_association"); + } + } + + /// + /// N:1 business_unit_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_list")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_list + { + get + { + return this.GetRelatedEntity("business_unit_list", null); + } + } + + /// + /// N:1 lk_list_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_createdby + { + get + { + return this.GetRelatedEntity("lk_list_createdby", null); + } + } + + /// + /// N:1 lk_list_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_list_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_list_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_modifiedby + { + get + { + return this.GetRelatedEntity("lk_list_modifiedby", null); + } + } + + /// + /// N:1 lk_list_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_list_modifiedonbehalfby", null); + } + } + + /// + /// N:1 processstage_lists + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lists")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_lists + { + get + { + return this.GetRelatedEntity("processstage_lists", null); + } + set + { + this.OnPropertyChanging("processstage_lists"); + this.SetRelatedEntity("processstage_lists", null, value); + this.OnPropertyChanged("processstage_lists"); + } + } + + /// + /// N:1 team_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_list")] + public Xrm.Framework.CI.Common.Entities.Team team_list + { + get + { + return this.GetRelatedEntity("team_list", null); + } + } + + /// + /// N:1 transactioncurrency_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_list")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_list + { + get + { + return this.GetRelatedEntity("transactioncurrency_list", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_list"); + this.SetRelatedEntity("transactioncurrency_list", null, value); + this.OnPropertyChanged("transactioncurrency_list"); + } + } + + /// + /// N:1 user_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_list")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_list + { + get + { + return this.GetRelatedEntity("user_list", null); + } + } + } + + /// + /// Item in a marketing list. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("listmember")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ListMember : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ListMember() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "listmember"; + + public const int EntityTypeCode = 4301; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityid")] + public Microsoft.Xrm.Sdk.EntityReference EntityId + { + get + { + return this.GetAttributeValue("entityid"); + } + set + { + this.OnPropertyChanging("EntityId"); + this.SetAttributeValue("entityid", value); + this.OnPropertyChanged("EntityId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitytype")] + public string EntityType + { + get + { + return this.GetAttributeValue("entitytype"); + } + set + { + this.OnPropertyChanging("EntityType"); + this.SetAttributeValue("entitytype", value); + this.OnPropertyChanged("EntityType"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listid")] + public Microsoft.Xrm.Sdk.EntityReference ListId + { + get + { + return this.GetAttributeValue("listid"); + } + set + { + this.OnPropertyChanging("ListId"); + this.SetAttributeValue("listid", value); + this.OnPropertyChanged("ListId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listmemberid")] + public System.Nullable ListMemberId + { + get + { + return this.GetAttributeValue>("listmemberid"); + } + set + { + this.OnPropertyChanging("ListMemberId"); + this.SetAttributeValue("listmemberid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ListMemberId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listmemberid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ListMemberId = value; + } + } + + /// + /// Unique identifier of the user who last modified the list member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the list member 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 listmember. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the list member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_listmember + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_listmember")] + public System.Collections.Generic.IEnumerable userentityinstancedata_listmember + { + get + { + return this.GetRelatedEntities("userentityinstancedata_listmember", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_listmember"); + this.SetRelatedEntities("userentityinstancedata_listmember", null, value); + this.OnPropertyChanged("userentityinstancedata_listmember"); + } + } + + /// + /// N:N listaccount_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listaccount_association")] + public System.Collections.Generic.IEnumerable listaccount_association + { + get + { + return this.GetRelatedEntities("listaccount_association", null); + } + set + { + this.OnPropertyChanging("listaccount_association"); + this.SetRelatedEntities("listaccount_association", null, value); + this.OnPropertyChanged("listaccount_association"); + } + } + + /// + /// N:N listcontact_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listcontact_association")] + public System.Collections.Generic.IEnumerable listcontact_association + { + get + { + return this.GetRelatedEntities("listcontact_association", null); + } + set + { + this.OnPropertyChanging("listcontact_association"); + this.SetRelatedEntities("listcontact_association", null, value); + this.OnPropertyChanged("listcontact_association"); + } + } + + /// + /// N:N listlead_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listlead_association")] + public System.Collections.Generic.IEnumerable listlead_association + { + get + { + return this.GetRelatedEntities("listlead_association", null); + } + set + { + this.OnPropertyChanging("listlead_association"); + this.SetRelatedEntities("listlead_association", null, value); + this.OnPropertyChanged("listlead_association"); + } + } + + /// + /// N:1 lk_listmember_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_createdby + { + get + { + return this.GetRelatedEntity("lk_listmember_createdby", null); + } + } + + /// + /// N:1 lk_listmember_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_listmember_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_listmember_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_modifiedby + { + get + { + return this.GetRelatedEntity("lk_listmember_modifiedby", null); + } + } + + /// + /// N:1 lk_listmember_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_listmember_modifiedonbehalfby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum LookUpMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps a lookup attribute in a source file to Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("lookupmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LookUpMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LookUpMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "lookupmapping"; + + public const int EntityTypeCode = 4419; + + 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 column mapping with which this lookup mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public Microsoft.Xrm.Sdk.EntityReference ColumnMappingId + { + get + { + return this.GetAttributeValue("columnmappingid"); + } + set + { + this.OnPropertyChanging("ColumnMappingId"); + this.SetAttributeValue("columnmappingid", value); + this.OnPropertyChanged("ColumnMappingId"); + } + } + + /// + /// Unique identifier of the user who created the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the lookup mapping 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 lookupmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Name of the field with which the lookup is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupattributename")] + public string LookUpAttributeName + { + get + { + return this.GetAttributeValue("lookupattributename"); + } + set + { + this.OnPropertyChanging("LookUpAttributeName"); + this.SetAttributeValue("lookupattributename", value); + this.OnPropertyChanged("LookUpAttributeName"); + } + } + + /// + /// Name of the entity with which the lookup is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupentityname")] + public string LookUpEntityName + { + get + { + return this.GetAttributeValue("lookupentityname"); + } + set + { + this.OnPropertyChanging("LookUpEntityName"); + this.SetAttributeValue("lookupentityname", value); + this.OnPropertyChanged("LookUpEntityName"); + } + } + + /// + /// Unique identifier of the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupmappingid")] + public System.Nullable LookUpMappingId + { + get + { + return this.GetAttributeValue>("lookupmappingid"); + } + set + { + this.OnPropertyChanging("LookUpMappingId"); + this.SetAttributeValue("lookupmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LookUpMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LookUpMappingId = value; + } + } + + /// + /// Lookup source code for lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupsourcecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LookUpSourceCode + { + get + { + return this.GetAttributeValue("lookupsourcecode"); + } + set + { + this.OnPropertyChanging("LookUpSourceCode"); + this.SetAttributeValue("lookupsourcecode", value); + this.OnPropertyChanged("LookUpSourceCode"); + } + } + + /// + /// Unique identifier of the user who last modified the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the lookup mapping 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 lookupmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the lookup mapping has to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Status of the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.LookUpMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.LookUpMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the lookup mapping. + /// + [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"); + } + } + + /// + /// Unique identifier of the transformation parameter mapping with which this lookup mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + public Microsoft.Xrm.Sdk.EntityReference TransformationParameterMappingId + { + get + { + return this.GetAttributeValue("transformationparametermappingid"); + } + set + { + this.OnPropertyChanging("TransformationParameterMappingId"); + this.SetAttributeValue("transformationparametermappingid", value); + this.OnPropertyChanged("TransformationParameterMappingId"); + } + } + + /// + /// 1:N userentityinstancedata_lookupmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lookupmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_lookupmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_lookupmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lookupmapping"); + this.SetRelatedEntities("userentityinstancedata_lookupmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_lookupmapping"); + } + } + + /// + /// N:1 lk_lookupmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_createdby", null); + } + } + + /// + /// N:1 lk_lookupmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_lookupmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_lookupmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 LookUpMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_ColumnMapping")] + public Xrm.Framework.CI.Common.Entities.ColumnMapping LookUpMapping_ColumnMapping + { + get + { + return this.GetRelatedEntity("LookUpMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_ColumnMapping"); + this.SetRelatedEntity("LookUpMapping_ColumnMapping", null, value); + this.OnPropertyChanged("LookUpMapping_ColumnMapping"); + } + } + + /// + /// N:1 LookUpMapping_TransformationParameterMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_TransformationParameterMapping")] + public Xrm.Framework.CI.Common.Entities.TransformationParameterMapping LookUpMapping_TransformationParameterMapping + { + get + { + return this.GetRelatedEntity("LookUpMapping_TransformationParameterMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_TransformationParameterMapping"); + this.SetRelatedEntity("LookUpMapping_TransformationParameterMapping", null, value); + this.OnPropertyChanged("LookUpMapping_TransformationParameterMapping"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum MailboxState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("mailbox")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Mailbox : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Mailbox() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "mailbox"; + + public const int EntityTypeCode = 9606; + + 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)); + } + } + + /// + /// Choose the delivery method for the mailbox for appointments, contacts, and tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actdeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue ACTDeliveryMethod + { + get + { + return this.GetAttributeValue("actdeliverymethod"); + } + set + { + this.OnPropertyChanging("ACTDeliveryMethod"); + this.SetAttributeValue("actdeliverymethod", value); + this.OnPropertyChanged("ACTDeliveryMethod"); + } + } + + /// + /// Status of the Appointments, Contacts, and Tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue ACTStatus + { + get + { + return this.GetAttributeValue("actstatus"); + } + } + + /// + /// Choose whether to allow the email connector to use credentials. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowemailconnectortousecredentials")] + public System.Nullable AllowEmailConnectorToUseCredentials + { + get + { + return this.GetAttributeValue>("allowemailconnectortousecredentials"); + } + set + { + this.OnPropertyChanging("AllowEmailConnectorToUseCredentials"); + this.SetAttributeValue("allowemailconnectortousecredentials", value); + this.OnPropertyChanged("AllowEmailConnectorToUseCredentials"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type the email address of the mailbox. + /// + [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 status of the email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailRouterAccessApproval + { + get + { + return this.GetAttributeValue("emailrouteraccessapproval"); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// Select the email server profile of the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofile")] + public Microsoft.Xrm.Sdk.EntityReference EmailServerProfile + { + get + { + return this.GetAttributeValue("emailserverprofile"); + } + set + { + this.OnPropertyChanging("EmailServerProfile"); + this.SetAttributeValue("emailserverprofile", value); + this.OnPropertyChanged("EmailServerProfile"); + } + } + + /// + /// Indicates whether the mailbox is enabled for Appointments, Contacts, and Tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforact")] + public System.Nullable EnabledForACT + { + get + { + return this.GetAttributeValue>("enabledforact"); + } + } + + /// + /// Choose whether the mailbox is enabled for receiving email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforincomingemail")] + public System.Nullable EnabledForIncomingEmail + { + get + { + return this.GetAttributeValue>("enabledforincomingemail"); + } + } + + /// + /// Choose whether the mailbox is enabled for sending email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforoutgoingemail")] + public System.Nullable EnabledForOutgoingEmail + { + get + { + return this.GetAttributeValue>("enabledforoutgoingemail"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange web services endpoint URL for the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ewsurl")] + public string EWSURL + { + get + { + return this.GetAttributeValue("ewsurl"); + } + set + { + this.OnPropertyChanging("EWSURL"); + this.SetAttributeValue("ewsurl", value); + this.OnPropertyChanged("EWSURL"); + } + } + + /// + /// Contains the exchange synchronization state in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangesyncstatexml")] + public string ExchangeSyncStateXml + { + get + { + return this.GetAttributeValue("exchangesyncstatexml"); + } + set + { + this.OnPropertyChanging("ExchangeSyncStateXml"); + this.SetAttributeValue("exchangesyncstatexml", value); + this.OnPropertyChanged("ExchangeSyncStateXml"); + } + } + + /// + /// Unique identifier of the async host that is processing this mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hostid")] + public string HostId + { + get + { + return this.GetAttributeValue("hostid"); + } + } + + /// + /// Select how incoming email will be delivered to the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("incomingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Select the status that will be assigned to incoming email messages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailStatus + { + get + { + return this.GetAttributeValue("incomingemailstatus"); + } + } + + /// + /// Set the current organization as the synchronization organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactsyncorgflagset")] + public System.Nullable IsACTSyncOrgFlagSet + { + get + { + return this.GetAttributeValue>("isactsyncorgflagset"); + } + set + { + this.OnPropertyChanging("IsACTSyncOrgFlagSet"); + this.SetAttributeValue("isactsyncorgflagset", value); + this.OnPropertyChanged("IsACTSyncOrgFlagSet"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Select whether the mailbox is a forward mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isforwardmailbox")] + public System.Nullable IsForwardMailbox + { + get + { + return this.GetAttributeValue>("isforwardmailbox"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispasswordset")] + public System.Nullable IsPasswordSet + { + get + { + return this.GetAttributeValue>("ispasswordset"); + } + } + + /// + /// Shows the date and time when the Exchange web services URL was last discovered using the AutoDiscover service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastautodiscoveredon")] + public System.Nullable LastAutoDiscoveredOn + { + get + { + return this.GetAttributeValue>("lastautodiscoveredon"); + } + set + { + this.OnPropertyChanging("LastAutoDiscoveredOn"); + this.SetAttributeValue("lastautodiscoveredon", value); + this.OnPropertyChanged("LastAutoDiscoveredOn"); + } + } + + /// + /// Unique identifier of the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailboxid")] + public System.Nullable MailboxId + { + get + { + return this.GetAttributeValue>("mailboxid"); + } + set + { + this.OnPropertyChanging("MailboxId"); + this.SetAttributeValue("mailboxid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("MailboxId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailboxid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.MailboxId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailboxprocessingcontext")] + public System.Nullable MailboxProcessingContext + { + get + { + return this.GetAttributeValue>("mailboxprocessingcontext"); + } + set + { + this.OnPropertyChanging("MailboxProcessingContext"); + this.SetAttributeValue("mailboxprocessingcontext", value); + this.OnPropertyChanged("MailboxProcessingContext"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type the name of the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("noactcount")] + public System.Nullable NoACTCount + { + get + { + return this.GetAttributeValue>("noactcount"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("noemailcount")] + public System.Nullable NoEmailCount + { + get + { + return this.GetAttributeValue>("noemailcount"); + } + } + + /// + /// Unique identifier of the organization associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Select how outgoing email will be sent from the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("outgoingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Select the status of outgoing email messages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemailstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailStatus + { + get + { + return this.GetAttributeValue("outgoingemailstatus"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Type the password for the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("password")] + public string Password + { + get + { + return this.GetAttributeValue("password"); + } + set + { + this.OnPropertyChanging("Password"); + this.SetAttributeValue("password", value); + this.OnPropertyChanged("Password"); + } + } + + /// + /// Shows the date and time when processing will begin on this mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponemailboxprocessinguntil")] + public System.Nullable PostponeMailboxProcessingUntil + { + get + { + return this.GetAttributeValue>("postponemailboxprocessinguntil"); + } + } + + /// + /// Shows the date and time when the mailbox can start sending emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponesendinguntil")] + public System.Nullable PostponeSendingUntil + { + get + { + return this.GetAttributeValue>("postponesendinguntil"); + } + set + { + this.OnPropertyChanging("PostponeSendingUntil"); + this.SetAttributeValue("postponesendinguntil", value); + this.OnPropertyChanged("PostponeSendingUntil"); + } + } + + /// + /// Shows the date and time when the next email configuration test will be run for a mailbox record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponetestemailconfigurationuntil")] + public System.Nullable PostponeTestEmailConfigurationUntil + { + get + { + return this.GetAttributeValue>("postponetestemailconfigurationuntil"); + } + set + { + this.OnPropertyChanging("PostponeTestEmailConfigurationUntil"); + this.SetAttributeValue("postponetestemailconfigurationuntil", value); + this.OnPropertyChanged("PostponeTestEmailConfigurationUntil"); + } + } + + /// + /// Select whether to delete emails from the mailbox after processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processanddeleteemails")] + public System.Nullable ProcessAndDeleteEmails + { + get + { + return this.GetAttributeValue>("processanddeleteemails"); + } + set + { + this.OnPropertyChanging("ProcessAndDeleteEmails"); + this.SetAttributeValue("processanddeleteemails", value); + this.OnPropertyChanged("ProcessAndDeleteEmails"); + } + } + + /// + /// Shows the date and time to start processing email received by the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processemailreceivedafter")] + public System.Nullable ProcessEmailReceivedAfter + { + get + { + return this.GetAttributeValue>("processemailreceivedafter"); + } + set + { + this.OnPropertyChanging("ProcessEmailReceivedAfter"); + this.SetAttributeValue("processemailreceivedafter", value); + this.OnPropertyChanged("ProcessEmailReceivedAfter"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("receivingpostponeduntil")] + public System.Nullable ReceivingPostponedUntil + { + get + { + return this.GetAttributeValue>("receivingpostponeduntil"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("receivingpostponeduntilforact")] + public System.Nullable ReceivingPostponedUntilForACT + { + get + { + return this.GetAttributeValue>("receivingpostponeduntilforact"); + } + } + + /// + /// Choose the user associated to the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + } + + /// + /// Shows whether the mailbox 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 ((Xrm.Framework.CI.Common.Entities.MailboxState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.MailboxState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the mailbox'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"); + } + } + + /// + /// Shows the number of times an email configuration test has been performed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("testemailconfigurationretrycount")] + public System.Nullable TestEmailConfigurationRetryCount + { + get + { + return this.GetAttributeValue>("testemailconfigurationretrycount"); + } + set + { + this.OnPropertyChanging("TestEmailConfigurationRetryCount"); + this.SetAttributeValue("testemailconfigurationretrycount", value); + this.OnPropertyChanged("TestEmailConfigurationRetryCount"); + } + } + + /// + /// Indicates if the email configuration test has been scheduled for a mailbox record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("testemailconfigurationscheduled")] + public System.Nullable TestEmailConfigurationScheduled + { + get + { + return this.GetAttributeValue>("testemailconfigurationscheduled"); + } + set + { + this.OnPropertyChanging("TestEmailConfigurationScheduled"); + this.SetAttributeValue("testemailconfigurationscheduled", value); + this.OnPropertyChanged("TestEmailConfigurationScheduled"); + } + } + + /// + /// Date and time when the last email configuration test was completed for a mailbox record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("testmailboxaccesscompletedon")] + public System.Nullable TestMailboxAccessCompletedOn + { + get + { + return this.GetAttributeValue>("testmailboxaccesscompletedon"); + } + } + + /// + /// 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"); + } + } + + /// + /// Concatenation of transient failure counts of all mailbox operations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transientfailurecount")] + public System.Nullable TransientFailureCount + { + get + { + return this.GetAttributeValue>("transientfailurecount"); + } + } + + /// + /// Shows the ID of the Undeliverable folder in the mailbox managed by Microsoft Exchange. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("undeliverablefolder")] + public string UndeliverableFolder + { + get + { + return this.GetAttributeValue("undeliverablefolder"); + } + set + { + this.OnPropertyChanging("UndeliverableFolder"); + this.SetAttributeValue("undeliverablefolder", value); + this.OnPropertyChanged("UndeliverableFolder"); + } + } + + /// + /// Type a user name used for mailbox authentication. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("username")] + public string Username + { + get + { + return this.GetAttributeValue("username"); + } + set + { + this.OnPropertyChanging("Username"); + this.SetAttributeValue("username", value); + this.OnPropertyChanged("Username"); + } + } + + /// + /// 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 mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N activitypointer_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_sendermailboxid_mailbox")] + public System.Collections.Generic.IEnumerable activitypointer_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntities("activitypointer_sendermailboxid_mailbox", null); + } + set + { + this.OnPropertyChanging("activitypointer_sendermailboxid_mailbox"); + this.SetRelatedEntities("activitypointer_sendermailboxid_mailbox", null, value); + this.OnPropertyChanged("activitypointer_sendermailboxid_mailbox"); + } + } + + /// + /// 1:N email_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_sendermailboxid_mailbox")] + public System.Collections.Generic.IEnumerable email_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntities("email_sendermailboxid_mailbox", null); + } + set + { + this.OnPropertyChanging("email_sendermailboxid_mailbox"); + this.SetRelatedEntities("email_sendermailboxid_mailbox", null, value); + this.OnPropertyChanged("email_sendermailboxid_mailbox"); + } + } + + /// + /// 1:N Mailbox_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Mailbox_Annotation")] + public System.Collections.Generic.IEnumerable Mailbox_Annotation + { + get + { + return this.GetRelatedEntities("Mailbox_Annotation", null); + } + set + { + this.OnPropertyChanging("Mailbox_Annotation"); + this.SetRelatedEntities("Mailbox_Annotation", null, value); + this.OnPropertyChanged("Mailbox_Annotation"); + } + } + + /// + /// 1:N mailbox_asyncoperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_asyncoperations")] + public System.Collections.Generic.IEnumerable mailbox_asyncoperations + { + get + { + return this.GetRelatedEntities("mailbox_asyncoperations", null); + } + set + { + this.OnPropertyChanging("mailbox_asyncoperations"); + this.SetRelatedEntities("mailbox_asyncoperations", null, value); + this.OnPropertyChanged("mailbox_asyncoperations"); + } + } + + /// + /// 1:N mailbox_processsessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_processsessions")] + public System.Collections.Generic.IEnumerable mailbox_processsessions + { + get + { + return this.GetRelatedEntities("mailbox_processsessions", null); + } + set + { + this.OnPropertyChanging("mailbox_processsessions"); + this.SetRelatedEntities("mailbox_processsessions", null, value); + this.OnPropertyChanged("mailbox_processsessions"); + } + } + + /// + /// 1:N mailbox_userentityinstancedatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_userentityinstancedatas")] + public System.Collections.Generic.IEnumerable mailbox_userentityinstancedatas + { + get + { + return this.GetRelatedEntities("mailbox_userentityinstancedatas", null); + } + set + { + this.OnPropertyChanging("mailbox_userentityinstancedatas"); + this.SetRelatedEntities("mailbox_userentityinstancedatas", null, value); + this.OnPropertyChanged("mailbox_userentityinstancedatas"); + } + } + + /// + /// 1:N queue_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_defaultmailbox_mailbox")] + public System.Collections.Generic.IEnumerable queue_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntities("queue_defaultmailbox_mailbox", null); + } + set + { + this.OnPropertyChanging("queue_defaultmailbox_mailbox"); + this.SetRelatedEntities("queue_defaultmailbox_mailbox", null, value); + this.OnPropertyChanged("queue_defaultmailbox_mailbox"); + } + } + + /// + /// 1:N systemuser_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_defaultmailbox_mailbox")] + public System.Collections.Generic.IEnumerable systemuser_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntities("systemuser_defaultmailbox_mailbox", null); + } + set + { + this.OnPropertyChanging("systemuser_defaultmailbox_mailbox"); + this.SetRelatedEntities("systemuser_defaultmailbox_mailbox", null, value); + this.OnPropertyChanged("systemuser_defaultmailbox_mailbox"); + } + } + + /// + /// 1:N tracelog_Mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_Mailbox")] + public System.Collections.Generic.IEnumerable tracelog_Mailbox + { + get + { + return this.GetRelatedEntities("tracelog_Mailbox", null); + } + set + { + this.OnPropertyChanging("tracelog_Mailbox"); + this.SetRelatedEntities("tracelog_Mailbox", null, value); + this.OnPropertyChanged("tracelog_Mailbox"); + } + } + + /// + /// N:1 business_unit_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailbox")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_mailbox + { + get + { + return this.GetRelatedEntity("business_unit_mailbox", null); + } + } + + /// + /// N:1 emailserverprofile_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofile")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_mailbox")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_mailbox + { + get + { + return this.GetRelatedEntity("emailserverprofile_mailbox", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_mailbox"); + this.SetRelatedEntity("emailserverprofile_mailbox", null, value); + this.OnPropertyChanged("emailserverprofile_mailbox"); + } + } + + /// + /// N:1 lk_mailbox_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_createdby + { + get + { + return this.GetRelatedEntity("lk_mailbox_createdby", null); + } + } + + /// + /// N:1 lk_mailbox_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailbox_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_mailbox_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_modifiedby + { + get + { + return this.GetRelatedEntity("lk_mailbox_modifiedby", null); + } + } + + /// + /// N:1 lk_mailbox_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailbox_modifiedonbehalfby", null); + } + } + + /// + /// N:1 mailbox_regarding_queue + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_queue")] + public Xrm.Framework.CI.Common.Entities.Queue mailbox_regarding_queue + { + get + { + return this.GetRelatedEntity("mailbox_regarding_queue", null); + } + } + + /// + /// N:1 mailbox_regarding_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser mailbox_regarding_systemuser + { + get + { + return this.GetRelatedEntity("mailbox_regarding_systemuser", null); + } + } + + /// + /// N:1 organization_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_mailbox")] + public Xrm.Framework.CI.Common.Entities.Organization organization_mailbox + { + get + { + return this.GetRelatedEntity("organization_mailbox", null); + } + } + + /// + /// N:1 team_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_mailbox")] + public Xrm.Framework.CI.Common.Entities.Team team_mailbox + { + get + { + return this.GetRelatedEntity("team_mailbox", null); + } + } + + /// + /// N:1 user_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_mailbox")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_mailbox + { + get + { + return this.GetRelatedEntity("user_mailbox", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum MailMergeTemplateState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Template for a mail merge document that contains the standard attributes of that document. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("mailmergetemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class MailMergeTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public MailMergeTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "mailmergetemplate"; + + public const int EntityTypeCode = 9106; + + 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)); + } + } + + /// + /// Body text of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("body")] + public string Body + { + get + { + return this.GetAttributeValue("body"); + } + set + { + this.OnPropertyChanging("Body"); + this.SetAttributeValue("body", value); + this.OnPropertyChanged("Body"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the mail merge template 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 mailmergetemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default data fields associated with the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilter")] + public string DefaultFilter + { + get + { + return this.GetAttributeValue("defaultfilter"); + } + set + { + this.OnPropertyChanging("DefaultFilter"); + this.SetAttributeValue("defaultfilter", value); + this.OnPropertyChanged("DefaultFilter"); + } + } + + /// + /// Description of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version of the Microsoft Office Word XML format used by the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("documentformat")] + public Microsoft.Xrm.Sdk.OptionSetValue DocumentFormat + { + get + { + return this.GetAttributeValue("documentformat"); + } + set + { + this.OnPropertyChanging("DocumentFormat"); + this.SetAttributeValue("documentformat", value); + this.OnPropertyChanged("DocumentFormat"); + } + } + + /// + /// Exchange rate for the currency associated with the mailmergetemplate with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// File name of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether the mail merge template is personal or is available to all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispersonal")] + public System.Nullable IsPersonal + { + get + { + return this.GetAttributeValue>("ispersonal"); + } + set + { + this.OnPropertyChanging("IsPersonal"); + this.SetAttributeValue("ispersonal", value); + this.OnPropertyChanged("IsPersonal"); + } + } + + /// + /// Language of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetemplateid")] + public System.Nullable MailMergeTemplateId + { + get + { + return this.GetAttributeValue>("mailmergetemplateid"); + } + set + { + this.OnPropertyChanging("MailMergeTemplateId"); + this.SetAttributeValue("mailmergetemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("MailMergeTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.MailMergeTemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetemplateidunique")] + public System.Nullable MailMergeTemplateIdUnique + { + get + { + return this.GetAttributeValue>("mailmergetemplateidunique"); + } + } + + /// + /// Drop-down list for selecting the type of the mail merge. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetype")] + public Microsoft.Xrm.Sdk.OptionSetValue MailMergeType + { + get + { + return this.GetAttributeValue("mailmergetype"); + } + set + { + this.OnPropertyChanging("MailMergeType"); + this.SetAttributeValue("mailmergetype", value); + this.OnPropertyChanged("MailMergeType"); + } + } + + /// + /// MIME type of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the mail merge template 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 mailmergetemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the mail merge template. + /// + [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 mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Parameter Xml. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parameterxml")] + public string ParameterXml + { + get + { + return this.GetAttributeValue("parameterxml"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.MailMergeTemplateState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.MailMergeTemplateState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the mail merge template. + /// + [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"); + } + } + + /// + /// Type of mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatetypecode")] + public string TemplateTypeCode + { + get + { + return this.GetAttributeValue("templatetypecode"); + } + set + { + this.OnPropertyChanging("TemplateTypeCode"); + this.SetAttributeValue("templatetypecode", value); + this.OnPropertyChanged("TemplateTypeCode"); + } + } + + /// + /// 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 mailmergetemplate. + /// + [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 of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N MailMergeTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_AsyncOperations")] + public System.Collections.Generic.IEnumerable MailMergeTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntities("MailMergeTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_AsyncOperations"); + this.SetRelatedEntities("MailMergeTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("MailMergeTemplate_AsyncOperations"); + } + } + + /// + /// 1:N mailmergetemplate_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailmergetemplate_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable mailmergetemplate_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("mailmergetemplate_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("mailmergetemplate_principalobjectattributeaccess"); + this.SetRelatedEntities("mailmergetemplate_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("mailmergetemplate_principalobjectattributeaccess"); + } + } + + /// + /// 1:N MailMergeTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_ProcessSessions")] + public System.Collections.Generic.IEnumerable MailMergeTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntities("MailMergeTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_ProcessSessions"); + this.SetRelatedEntities("MailMergeTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("MailMergeTemplate_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_mailmergetemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_mailmergetemplate")] + public System.Collections.Generic.IEnumerable userentityinstancedata_mailmergetemplate + { + get + { + return this.GetRelatedEntities("userentityinstancedata_mailmergetemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_mailmergetemplate"); + this.SetRelatedEntities("userentityinstancedata_mailmergetemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_mailmergetemplate"); + } + } + + /// + /// N:1 business_unit_mailmergetemplates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailmergetemplates")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_mailmergetemplates + { + get + { + return this.GetRelatedEntity("business_unit_mailmergetemplates", null); + } + } + + /// + /// N:1 lk_mailmergetemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_mailmergetemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplate_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_mailmergetemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplatebase_createdby", null); + } + } + + /// + /// N:1 lk_mailmergetemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplatebase_modifiedby", null); + } + } + + /// + /// N:1 TransactionCurrency_MailMergeTemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_MailMergeTemplate")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_MailMergeTemplate + { + get + { + return this.GetRelatedEntity("TransactionCurrency_MailMergeTemplate", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_MailMergeTemplate"); + this.SetRelatedEntity("TransactionCurrency_MailMergeTemplate", null, value); + this.OnPropertyChanged("TransactionCurrency_MailMergeTemplate"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum MetricState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Type of measurement for a goal, such as money amount or count. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("metric")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Metric : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Metric() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "metric"; + + public const int EntityTypeCode = 9603; + + 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)); + } + } + + /// + /// Data type of the amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amountdatatype")] + public Microsoft.Xrm.Sdk.OptionSetValue AmountDataType + { + get + { + return this.GetAttributeValue("amountdatatype"); + } + set + { + this.OnPropertyChanging("AmountDataType"); + this.SetAttributeValue("amountdatatype", value); + this.OnPropertyChanged("AmountDataType"); + } + } + + /// + /// 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"); + } + } + + /// + /// Description of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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 indicates whether the metric type is Count or Amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamount")] + public System.Nullable IsAmount + { + get + { + return this.GetAttributeValue>("isamount"); + } + set + { + this.OnPropertyChanging("IsAmount"); + this.SetAttributeValue("isamount", value); + this.OnPropertyChanged("IsAmount"); + } + } + + /// + /// Indicates whether the goal metric tracks stretch targets. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isstretchtracked")] + public System.Nullable IsStretchTracked + { + get + { + return this.GetAttributeValue>("isstretchtracked"); + } + set + { + this.OnPropertyChanging("IsStretchTracked"); + this.SetAttributeValue("isstretchtracked", value); + this.OnPropertyChanged("IsStretchTracked"); + } + } + + /// + /// Unique identifier of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public System.Nullable MetricId + { + get + { + return this.GetAttributeValue>("metricid"); + } + set + { + this.OnPropertyChanging("MetricId"); + this.SetAttributeValue("metricid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("MetricId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.MetricId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Name of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization. + /// + [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"); + } + } + + /// + /// Status of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.MetricState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.MetricState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the goal metric. + /// + [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"); + } + } + + /// + /// 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 goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N metric_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_AsyncOperations")] + public System.Collections.Generic.IEnumerable metric_AsyncOperations + { + get + { + return this.GetRelatedEntities("metric_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("metric_AsyncOperations"); + this.SetRelatedEntities("metric_AsyncOperations", null, value); + this.OnPropertyChanged("metric_AsyncOperations"); + } + } + + /// + /// 1:N metric_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_goal")] + public System.Collections.Generic.IEnumerable metric_goal + { + get + { + return this.GetRelatedEntities("metric_goal", null); + } + set + { + this.OnPropertyChanging("metric_goal"); + this.SetRelatedEntities("metric_goal", null, value); + this.OnPropertyChanged("metric_goal"); + } + } + + /// + /// 1:N metric_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_ProcessSessions")] + public System.Collections.Generic.IEnumerable metric_ProcessSessions + { + get + { + return this.GetRelatedEntities("metric_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("metric_ProcessSessions"); + this.SetRelatedEntities("metric_ProcessSessions", null, value); + this.OnPropertyChanged("metric_ProcessSessions"); + } + } + + /// + /// 1:N metric_rollupfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_rollupfield")] + public System.Collections.Generic.IEnumerable metric_rollupfield + { + get + { + return this.GetRelatedEntities("metric_rollupfield", null); + } + set + { + this.OnPropertyChanging("metric_rollupfield"); + this.SetRelatedEntities("metric_rollupfield", null, value); + this.OnPropertyChanged("metric_rollupfield"); + } + } + + /// + /// 1:N userentityinstancedata_metric + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_metric")] + public System.Collections.Generic.IEnumerable userentityinstancedata_metric + { + get + { + return this.GetRelatedEntities("userentityinstancedata_metric", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_metric"); + this.SetRelatedEntities("userentityinstancedata_metric", null, value); + this.OnPropertyChanged("userentityinstancedata_metric"); + } + } + + /// + /// N:1 lk_metric_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_createdby + { + get + { + return this.GetRelatedEntity("lk_metric_createdby", null); + } + } + + /// + /// N:1 lk_metric_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_metric_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_metric_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_modifiedby + { + get + { + return this.GetRelatedEntity("lk_metric_modifiedby", null); + } + } + + /// + /// N:1 lk_metric_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_metric_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_metric + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_metric")] + public Xrm.Framework.CI.Common.Entities.Organization organization_metric + { + get + { + return this.GetRelatedEntity("organization_metric", null); + } + } + } + + /// + /// Monthly fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("monthlyfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class MonthlyFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public MonthlyFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "monthlyfiscalcalendar"; + + public const int EntityTypeCode = 2003; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the monthly fiscal calendar was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the monthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the monthly fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the monthly fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the quota for the monthly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the quota for the monthly fiscal calendar 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 monthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Sales quota for the first month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month1")] + public Microsoft.Xrm.Sdk.Money Month1 + { + get + { + return this.GetAttributeValue("month1"); + } + set + { + this.OnPropertyChanging("Month1"); + this.SetAttributeValue("month1", value); + this.OnPropertyChanged("Month1"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month1_base")] + public Microsoft.Xrm.Sdk.Money Month1_Base + { + get + { + return this.GetAttributeValue("month1_base"); + } + } + + /// + /// Sales quota for the tenth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month10")] + public Microsoft.Xrm.Sdk.Money Month10 + { + get + { + return this.GetAttributeValue("month10"); + } + set + { + this.OnPropertyChanging("Month10"); + this.SetAttributeValue("month10", value); + this.OnPropertyChanged("Month10"); + } + } + + /// + /// Base currency equivalent of the sales quota for the tenth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month10_base")] + public Microsoft.Xrm.Sdk.Money Month10_Base + { + get + { + return this.GetAttributeValue("month10_base"); + } + } + + /// + /// Sales quota for the eleventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month11")] + public Microsoft.Xrm.Sdk.Money Month11 + { + get + { + return this.GetAttributeValue("month11"); + } + set + { + this.OnPropertyChanging("Month11"); + this.SetAttributeValue("month11", value); + this.OnPropertyChanged("Month11"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eleventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month11_base")] + public Microsoft.Xrm.Sdk.Money Month11_Base + { + get + { + return this.GetAttributeValue("month11_base"); + } + } + + /// + /// Sales quota for the twelfth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month12")] + public Microsoft.Xrm.Sdk.Money Month12 + { + get + { + return this.GetAttributeValue("month12"); + } + set + { + this.OnPropertyChanging("Month12"); + this.SetAttributeValue("month12", value); + this.OnPropertyChanged("Month12"); + } + } + + /// + /// Base currency equivalent of the sales quota for the twelfth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month12_base")] + public Microsoft.Xrm.Sdk.Money Month12_Base + { + get + { + return this.GetAttributeValue("month12_base"); + } + } + + /// + /// Sales quota for the second month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month2")] + public Microsoft.Xrm.Sdk.Money Month2 + { + get + { + return this.GetAttributeValue("month2"); + } + set + { + this.OnPropertyChanging("Month2"); + this.SetAttributeValue("month2", value); + this.OnPropertyChanged("Month2"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month2_base")] + public Microsoft.Xrm.Sdk.Money Month2_Base + { + get + { + return this.GetAttributeValue("month2_base"); + } + } + + /// + /// Sales quota for the third month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month3")] + public Microsoft.Xrm.Sdk.Money Month3 + { + get + { + return this.GetAttributeValue("month3"); + } + set + { + this.OnPropertyChanging("Month3"); + this.SetAttributeValue("month3", value); + this.OnPropertyChanged("Month3"); + } + } + + /// + /// Base currency equivalent of the sales quota for the third month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month3_base")] + public Microsoft.Xrm.Sdk.Money Month3_Base + { + get + { + return this.GetAttributeValue("month3_base"); + } + } + + /// + /// Sales quota for the fourth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month4")] + public Microsoft.Xrm.Sdk.Money Month4 + { + get + { + return this.GetAttributeValue("month4"); + } + set + { + this.OnPropertyChanging("Month4"); + this.SetAttributeValue("month4", value); + this.OnPropertyChanged("Month4"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fourth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month4_base")] + public Microsoft.Xrm.Sdk.Money Month4_Base + { + get + { + return this.GetAttributeValue("month4_base"); + } + } + + /// + /// Sales quota for the fifth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month5")] + public Microsoft.Xrm.Sdk.Money Month5 + { + get + { + return this.GetAttributeValue("month5"); + } + set + { + this.OnPropertyChanging("Month5"); + this.SetAttributeValue("month5", value); + this.OnPropertyChanged("Month5"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fifth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month5_base")] + public Microsoft.Xrm.Sdk.Money Month5_Base + { + get + { + return this.GetAttributeValue("month5_base"); + } + } + + /// + /// Sales quota for the sixth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month6")] + public Microsoft.Xrm.Sdk.Money Month6 + { + get + { + return this.GetAttributeValue("month6"); + } + set + { + this.OnPropertyChanging("Month6"); + this.SetAttributeValue("month6", value); + this.OnPropertyChanged("Month6"); + } + } + + /// + /// Base currency equivalent of the sales quota for the sixth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month6_base")] + public Microsoft.Xrm.Sdk.Money Month6_Base + { + get + { + return this.GetAttributeValue("month6_base"); + } + } + + /// + /// Sales quota for the seventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month7")] + public Microsoft.Xrm.Sdk.Money Month7 + { + get + { + return this.GetAttributeValue("month7"); + } + set + { + this.OnPropertyChanging("Month7"); + this.SetAttributeValue("month7", value); + this.OnPropertyChanged("Month7"); + } + } + + /// + /// Base currency equivalent of the sales quota for the seventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month7_base")] + public Microsoft.Xrm.Sdk.Money Month7_Base + { + get + { + return this.GetAttributeValue("month7_base"); + } + } + + /// + /// Sales quota for the eighth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month8")] + public Microsoft.Xrm.Sdk.Money Month8 + { + get + { + return this.GetAttributeValue("month8"); + } + set + { + this.OnPropertyChanging("Month8"); + this.SetAttributeValue("month8", value); + this.OnPropertyChanged("Month8"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eighth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month8_base")] + public Microsoft.Xrm.Sdk.Money Month8_Base + { + get + { + return this.GetAttributeValue("month8_base"); + } + } + + /// + /// Sales quota for the ninth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month9")] + public Microsoft.Xrm.Sdk.Money Month9 + { + get + { + return this.GetAttributeValue("month9"); + } + set + { + this.OnPropertyChanging("Month9"); + this.SetAttributeValue("month9", value); + this.OnPropertyChanged("Month9"); + } + } + + /// + /// Base currency equivalent of the sales quota for the ninth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month9_base")] + public Microsoft.Xrm.Sdk.Money Month9_Base + { + get + { + return this.GetAttributeValue("month9_base"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 monthly fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the monthly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N MonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable MonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("MonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("MonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("MonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N MonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable MonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("MonthlyFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("MonthlyFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("MonthlyFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("MonthlyFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_monthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_monthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_monthlyfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_monthlyfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_monthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_monthlyfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_monthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_monthlyfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_PostAlbumState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Contains user profile images that are stored as attachments and displayed in posts. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_postalbum")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_PostAlbum : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_PostAlbum() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_postalbum"; + + public const int EntityTypeCode = 10000; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// The name of the custom entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_name")] + public string msdyn_name + { + get + { + return this.GetAttributeValue("msdyn_name"); + } + set + { + this.OnPropertyChanging("msdyn_name"); + this.SetAttributeValue("msdyn_name", value); + this.OnPropertyChanged("msdyn_name"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postalbumid")] + public System.Nullable msdyn_PostAlbumId + { + get + { + return this.GetAttributeValue>("msdyn_postalbumid"); + } + set + { + this.OnPropertyChanging("msdyn_PostAlbumId"); + this.SetAttributeValue("msdyn_postalbumid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_PostAlbumId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postalbumid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_PostAlbumId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Profile Album + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_PostAlbumState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_PostAlbumState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Profile Album + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_postalbum_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ActivityPointers")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_ActivityPointers + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ActivityPointers"); + this.SetRelatedEntities("msdyn_postalbum_ActivityPointers", null, value); + this.OnPropertyChanged("msdyn_postalbum_ActivityPointers"); + } + } + + /// + /// 1:N msdyn_postalbum_Annotations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Annotations")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Annotations + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Annotations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Annotations"); + this.SetRelatedEntities("msdyn_postalbum_Annotations", null, value); + this.OnPropertyChanged("msdyn_postalbum_Annotations"); + } + } + + /// + /// 1:N msdyn_postalbum_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Appointments")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Appointments + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Appointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Appointments"); + this.SetRelatedEntities("msdyn_postalbum_Appointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_Appointments"); + } + } + + /// + /// 1:N msdyn_postalbum_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_AsyncOperations"); + this.SetRelatedEntities("msdyn_postalbum_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postalbum_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_postalbum_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_postalbum_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_postalbum_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_postalbum_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections1")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_connections1 + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_connections1", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections1"); + this.SetRelatedEntities("msdyn_postalbum_connections1", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections1"); + } + } + + /// + /// 1:N msdyn_postalbum_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections2")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_connections2 + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_connections2", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections2"); + this.SetRelatedEntities("msdyn_postalbum_connections2", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections2"); + } + } + + /// + /// 1:N msdyn_postalbum_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_DuplicateBaseRecord"); + this.SetRelatedEntities("msdyn_postalbum_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("msdyn_postalbum_DuplicateBaseRecord"); + } + } + + /// + /// 1:N msdyn_postalbum_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_DuplicateMatchingRecord"); + this.SetRelatedEntities("msdyn_postalbum_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("msdyn_postalbum_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N msdyn_postalbum_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Emails")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Emails + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Emails", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Emails"); + this.SetRelatedEntities("msdyn_postalbum_Emails", null, value); + this.OnPropertyChanged("msdyn_postalbum_Emails"); + } + } + + /// + /// 1:N msdyn_postalbum_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Faxes")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Faxes + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Faxes", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Faxes"); + this.SetRelatedEntities("msdyn_postalbum_Faxes", null, value); + this.OnPropertyChanged("msdyn_postalbum_Faxes"); + } + } + + /// + /// 1:N msdyn_postalbum_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Letters")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Letters + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Letters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Letters"); + this.SetRelatedEntities("msdyn_postalbum_Letters", null, value); + this.OnPropertyChanged("msdyn_postalbum_Letters"); + } + } + + /// + /// 1:N msdyn_postalbum_PhoneCalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PhoneCalls")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_PhoneCalls + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_PhoneCalls", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PhoneCalls"); + this.SetRelatedEntities("msdyn_postalbum_PhoneCalls", null, value); + this.OnPropertyChanged("msdyn_postalbum_PhoneCalls"); + } + } + + /// + /// 1:N msdyn_postalbum_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_postalbum_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_postalbum_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ProcessSession"); + this.SetRelatedEntities("msdyn_postalbum_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postalbum_ProcessSession"); + } + } + + /// + /// 1:N msdyn_postalbum_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_RecurringAppointmentMasters"); + this.SetRelatedEntities("msdyn_postalbum_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("msdyn_postalbum_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N msdyn_postalbum_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ServiceAppointments")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_ServiceAppointments + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ServiceAppointments"); + this.SetRelatedEntities("msdyn_postalbum_ServiceAppointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_ServiceAppointments"); + } + } + + /// + /// 1:N msdyn_postalbum_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Tasks")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Tasks + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Tasks", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Tasks"); + this.SetRelatedEntities("msdyn_postalbum_Tasks", null, value); + this.OnPropertyChanged("msdyn_postalbum_Tasks"); + } + } + + /// + /// 1:N msdyn_postalbum_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_postalbum_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postalbum_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 business_unit_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_postalbum")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_msdyn_postalbum + { + get + { + return this.GetRelatedEntity("business_unit_msdyn_postalbum", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_postalbum")] + public Xrm.Framework.CI.Common.Entities.Team team_msdyn_postalbum + { + get + { + return this.GetRelatedEntity("team_msdyn_postalbum", null); + } + } + + /// + /// N:1 user_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_postalbum")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_msdyn_postalbum + { + get + { + return this.GetRelatedEntity("user_msdyn_postalbum", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_PostConfigState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Enable or disable entities for Activity Feeds and Yammer collaboration. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_postconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_PostConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_PostConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_postconfig"; + + public const int EntityTypeCode = 10001; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enables or disables the wall on the entity form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_configurewall")] + public System.Nullable msdyn_ConfigureWall + { + get + { + return this.GetAttributeValue>("msdyn_configurewall"); + } + set + { + this.OnPropertyChanging("msdyn_ConfigureWall"); + this.SetAttributeValue("msdyn_configurewall", value); + this.OnPropertyChanged("msdyn_ConfigureWall"); + } + } + + /// + /// Display name of the entity configured by this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entitydisplayname")] + public string msdyn_EntityDisplayName + { + get + { + return this.GetAttributeValue("msdyn_entitydisplayname"); + } + set + { + this.OnPropertyChanging("msdyn_EntityDisplayName"); + this.SetAttributeValue("msdyn_entitydisplayname", value); + this.OnPropertyChanged("msdyn_EntityDisplayName"); + } + } + + /// + /// Logical name of the entity configured by this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entityname")] + public string msdyn_EntityName + { + get + { + return this.GetAttributeValue("msdyn_entityname"); + } + set + { + this.OnPropertyChanging("msdyn_EntityName"); + this.SetAttributeValue("msdyn_entityname", value); + this.OnPropertyChanged("msdyn_EntityName"); + } + } + + /// + /// Identifier for the view of records that a user follows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_followingviewid")] + public string msdyn_FollowingViewId + { + get + { + return this.GetAttributeValue("msdyn_followingviewid"); + } + set + { + this.OnPropertyChanging("msdyn_FollowingViewId"); + this.SetAttributeValue("msdyn_followingviewid", value); + this.OnPropertyChanged("msdyn_FollowingViewId"); + } + } + + /// + /// Identifier for the view of records that a user follows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_followingviewid2")] + public string msdyn_FollowingViewId2 + { + get + { + return this.GetAttributeValue("msdyn_followingviewid2"); + } + set + { + this.OnPropertyChanging("msdyn_FollowingViewId2"); + this.SetAttributeValue("msdyn_followingviewid2", value); + this.OnPropertyChanged("msdyn_FollowingViewId2"); + } + } + + /// + /// Object Type Code of the entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_otc")] + public System.Nullable msdyn_Otc + { + get + { + return this.GetAttributeValue>("msdyn_otc"); + } + set + { + this.OnPropertyChanging("msdyn_Otc"); + this.SetAttributeValue("msdyn_otc", value); + this.OnPropertyChanged("msdyn_Otc"); + } + } + + /// + /// Unique identifier of the post configuration for this rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + public System.Nullable msdyn_PostConfigId + { + get + { + return this.GetAttributeValue>("msdyn_postconfigid"); + } + set + { + this.OnPropertyChanging("msdyn_PostConfigId"); + this.SetAttributeValue("msdyn_postconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_PostConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_PostConfigId = value; + } + } + + /// + /// Information about the success or failure of the configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_status")] + public string msdyn_Status + { + get + { + return this.GetAttributeValue("msdyn_status"); + } + set + { + this.OnPropertyChanging("msdyn_Status"); + this.SetAttributeValue("msdyn_status", value); + this.OnPropertyChanged("msdyn_Status"); + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Post Configuration + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_PostConfigState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_PostConfigState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Post Configuration + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_postconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_AsyncOperations"); + this.SetRelatedEntities("msdyn_postconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postconfig_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_postconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_postconfig_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_postconfig_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_postconfig_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_msdyn_postruleconfig")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_msdyn_postruleconfig", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_msdyn_postruleconfig"); + this.SetRelatedEntities("msdyn_postconfig_msdyn_postruleconfig", null, value); + this.OnPropertyChanged("msdyn_postconfig_msdyn_postruleconfig"); + } + } + + /// + /// 1:N msdyn_postconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_postconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_postconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_ProcessSession"); + this.SetRelatedEntities("msdyn_postconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postconfig_ProcessSession"); + } + } + + /// + /// 1:N msdyn_postconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_postconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postconfig_UserEntityInstanceDatas"); + } + } + + /// + /// 1:N msdyn_postconfig_wallsavedquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_wallsavedquery")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_wallsavedquery + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_wallsavedquery", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_wallsavedquery"); + this.SetRelatedEntities("msdyn_postconfig_wallsavedquery", null, value); + this.OnPropertyChanged("msdyn_postconfig_wallsavedquery"); + } + } + + /// + /// N:1 lk_msdyn_postconfig_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_postconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_postconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_postconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_msdyn_postconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postconfig")] + public Xrm.Framework.CI.Common.Entities.Organization organization_msdyn_postconfig + { + get + { + return this.GetRelatedEntity("organization_msdyn_postconfig", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_PostRuleConfigState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Enable or disable system post rules for an entity for Activity Feeds and Yammer. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_postruleconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_PostRuleConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_PostRuleConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_postruleconfig"; + + public const int EntityTypeCode = 10002; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Internal Use Only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_formatid")] + public string msdyn_FormatId + { + get + { + return this.GetAttributeValue("msdyn_formatid"); + } + set + { + this.OnPropertyChanging("msdyn_FormatId"); + this.SetAttributeValue("msdyn_formatid", value); + this.OnPropertyChanged("msdyn_FormatId"); + } + } + + /// + /// Name of the rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_name")] + public string msdyn_name + { + get + { + return this.GetAttributeValue("msdyn_name"); + } + set + { + this.OnPropertyChanging("msdyn_name"); + this.SetAttributeValue("msdyn_name", value); + this.OnPropertyChanged("msdyn_name"); + } + } + + /// + /// Entity that is enabled for Activity feeds. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_PostConfigId + { + get + { + return this.GetAttributeValue("msdyn_postconfigid"); + } + set + { + this.OnPropertyChanging("msdyn_PostConfigId"); + this.SetAttributeValue("msdyn_postconfigid", value); + this.OnPropertyChanged("msdyn_PostConfigId"); + } + } + + /// + /// Unique identifier of the post rule configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postruleconfigid")] + public System.Nullable msdyn_PostRuleConfigId + { + get + { + return this.GetAttributeValue>("msdyn_postruleconfigid"); + } + set + { + this.OnPropertyChanging("msdyn_PostRuleConfigId"); + this.SetAttributeValue("msdyn_postruleconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_PostRuleConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postruleconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_PostRuleConfigId = value; + } + } + + /// + /// Determine whether to post this message to the Yammer Activity Stream. Please do not check this box if this message contains sensitive information requiring Microsoft Dynamics CRM access. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_posttoyammer")] + public System.Nullable msdyn_PostToYammer + { + get + { + return this.GetAttributeValue>("msdyn_posttoyammer"); + } + set + { + this.OnPropertyChanging("msdyn_PostToYammer"); + this.SetAttributeValue("msdyn_posttoyammer", value); + this.OnPropertyChanged("msdyn_PostToYammer"); + } + } + + /// + /// Identifier in the format WebResourceName:SchemaName of the definition for this rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_ruleid")] + public string msdyn_RuleId + { + get + { + return this.GetAttributeValue("msdyn_ruleid"); + } + set + { + this.OnPropertyChanging("msdyn_RuleId"); + this.SetAttributeValue("msdyn_ruleid", value); + this.OnPropertyChanged("msdyn_RuleId"); + } + } + + /// + /// Internal Use Only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_rulesource")] + public string msdyn_RuleSource + { + get + { + return this.GetAttributeValue("msdyn_rulesource"); + } + set + { + this.OnPropertyChanging("msdyn_RuleSource"); + this.SetAttributeValue("msdyn_rulesource", value); + this.OnPropertyChanged("msdyn_RuleSource"); + } + } + + /// + /// Unique identifier of the SDK message processing step for this rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_stepid")] + public string msdyn_StepId + { + get + { + return this.GetAttributeValue("msdyn_stepid"); + } + set + { + this.OnPropertyChanging("msdyn_StepId"); + this.SetAttributeValue("msdyn_stepid", value); + this.OnPropertyChanged("msdyn_StepId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Post Rule Configuration + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfigState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfigState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Post Rule Configuration + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_postruleconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_AsyncOperations"); + this.SetRelatedEntities("msdyn_postruleconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_postruleconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_postruleconfig_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_postruleconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_postruleconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_ProcessSession"); + this.SetRelatedEntities("msdyn_postruleconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_ProcessSession"); + } + } + + /// + /// 1:N msdyn_postruleconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_postruleconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postconfig_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_msdyn_postruleconfig")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_msdyn_postruleconfig", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_msdyn_postruleconfig"); + this.SetRelatedEntity("msdyn_postconfig_msdyn_postruleconfig", null, value); + this.OnPropertyChanged("msdyn_postconfig_msdyn_postruleconfig"); + } + } + + /// + /// N:1 organization_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postruleconfig")] + public Xrm.Framework.CI.Common.Entities.Organization organization_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntity("organization_msdyn_postruleconfig", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_wallsavedqueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Contains information regarding which views are available for users to display on their personal walls. Only an administrator can specify the views that users can choose from to display on their personal walls. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_wallsavedquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_wallsavedquery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_wallsavedquery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_wallsavedquery"; + + public const int EntityTypeCode = 10003; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of entity to which the corresponding views belong + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entitydisplayname")] + public string msdyn_entitydisplayname + { + get + { + return this.GetAttributeValue("msdyn_entitydisplayname"); + } + set + { + this.OnPropertyChanging("msdyn_entitydisplayname"); + this.SetAttributeValue("msdyn_entitydisplayname", value); + this.OnPropertyChanged("msdyn_entitydisplayname"); + } + } + + /// + /// Name of the entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entityname")] + public string msdyn_entityname + { + get + { + return this.GetAttributeValue("msdyn_entityname"); + } + set + { + this.OnPropertyChanging("msdyn_entityname"); + this.SetAttributeValue("msdyn_entityname", value); + this.OnPropertyChanged("msdyn_entityname"); + } + } + + /// + /// Information that indicates whether the entity is virtual, that is whether, it is generated by a plug-in, and no corresponding entity instance exists. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvirtual")] + public System.Nullable msdyn_IsVirtual + { + get + { + return this.GetAttributeValue>("msdyn_isvirtual"); + } + set + { + this.OnPropertyChanging("msdyn_IsVirtual"); + this.SetAttributeValue("msdyn_isvirtual", value); + this.OnPropertyChanged("msdyn_IsVirtual"); + } + } + + /// + /// Indicates that corresponding system view should be displayed on personal wall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisible")] + public System.Nullable msdyn_IsVisible + { + get + { + return this.GetAttributeValue>("msdyn_isvisible"); + } + set + { + this.OnPropertyChanging("msdyn_IsVisible"); + this.SetAttributeValue("msdyn_isvisible", value); + this.OnPropertyChanged("msdyn_IsVisible"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisiblebit")] + public System.Nullable msdyn_isvisiblebit + { + get + { + return this.GetAttributeValue>("msdyn_isvisiblebit"); + } + set + { + this.OnPropertyChanging("msdyn_isvisiblebit"); + this.SetAttributeValue("msdyn_isvisiblebit", value); + this.OnPropertyChanged("msdyn_isvisiblebit"); + } + } + + /// + /// Type of entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_otc")] + public System.Nullable msdyn_otc + { + get + { + return this.GetAttributeValue>("msdyn_otc"); + } + set + { + this.OnPropertyChanging("msdyn_otc"); + this.SetAttributeValue("msdyn_otc", value); + this.OnPropertyChanged("msdyn_otc"); + } + } + + /// + /// Unique identifier for Post Configuration associated with Wall View. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigurationid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_postconfigurationid + { + get + { + return this.GetAttributeValue("msdyn_postconfigurationid"); + } + set + { + this.OnPropertyChanging("msdyn_postconfigurationid"); + this.SetAttributeValue("msdyn_postconfigurationid", value); + this.OnPropertyChanged("msdyn_postconfigurationid"); + } + } + + /// + /// Unique identifier of the view that should be displayed on the personal wall for all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_savedqueryid")] + public string msdyn_SavedQueryId + { + get + { + return this.GetAttributeValue("msdyn_savedqueryid"); + } + set + { + this.OnPropertyChanging("msdyn_SavedQueryId"); + this.SetAttributeValue("msdyn_savedqueryid", value); + this.OnPropertyChanged("msdyn_SavedQueryId"); + } + } + + /// + /// Name of the corresponding view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_savedqueryname")] + public string msdyn_savedqueryname + { + get + { + return this.GetAttributeValue("msdyn_savedqueryname"); + } + set + { + this.OnPropertyChanging("msdyn_savedqueryname"); + this.SetAttributeValue("msdyn_savedqueryname", value); + this.OnPropertyChanged("msdyn_savedqueryname"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + public System.Nullable msdyn_wallsavedqueryId + { + get + { + return this.GetAttributeValue>("msdyn_wallsavedqueryid"); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryId"); + this.SetAttributeValue("msdyn_wallsavedqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_wallsavedqueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_wallsavedqueryId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Wall View + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Wall View + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_AsyncOperations"); + this.SetRelatedEntities("msdyn_wallsavedquery_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_wallsavedquery_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_ProcessSession"); + this.SetRelatedEntities("msdyn_wallsavedquery_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_ProcessSession"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_wallsavedquery_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_UserEntityInstanceDatas"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_wallsavedqueryusersettings"); + this.SetRelatedEntities("msdyn_wallsavedquery_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_wallsavedqueryusersettings"); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postconfig_wallsavedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigurationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_wallsavedquery")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_wallsavedquery + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_wallsavedquery", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_wallsavedquery"); + this.SetRelatedEntity("msdyn_postconfig_wallsavedquery", null, value); + this.OnPropertyChanged("msdyn_postconfig_wallsavedquery"); + } + } + + /// + /// N:1 organization_msdyn_wallsavedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_wallsavedquery")] + public Xrm.Framework.CI.Common.Entities.Organization organization_msdyn_wallsavedquery + { + get + { + return this.GetRelatedEntity("organization_msdyn_wallsavedquery", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_wallsavedqueryusersettingsState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Contains user personalization information regarding which of the administrator’s selected views to display on a user’s personal wall. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_wallsavedqueryusersettings")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_wallsavedqueryusersettings : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_wallsavedqueryusersettings() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_wallsavedqueryusersettings"; + + public const int EntityTypeCode = 10004; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// XML blob that stores personalization data for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_data")] + public string msdyn_data + { + get + { + return this.GetAttributeValue("msdyn_data"); + } + set + { + this.OnPropertyChanging("msdyn_data"); + this.SetAttributeValue("msdyn_data", value); + this.OnPropertyChanged("msdyn_data"); + } + } + + /// + /// Indicates that view is selected by default if value is greater than 0. Also contains information which specific filter is applied. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_default")] + public System.Nullable msdyn_default + { + get + { + return this.GetAttributeValue>("msdyn_default"); + } + set + { + this.OnPropertyChanging("msdyn_default"); + this.SetAttributeValue("msdyn_default", value); + this.OnPropertyChanged("msdyn_default"); + } + } + + /// + /// Display name of the entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entitydisplayname")] + public string msdyn_entitydisplayname + { + get + { + return this.GetAttributeValue("msdyn_entitydisplayname"); + } + set + { + this.OnPropertyChanging("msdyn_entitydisplayname"); + this.SetAttributeValue("msdyn_entitydisplayname", value); + this.OnPropertyChanged("msdyn_entitydisplayname"); + } + } + + /// + /// Name of the entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entityname")] + public string msdyn_entityname + { + get + { + return this.GetAttributeValue("msdyn_entityname"); + } + set + { + this.OnPropertyChanging("msdyn_entityname"); + this.SetAttributeValue("msdyn_entityname", value); + this.OnPropertyChanged("msdyn_entityname"); + } + } + + /// + /// Indicates that wall should be included in response to avoid roundtrips to server + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_includewallinresponse")] + public System.Nullable msdyn_includewallinresponse + { + get + { + return this.GetAttributeValue>("msdyn_includewallinresponse"); + } + set + { + this.OnPropertyChanging("msdyn_includewallinresponse"); + this.SetAttributeValue("msdyn_includewallinresponse", value); + this.OnPropertyChanged("msdyn_includewallinresponse"); + } + } + + /// + /// Indicates that corresponding view is following view + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isfollowing")] + public System.Nullable msdyn_isfollowing + { + get + { + return this.GetAttributeValue>("msdyn_isfollowing"); + } + set + { + this.OnPropertyChanging("msdyn_isfollowing"); + this.SetAttributeValue("msdyn_isfollowing", value); + this.OnPropertyChanged("msdyn_isfollowing"); + } + } + + /// + /// Indicates that the record is virtual + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvirtual")] + public System.Nullable msdyn_IsVirtual + { + get + { + return this.GetAttributeValue>("msdyn_isvirtual"); + } + set + { + this.OnPropertyChanging("msdyn_IsVirtual"); + this.SetAttributeValue("msdyn_isvirtual", value); + this.OnPropertyChanged("msdyn_IsVirtual"); + } + } + + /// + /// Information that indicates whether the corresponding view should be displayed on the personal wall for this user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisible")] + public System.Nullable msdyn_isvisible + { + get + { + return this.GetAttributeValue>("msdyn_isvisible"); + } + set + { + this.OnPropertyChanging("msdyn_isvisible"); + this.SetAttributeValue("msdyn_isvisible", value); + this.OnPropertyChanged("msdyn_isvisible"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisiblebit")] + public System.Nullable msdyn_isvisiblebit + { + get + { + return this.GetAttributeValue>("msdyn_isvisiblebit"); + } + set + { + this.OnPropertyChanging("msdyn_isvisiblebit"); + this.SetAttributeValue("msdyn_isvisiblebit", value); + this.OnPropertyChanged("msdyn_isvisiblebit"); + } + } + + /// + /// Virtual column which contains entity type code for the entities returned by corresponding savedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_otc")] + public System.Nullable msdyn_otc + { + get + { + return this.GetAttributeValue>("msdyn_otc"); + } + set + { + this.OnPropertyChanging("msdyn_otc"); + this.SetAttributeValue("msdyn_otc", value); + this.OnPropertyChanged("msdyn_otc"); + } + } + + /// + /// Name of the corresponding view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_savedqueryname")] + public string msdyn_savedqueryname + { + get + { + return this.GetAttributeValue("msdyn_savedqueryname"); + } + set + { + this.OnPropertyChanging("msdyn_savedqueryname"); + this.SetAttributeValue("msdyn_savedqueryname", value); + this.OnPropertyChanged("msdyn_savedqueryname"); + } + } + + /// + /// Sort order to be used when displaying the filter on the user’s personal wall. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_sortorder")] + public System.Nullable msdyn_sortorder + { + get + { + return this.GetAttributeValue>("msdyn_sortorder"); + } + set + { + this.OnPropertyChanging("msdyn_sortorder"); + this.SetAttributeValue("msdyn_sortorder", value); + this.OnPropertyChanged("msdyn_sortorder"); + } + } + + /// + /// Reserved to support different view types. Currently not used. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_type")] + public System.Nullable msdyn_type + { + get + { + return this.GetAttributeValue>("msdyn_type"); + } + set + { + this.OnPropertyChanging("msdyn_type"); + this.SetAttributeValue("msdyn_type", value); + this.OnPropertyChanged("msdyn_type"); + } + } + + /// + /// Unique identifier for User associated with Wall View User Setting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_userid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_userid + { + get + { + return this.GetAttributeValue("msdyn_userid"); + } + set + { + this.OnPropertyChanging("msdyn_userid"); + this.SetAttributeValue("msdyn_userid", value); + this.OnPropertyChanged("msdyn_userid"); + } + } + + /// + /// Unique identifier for Wall View associated with Wall View User Setting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_wallsavedqueryid + { + get + { + return this.GetAttributeValue("msdyn_wallsavedqueryid"); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryid"); + this.SetAttributeValue("msdyn_wallsavedqueryid", value); + this.OnPropertyChanged("msdyn_wallsavedqueryid"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryusersettingsid")] + public System.Nullable msdyn_wallsavedqueryusersettingsId + { + get + { + return this.GetAttributeValue>("msdyn_wallsavedqueryusersettingsid"); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettingsId"); + this.SetAttributeValue("msdyn_wallsavedqueryusersettingsid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_wallsavedqueryusersettingsId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryusersettingsid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_wallsavedqueryusersettingsId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Wall View User Setting + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettingsState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettingsState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Wall View User Setting + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_AsyncOperations"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_ProcessSession"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_ProcessSession"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 business_unit_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("business_unit_msdyn_wallsavedqueryusersettings", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_systemuser_wallsavedqueryusersettings_userid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_userid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_systemuser_wallsavedqueryusersettings_userid")] + public Xrm.Framework.CI.Common.Entities.SystemUser msdyn_systemuser_wallsavedqueryusersettings_userid + { + get + { + return this.GetRelatedEntity("msdyn_systemuser_wallsavedqueryusersettings_userid", null); + } + set + { + this.OnPropertyChanging("msdyn_systemuser_wallsavedqueryusersettings_userid"); + this.SetRelatedEntity("msdyn_systemuser_wallsavedqueryusersettings_userid", null, value); + this.OnPropertyChanged("msdyn_systemuser_wallsavedqueryusersettings_userid"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_wallsavedqueryusersettings"); + this.SetRelatedEntity("msdyn_wallsavedquery_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_wallsavedqueryusersettings"); + } + } + + /// + /// N:1 team_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.Team team_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("team_msdyn_wallsavedqueryusersettings", null); + } + } + + /// + /// N:1 user_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("user_msdyn_wallsavedqueryusersettings", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OpportunityState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Won = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Lost = 2, + } + + /// + /// Potential revenue-generating event, or sale to an account, which needs to be tracked through a sales process to completion. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunity")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Opportunity : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Opportunity() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunity"; + + public const int EntityTypeCode = 3; + + 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 opportunity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Shows the date and time when the opportunity was closed or canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualclosedate")] + public System.Nullable ActualCloseDate + { + get + { + return this.GetAttributeValue>("actualclosedate"); + } + set + { + this.OnPropertyChanging("ActualCloseDate"); + this.SetAttributeValue("actualclosedate", value); + this.OnPropertyChanged("ActualCloseDate"); + } + } + + /// + /// Type the actual revenue amount for the opportunity for reporting and analysis of estimated versus actual sales. Field defaults to the Est. Revenue value when an opportunity is won. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualvalue")] + public Microsoft.Xrm.Sdk.Money ActualValue + { + get + { + return this.GetAttributeValue("actualvalue"); + } + set + { + this.OnPropertyChanging("ActualValue"); + this.SetAttributeValue("actualvalue", value); + this.OnPropertyChanged("ActualValue"); + } + } + + /// + /// Shows the Actual Revenue field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualvalue_base")] + public Microsoft.Xrm.Sdk.Money ActualValue_Base + { + get + { + return this.GetAttributeValue("actualvalue_base"); + } + } + + /// + /// Type a value between 0 and 1,000,000,000,000 to indicate the lead's potential available budget. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount")] + public Microsoft.Xrm.Sdk.Money BudgetAmount + { + get + { + return this.GetAttributeValue("budgetamount"); + } + set + { + this.OnPropertyChanging("BudgetAmount"); + this.SetAttributeValue("budgetamount", value); + this.OnPropertyChanged("BudgetAmount"); + } + } + + /// + /// Shows the budget amount converted to the system's base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount_base")] + public Microsoft.Xrm.Sdk.Money BudgetAmount_Base + { + get + { + return this.GetAttributeValue("budgetamount_base"); + } + } + + /// + /// Select the likely budget status for the lead's company. This may help determine the lead rating or your sales approach. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue BudgetStatus + { + get + { + return this.GetAttributeValue("budgetstatus"); + } + set + { + this.OnPropertyChanging("BudgetStatus"); + this.SetAttributeValue("budgetstatus", value); + this.OnPropertyChanged("BudgetStatus"); + } + } + + /// + /// Shows the campaign that the opportunity was created from. The ID is used for tracking the success of the campaign. + /// + [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"); + } + } + + /// + /// Choose whether the proposal feedback has been captured for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("captureproposalfeedback")] + public System.Nullable CaptureProposalFeedback + { + get + { + return this.GetAttributeValue>("captureproposalfeedback"); + } + set + { + this.OnPropertyChanging("CaptureProposalFeedback"); + this.SetAttributeValue("captureproposalfeedback", value); + this.OnPropertyChanged("CaptureProposalFeedback"); + } + } + + /// + /// Type a number from 0 to 100 that represents the likelihood of closing the opportunity. This can aid the sales team in their efforts to convert the opportunity in a sale. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("closeprobability")] + public System.Nullable CloseProbability + { + get + { + return this.GetAttributeValue>("closeprobability"); + } + set + { + this.OnPropertyChanging("CloseProbability"); + this.SetAttributeValue("closeprobability", value); + this.OnPropertyChanged("CloseProbability"); + } + } + + /// + /// Select whether a final proposal has been completed for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completefinalproposal")] + public System.Nullable CompleteFinalProposal + { + get + { + return this.GetAttributeValue>("completefinalproposal"); + } + set + { + this.OnPropertyChanging("CompleteFinalProposal"); + this.SetAttributeValue("completefinalproposal", value); + this.OnPropertyChanged("CompleteFinalProposal"); + } + } + + /// + /// Select whether an internal review has been completed for this opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completeinternalreview")] + public System.Nullable CompleteInternalReview + { + get + { + return this.GetAttributeValue>("completeinternalreview"); + } + set + { + this.OnPropertyChanging("CompleteInternalReview"); + this.SetAttributeValue("completeinternalreview", value); + this.OnPropertyChanged("CompleteInternalReview"); + } + } + + /// + /// Select whether the lead confirmed interest in your offerings. This helps in determining the lead quality and the probability of it turning into an opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("confirminterest")] + public System.Nullable ConfirmInterest + { + get + { + return this.GetAttributeValue>("confirminterest"); + } + set + { + this.OnPropertyChanging("ConfirmInterest"); + this.SetAttributeValue("confirminterest", value); + this.OnPropertyChanged("ConfirmInterest"); + } + } + + /// + /// Unique identifier of the contact associated with the opportunity. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type notes about the company or organization associated with the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentsituation")] + public string CurrentSituation + { + get + { + return this.GetAttributeValue("currentsituation"); + } + set + { + this.OnPropertyChanging("CurrentSituation"); + this.SetAttributeValue("currentsituation", value); + this.OnPropertyChanged("CurrentSituation"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders. + /// + [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 some notes about the customer's requirements, to help the sales team identify products and services that could meet their requirements. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerneed")] + public string CustomerNeed + { + get + { + return this.GetAttributeValue("customerneed"); + } + set + { + this.OnPropertyChanging("CustomerNeed"); + this.SetAttributeValue("customerneed", value); + this.OnPropertyChanged("CustomerNeed"); + } + } + + /// + /// Type notes about the customer's pain points to help the sales team identify products and services that could address these pain points. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerpainpoints")] + public string CustomerPainPoints + { + get + { + return this.GetAttributeValue("customerpainpoints"); + } + set + { + this.OnPropertyChanging("CustomerPainPoints"); + this.SetAttributeValue("customerpainpoints", value); + this.OnPropertyChanged("CustomerPainPoints"); + } + } + + /// + /// Select whether your notes include information about who makes the purchase decisions at the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decisionmaker")] + public System.Nullable DecisionMaker + { + get + { + return this.GetAttributeValue>("decisionmaker"); + } + set + { + this.OnPropertyChanging("DecisionMaker"); + this.SetAttributeValue("decisionmaker", value); + this.OnPropertyChanged("DecisionMaker"); + } + } + + /// + /// Type additional information to describe the opportunity, such as possible products to sell or past purchases from the customer. + /// + [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 a proposal has been developed for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("developproposal")] + public System.Nullable DevelopProposal + { + get + { + return this.GetAttributeValue>("developproposal"); + } + set + { + this.OnPropertyChanging("DevelopProposal"); + this.SetAttributeValue("developproposal", value); + this.OnPropertyChanged("DevelopProposal"); + } + } + + /// + /// Type the discount amount for the opportunity 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"); + } + } + + /// + /// Shows the Opportunity Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 Product Totals field to include additional savings for the customer in the opportunity. + /// + [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 expected closing date of the opportunity to help make accurate revenue forecasts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedclosedate")] + public System.Nullable EstimatedCloseDate + { + get + { + return this.GetAttributeValue>("estimatedclosedate"); + } + set + { + this.OnPropertyChanging("EstimatedCloseDate"); + this.SetAttributeValue("estimatedclosedate", value); + this.OnPropertyChanged("EstimatedCloseDate"); + } + } + + /// + /// Type the estimated revenue amount to indicate the potential sale or value of the opportunity for revenue forecasting. This field can be either system-populated or editable based on the selection in the Revenue field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedvalue")] + public Microsoft.Xrm.Sdk.Money EstimatedValue + { + get + { + return this.GetAttributeValue("estimatedvalue"); + } + set + { + this.OnPropertyChanging("EstimatedValue"); + this.SetAttributeValue("estimatedvalue", value); + this.OnPropertyChanged("EstimatedValue"); + } + } + + /// + /// Shows the Actual Revenue field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedvalue_base")] + public Microsoft.Xrm.Sdk.Money EstimatedValue_Base + { + get + { + return this.GetAttributeValue("estimatedvalue_base"); + } + } + + /// + /// Select whether the fit between the lead's requirements and your offerings was evaluated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("evaluatefit")] + public System.Nullable EvaluateFit + { + get + { + return this.GetAttributeValue>("evaluatefit"); + } + set + { + this.OnPropertyChanging("EvaluateFit"); + this.SetAttributeValue("evaluatefit", value); + this.OnPropertyChanged("EvaluateFit"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose whether the sales team has recorded detailed notes on the proposals and the account's responses. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filedebrief")] + public System.Nullable FileDebrief + { + get + { + return this.GetAttributeValue>("filedebrief"); + } + set + { + this.OnPropertyChanging("FileDebrief"); + this.SetAttributeValue("filedebrief", value); + this.OnPropertyChanged("FileDebrief"); + } + } + + /// + /// Enter the date and time when the final decision of the opportunity was made. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("finaldecisiondate")] + public System.Nullable FinalDecisionDate + { + get + { + return this.GetAttributeValue>("finaldecisiondate"); + } + set + { + this.OnPropertyChanging("FinalDecisionDate"); + this.SetAttributeValue("finaldecisiondate", value); + this.OnPropertyChanged("FinalDecisionDate"); + } + } + + /// + /// Type the cost of freight or shipping for the products included in the opportunity 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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount_base")] + public Microsoft.Xrm.Sdk.Money FreightAmount_Base + { + get + { + return this.GetAttributeValue("freightamount_base"); + } + } + + /// + /// Select whether information about competitors is included. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identifycompetitors")] + public System.Nullable IdentifyCompetitors + { + get + { + return this.GetAttributeValue>("identifycompetitors"); + } + set + { + this.OnPropertyChanging("IdentifyCompetitors"); + this.SetAttributeValue("identifycompetitors", value); + this.OnPropertyChanged("IdentifyCompetitors"); + } + } + + /// + /// Select whether the customer contacts for this opportunity have been identified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identifycustomercontacts")] + public System.Nullable IdentifyCustomerContacts + { + get + { + return this.GetAttributeValue>("identifycustomercontacts"); + } + set + { + this.OnPropertyChanging("IdentifyCustomerContacts"); + this.SetAttributeValue("identifycustomercontacts", value); + this.OnPropertyChanged("IdentifyCustomerContacts"); + } + } + + /// + /// Choose whether you have recorded who will pursue the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identifypursuitteam")] + public System.Nullable IdentifyPursuitTeam + { + get + { + return this.GetAttributeValue>("identifypursuitteam"); + } + set + { + this.OnPropertyChanging("IdentifyPursuitTeam"); + this.SetAttributeValue("identifypursuitteam", value); + this.OnPropertyChanged("IdentifyPursuitTeam"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose whether someone from the sales team contacted this lead earlier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialcommunication")] + public Microsoft.Xrm.Sdk.OptionSetValue InitialCommunication + { + get + { + return this.GetAttributeValue("initialcommunication"); + } + set + { + this.OnPropertyChanging("InitialCommunication"); + this.SetAttributeValue("initialcommunication", value); + this.OnPropertyChanged("InitialCommunication"); + } + } + + /// + /// Select whether the estimated revenue for the opportunity is calculated automatically based on the products entered or entered manually by a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isrevenuesystemcalculated")] + public System.Nullable IsRevenueSystemCalculated + { + get + { + return this.GetAttributeValue>("isrevenuesystemcalculated"); + } + set + { + this.OnPropertyChanging("IsRevenueSystemCalculated"); + this.SetAttributeValue("isrevenuesystemcalculated", value); + this.OnPropertyChanged("IsRevenueSystemCalculated"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a subject or descriptive name, such as the expected order or company name, for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose how high the level of need is for the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("need")] + public Microsoft.Xrm.Sdk.OptionSetValue Need + { + get + { + return this.GetAttributeValue("need"); + } + set + { + this.OnPropertyChanging("Need"); + this.SetAttributeValue("need", value); + this.OnPropertyChanged("Need"); + } + } + + /// + /// Unique identifier of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public System.Nullable OpportunityId + { + get + { + return this.GetAttributeValue>("opportunityid"); + } + set + { + this.OnPropertyChanging("OpportunityId"); + this.SetAttributeValue("opportunityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OpportunityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OpportunityId = value; + } + } + + /// + /// Select the expected value or priority of the opportunity based on revenue, customer status, or closing probability. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityratingcode")] + public Microsoft.Xrm.Sdk.OptionSetValue OpportunityRatingCode + { + get + { + return this.GetAttributeValue("opportunityratingcode"); + } + set + { + this.OnPropertyChanging("OpportunityRatingCode"); + this.SetAttributeValue("opportunityratingcode", value); + this.OnPropertyChanged("OpportunityRatingCode"); + } + } + + /// + /// Choose the lead that the opportunity was created from for reporting and analytics. The field is read-only after the opportunity is created and defaults to the correct lead when an opportunity is created from a converted lead. + /// + [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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose an account to connect this opportunity to, so that the relationship is visible in reports and analytics, and to provide a quick link to additional details, such as financial information and activities. + /// + [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"); + } + } + + /// + /// Choose a contact to connect this opportunity to, so that the relationship is visible in reports and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + public Microsoft.Xrm.Sdk.EntityReference ParentContactId + { + get + { + return this.GetAttributeValue("parentcontactid"); + } + set + { + this.OnPropertyChanging("ParentContactId"); + this.SetAttributeValue("parentcontactid", value); + this.OnPropertyChanged("ParentContactId"); + } + } + + /// + /// Information about whether the opportunity 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 whether the final proposal has been presented to the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentfinalproposal")] + public System.Nullable PresentFinalProposal + { + get + { + return this.GetAttributeValue>("presentfinalproposal"); + } + set + { + this.OnPropertyChanging("PresentFinalProposal"); + this.SetAttributeValue("presentfinalproposal", value); + this.OnPropertyChanged("PresentFinalProposal"); + } + } + + /// + /// Select whether a proposal for the opportunity has been presented to the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentproposal")] + public System.Nullable PresentProposal + { + get + { + return this.GetAttributeValue>("presentproposal"); + } + set + { + this.OnPropertyChanging("PresentProposal"); + this.SetAttributeValue("presentproposal", value); + this.OnPropertyChanged("PresentProposal"); + } + } + + /// + /// 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 opportunity. + /// + [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 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"); + } + } + + /// + /// 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 notes about the proposed solution for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("proposedsolution")] + public string ProposedSolution + { + get + { + return this.GetAttributeValue("proposedsolution"); + } + set + { + this.OnPropertyChanging("ProposedSolution"); + this.SetAttributeValue("proposedsolution", value); + this.OnPropertyChanged("ProposedSolution"); + } + } + + /// + /// Choose whether an individual or a committee will be involved in the purchase process for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchaseprocess")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseProcess + { + get + { + return this.GetAttributeValue("purchaseprocess"); + } + set + { + this.OnPropertyChanging("PurchaseProcess"); + this.SetAttributeValue("purchaseprocess", value); + this.OnPropertyChanged("PurchaseProcess"); + } + } + + /// + /// Choose how long the lead will likely take to make the purchase. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchasetimeframe")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseTimeframe + { + get + { + return this.GetAttributeValue("purchasetimeframe"); + } + set + { + this.OnPropertyChanging("PurchaseTimeframe"); + this.SetAttributeValue("purchasetimeframe", value); + this.OnPropertyChanged("PurchaseTimeframe"); + } + } + + /// + /// Select whether the decision about pursuing the opportunity has been made. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pursuitdecision")] + public System.Nullable PursuitDecision + { + get + { + return this.GetAttributeValue>("pursuitdecision"); + } + set + { + this.OnPropertyChanging("PursuitDecision"); + this.SetAttributeValue("pursuitdecision", value); + this.OnPropertyChanged("PursuitDecision"); + } + } + + /// + /// Type comments about the qualification or scoring of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualificationcomments")] + public string QualificationComments + { + get + { + return this.GetAttributeValue("qualificationcomments"); + } + set + { + this.OnPropertyChanging("QualificationComments"); + this.SetAttributeValue("qualificationcomments", value); + this.OnPropertyChanged("QualificationComments"); + } + } + + /// + /// Type comments about the quotes associated with the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotecomments")] + public string QuoteComments + { + get + { + return this.GetAttributeValue("quotecomments"); + } + set + { + this.OnPropertyChanging("QuoteComments"); + this.SetAttributeValue("quotecomments", value); + this.OnPropertyChanged("QuoteComments"); + } + } + + /// + /// Choose whether the proposal feedback has been captured and resolved for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resolvefeedback")] + public System.Nullable ResolveFeedback + { + get + { + return this.GetAttributeValue>("resolvefeedback"); + } + set + { + this.OnPropertyChanging("ResolveFeedback"); + this.SetAttributeValue("resolvefeedback", value); + this.OnPropertyChanged("ResolveFeedback"); + } + } + + /// + /// Select the sales stage of this opportunity to aid the sales team in their efforts to win this opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstage")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStage + { + get + { + return this.GetAttributeValue("salesstage"); + } + set + { + this.OnPropertyChanging("SalesStage"); + this.SetAttributeValue("salesstage", value); + this.OnPropertyChanged("SalesStage"); + } + } + + /// + /// Select the sales process stage for the opportunity to indicate the probability of closing the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstagecode")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStageCode + { + get + { + return this.GetAttributeValue("salesstagecode"); + } + set + { + this.OnPropertyChanging("SalesStageCode"); + this.SetAttributeValue("salesstagecode", value); + this.OnPropertyChanged("SalesStageCode"); + } + } + + /// + /// Enter the date and time of the prospecting follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_prospect")] + public System.Nullable ScheduleFollowup_Prospect + { + get + { + return this.GetAttributeValue>("schedulefollowup_prospect"); + } + set + { + this.OnPropertyChanging("ScheduleFollowup_Prospect"); + this.SetAttributeValue("schedulefollowup_prospect", value); + this.OnPropertyChanged("ScheduleFollowup_Prospect"); + } + } + + /// + /// Enter the date and time of the qualifying follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_qualify")] + public System.Nullable ScheduleFollowup_Qualify + { + get + { + return this.GetAttributeValue>("schedulefollowup_qualify"); + } + set + { + this.OnPropertyChanging("ScheduleFollowup_Qualify"); + this.SetAttributeValue("schedulefollowup_qualify", value); + this.OnPropertyChanged("ScheduleFollowup_Qualify"); + } + } + + /// + /// Enter the date and time of the proposal meeting for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleproposalmeeting")] + public System.Nullable ScheduleProposalMeeting + { + get + { + return this.GetAttributeValue>("scheduleproposalmeeting"); + } + set + { + this.OnPropertyChanging("ScheduleProposalMeeting"); + this.SetAttributeValue("scheduleproposalmeeting", value); + this.OnPropertyChanged("ScheduleProposalMeeting"); + } + } + + /// + /// Select whether a thank you note has been sent to the account for considering the proposal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendthankyounote")] + public System.Nullable SendThankYouNote + { + get + { + return this.GetAttributeValue>("sendthankyounote"); + } + set + { + this.OnPropertyChanging("SendThankYouNote"); + this.SetAttributeValue("sendthankyounote", value); + this.OnPropertyChanged("SendThankYouNote"); + } + } + + /// + /// 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 opportunity is open, won, or lost. Won and lost opportunities are read-only and can't be edited until 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 ((Xrm.Framework.CI.Common.Entities.OpportunityState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OpportunityState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the opportunity'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"); + } + } + + /// + /// Shows the ID of the workflow step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepid")] + public System.Nullable StepId + { + get + { + return this.GetAttributeValue>("stepid"); + } + set + { + this.OnPropertyChanging("StepId"); + this.SetAttributeValue("stepid", value); + this.OnPropertyChanged("StepId"); + } + } + + /// + /// Shows the current phase in the sales pipeline for the opportunity. This is updated by a workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepname")] + public string StepName + { + get + { + return this.GetAttributeValue("stepname"); + } + set + { + this.OnPropertyChanging("StepName"); + this.SetAttributeValue("stepname", value); + this.OnPropertyChanged("StepName"); + } + } + + /// + /// Select when the opportunity is likely to be closed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeline")] + public Microsoft.Xrm.Sdk.OptionSetValue TimeLine + { + get + { + return this.GetAttributeValue("timeline"); + } + set + { + this.OnPropertyChanging("TimeLine"); + this.SetAttributeValue("timeline", value); + this.OnPropertyChanged("TimeLine"); + } + } + + /// + /// 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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount")] + public Microsoft.Xrm.Sdk.Money TotalAmount + { + get + { + return this.GetAttributeValue("totalamount"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight + { + get + { + return this.GetAttributeValue("totalamountlessfreight"); + } + } + + /// + /// Shows the Total Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount + { + get + { + return this.GetAttributeValue("totaldiscountamount"); + } + } + + /// + /// Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity, based on the specified price list and quantities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount + { + get + { + return this.GetAttributeValue("totallineitemamount"); + } + } + + /// + /// Shows the Total Detail Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity. This value is reflected in the Total Detail Amount field on the opportunity and is added to any discount amount or rate specified on the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount"); + } + } + + /// + /// Shows the Total Line Item Discount Amount field to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity, included in the Total Amount field calculation for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax")] + public Microsoft.Xrm.Sdk.Money TotalTax + { + get + { + return this.GetAttributeValue("totaltax"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N CreatedOpportunity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedOpportunity_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedOpportunity_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedOpportunity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedOpportunity_BulkOperationLogs"); + this.SetRelatedEntities("CreatedOpportunity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedOpportunity_BulkOperationLogs"); + } + } + + /// + /// 1:N lead_qualifying_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_qualifying_opportunity")] + public System.Collections.Generic.IEnumerable lead_qualifying_opportunity + { + get + { + return this.GetRelatedEntities("lead_qualifying_opportunity", null); + } + set + { + this.OnPropertyChanging("lead_qualifying_opportunity"); + this.SetRelatedEntities("lead_qualifying_opportunity", null, value); + this.OnPropertyChanged("lead_qualifying_opportunity"); + } + } + + /// + /// 1:N opportunity_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_activity_parties")] + public System.Collections.Generic.IEnumerable opportunity_activity_parties + { + get + { + return this.GetRelatedEntities("opportunity_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunity_activity_parties"); + this.SetRelatedEntities("opportunity_activity_parties", null, value); + this.OnPropertyChanged("opportunity_activity_parties"); + } + } + + /// + /// 1:N Opportunity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ActivityPointers")] + public System.Collections.Generic.IEnumerable Opportunity_ActivityPointers + { + get + { + return this.GetRelatedEntities("Opportunity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Opportunity_ActivityPointers"); + this.SetRelatedEntities("Opportunity_ActivityPointers", null, value); + this.OnPropertyChanged("Opportunity_ActivityPointers"); + } + } + + /// + /// 1:N Opportunity_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Annotation")] + public System.Collections.Generic.IEnumerable Opportunity_Annotation + { + get + { + return this.GetRelatedEntities("Opportunity_Annotation", null); + } + set + { + this.OnPropertyChanging("Opportunity_Annotation"); + this.SetRelatedEntities("Opportunity_Annotation", null, value); + this.OnPropertyChanged("Opportunity_Annotation"); + } + } + + /// + /// 1:N Opportunity_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Appointments")] + public System.Collections.Generic.IEnumerable Opportunity_Appointments + { + get + { + return this.GetRelatedEntities("Opportunity_Appointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_Appointments"); + this.SetRelatedEntities("Opportunity_Appointments", null, value); + this.OnPropertyChanged("Opportunity_Appointments"); + } + } + + /// + /// 1:N Opportunity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_AsyncOperations")] + public System.Collections.Generic.IEnumerable Opportunity_AsyncOperations + { + get + { + return this.GetRelatedEntities("Opportunity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Opportunity_AsyncOperations"); + this.SetRelatedEntities("Opportunity_AsyncOperations", null, value); + this.OnPropertyChanged("Opportunity_AsyncOperations"); + } + } + + /// + /// 1:N Opportunity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Opportunity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Opportunity_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Opportunity_BulkDeleteFailures"); + this.SetRelatedEntities("Opportunity_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Opportunity_BulkDeleteFailures"); + } + } + + /// + /// 1:N opportunity_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections1")] + public System.Collections.Generic.IEnumerable opportunity_connections1 + { + get + { + return this.GetRelatedEntities("opportunity_connections1", null); + } + set + { + this.OnPropertyChanging("opportunity_connections1"); + this.SetRelatedEntities("opportunity_connections1", null, value); + this.OnPropertyChanged("opportunity_connections1"); + } + } + + /// + /// 1:N opportunity_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections2")] + public System.Collections.Generic.IEnumerable opportunity_connections2 + { + get + { + return this.GetRelatedEntities("opportunity_connections2", null); + } + set + { + this.OnPropertyChanging("opportunity_connections2"); + this.SetRelatedEntities("opportunity_connections2", null, value); + this.OnPropertyChanged("opportunity_connections2"); + } + } + + /// + /// 1:N opportunity_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable opportunity_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("opportunity_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_opportunity_roles"); + this.SetRelatedEntities("opportunity_customer_opportunity_roles", null, value); + this.OnPropertyChanged("opportunity_customer_opportunity_roles"); + } + } + + /// + /// 1:N Opportunity_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Opportunity_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Opportunity_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Opportunity_DuplicateBaseRecord"); + this.SetRelatedEntities("Opportunity_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Opportunity_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Opportunity_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Opportunity_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Opportunity_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Opportunity_DuplicateMatchingRecord"); + this.SetRelatedEntities("Opportunity_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Opportunity_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Opportunity_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Emails")] + public System.Collections.Generic.IEnumerable Opportunity_Emails + { + get + { + return this.GetRelatedEntities("Opportunity_Emails", null); + } + set + { + this.OnPropertyChanging("Opportunity_Emails"); + this.SetRelatedEntities("Opportunity_Emails", null, value); + this.OnPropertyChanged("Opportunity_Emails"); + } + } + + /// + /// 1:N Opportunity_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Faxes")] + public System.Collections.Generic.IEnumerable Opportunity_Faxes + { + get + { + return this.GetRelatedEntities("Opportunity_Faxes", null); + } + set + { + this.OnPropertyChanging("Opportunity_Faxes"); + this.SetRelatedEntities("Opportunity_Faxes", null, value); + this.OnPropertyChanged("Opportunity_Faxes"); + } + } + + /// + /// 1:N opportunity_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_invoices")] + public System.Collections.Generic.IEnumerable opportunity_invoices + { + get + { + return this.GetRelatedEntities("opportunity_invoices", null); + } + set + { + this.OnPropertyChanging("opportunity_invoices"); + this.SetRelatedEntities("opportunity_invoices", null, value); + this.OnPropertyChanged("opportunity_invoices"); + } + } + + /// + /// 1:N Opportunity_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Letters")] + public System.Collections.Generic.IEnumerable Opportunity_Letters + { + get + { + return this.GetRelatedEntities("Opportunity_Letters", null); + } + set + { + this.OnPropertyChanging("Opportunity_Letters"); + this.SetRelatedEntities("Opportunity_Letters", null, value); + this.OnPropertyChanged("Opportunity_Letters"); + } + } + + /// + /// 1:N Opportunity_OpportunityClose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_OpportunityClose")] + public System.Collections.Generic.IEnumerable Opportunity_OpportunityClose + { + get + { + return this.GetRelatedEntities("Opportunity_OpportunityClose", null); + } + set + { + this.OnPropertyChanging("Opportunity_OpportunityClose"); + this.SetRelatedEntities("Opportunity_OpportunityClose", null, value); + this.OnPropertyChanged("Opportunity_OpportunityClose"); + } + } + + /// + /// 1:N Opportunity_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Phonecalls")] + public System.Collections.Generic.IEnumerable Opportunity_Phonecalls + { + get + { + return this.GetRelatedEntities("Opportunity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Opportunity_Phonecalls"); + this.SetRelatedEntities("Opportunity_Phonecalls", null, value); + this.OnPropertyChanged("Opportunity_Phonecalls"); + } + } + + /// + /// 1:N opportunity_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_PostFollows")] + public System.Collections.Generic.IEnumerable opportunity_PostFollows + { + get + { + return this.GetRelatedEntities("opportunity_PostFollows", null); + } + set + { + this.OnPropertyChanging("opportunity_PostFollows"); + this.SetRelatedEntities("opportunity_PostFollows", null, value); + this.OnPropertyChanged("opportunity_PostFollows"); + } + } + + /// + /// 1:N opportunity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable opportunity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("opportunity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunity_principalobjectattributeaccess"); + this.SetRelatedEntities("opportunity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunity_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Opportunity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ProcessSessions")] + public System.Collections.Generic.IEnumerable Opportunity_ProcessSessions + { + get + { + return this.GetRelatedEntities("Opportunity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Opportunity_ProcessSessions"); + this.SetRelatedEntities("Opportunity_ProcessSessions", null, value); + this.OnPropertyChanged("Opportunity_ProcessSessions"); + } + } + + /// + /// 1:N opportunity_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_quotes")] + public System.Collections.Generic.IEnumerable opportunity_quotes + { + get + { + return this.GetRelatedEntities("opportunity_quotes", null); + } + set + { + this.OnPropertyChanging("opportunity_quotes"); + this.SetRelatedEntities("opportunity_quotes", null, value); + this.OnPropertyChanged("opportunity_quotes"); + } + } + + /// + /// 1:N Opportunity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Opportunity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Opportunity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Opportunity_RecurringAppointmentMasters"); + this.SetRelatedEntities("Opportunity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Opportunity_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N opportunity_sales_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_sales_orders")] + public System.Collections.Generic.IEnumerable opportunity_sales_orders + { + get + { + return this.GetRelatedEntities("opportunity_sales_orders", null); + } + set + { + this.OnPropertyChanging("opportunity_sales_orders"); + this.SetRelatedEntities("opportunity_sales_orders", null, value); + this.OnPropertyChanged("opportunity_sales_orders"); + } + } + + /// + /// 1:N Opportunity_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Opportunity_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Opportunity_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_ServiceAppointments"); + this.SetRelatedEntities("Opportunity_ServiceAppointments", null, value); + this.OnPropertyChanged("Opportunity_ServiceAppointments"); + } + } + + /// + /// 1:N Opportunity_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Opportunity_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Opportunity_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Opportunity_SharepointDocumentLocation"); + this.SetRelatedEntities("Opportunity_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Opportunity_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Opportunity_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Tasks")] + public System.Collections.Generic.IEnumerable Opportunity_Tasks + { + get + { + return this.GetRelatedEntities("Opportunity_Tasks", null); + } + set + { + this.OnPropertyChanging("Opportunity_Tasks"); + this.SetRelatedEntities("Opportunity_Tasks", null, value); + this.OnPropertyChanged("Opportunity_Tasks"); + } + } + + /// + /// 1:N opportunity_Teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_Teams")] + public System.Collections.Generic.IEnumerable opportunity_Teams + { + get + { + return this.GetRelatedEntities("opportunity_Teams", null); + } + set + { + this.OnPropertyChanging("opportunity_Teams"); + this.SetRelatedEntities("opportunity_Teams", null, value); + this.OnPropertyChanged("opportunity_Teams"); + } + } + + /// + /// 1:N product_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_opportunities")] + public System.Collections.Generic.IEnumerable product_opportunities + { + get + { + return this.GetRelatedEntities("product_opportunities", null); + } + set + { + this.OnPropertyChanging("product_opportunities"); + this.SetRelatedEntities("product_opportunities", null, value); + this.OnPropertyChanged("product_opportunities"); + } + } + + /// + /// 1:N userentityinstancedata_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunity")] + public System.Collections.Generic.IEnumerable userentityinstancedata_opportunity + { + get + { + return this.GetRelatedEntities("userentityinstancedata_opportunity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunity"); + this.SetRelatedEntities("userentityinstancedata_opportunity", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunity"); + } + } + + /// + /// N:N opportunitycompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunitycompetitors_association")] + public System.Collections.Generic.IEnumerable opportunitycompetitors_association + { + get + { + return this.GetRelatedEntities("opportunitycompetitors_association", null); + } + set + { + this.OnPropertyChanging("opportunitycompetitors_association"); + this.SetRelatedEntities("opportunitycompetitors_association", null, value); + this.OnPropertyChanged("opportunitycompetitors_association"); + } + } + + /// + /// N:1 business_unit_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_opportunities + { + get + { + return this.GetRelatedEntity("business_unit_opportunities", null); + } + } + + /// + /// N:1 campaign_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_opportunities")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_opportunities + { + get + { + return this.GetRelatedEntity("campaign_opportunities", null); + } + set + { + this.OnPropertyChanging("campaign_opportunities"); + this.SetRelatedEntity("campaign_opportunities", null, value); + this.OnPropertyChanged("campaign_opportunities"); + } + } + + /// + /// N:1 lk_opportunity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunity_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunity_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunity_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunitybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunitybase_createdby + { + get + { + return this.GetRelatedEntity("lk_opportunitybase_createdby", null); + } + } + + /// + /// N:1 lk_opportunitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunitybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_opportunitybase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account opportunity_customer_accounts + { + get + { + return this.GetRelatedEntity("opportunity_customer_accounts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_accounts"); + this.SetRelatedEntity("opportunity_customer_accounts", null, value); + this.OnPropertyChanged("opportunity_customer_accounts"); + } + } + + /// + /// N:1 opportunity_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact opportunity_customer_contacts + { + get + { + return this.GetRelatedEntity("opportunity_customer_contacts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_contacts"); + this.SetRelatedEntity("opportunity_customer_contacts", null, value); + this.OnPropertyChanged("opportunity_customer_contacts"); + } + } + + /// + /// N:1 opportunity_originating_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_originating_lead")] + public Xrm.Framework.CI.Common.Entities.Lead opportunity_originating_lead + { + get + { + return this.GetRelatedEntity("opportunity_originating_lead", null); + } + set + { + this.OnPropertyChanging("opportunity_originating_lead"); + this.SetRelatedEntity("opportunity_originating_lead", null, value); + this.OnPropertyChanged("opportunity_originating_lead"); + } + } + + /// + /// N:1 opportunity_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser opportunity_owning_user + { + get + { + return this.GetRelatedEntity("opportunity_owning_user", null); + } + } + + /// + /// N:1 opportunity_parent_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_account")] + public Xrm.Framework.CI.Common.Entities.Account opportunity_parent_account + { + get + { + return this.GetRelatedEntity("opportunity_parent_account", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_account"); + this.SetRelatedEntity("opportunity_parent_account", null, value); + this.OnPropertyChanged("opportunity_parent_account"); + } + } + + /// + /// N:1 opportunity_parent_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_contact")] + public Xrm.Framework.CI.Common.Entities.Contact opportunity_parent_contact + { + get + { + return this.GetRelatedEntity("opportunity_parent_contact", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_contact"); + this.SetRelatedEntity("opportunity_parent_contact", null, value); + this.OnPropertyChanged("opportunity_parent_contact"); + } + } + + /// + /// N:1 price_level_opportunties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_opportunties")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_opportunties + { + get + { + return this.GetRelatedEntity("price_level_opportunties", null); + } + set + { + this.OnPropertyChanging("price_level_opportunties"); + this.SetRelatedEntity("price_level_opportunties", null, value); + this.OnPropertyChanged("price_level_opportunties"); + } + } + + /// + /// N:1 processstage_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_opportunity")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_opportunity + { + get + { + return this.GetRelatedEntity("processstage_opportunity", null); + } + set + { + this.OnPropertyChanging("processstage_opportunity"); + this.SetRelatedEntity("processstage_opportunity", null, value); + this.OnPropertyChanged("processstage_opportunity"); + } + } + + /// + /// N:1 team_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunities")] + public Xrm.Framework.CI.Common.Entities.Team team_opportunities + { + get + { + return this.GetRelatedEntity("team_opportunities", null); + } + } + + /// + /// N:1 transactioncurrency_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunity")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_opportunity + { + get + { + return this.GetRelatedEntity("transactioncurrency_opportunity", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunity"); + this.SetRelatedEntity("transactioncurrency_opportunity", null, value); + this.OnPropertyChanged("transactioncurrency_opportunity"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OpportunityCloseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that is created automatically when an opportunity is closed, containing information such as the description of the closing and actual revenue. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunityclose")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OpportunityClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OpportunityClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunityclose"; + + public const int EntityTypeCode = 4208; + + 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 opportunity 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 opportunity 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 opportunity 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 revenue generated for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualrevenue")] + public Microsoft.Xrm.Sdk.Money ActualRevenue + { + get + { + return this.GetAttributeValue("actualrevenue"); + } + set + { + this.OnPropertyChanging("ActualRevenue"); + this.SetAttributeValue("actualrevenue", value); + this.OnPropertyChanged("ActualRevenue"); + } + } + + /// + /// Shows the Actual Revenue field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualrevenue_base")] + public Microsoft.Xrm.Sdk.Money ActualRevenue_Base + { + get + { + return this.GetAttributeValue("actualrevenue_base"); + } + } + + /// + /// Actual start time of the opportunity 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"); + } + } + + /// + /// Category of the opportunity 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"); + } + } + + /// + /// Unique identifier of the competitor with which the opportunity close activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public Microsoft.Xrm.Sdk.EntityReference CompetitorId + { + get + { + return this.GetAttributeValue("competitorid"); + } + set + { + this.OnPropertyChanging("CompetitorId"); + this.SetAttributeValue("competitorid", value); + this.OnPropertyChanged("CompetitorId"); + } + } + + /// + /// Unique identifier of the user who created the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the opportunity 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 opportunityclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Activity that is created automatically when an opportunity is closed, containing information such as the description of the closing and actual revenue. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the opportunity 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"); + } + } + + /// + /// 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 opportunity 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"); + } + } + + /// + /// Unique identifier of the user who last modified the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the opportunity 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 opportunityclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the opportunity closed. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the opportunity close 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 opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Scheduled duration of the opportunity close activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the opportunity 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 opportunity 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 service with which the opportunity 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"); + } + } + + /// + /// Shows whether the opportunity close activity is open, completed, or canceled. By default, opportunity close activities are completed unless the opportunity is reactivated, which updates them to canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.OpportunityCloseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OpportunityCloseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the opportunity 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"); + } + } + + /// + /// Subcategory of the opportunity 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 opportunity 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N opportunityclose_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityclose_activity_parties")] + public System.Collections.Generic.IEnumerable opportunityclose_activity_parties + { + get + { + return this.GetRelatedEntities("opportunityclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunityclose_activity_parties"); + this.SetRelatedEntities("opportunityclose_activity_parties", null, value); + this.OnPropertyChanged("opportunityclose_activity_parties"); + } + } + + /// + /// 1:N OpportunityClose_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_Annotation")] + public System.Collections.Generic.IEnumerable OpportunityClose_Annotation + { + get + { + return this.GetRelatedEntities("OpportunityClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_Annotation"); + this.SetRelatedEntities("OpportunityClose_Annotation", null, value); + this.OnPropertyChanged("OpportunityClose_Annotation"); + } + } + + /// + /// 1:N OpportunityClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_AsyncOperations")] + public System.Collections.Generic.IEnumerable OpportunityClose_AsyncOperations + { + get + { + return this.GetRelatedEntities("OpportunityClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_AsyncOperations"); + this.SetRelatedEntities("OpportunityClose_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityClose_AsyncOperations"); + } + } + + /// + /// 1:N OpportunityClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable OpportunityClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("OpportunityClose_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_BulkDeleteFailures"); + this.SetRelatedEntities("OpportunityClose_BulkDeleteFailures", null, value); + this.OnPropertyChanged("OpportunityClose_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityclose")] + public System.Collections.Generic.IEnumerable userentityinstancedata_opportunityclose + { + get + { + return this.GetRelatedEntities("userentityinstancedata_opportunityclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityclose"); + this.SetRelatedEntities("userentityinstancedata_opportunityclose", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityclose"); + } + } + + /// + /// N:1 activity_pointer_opportunity_close + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_opportunity_close")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_opportunity_close + { + get + { + return this.GetRelatedEntity("activity_pointer_opportunity_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_opportunity_close"); + this.SetRelatedEntity("activity_pointer_opportunity_close", null, value); + this.OnPropertyChanged("activity_pointer_opportunity_close"); + } + } + + /// + /// N:1 business_unit_opportunity_close_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunity_close_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_opportunity_close_activities + { + get + { + return this.GetRelatedEntity("business_unit_opportunity_close_activities", null); + } + } + + /// + /// N:1 competitor_opportunity_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_opportunity_activities")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_opportunity_activities + { + get + { + return this.GetRelatedEntity("competitor_opportunity_activities", null); + } + set + { + this.OnPropertyChanging("competitor_opportunity_activities"); + this.SetRelatedEntity("competitor_opportunity_activities", null, value); + this.OnPropertyChanged("competitor_opportunity_activities"); + } + } + + /// + /// N:1 lk_opportunityclose_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_createdby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_createdby", null); + } + } + + /// + /// N:1 lk_opportunityclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunityclose_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_modifiedby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_modifiedby", null); + } + } + + /// + /// N:1 lk_opportunityclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Opportunity_OpportunityClose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_OpportunityClose")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_OpportunityClose + { + get + { + return this.GetRelatedEntity("Opportunity_OpportunityClose", null); + } + set + { + this.OnPropertyChanging("Opportunity_OpportunityClose"); + this.SetRelatedEntity("Opportunity_OpportunityClose", null, value); + this.OnPropertyChanged("Opportunity_OpportunityClose"); + } + } + + /// + /// N:1 service_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.Service service_opportunityclose + { + get + { + return this.GetRelatedEntity("service_opportunityclose", null); + } + set + { + this.OnPropertyChanging("service_opportunityclose"); + this.SetRelatedEntity("service_opportunityclose", null, value); + this.OnPropertyChanged("service_opportunityclose"); + } + } + + /// + /// N:1 team_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.Team team_opportunityclose + { + get + { + return this.GetRelatedEntity("team_opportunityclose", null); + } + } + + /// + /// N:1 transactioncurrency_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_opportunityclose + { + get + { + return this.GetRelatedEntity("transactioncurrency_opportunityclose", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunityclose"); + this.SetRelatedEntity("transactioncurrency_opportunityclose", null, value); + this.OnPropertyChanged("transactioncurrency_opportunityclose"); + } + } + + /// + /// N:1 user_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_opportunityclose + { + get + { + return this.GetRelatedEntity("user_opportunityclose", null); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunitycompetitors")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OpportunityCompetitors : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OpportunityCompetitors() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunitycompetitors"; + + public const int EntityTypeCode = 25; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the opportunity competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitycompetitorid")] + public System.Nullable OpportunityCompetitorId + { + get + { + return this.GetAttributeValue>("opportunitycompetitorid"); + } + set + { + this.OnPropertyChanging("OpportunityCompetitorId"); + this.SetAttributeValue("opportunitycompetitorid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OpportunityCompetitorId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitycompetitorid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OpportunityCompetitorId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public System.Nullable OpportunityId + { + get + { + return this.GetAttributeValue>("opportunityid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N opportunitycompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunitycompetitors_association")] + public System.Collections.Generic.IEnumerable opportunitycompetitors_association + { + get + { + return this.GetRelatedEntities("opportunitycompetitors_association", null); + } + set + { + this.OnPropertyChanging("opportunitycompetitors_association"); + this.SetRelatedEntities("opportunitycompetitors_association", null, value); + this.OnPropertyChanged("opportunitycompetitors_association"); + } + } + } + + /// + /// Association between an opportunity and a product. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunityproduct")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OpportunityProduct : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OpportunityProduct() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunityproduct"; + + public const int EntityTypeCode = 1083; + + 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 opportunity 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the opportunity product, such as manufacturing details. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the total amount due for the opportunity product, calculated on the Amount value minus the Manual Discount amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount + { + get + { + return this.GetAttributeValue("extendedamount"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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 pricing on the opportunity product reflects an override of the product catalog pricing. + /// + [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"); + } + } + + /// + /// For system use only. + /// + [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 opportunity product to easily identify the product in the opportunity documents and make sure it's listed in the correct order. + /// + [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 opportunity product to deduct any negotiated or other savings from the product total. + /// + [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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the opportunityproduct. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the opportunity with which the opportunity product is associated. + /// + [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"); + } + } + + /// + /// Unique identifier of the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityproductid")] + public System.Nullable OpportunityProductId + { + get + { + return this.GetAttributeValue>("opportunityproductid"); + } + set + { + this.OnPropertyChanging("OpportunityProductId"); + this.SetAttributeValue("opportunityproductid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OpportunityProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityproductid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OpportunityProductId = value; + } + } + + /// + /// Select the status of the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitystatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue OpportunityStateCode + { + get + { + return this.GetAttributeValue("opportunitystatecode"); + } + } + + /// + /// 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 opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Shows the price per unit of the opportunity product, based on the price list specified on the parent opportunity. + /// + [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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priceperunit_base")] + public Microsoft.Xrm.Sdk.Money PricePerUnit_Base + { + get + { + return this.GetAttributeValue("priceperunit_base"); + } + } + + /// + /// Select the pricing error for the opportunity product. + /// + [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"); + } + } + + /// + /// Type a detailed product description or additional notes about the opportunity product, such as talking points or product updates, that will assist the sales team when they discuss the product with the customer. + /// + [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 opportunity to link the product's pricing and other information to the opportunity. + /// + [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"); + } + } + + /// + /// Type the amount or quantity of the product the customer would like to purchase. + /// + [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 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"); + } + } + + /// + /// Type the tax amount to be applied on the opportunity 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the opportunity product. + /// + [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"); + } + } + + /// + /// Shows the Volume Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("volumediscountamount_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// 1:N OpportunityProduct_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_AsyncOperations")] + public System.Collections.Generic.IEnumerable OpportunityProduct_AsyncOperations + { + get + { + return this.GetRelatedEntities("OpportunityProduct_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_AsyncOperations"); + this.SetRelatedEntities("OpportunityProduct_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityProduct_AsyncOperations"); + } + } + + /// + /// 1:N OpportunityProduct_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable OpportunityProduct_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("OpportunityProduct_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_BulkDeleteFailures"); + this.SetRelatedEntities("OpportunityProduct_BulkDeleteFailures", null, value); + this.OnPropertyChanged("OpportunityProduct_BulkDeleteFailures"); + } + } + + /// + /// 1:N opportunityproduct_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityproduct_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable opportunityproduct_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("opportunityproduct_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunityproduct_principalobjectattributeaccess"); + this.SetRelatedEntities("opportunityproduct_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunityproduct_principalobjectattributeaccess"); + } + } + + /// + /// 1:N OpportunityProduct_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_ProcessSessions")] + public System.Collections.Generic.IEnumerable OpportunityProduct_ProcessSessions + { + get + { + return this.GetRelatedEntities("OpportunityProduct_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_ProcessSessions"); + this.SetRelatedEntities("OpportunityProduct_ProcessSessions", null, value); + this.OnPropertyChanged("OpportunityProduct_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_opportunityproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityproduct")] + public System.Collections.Generic.IEnumerable userentityinstancedata_opportunityproduct + { + get + { + return this.GetRelatedEntities("userentityinstancedata_opportunityproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityproduct"); + this.SetRelatedEntities("userentityinstancedata_opportunityproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityproduct"); + } + } + + /// + /// N:1 lk_opportunityproduct_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproduct_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityproduct_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunityproduct_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproduct_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityproduct_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunityproductbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproductbase_createdby + { + get + { + return this.GetRelatedEntity("lk_opportunityproductbase_createdby", null); + } + } + + /// + /// N:1 lk_opportunityproductbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproductbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_opportunityproductbase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_products")] + public Xrm.Framework.CI.Common.Entities.Product opportunity_products + { + get + { + return this.GetRelatedEntity("opportunity_products", null); + } + set + { + this.OnPropertyChanging("opportunity_products"); + this.SetRelatedEntity("opportunity_products", null, value); + this.OnPropertyChanged("opportunity_products"); + } + } + + /// + /// N:1 product_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_opportunities")] + public Xrm.Framework.CI.Common.Entities.Opportunity product_opportunities + { + get + { + return this.GetRelatedEntity("product_opportunities", null); + } + set + { + this.OnPropertyChanging("product_opportunities"); + this.SetRelatedEntity("product_opportunities", null, value); + this.OnPropertyChanged("product_opportunities"); + } + } + + /// + /// N:1 transactioncurrency_opportunityproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityproduct")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_opportunityproduct + { + get + { + return this.GetRelatedEntity("transactioncurrency_opportunityproduct", null); + } + } + + /// + /// N:1 unit_of_measurement_opportunity_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_opportunity_products")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_opportunity_products + { + get + { + return this.GetRelatedEntity("unit_of_measurement_opportunity_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_opportunity_products"); + this.SetRelatedEntity("unit_of_measurement_opportunity_products", null, value); + this.OnPropertyChanged("unit_of_measurement_opportunity_products"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OrderCloseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity generated automatically when an order is closed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("orderclose")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OrderClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OrderClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "orderclose"; + + public const int EntityTypeCode = 4209; + + 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 order 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 order 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 order 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 order 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"); + } + } + + /// + /// Category of the order 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"); + } + } + + /// + /// Unique identifier of the user who created the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the order 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 orderclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Activity generated automatically when an order 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the order 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"); + } + } + + /// + /// 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 order 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"); + } + } + + /// + /// Unique identifier of the user who last modified the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the order 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 orderclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Order number. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the order close 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 order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Order 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"); + } + } + + /// + /// Unique identifier of the order with which the order close activity is associated. + /// + [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"); + } + } + + /// + /// Scheduled duration of the order close activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the order 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 order 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 service with which the order 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"); + } + } + + /// + /// Shows whether the order close activity is open, completed, or canceled. By default, order 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 ((Xrm.Framework.CI.Common.Entities.OrderCloseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OrderCloseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the order 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"); + } + } + + /// + /// Subcategory of the order 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 order 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"); + } + } + + /// + /// 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 order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N orderclose_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("orderclose_activity_parties")] + public System.Collections.Generic.IEnumerable orderclose_activity_parties + { + get + { + return this.GetRelatedEntities("orderclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("orderclose_activity_parties"); + this.SetRelatedEntities("orderclose_activity_parties", null, value); + this.OnPropertyChanged("orderclose_activity_parties"); + } + } + + /// + /// 1:N OrderClose_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_Annotation")] + public System.Collections.Generic.IEnumerable OrderClose_Annotation + { + get + { + return this.GetRelatedEntities("OrderClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OrderClose_Annotation"); + this.SetRelatedEntities("OrderClose_Annotation", null, value); + this.OnPropertyChanged("OrderClose_Annotation"); + } + } + + /// + /// 1:N OrderClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_AsyncOperations")] + public System.Collections.Generic.IEnumerable OrderClose_AsyncOperations + { + get + { + return this.GetRelatedEntities("OrderClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OrderClose_AsyncOperations"); + this.SetRelatedEntities("OrderClose_AsyncOperations", null, value); + this.OnPropertyChanged("OrderClose_AsyncOperations"); + } + } + + /// + /// 1:N OrderClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable OrderClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("OrderClose_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("OrderClose_BulkDeleteFailures"); + this.SetRelatedEntities("OrderClose_BulkDeleteFailures", null, value); + this.OnPropertyChanged("OrderClose_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_orderclose")] + public System.Collections.Generic.IEnumerable userentityinstancedata_orderclose + { + get + { + return this.GetRelatedEntities("userentityinstancedata_orderclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_orderclose"); + this.SetRelatedEntities("userentityinstancedata_orderclose", null, value); + this.OnPropertyChanged("userentityinstancedata_orderclose"); + } + } + + /// + /// N:1 activity_pointer_order_close + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_order_close")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_order_close + { + get + { + return this.GetRelatedEntity("activity_pointer_order_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_order_close"); + this.SetRelatedEntity("activity_pointer_order_close", null, value); + this.OnPropertyChanged("activity_pointer_order_close"); + } + } + + /// + /// N:1 business_unit_order_close_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_order_close_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_order_close_activities + { + get + { + return this.GetRelatedEntity("business_unit_order_close_activities", null); + } + } + + /// + /// N:1 lk_orderclose_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_createdby + { + get + { + return this.GetRelatedEntity("lk_orderclose_createdby", null); + } + } + + /// + /// N:1 lk_orderclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_orderclose_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_orderclose_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_modifiedby + { + get + { + return this.GetRelatedEntity("lk_orderclose_modifiedby", null); + } + } + + /// + /// N:1 lk_orderclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_orderclose_modifiedonbehalfby", null); + } + } + + /// + /// N:1 SalesOrder_OrderClose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_OrderClose")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_OrderClose + { + get + { + return this.GetRelatedEntity("SalesOrder_OrderClose", null); + } + set + { + this.OnPropertyChanging("SalesOrder_OrderClose"); + this.SetRelatedEntity("SalesOrder_OrderClose", null, value); + this.OnPropertyChanged("SalesOrder_OrderClose"); + } + } + + /// + /// N:1 service_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_orderclose")] + public Xrm.Framework.CI.Common.Entities.Service service_orderclose + { + get + { + return this.GetRelatedEntity("service_orderclose", null); + } + set + { + this.OnPropertyChanging("service_orderclose"); + this.SetRelatedEntity("service_orderclose", null, value); + this.OnPropertyChanged("service_orderclose"); + } + } + + /// + /// N:1 team_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orderclose")] + public Xrm.Framework.CI.Common.Entities.Team team_orderclose + { + get + { + return this.GetRelatedEntity("team_orderclose", null); + } + } + + /// + /// N:1 user_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_orderclose")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_orderclose + { + get + { + return this.GetRelatedEntity("user_orderclose", null); + } + } + } + + /// + /// Top level of the Microsoft Dynamics CRM business hierarchy. The organization can be a specific business, holding company, or corporation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("organization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Organization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Organization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "organization"; + + public const int EntityTypeCode = 1019; + + 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 template to be used for acknowledgement when a user unsubscribes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("acknowledgementtemplateid")] + public Microsoft.Xrm.Sdk.EntityReference AcknowledgementTemplateId + { + get + { + return this.GetAttributeValue("acknowledgementtemplateid"); + } + set + { + this.OnPropertyChanging("AcknowledgementTemplateId"); + this.SetAttributeValue("acknowledgementtemplateid", value); + this.OnPropertyChanged("AcknowledgementTemplateId"); + } + } + + /// + /// Indicates whether background address book synchronization in Microsoft Office Outlook is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowaddressbooksyncs")] + public System.Nullable AllowAddressBookSyncs + { + get + { + return this.GetAttributeValue>("allowaddressbooksyncs"); + } + set + { + this.OnPropertyChanging("AllowAddressBookSyncs"); + this.SetAttributeValue("allowaddressbooksyncs", value); + this.OnPropertyChanged("AllowAddressBookSyncs"); + } + } + + /// + /// Indicates whether automatic response creation is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowautoresponsecreation")] + public System.Nullable AllowAutoResponseCreation + { + get + { + return this.GetAttributeValue>("allowautoresponsecreation"); + } + set + { + this.OnPropertyChanging("AllowAutoResponseCreation"); + this.SetAttributeValue("allowautoresponsecreation", value); + this.OnPropertyChanged("AllowAutoResponseCreation"); + } + } + + /// + /// Indicates whether automatic unsubscribe is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowautounsubscribe")] + public System.Nullable AllowAutoUnsubscribe + { + get + { + return this.GetAttributeValue>("allowautounsubscribe"); + } + set + { + this.OnPropertyChanging("AllowAutoUnsubscribe"); + this.SetAttributeValue("allowautounsubscribe", value); + this.OnPropertyChanged("AllowAutoUnsubscribe"); + } + } + + /// + /// Indicates whether automatic unsubscribe acknowledgement email is allowed to send. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowautounsubscribeacknowledgement")] + public System.Nullable AllowAutoUnsubscribeAcknowledgement + { + get + { + return this.GetAttributeValue>("allowautounsubscribeacknowledgement"); + } + set + { + this.OnPropertyChanging("AllowAutoUnsubscribeAcknowledgement"); + this.SetAttributeValue("allowautounsubscribeacknowledgement", value); + this.OnPropertyChanged("AllowAutoUnsubscribeAcknowledgement"); + } + } + + /// + /// Indicates whether Outlook Client message bar advertisement is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowclientmessagebarad")] + public System.Nullable AllowClientMessageBarAd + { + get + { + return this.GetAttributeValue>("allowclientmessagebarad"); + } + set + { + this.OnPropertyChanging("AllowClientMessageBarAd"); + this.SetAttributeValue("allowclientmessagebarad", value); + this.OnPropertyChanged("AllowClientMessageBarAd"); + } + } + + /// + /// Indicates whether auditing of changes to entity is allowed when no attributes have changed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowentityonlyaudit")] + public System.Nullable AllowEntityOnlyAudit + { + get + { + return this.GetAttributeValue>("allowentityonlyaudit"); + } + set + { + this.OnPropertyChanging("AllowEntityOnlyAudit"); + this.SetAttributeValue("allowentityonlyaudit", value); + this.OnPropertyChanged("AllowEntityOnlyAudit"); + } + } + + /// + /// Indicates whether marketing emails execution is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowmarketingemailexecution")] + public System.Nullable AllowMarketingEmailExecution + { + get + { + return this.GetAttributeValue>("allowmarketingemailexecution"); + } + set + { + this.OnPropertyChanging("AllowMarketingEmailExecution"); + this.SetAttributeValue("allowmarketingemailexecution", value); + this.OnPropertyChanged("AllowMarketingEmailExecution"); + } + } + + /// + /// Indicates whether background offline synchronization in Microsoft Office Outlook is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowofflinescheduledsyncs")] + public System.Nullable AllowOfflineScheduledSyncs + { + get + { + return this.GetAttributeValue>("allowofflinescheduledsyncs"); + } + set + { + this.OnPropertyChanging("AllowOfflineScheduledSyncs"); + this.SetAttributeValue("allowofflinescheduledsyncs", value); + this.OnPropertyChanged("AllowOfflineScheduledSyncs"); + } + } + + /// + /// Indicates whether scheduled synchronizations to Outlook are allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowoutlookscheduledsyncs")] + public System.Nullable AllowOutlookScheduledSyncs + { + get + { + return this.GetAttributeValue>("allowoutlookscheduledsyncs"); + } + set + { + this.OnPropertyChanging("AllowOutlookScheduledSyncs"); + this.SetAttributeValue("allowoutlookscheduledsyncs", value); + this.OnPropertyChanged("AllowOutlookScheduledSyncs"); + } + } + + /// + /// Indicates whether users are allowed to send email to unresolved parties (parties must still have an email address). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowunresolvedpartiesonemailsend")] + public System.Nullable AllowUnresolvedPartiesOnEmailSend + { + get + { + return this.GetAttributeValue>("allowunresolvedpartiesonemailsend"); + } + set + { + this.OnPropertyChanging("AllowUnresolvedPartiesOnEmailSend"); + this.SetAttributeValue("allowunresolvedpartiesonemailsend", value); + this.OnPropertyChanged("AllowUnresolvedPartiesOnEmailSend"); + } + } + + /// + /// Indicates whether individuals can select their form mode preference in their personal options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowuserformmodepreference")] + public System.Nullable AllowUserFormModePreference + { + get + { + return this.GetAttributeValue>("allowuserformmodepreference"); + } + set + { + this.OnPropertyChanging("AllowUserFormModePreference"); + this.SetAttributeValue("allowuserformmodepreference", value); + this.OnPropertyChanged("AllowUserFormModePreference"); + } + } + + /// + /// Indicates whether the showing tablet application notification bars in a browser is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowusersseeappdownloadmessage")] + public System.Nullable AllowUsersSeeAppdownloadMessage + { + get + { + return this.GetAttributeValue>("allowusersseeappdownloadmessage"); + } + set + { + this.OnPropertyChanging("AllowUsersSeeAppdownloadMessage"); + this.SetAttributeValue("allowusersseeappdownloadmessage", value); + this.OnPropertyChanged("AllowUsersSeeAppdownloadMessage"); + } + } + + /// + /// Indicates whether Web-based export of grids to Microsoft Office Excel is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowwebexcelexport")] + public System.Nullable AllowWebExcelExport + { + get + { + return this.GetAttributeValue>("allowwebexcelexport"); + } + set + { + this.OnPropertyChanging("AllowWebExcelExport"); + this.SetAttributeValue("allowwebexcelexport", value); + this.OnPropertyChanged("AllowWebExcelExport"); + } + } + + /// + /// AM designator to use throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amdesignator")] + public string AMDesignator + { + get + { + return this.GetAttributeValue("amdesignator"); + } + set + { + this.OnPropertyChanging("AMDesignator"); + this.SetAttributeValue("amdesignator", value); + this.OnPropertyChanged("AMDesignator"); + } + } + + /// + /// Unique identifier of the base currency of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference BaseCurrencyId + { + get + { + return this.GetAttributeValue("basecurrencyid"); + } + set + { + this.OnPropertyChanging("BaseCurrencyId"); + this.SetAttributeValue("basecurrencyid", value); + this.OnPropertyChanged("BaseCurrencyId"); + } + } + + /// + /// Number of decimal places that can be used for the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencyprecision")] + public System.Nullable BaseCurrencyPrecision + { + get + { + return this.GetAttributeValue>("basecurrencyprecision"); + } + } + + /// + /// Symbol used for the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencysymbol")] + public string BaseCurrencySymbol + { + get + { + return this.GetAttributeValue("basecurrencysymbol"); + } + } + + /// + /// Api Key to be used in requests to Bing Maps services. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bingmapsapikey")] + public string BingMapsApiKey + { + get + { + return this.GetAttributeValue("bingmapsapikey"); + } + set + { + this.OnPropertyChanging("BingMapsApiKey"); + this.SetAttributeValue("bingmapsapikey", value); + this.OnPropertyChanged("BingMapsApiKey"); + } + } + + /// + /// Prevent upload or download of certain attachment types that are considered dangerous. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("blockedattachments")] + public string BlockedAttachments + { + get + { + return this.GetAttributeValue("blockedattachments"); + } + set + { + this.OnPropertyChanging("BlockedAttachments"); + this.SetAttributeValue("blockedattachments", value); + this.OnPropertyChanged("BlockedAttachments"); + } + } + + /// + /// Prefix used for bulk operation numbering. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationprefix")] + public string BulkOperationPrefix + { + get + { + return this.GetAttributeValue("bulkoperationprefix"); + } + set + { + this.OnPropertyChanging("BulkOperationPrefix"); + this.SetAttributeValue("bulkoperationprefix", value); + this.OnPropertyChanged("BulkOperationPrefix"); + } + } + + /// + /// Unique identifier of the business closure calendar of organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessclosurecalendarid")] + public System.Nullable BusinessClosureCalendarId + { + get + { + return this.GetAttributeValue>("businessclosurecalendarid"); + } + set + { + this.OnPropertyChanging("BusinessClosureCalendarId"); + this.SetAttributeValue("businessclosurecalendarid", value); + this.OnPropertyChanged("BusinessClosureCalendarId"); + } + } + + /// + /// Calendar type for the system. Set to Gregorian US by default. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendartype")] + public System.Nullable CalendarType + { + get + { + return this.GetAttributeValue>("calendartype"); + } + set + { + this.OnPropertyChanging("CalendarType"); + this.SetAttributeValue("calendartype", value); + this.OnPropertyChanged("CalendarType"); + } + } + + /// + /// Prefix used for campaign numbering. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignprefix")] + public string CampaignPrefix + { + get + { + return this.GetAttributeValue("campaignprefix"); + } + set + { + this.OnPropertyChanging("CampaignPrefix"); + this.SetAttributeValue("campaignprefix", value); + this.OnPropertyChanged("CampaignPrefix"); + } + } + + /// + /// Prefix to use for all cases throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caseprefix")] + public string CasePrefix + { + get + { + return this.GetAttributeValue("caseprefix"); + } + set + { + this.OnPropertyChanging("CasePrefix"); + this.SetAttributeValue("caseprefix", value); + this.OnPropertyChanged("CasePrefix"); + } + } + + /// + /// Prefix to use for all contracts throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractprefix")] + public string ContractPrefix + { + get + { + return this.GetAttributeValue("contractprefix"); + } + set + { + this.OnPropertyChanging("ContractPrefix"); + this.SetAttributeValue("contractprefix", value); + this.OnPropertyChanged("ContractPrefix"); + } + } + + /// + /// Unique identifier of the user who created the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the organization 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 organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of decimal places that can be used for currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencydecimalprecision")] + public System.Nullable CurrencyDecimalPrecision + { + get + { + return this.GetAttributeValue>("currencydecimalprecision"); + } + set + { + this.OnPropertyChanging("CurrencyDecimalPrecision"); + this.SetAttributeValue("currencydecimalprecision", value); + this.OnPropertyChanged("CurrencyDecimalPrecision"); + } + } + + /// + /// Indicates whether to display money fields with currency code or currency symbol. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencydisplayoption")] + public Microsoft.Xrm.Sdk.OptionSetValue CurrencyDisplayOption + { + get + { + return this.GetAttributeValue("currencydisplayoption"); + } + set + { + this.OnPropertyChanging("CurrencyDisplayOption"); + this.SetAttributeValue("currencydisplayoption", value); + this.OnPropertyChanged("CurrencyDisplayOption"); + } + } + + /// + /// Information about how currency symbols are placed throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue CurrencyFormatCode + { + get + { + return this.GetAttributeValue("currencyformatcode"); + } + set + { + this.OnPropertyChanging("CurrencyFormatCode"); + this.SetAttributeValue("currencyformatcode", value); + this.OnPropertyChanged("CurrencyFormatCode"); + } + } + + /// + /// Symbol used for currency throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencysymbol")] + public string CurrencySymbol + { + get + { + return this.GetAttributeValue("currencysymbol"); + } + set + { + this.OnPropertyChanging("CurrencySymbol"); + this.SetAttributeValue("currencysymbol", value); + this.OnPropertyChanged("CurrencySymbol"); + } + } + + /// + /// Current bulk operation number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentbulkoperationnumber")] + public System.Nullable CurrentBulkOperationNumber + { + get + { + return this.GetAttributeValue>("currentbulkoperationnumber"); + } + set + { + this.OnPropertyChanging("CurrentBulkOperationNumber"); + this.SetAttributeValue("currentbulkoperationnumber", value); + this.OnPropertyChanged("CurrentBulkOperationNumber"); + } + } + + /// + /// Current campaign number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcampaignnumber")] + public System.Nullable CurrentCampaignNumber + { + get + { + return this.GetAttributeValue>("currentcampaignnumber"); + } + set + { + this.OnPropertyChanging("CurrentCampaignNumber"); + this.SetAttributeValue("currentcampaignnumber", value); + this.OnPropertyChanged("CurrentCampaignNumber"); + } + } + + /// + /// First case number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcasenumber")] + public System.Nullable CurrentCaseNumber + { + get + { + return this.GetAttributeValue>("currentcasenumber"); + } + set + { + this.OnPropertyChanging("CurrentCaseNumber"); + this.SetAttributeValue("currentcasenumber", value); + this.OnPropertyChanged("CurrentCaseNumber"); + } + } + + /// + /// First contract number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcontractnumber")] + public System.Nullable CurrentContractNumber + { + get + { + return this.GetAttributeValue>("currentcontractnumber"); + } + set + { + this.OnPropertyChanging("CurrentContractNumber"); + this.SetAttributeValue("currentcontractnumber", value); + this.OnPropertyChanged("CurrentContractNumber"); + } + } + + /// + /// Import sequence to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentimportsequencenumber")] + public System.Nullable CurrentImportSequenceNumber + { + get + { + return this.GetAttributeValue>("currentimportsequencenumber"); + } + } + + /// + /// First invoice number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentinvoicenumber")] + public System.Nullable CurrentInvoiceNumber + { + get + { + return this.GetAttributeValue>("currentinvoicenumber"); + } + set + { + this.OnPropertyChanging("CurrentInvoiceNumber"); + this.SetAttributeValue("currentinvoicenumber", value); + this.OnPropertyChanged("CurrentInvoiceNumber"); + } + } + + /// + /// First article number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentkbnumber")] + public System.Nullable CurrentKbNumber + { + get + { + return this.GetAttributeValue>("currentkbnumber"); + } + set + { + this.OnPropertyChanging("CurrentKbNumber"); + this.SetAttributeValue("currentkbnumber", value); + this.OnPropertyChanged("CurrentKbNumber"); + } + } + + /// + /// First order number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentordernumber")] + public System.Nullable CurrentOrderNumber + { + get + { + return this.GetAttributeValue>("currentordernumber"); + } + set + { + this.OnPropertyChanging("CurrentOrderNumber"); + this.SetAttributeValue("currentordernumber", value); + this.OnPropertyChanged("CurrentOrderNumber"); + } + } + + /// + /// First parsed table number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentparsedtablenumber")] + public System.Nullable CurrentParsedTableNumber + { + get + { + return this.GetAttributeValue>("currentparsedtablenumber"); + } + } + + /// + /// First quote number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentquotenumber")] + public System.Nullable CurrentQuoteNumber + { + get + { + return this.GetAttributeValue>("currentquotenumber"); + } + set + { + this.OnPropertyChanging("CurrentQuoteNumber"); + this.SetAttributeValue("currentquotenumber", value); + this.OnPropertyChanged("CurrentQuoteNumber"); + } + } + + /// + /// Information about how the date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue DateFormatCode + { + get + { + return this.GetAttributeValue("dateformatcode"); + } + set + { + this.OnPropertyChanging("DateFormatCode"); + this.SetAttributeValue("dateformatcode", value); + this.OnPropertyChanged("DateFormatCode"); + } + } + + /// + /// String showing how the date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatstring")] + public string DateFormatString + { + get + { + return this.GetAttributeValue("dateformatstring"); + } + set + { + this.OnPropertyChanging("DateFormatString"); + this.SetAttributeValue("dateformatstring", value); + this.OnPropertyChanged("DateFormatString"); + } + } + + /// + /// Character used to separate the month, the day, and the year in dates throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateseparator")] + public string DateSeparator + { + get + { + return this.GetAttributeValue("dateseparator"); + } + set + { + this.OnPropertyChanging("DateSeparator"); + this.SetAttributeValue("dateseparator", value); + this.OnPropertyChanged("DateSeparator"); + } + } + + /// + /// Symbol used for decimal in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decimalsymbol")] + public string DecimalSymbol + { + get + { + return this.GetAttributeValue("decimalsymbol"); + } + set + { + this.OnPropertyChanging("DecimalSymbol"); + this.SetAttributeValue("decimalsymbol", value); + this.OnPropertyChanged("DecimalSymbol"); + } + } + + /// + /// Text area to enter default country code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultcountrycode")] + public string DefaultCountryCode + { + get + { + return this.GetAttributeValue("defaultcountrycode"); + } + set + { + this.OnPropertyChanging("DefaultCountryCode"); + this.SetAttributeValue("defaultcountrycode", value); + this.OnPropertyChanged("DefaultCountryCode"); + } + } + + /// + /// Unique identifier of the default email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultemailserverprofileid")] + public Microsoft.Xrm.Sdk.EntityReference DefaultEmailServerProfileId + { + get + { + return this.GetAttributeValue("defaultemailserverprofileid"); + } + set + { + this.OnPropertyChanging("DefaultEmailServerProfileId"); + this.SetAttributeValue("defaultemailserverprofileid", value); + this.OnPropertyChanged("DefaultEmailServerProfileId"); + } + } + + /// + /// XML string containing the default email settings that are applied when a user or queue is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultemailsettings")] + public string DefaultEmailSettings + { + get + { + return this.GetAttributeValue("defaultemailsettings"); + } + set + { + this.OnPropertyChanging("DefaultEmailSettings"); + this.SetAttributeValue("defaultemailsettings", value); + this.OnPropertyChanged("DefaultEmailSettings"); + } + } + + /// + /// Type of default recurrence end range date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultrecurrenceendrangetype")] + public Microsoft.Xrm.Sdk.OptionSetValue DefaultRecurrenceEndRangeType + { + get + { + return this.GetAttributeValue("defaultrecurrenceendrangetype"); + } + set + { + this.OnPropertyChanging("DefaultRecurrenceEndRangeType"); + this.SetAttributeValue("defaultrecurrenceendrangetype", value); + this.OnPropertyChanged("DefaultRecurrenceEndRangeType"); + } + } + + /// + /// Reason for disabling the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Select if you want to use the Email Router or server-side synchronization for email processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailconnectionchannel")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailConnectionChannel + { + get + { + return this.GetAttributeValue("emailconnectionchannel"); + } + set + { + this.OnPropertyChanging("EmailConnectionChannel"); + this.SetAttributeValue("emailconnectionchannel", value); + this.OnPropertyChanged("EmailConnectionChannel"); + } + } + + /// + /// Flag to turn email correlation on or off. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailcorrelationenabled")] + public System.Nullable EmailCorrelationEnabled + { + get + { + return this.GetAttributeValue>("emailcorrelationenabled"); + } + set + { + this.OnPropertyChanging("EmailCorrelationEnabled"); + this.SetAttributeValue("emailcorrelationenabled", value); + this.OnPropertyChanged("EmailCorrelationEnabled"); + } + } + + /// + /// Normal polling frequency used for sending email in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailsendpollingperiod")] + public System.Nullable EmailSendPollingPeriod + { + get + { + return this.GetAttributeValue>("emailsendpollingperiod"); + } + set + { + this.OnPropertyChanging("EmailSendPollingPeriod"); + this.SetAttributeValue("emailsendpollingperiod", value); + this.OnPropertyChanged("EmailSendPollingPeriod"); + } + } + + /// + /// Enable Integration with Bing Maps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablebingmapsintegration")] + public System.Nullable EnableBingMapsIntegration + { + get + { + return this.GetAttributeValue>("enablebingmapsintegration"); + } + set + { + this.OnPropertyChanging("EnableBingMapsIntegration"); + this.SetAttributeValue("enablebingmapsintegration", value); + this.OnPropertyChanged("EnableBingMapsIntegration"); + } + } + + /// + /// Enable pricing calculations on a Create call. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablepricingoncreate")] + public System.Nullable EnablePricingOnCreate + { + get + { + return this.GetAttributeValue>("enablepricingoncreate"); + } + set + { + this.OnPropertyChanging("EnablePricingOnCreate"); + this.SetAttributeValue("enablepricingoncreate", value); + this.OnPropertyChanged("EnablePricingOnCreate"); + } + } + + /// + /// Use Smart Matching. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablesmartmatching")] + public System.Nullable EnableSmartMatching + { + get + { + return this.GetAttributeValue>("enablesmartmatching"); + } + set + { + this.OnPropertyChanging("EnableSmartMatching"); + this.SetAttributeValue("enablesmartmatching", value); + this.OnPropertyChanged("EnableSmartMatching"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Maximum number of days before deleting inactive subscriptions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expiresubscriptionsindays")] + public System.Nullable ExpireSubscriptionsInDays + { + get + { + return this.GetAttributeValue>("expiresubscriptionsindays"); + } + set + { + this.OnPropertyChanging("ExpireSubscriptionsInDays"); + this.SetAttributeValue("expiresubscriptionsindays", value); + this.OnPropertyChanged("ExpireSubscriptionsInDays"); + } + } + + /// + /// Features to be enabled as an XML BLOB. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("featureset")] + public string FeatureSet + { + get + { + return this.GetAttributeValue("featureset"); + } + set + { + this.OnPropertyChanging("FeatureSet"); + this.SetAttributeValue("featureset", value); + this.OnPropertyChanged("FeatureSet"); + } + } + + /// + /// Start date for the fiscal period that is to be used throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalcalendarstart")] + public System.Nullable FiscalCalendarStart + { + get + { + return this.GetAttributeValue>("fiscalcalendarstart"); + } + set + { + this.OnPropertyChanging("FiscalCalendarStart"); + this.SetAttributeValue("fiscalcalendarstart", value); + this.OnPropertyChanged("FiscalCalendarStart"); + } + } + + /// + /// Information that specifies how the name of the fiscal period is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodformat")] + public string FiscalPeriodFormat + { + get + { + return this.GetAttributeValue("fiscalperiodformat"); + } + set + { + this.OnPropertyChanging("FiscalPeriodFormat"); + this.SetAttributeValue("fiscalperiodformat", value); + this.OnPropertyChanged("FiscalPeriodFormat"); + } + } + + /// + /// Format in which the fiscal period will be displayed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodformatperiod")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalPeriodFormatPeriod + { + get + { + return this.GetAttributeValue("fiscalperiodformatperiod"); + } + set + { + this.OnPropertyChanging("FiscalPeriodFormatPeriod"); + this.SetAttributeValue("fiscalperiodformatperiod", value); + this.OnPropertyChanged("FiscalPeriodFormatPeriod"); + } + } + + /// + /// Type of fiscal period used throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + set + { + this.OnPropertyChanging("FiscalPeriodType"); + this.SetAttributeValue("fiscalperiodtype", value); + this.OnPropertyChanged("FiscalPeriodType"); + } + } + + /// + /// Information that specifies whether the fiscal settings have been updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalsettingsupdated")] + [System.ObsoleteAttribute()] + public System.Nullable FiscalSettingsUpdated + { + get + { + return this.GetAttributeValue>("fiscalsettingsupdated"); + } + } + + /// + /// Information that specifies whether the fiscal year should be displayed based on the start date or the end date of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyeardisplaycode")] + public System.Nullable FiscalYearDisplayCode + { + get + { + return this.GetAttributeValue>("fiscalyeardisplaycode"); + } + set + { + this.OnPropertyChanging("FiscalYearDisplayCode"); + this.SetAttributeValue("fiscalyeardisplaycode", value); + this.OnPropertyChanged("FiscalYearDisplayCode"); + } + } + + /// + /// Information that specifies how the name of the fiscal year is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformat")] + public string FiscalYearFormat + { + get + { + return this.GetAttributeValue("fiscalyearformat"); + } + set + { + this.OnPropertyChanging("FiscalYearFormat"); + this.SetAttributeValue("fiscalyearformat", value); + this.OnPropertyChanged("FiscalYearFormat"); + } + } + + /// + /// Prefix for the display of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformatprefix")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYearFormatPrefix + { + get + { + return this.GetAttributeValue("fiscalyearformatprefix"); + } + set + { + this.OnPropertyChanging("FiscalYearFormatPrefix"); + this.SetAttributeValue("fiscalyearformatprefix", value); + this.OnPropertyChanged("FiscalYearFormatPrefix"); + } + } + + /// + /// Suffix for the display of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformatsuffix")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYearFormatSuffix + { + get + { + return this.GetAttributeValue("fiscalyearformatsuffix"); + } + set + { + this.OnPropertyChanging("FiscalYearFormatSuffix"); + this.SetAttributeValue("fiscalyearformatsuffix", value); + this.OnPropertyChanged("FiscalYearFormatSuffix"); + } + } + + /// + /// Format for the year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformatyear")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYearFormatYear + { + get + { + return this.GetAttributeValue("fiscalyearformatyear"); + } + set + { + this.OnPropertyChanging("FiscalYearFormatYear"); + this.SetAttributeValue("fiscalyearformatyear", value); + this.OnPropertyChanged("FiscalYearFormatYear"); + } + } + + /// + /// Information that specifies how the names of the fiscal year and the fiscal period should be connected when displayed together. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearperiodconnect")] + public string FiscalYearPeriodConnect + { + get + { + return this.GetAttributeValue("fiscalyearperiodconnect"); + } + set + { + this.OnPropertyChanging("FiscalYearPeriodConnect"); + this.SetAttributeValue("fiscalyearperiodconnect", value); + this.OnPropertyChanged("FiscalYearPeriodConnect"); + } + } + + /// + /// Order in which names are to be displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullnameconventioncode")] + public Microsoft.Xrm.Sdk.OptionSetValue FullNameConventionCode + { + get + { + return this.GetAttributeValue("fullnameconventioncode"); + } + set + { + this.OnPropertyChanging("FullNameConventionCode"); + this.SetAttributeValue("fullnameconventioncode", value); + this.OnPropertyChanged("FullNameConventionCode"); + } + } + + /// + /// Specifies the maximum number of months in future for which the recurring activities can be created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("futureexpansionwindow")] + public System.Nullable FutureExpansionWindow + { + get + { + return this.GetAttributeValue>("futureexpansionwindow"); + } + set + { + this.OnPropertyChanging("FutureExpansionWindow"); + this.SetAttributeValue("futureexpansionwindow", value); + this.OnPropertyChanged("FutureExpansionWindow"); + } + } + + /// + /// Indicates whether alerts will be generated for errors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generatealertsforerrors")] + public System.Nullable GenerateAlertsForErrors + { + get + { + return this.GetAttributeValue>("generatealertsforerrors"); + } + set + { + this.OnPropertyChanging("GenerateAlertsForErrors"); + this.SetAttributeValue("generatealertsforerrors", value); + this.OnPropertyChanged("GenerateAlertsForErrors"); + } + } + + /// + /// Indicates whether alerts will be generated for information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generatealertsforinformation")] + public System.Nullable GenerateAlertsForInformation + { + get + { + return this.GetAttributeValue>("generatealertsforinformation"); + } + set + { + this.OnPropertyChanging("GenerateAlertsForInformation"); + this.SetAttributeValue("generatealertsforinformation", value); + this.OnPropertyChanged("GenerateAlertsForInformation"); + } + } + + /// + /// Indicates whether alerts will be generated for warnings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generatealertsforwarnings")] + public System.Nullable GenerateAlertsForWarnings + { + get + { + return this.GetAttributeValue>("generatealertsforwarnings"); + } + set + { + this.OnPropertyChanging("GenerateAlertsForWarnings"); + this.SetAttributeValue("generatealertsforwarnings", value); + this.OnPropertyChanged("GenerateAlertsForWarnings"); + } + } + + /// + /// Indicates whether Get Started content is enabled for this organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("getstartedpanecontentenabled")] + public System.Nullable GetStartedPaneContentEnabled + { + get + { + return this.GetAttributeValue>("getstartedpanecontentenabled"); + } + set + { + this.OnPropertyChanging("GetStartedPaneContentEnabled"); + this.SetAttributeValue("getstartedpanecontentenabled", value); + this.OnPropertyChanged("GetStartedPaneContentEnabled"); + } + } + + /// + /// Number of days after the goal's end date after which the rollup of the goal stops automatically. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupexpirytime")] + public System.Nullable GoalRollupExpiryTime + { + get + { + return this.GetAttributeValue>("goalrollupexpirytime"); + } + set + { + this.OnPropertyChanging("GoalRollupExpiryTime"); + this.SetAttributeValue("goalrollupexpirytime", value); + this.OnPropertyChanged("GoalRollupExpiryTime"); + } + } + + /// + /// Number of hours between automatic rollup jobs . + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupfrequency")] + public System.Nullable GoalRollupFrequency + { + get + { + return this.GetAttributeValue>("goalrollupfrequency"); + } + set + { + this.OnPropertyChanging("GoalRollupFrequency"); + this.SetAttributeValue("goalrollupfrequency", value); + this.OnPropertyChanged("GoalRollupFrequency"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("grantaccesstonetworkservice")] + public System.Nullable GrantAccessToNetworkService + { + get + { + return this.GetAttributeValue>("grantaccesstonetworkservice"); + } + set + { + this.OnPropertyChanging("GrantAccessToNetworkService"); + this.SetAttributeValue("grantaccesstonetworkservice", value); + this.OnPropertyChanged("GrantAccessToNetworkService"); + } + } + + /// + /// Maximum difference allowed between subject keywords count of the email messaged to be correlated + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashdeltasubjectcount")] + public System.Nullable HashDeltaSubjectCount + { + get + { + return this.GetAttributeValue>("hashdeltasubjectcount"); + } + set + { + this.OnPropertyChanging("HashDeltaSubjectCount"); + this.SetAttributeValue("hashdeltasubjectcount", value); + this.OnPropertyChanged("HashDeltaSubjectCount"); + } + } + + /// + /// Filter Subject Keywords + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashfilterkeywords")] + public string HashFilterKeywords + { + get + { + return this.GetAttributeValue("hashfilterkeywords"); + } + set + { + this.OnPropertyChanging("HashFilterKeywords"); + this.SetAttributeValue("hashfilterkeywords", value); + this.OnPropertyChanged("HashFilterKeywords"); + } + } + + /// + /// Maximum number of subject keywords or recipients used for correlation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashmaxcount")] + public System.Nullable HashMaxCount + { + get + { + return this.GetAttributeValue>("hashmaxcount"); + } + set + { + this.OnPropertyChanging("HashMaxCount"); + this.SetAttributeValue("hashmaxcount", value); + this.OnPropertyChanged("HashMaxCount"); + } + } + + /// + /// Minimum number of recipients required to match for email messaged to be correlated + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashminaddresscount")] + public System.Nullable HashMinAddressCount + { + get + { + return this.GetAttributeValue>("hashminaddresscount"); + } + set + { + this.OnPropertyChanging("HashMinAddressCount"); + this.SetAttributeValue("hashminaddresscount", value); + this.OnPropertyChanged("HashMinAddressCount"); + } + } + + /// + /// Indicates whether incoming email sent by internal Microsoft Dynamics CRM users or queues should be tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreinternalemail")] + public System.Nullable IgnoreInternalEmail + { + get + { + return this.GetAttributeValue>("ignoreinternalemail"); + } + set + { + this.OnPropertyChanging("IgnoreInternalEmail"); + this.SetAttributeValue("ignoreinternalemail", value); + this.OnPropertyChanged("IgnoreInternalEmail"); + } + } + + /// + /// Setting for the Async Service Mailbox Queue. Defines the retrieval batch size of exchange server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailexchangeemailretrievalbatchsize")] + public System.Nullable IncomingEmailExchangeEmailRetrievalBatchSize + { + get + { + return this.GetAttributeValue>("incomingemailexchangeemailretrievalbatchsize"); + } + set + { + this.OnPropertyChanging("IncomingEmailExchangeEmailRetrievalBatchSize"); + this.SetAttributeValue("incomingemailexchangeemailretrievalbatchsize", value); + this.OnPropertyChanged("IncomingEmailExchangeEmailRetrievalBatchSize"); + } + } + + /// + /// Initial version of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialversion")] + public string InitialVersion + { + get + { + return this.GetAttributeValue("initialversion"); + } + set + { + this.OnPropertyChanging("InitialVersion"); + this.SetAttributeValue("initialversion", value); + this.OnPropertyChanged("InitialVersion"); + } + } + + /// + /// Unique identifier of the integration user for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("integrationuserid")] + public System.Nullable IntegrationUserId + { + get + { + return this.GetAttributeValue>("integrationuserid"); + } + set + { + this.OnPropertyChanging("IntegrationUserId"); + this.SetAttributeValue("integrationuserid", value); + this.OnPropertyChanged("IntegrationUserId"); + } + } + + /// + /// Prefix to use for all invoice numbers throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceprefix")] + public string InvoicePrefix + { + get + { + return this.GetAttributeValue("invoiceprefix"); + } + set + { + this.OnPropertyChanging("InvoicePrefix"); + this.SetAttributeValue("invoiceprefix", value); + this.OnPropertyChanged("InvoicePrefix"); + } + } + + /// + /// Indicates whether loading of Microsoft Dynamics CRM in a browser window that does not have address, tool, and menu bars is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isappmode")] + public System.Nullable IsAppMode + { + get + { + return this.GetAttributeValue>("isappmode"); + } + set + { + this.OnPropertyChanging("IsAppMode"); + this.SetAttributeValue("isappmode", value); + this.OnPropertyChanged("IsAppMode"); + } + } + + /// + /// Enable or disable auditing of changes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isauditenabled")] + public System.Nullable IsAuditEnabled + { + get + { + return this.GetAttributeValue>("isauditenabled"); + } + set + { + this.OnPropertyChanging("IsAuditEnabled"); + this.SetAttributeValue("isauditenabled", value); + this.OnPropertyChanged("IsAuditEnabled"); + } + } + + /// + /// Information on whether auto save is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isautosaveenabled")] + public System.Nullable IsAutoSaveEnabled + { + get + { + return this.GetAttributeValue>("isautosaveenabled"); + } + set + { + this.OnPropertyChanging("IsAutoSaveEnabled"); + this.SetAttributeValue("isautosaveenabled", value); + this.OnPropertyChanged("IsAutoSaveEnabled"); + } + } + + /// + /// Enable or disable country code selection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefaultcountrycodecheckenabled")] + public System.Nullable IsDefaultCountryCodeCheckEnabled + { + get + { + return this.GetAttributeValue>("isdefaultcountrycodecheckenabled"); + } + set + { + this.OnPropertyChanging("IsDefaultCountryCodeCheckEnabled"); + this.SetAttributeValue("isdefaultcountrycodecheckenabled", value); + this.OnPropertyChanged("IsDefaultCountryCodeCheckEnabled"); + } + } + + /// + /// Information that specifies whether the organization is disabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + } + + /// + /// Indicates whether duplicate detection of records is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabled")] + public System.Nullable IsDuplicateDetectionEnabled + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabled"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabled"); + this.SetAttributeValue("isduplicatedetectionenabled", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabled"); + } + } + + /// + /// Indicates whether duplicate detection of records during import is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledforimport")] + public System.Nullable IsDuplicateDetectionEnabledForImport + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledforimport"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledForImport"); + this.SetAttributeValue("isduplicatedetectionenabledforimport", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledForImport"); + } + } + + /// + /// Indicates whether duplicate detection of records during offline synchronization is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledforofflinesync")] + public System.Nullable IsDuplicateDetectionEnabledForOfflineSync + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledforofflinesync"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledForOfflineSync"); + this.SetAttributeValue("isduplicatedetectionenabledforofflinesync", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledForOfflineSync"); + } + } + + /// + /// Indicates whether duplicate detection during online create or update is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledforonlinecreateupdate")] + public System.Nullable IsDuplicateDetectionEnabledForOnlineCreateUpdate + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledforonlinecreateupdate"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledForOnlineCreateUpdate"); + this.SetAttributeValue("isduplicatedetectionenabledforonlinecreateupdate", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledForOnlineCreateUpdate"); + } + } + + /// + /// Indicates whether the fiscal period is displayed as the month number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfiscalperiodmonthbased")] + public System.Nullable IsFiscalPeriodMonthBased + { + get + { + return this.GetAttributeValue>("isfiscalperiodmonthbased"); + } + set + { + this.OnPropertyChanging("IsFiscalPeriodMonthBased"); + this.SetAttributeValue("isfiscalperiodmonthbased", value); + this.OnPropertyChanged("IsFiscalPeriodMonthBased"); + } + } + + /// + /// Information on whether IM presence is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispresenceenabled")] + public System.Nullable IsPresenceEnabled + { + get + { + return this.GetAttributeValue>("ispresenceenabled"); + } + set + { + this.OnPropertyChanging("IsPresenceEnabled"); + this.SetAttributeValue("ispresenceenabled", value); + this.OnPropertyChanged("IsPresenceEnabled"); + } + } + + /// + /// Enable sales order processing integration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issopintegrationenabled")] + public System.Nullable IsSOPIntegrationEnabled + { + get + { + return this.GetAttributeValue>("issopintegrationenabled"); + } + set + { + this.OnPropertyChanging("IsSOPIntegrationEnabled"); + this.SetAttributeValue("issopintegrationenabled", value); + this.OnPropertyChanged("IsSOPIntegrationEnabled"); + } + } + + /// + /// Enable or disable auditing of user access. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isuseraccessauditenabled")] + public System.Nullable IsUserAccessAuditEnabled + { + get + { + return this.GetAttributeValue>("isuseraccessauditenabled"); + } + set + { + this.OnPropertyChanging("IsUserAccessAuditEnabled"); + this.SetAttributeValue("isuseraccessauditenabled", value); + this.OnPropertyChanged("IsUserAccessAuditEnabled"); + } + } + + /// + /// Indicates whether loading of Microsoft Dynamics CRM in a browser window that does not have address, tool, and menu bars is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvintegrationcode")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.OptionSetValue ISVIntegrationCode + { + get + { + return this.GetAttributeValue("isvintegrationcode"); + } + set + { + this.OnPropertyChanging("ISVIntegrationCode"); + this.SetAttributeValue("isvintegrationcode", value); + this.OnPropertyChanged("ISVIntegrationCode"); + } + } + + /// + /// Prefix to use for all articles in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbprefix")] + public string KbPrefix + { + get + { + return this.GetAttributeValue("kbprefix"); + } + set + { + this.OnPropertyChanging("KbPrefix"); + this.SetAttributeValue("kbprefix", value); + this.OnPropertyChanged("KbPrefix"); + } + } + + /// + /// Preferred language for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the locale of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("localeid")] + public System.Nullable LocaleId + { + get + { + return this.GetAttributeValue>("localeid"); + } + set + { + this.OnPropertyChanging("LocaleId"); + this.SetAttributeValue("localeid", value); + this.OnPropertyChanged("LocaleId"); + } + } + + /// + /// Information that specifies how the Long Date format is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longdateformatcode")] + public System.Nullable LongDateFormatCode + { + get + { + return this.GetAttributeValue>("longdateformatcode"); + } + set + { + this.OnPropertyChanging("LongDateFormatCode"); + this.SetAttributeValue("longdateformatcode", value); + this.OnPropertyChanged("LongDateFormatCode"); + } + } + + /// + /// Maximum number of days an appointment can last. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxappointmentdurationdays")] + public System.Nullable MaxAppointmentDurationDays + { + get + { + return this.GetAttributeValue>("maxappointmentdurationdays"); + } + set + { + this.OnPropertyChanging("MaxAppointmentDurationDays"); + this.SetAttributeValue("maxappointmentdurationdays", value); + this.OnPropertyChanged("MaxAppointmentDurationDays"); + } + } + + /// + /// Maximum number of active business process flows allowed per entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maximumactivebusinessprocessflowsallowedperentity")] + public System.Nullable MaximumActiveBusinessProcessFlowsAllowedPerEntity + { + get + { + return this.GetAttributeValue>("maximumactivebusinessprocessflowsallowedperentity"); + } + set + { + this.OnPropertyChanging("MaximumActiveBusinessProcessFlowsAllowedPerEntity"); + this.SetAttributeValue("maximumactivebusinessprocessflowsallowedperentity", value); + this.OnPropertyChanged("MaximumActiveBusinessProcessFlowsAllowedPerEntity"); + } + } + + /// + /// Maximum tracking number before recycling takes place. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maximumtrackingnumber")] + public System.Nullable MaximumTrackingNumber + { + get + { + return this.GetAttributeValue>("maximumtrackingnumber"); + } + set + { + this.OnPropertyChanging("MaximumTrackingNumber"); + this.SetAttributeValue("maximumtrackingnumber", value); + this.OnPropertyChanged("MaximumTrackingNumber"); + } + } + + /// + /// Maximum number of records that will be exported to a static Microsoft Office Excel worksheet when exporting from the grid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxrecordsforexporttoexcel")] + public System.Nullable MaxRecordsForExportToExcel + { + get + { + return this.GetAttributeValue>("maxrecordsforexporttoexcel"); + } + set + { + this.OnPropertyChanging("MaxRecordsForExportToExcel"); + this.SetAttributeValue("maxrecordsforexporttoexcel", value); + this.OnPropertyChanged("MaxRecordsForExportToExcel"); + } + } + + /// + /// Maximum number of lookup and picklist records that can be selected by user for filtering. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxrecordsforlookupfilters")] + public System.Nullable MaxRecordsForLookupFilters + { + get + { + return this.GetAttributeValue>("maxrecordsforlookupfilters"); + } + set + { + this.OnPropertyChanging("MaxRecordsForLookupFilters"); + this.SetAttributeValue("maxrecordsforlookupfilters", value); + this.OnPropertyChanged("MaxRecordsForLookupFilters"); + } + } + + /// + /// Maximum allowed size of an attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxuploadfilesize")] + public System.Nullable MaxUploadFileSize + { + get + { + return this.GetAttributeValue>("maxuploadfilesize"); + } + set + { + this.OnPropertyChanging("MaxUploadFileSize"); + this.SetAttributeValue("maxuploadfilesize", value); + this.OnPropertyChanged("MaxUploadFileSize"); + } + } + + /// + /// Normal polling frequency used for address book synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minaddressbooksyncinterval")] + public System.Nullable MinAddressBookSyncInterval + { + get + { + return this.GetAttributeValue>("minaddressbooksyncinterval"); + } + set + { + this.OnPropertyChanging("MinAddressBookSyncInterval"); + this.SetAttributeValue("minaddressbooksyncinterval", value); + this.OnPropertyChanged("MinAddressBookSyncInterval"); + } + } + + /// + /// Normal polling frequency used for background offline synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minofflinesyncinterval")] + public System.Nullable MinOfflineSyncInterval + { + get + { + return this.GetAttributeValue>("minofflinesyncinterval"); + } + set + { + this.OnPropertyChanging("MinOfflineSyncInterval"); + this.SetAttributeValue("minofflinesyncinterval", value); + this.OnPropertyChanged("MinOfflineSyncInterval"); + } + } + + /// + /// Minimum allowed time between scheduled Outlook synchronizations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minoutlooksyncinterval")] + public System.Nullable MinOutlookSyncInterval + { + get + { + return this.GetAttributeValue>("minoutlooksyncinterval"); + } + set + { + this.OnPropertyChanging("MinOutlookSyncInterval"); + this.SetAttributeValue("minoutlooksyncinterval", value); + this.OnPropertyChanged("MinOutlookSyncInterval"); + } + } + + /// + /// Unique identifier of the user who last modified the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the organization 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 organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the organization. The name is set when Microsoft CRM is installed and should not be changed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Information that specifies how negative currency numbers are displayed throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativecurrencyformatcode")] + public System.Nullable NegativeCurrencyFormatCode + { + get + { + return this.GetAttributeValue>("negativecurrencyformatcode"); + } + set + { + this.OnPropertyChanging("NegativeCurrencyFormatCode"); + this.SetAttributeValue("negativecurrencyformatcode", value); + this.OnPropertyChanged("NegativeCurrencyFormatCode"); + } + } + + /// + /// Information that specifies how negative numbers are displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativeformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue NegativeFormatCode + { + get + { + return this.GetAttributeValue("negativeformatcode"); + } + set + { + this.OnPropertyChanging("NegativeFormatCode"); + this.SetAttributeValue("negativeformatcode", value); + this.OnPropertyChanged("NegativeFormatCode"); + } + } + + /// + /// Next token to be placed on the subject line of an email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nexttrackingnumber")] + public System.Nullable NextTrackingNumber + { + get + { + return this.GetAttributeValue>("nexttrackingnumber"); + } + set + { + this.OnPropertyChanging("NextTrackingNumber"); + this.SetAttributeValue("nexttrackingnumber", value); + this.OnPropertyChanged("NextTrackingNumber"); + } + } + + /// + /// Indicates whether mailbox owners will be notified of email server profile level alerts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("notifymailboxownerofemailserverlevelalerts")] + public System.Nullable NotifyMailboxOwnerOfEmailServerLevelAlerts + { + get + { + return this.GetAttributeValue>("notifymailboxownerofemailserverlevelalerts"); + } + set + { + this.OnPropertyChanging("NotifyMailboxOwnerOfEmailServerLevelAlerts"); + this.SetAttributeValue("notifymailboxownerofemailserverlevelalerts", value); + this.OnPropertyChanged("NotifyMailboxOwnerOfEmailServerLevelAlerts"); + } + } + + /// + /// Specification of how numbers are displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberformat")] + public string NumberFormat + { + get + { + return this.GetAttributeValue("numberformat"); + } + set + { + this.OnPropertyChanging("NumberFormat"); + this.SetAttributeValue("numberformat", value); + this.OnPropertyChanged("NumberFormat"); + } + } + + /// + /// Specifies how numbers are grouped in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numbergroupformat")] + public string NumberGroupFormat + { + get + { + return this.GetAttributeValue("numbergroupformat"); + } + set + { + this.OnPropertyChanging("NumberGroupFormat"); + this.SetAttributeValue("numbergroupformat", value); + this.OnPropertyChanged("NumberGroupFormat"); + } + } + + /// + /// Symbol used for number separation in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberseparator")] + public string NumberSeparator + { + get + { + return this.GetAttributeValue("numberseparator"); + } + set + { + this.OnPropertyChanging("NumberSeparator"); + this.SetAttributeValue("numberseparator", value); + this.OnPropertyChanged("NumberSeparator"); + } + } + + /// + /// Prefix to use for all orders throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orderprefix")] + public string OrderPrefix + { + get + { + return this.GetAttributeValue("orderprefix"); + } + set + { + this.OnPropertyChanging("OrderPrefix"); + this.SetAttributeValue("orderprefix", value); + this.OnPropertyChanged("OrderPrefix"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Organization settings stored in Organization Database. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orgdborgsettings")] + public string OrgDbOrgSettings + { + get + { + return this.GetAttributeValue("orgdborgsettings"); + } + set + { + this.OnPropertyChanging("OrgDbOrgSettings"); + this.SetAttributeValue("orgdborgsettings", value); + this.OnPropertyChanged("OrgDbOrgSettings"); + } + } + + /// + /// Prefix used for parsed table columns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablecolumnprefix")] + public string ParsedTableColumnPrefix + { + get + { + return this.GetAttributeValue("parsedtablecolumnprefix"); + } + } + + /// + /// Prefix used for parsed tables. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtableprefix")] + public string ParsedTablePrefix + { + get + { + return this.GetAttributeValue("parsedtableprefix"); + } + } + + /// + /// Specifies the maximum number of months in past for which the recurring activities can be created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pastexpansionwindow")] + public System.Nullable PastExpansionWindow + { + get + { + return this.GetAttributeValue>("pastexpansionwindow"); + } + set + { + this.OnPropertyChanging("PastExpansionWindow"); + this.SetAttributeValue("pastexpansionwindow", value); + this.OnPropertyChanged("PastExpansionWindow"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picture")] + public string Picture + { + get + { + return this.GetAttributeValue("picture"); + } + set + { + this.OnPropertyChanging("Picture"); + this.SetAttributeValue("picture", value); + this.OnPropertyChanged("Picture"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointlanguagecode")] + public System.Nullable PinpointLanguageCode + { + get + { + return this.GetAttributeValue>("pinpointlanguagecode"); + } + set + { + this.OnPropertyChanging("PinpointLanguageCode"); + this.SetAttributeValue("pinpointlanguagecode", value); + this.OnPropertyChanged("PinpointLanguageCode"); + } + } + + /// + /// PM designator to use throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pmdesignator")] + public string PMDesignator + { + get + { + return this.GetAttributeValue("pmdesignator"); + } + set + { + this.OnPropertyChanging("PMDesignator"); + this.SetAttributeValue("pmdesignator", value); + this.OnPropertyChanged("PMDesignator"); + } + } + + /// + /// Number of decimal places that can be used for prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingdecimalprecision")] + public System.Nullable PricingDecimalPrecision + { + get + { + return this.GetAttributeValue>("pricingdecimalprecision"); + } + set + { + this.OnPropertyChanging("PricingDecimalPrecision"); + this.SetAttributeValue("pricingdecimalprecision", value); + this.OnPropertyChanged("PricingDecimalPrecision"); + } + } + + /// + /// Unique identifier of the default privilege for users in the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeusergroupid")] + public System.Nullable PrivilegeUserGroupId + { + get + { + return this.GetAttributeValue>("privilegeusergroupid"); + } + set + { + this.OnPropertyChanging("PrivilegeUserGroupId"); + this.SetAttributeValue("privilegeusergroupid", value); + this.OnPropertyChanged("PrivilegeUserGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privreportinggroupid")] + public System.Nullable PrivReportingGroupId + { + get + { + return this.GetAttributeValue>("privreportinggroupid"); + } + set + { + this.OnPropertyChanging("PrivReportingGroupId"); + this.SetAttributeValue("privreportinggroupid", value); + this.OnPropertyChanged("PrivReportingGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privreportinggroupname")] + public string PrivReportingGroupName + { + get + { + return this.GetAttributeValue("privreportinggroupname"); + } + set + { + this.OnPropertyChanging("PrivReportingGroupName"); + this.SetAttributeValue("privreportinggroupname", value); + this.OnPropertyChanged("PrivReportingGroupName"); + } + } + + /// + /// Indicates whether a quick find record limit should be enabled for this organization (allows for faster Quick Find queries but prevents overly broad searches). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quickfindrecordlimitenabled")] + public System.Nullable QuickFindRecordLimitEnabled + { + get + { + return this.GetAttributeValue>("quickfindrecordlimitenabled"); + } + set + { + this.OnPropertyChanging("QuickFindRecordLimitEnabled"); + this.SetAttributeValue("quickfindrecordlimitenabled", value); + this.OnPropertyChanged("QuickFindRecordLimitEnabled"); + } + } + + /// + /// Prefix to use for all quotes throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteprefix")] + public string QuotePrefix + { + get + { + return this.GetAttributeValue("quoteprefix"); + } + set + { + this.OnPropertyChanging("QuotePrefix"); + this.SetAttributeValue("quoteprefix", value); + this.OnPropertyChanged("QuotePrefix"); + } + } + + /// + /// Specifies the default value for number of occurrences field in the recurrence dialog. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencedefaultnumberofoccurrences")] + public System.Nullable RecurrenceDefaultNumberOfOccurrences + { + get + { + return this.GetAttributeValue>("recurrencedefaultnumberofoccurrences"); + } + set + { + this.OnPropertyChanging("RecurrenceDefaultNumberOfOccurrences"); + this.SetAttributeValue("recurrencedefaultnumberofoccurrences", value); + this.OnPropertyChanged("RecurrenceDefaultNumberOfOccurrences"); + } + } + + /// + /// Specifies the interval (in seconds) for pausing expansion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrenceexpansionjobbatchinterval")] + public System.Nullable RecurrenceExpansionJobBatchInterval + { + get + { + return this.GetAttributeValue>("recurrenceexpansionjobbatchinterval"); + } + set + { + this.OnPropertyChanging("RecurrenceExpansionJobBatchInterval"); + this.SetAttributeValue("recurrenceexpansionjobbatchinterval", value); + this.OnPropertyChanged("RecurrenceExpansionJobBatchInterval"); + } + } + + /// + /// Specifies the value for number of instances created in on demand job in one shot. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrenceexpansionjobbatchsize")] + public System.Nullable RecurrenceExpansionJobBatchSize + { + get + { + return this.GetAttributeValue>("recurrenceexpansionjobbatchsize"); + } + set + { + this.OnPropertyChanging("RecurrenceExpansionJobBatchSize"); + this.SetAttributeValue("recurrenceexpansionjobbatchsize", value); + this.OnPropertyChanged("RecurrenceExpansionJobBatchSize"); + } + } + + /// + /// Specifies the maximum number of instances to be created synchronously after creating a recurring appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrenceexpansionsynchcreatemax")] + public System.Nullable RecurrenceExpansionSynchCreateMax + { + get + { + return this.GetAttributeValue>("recurrenceexpansionsynchcreatemax"); + } + set + { + this.OnPropertyChanging("RecurrenceExpansionSynchCreateMax"); + this.SetAttributeValue("recurrenceexpansionsynchcreatemax", value); + this.OnPropertyChanged("RecurrenceExpansionSynchCreateMax"); + } + } + + /// + /// XML string that defines the navigation structure for the application. This is the site map from the previously upgraded build and is used in a 3-way merge during upgrade. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("referencesitemapxml")] + [System.ObsoleteAttribute()] + public string ReferenceSiteMapXml + { + get + { + return this.GetAttributeValue("referencesitemapxml"); + } + set + { + this.OnPropertyChanging("ReferenceSiteMapXml"); + this.SetAttributeValue("referencesitemapxml", value); + this.OnPropertyChanged("ReferenceSiteMapXml"); + } + } + + /// + /// Flag to render the body of email in the Web form in an IFRAME with the security='restricted' attribute set. This is additional security but can cause a credentials prompt. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rendersecureiframeforemail")] + public System.Nullable RenderSecureIFrameForEmail + { + get + { + return this.GetAttributeValue>("rendersecureiframeforemail"); + } + set + { + this.OnPropertyChanging("RenderSecureIFrameForEmail"); + this.SetAttributeValue("rendersecureiframeforemail", value); + this.OnPropertyChanged("RenderSecureIFrameForEmail"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportinggroupid")] + public System.Nullable ReportingGroupId + { + get + { + return this.GetAttributeValue>("reportinggroupid"); + } + set + { + this.OnPropertyChanging("ReportingGroupId"); + this.SetAttributeValue("reportinggroupid", value); + this.OnPropertyChanged("ReportingGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportinggroupname")] + public string ReportingGroupName + { + get + { + return this.GetAttributeValue("reportinggroupname"); + } + set + { + this.OnPropertyChanging("ReportingGroupName"); + this.SetAttributeValue("reportinggroupname", value); + this.OnPropertyChanged("ReportingGroupName"); + } + } + + /// + /// Picklist for selecting the organization preference for reporting scripting errors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportscripterrors")] + public Microsoft.Xrm.Sdk.OptionSetValue ReportScriptErrors + { + get + { + return this.GetAttributeValue("reportscripterrors"); + } + set + { + this.OnPropertyChanging("ReportScriptErrors"); + this.SetAttributeValue("reportscripterrors", value); + this.OnPropertyChanged("ReportScriptErrors"); + } + } + + /// + /// Indicates whether Send As Other User privilege is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requireapprovalforqueueemail")] + public System.Nullable RequireApprovalForQueueEmail + { + get + { + return this.GetAttributeValue>("requireapprovalforqueueemail"); + } + set + { + this.OnPropertyChanging("RequireApprovalForQueueEmail"); + this.SetAttributeValue("requireapprovalforqueueemail", value); + this.OnPropertyChanged("RequireApprovalForQueueEmail"); + } + } + + /// + /// Indicates whether Send As Other User privilege is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requireapprovalforuseremail")] + public System.Nullable RequireApprovalForUserEmail + { + get + { + return this.GetAttributeValue>("requireapprovalforuseremail"); + } + set + { + this.OnPropertyChanging("RequireApprovalForUserEmail"); + this.SetAttributeValue("requireapprovalforuseremail", value); + this.OnPropertyChanged("RequireApprovalForUserEmail"); + } + } + + /// + /// Unique identifier of the sample data import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sampledataimportid")] + public System.Nullable SampleDataImportId + { + get + { + return this.GetAttributeValue>("sampledataimportid"); + } + set + { + this.OnPropertyChanging("SampleDataImportId"); + this.SetAttributeValue("sampledataimportid", value); + this.OnPropertyChanged("SampleDataImportId"); + } + } + + /// + /// Prefix used for custom entities and attributes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schemanameprefix")] + public string SchemaNamePrefix + { + get + { + return this.GetAttributeValue("schemanameprefix"); + } + set + { + this.OnPropertyChanging("SchemaNamePrefix"); + this.SetAttributeValue("schemanameprefix", value); + this.OnPropertyChanged("SchemaNamePrefix"); + } + } + + /// + /// Information that specifies whether to share to previous owner on assign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharetopreviousowneronassign")] + public System.Nullable ShareToPreviousOwnerOnAssign + { + get + { + return this.GetAttributeValue>("sharetopreviousowneronassign"); + } + set + { + this.OnPropertyChanging("ShareToPreviousOwnerOnAssign"); + this.SetAttributeValue("sharetopreviousowneronassign", value); + this.OnPropertyChanged("ShareToPreviousOwnerOnAssign"); + } + } + + /// + /// Information that specifies whether to display the week number in calendar displays throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showweeknumber")] + public System.Nullable ShowWeekNumber + { + get + { + return this.GetAttributeValue>("showweeknumber"); + } + set + { + this.OnPropertyChanging("ShowWeekNumber"); + this.SetAttributeValue("showweeknumber", value); + this.OnPropertyChanged("ShowWeekNumber"); + } + } + + /// + /// CRM for Outlook Download URL + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signupoutlookdownloadfwlink")] + public string SignupOutlookDownloadFWLink + { + get + { + return this.GetAttributeValue("signupoutlookdownloadfwlink"); + } + set + { + this.OnPropertyChanging("SignupOutlookDownloadFWLink"); + this.SetAttributeValue("signupoutlookdownloadfwlink", value); + this.OnPropertyChanged("SignupOutlookDownloadFWLink"); + } + } + + /// + /// XML string that defines the navigation structure for the application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapxml")] + [System.ObsoleteAttribute()] + public string SiteMapXml + { + get + { + return this.GetAttributeValue("sitemapxml"); + } + set + { + this.OnPropertyChanging("SiteMapXml"); + this.SetAttributeValue("sitemapxml", value); + this.OnPropertyChanged("SiteMapXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sortid")] + public System.Nullable SortId + { + get + { + return this.GetAttributeValue>("sortid"); + } + set + { + this.OnPropertyChanging("SortId"); + this.SetAttributeValue("sortid", value); + this.OnPropertyChanged("SortId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sqlaccessgroupid")] + public System.Nullable SqlAccessGroupId + { + get + { + return this.GetAttributeValue>("sqlaccessgroupid"); + } + set + { + this.OnPropertyChanging("SqlAccessGroupId"); + this.SetAttributeValue("sqlaccessgroupid", value); + this.OnPropertyChanged("SqlAccessGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sqlaccessgroupname")] + public string SqlAccessGroupName + { + get + { + return this.GetAttributeValue("sqlaccessgroupname"); + } + set + { + this.OnPropertyChanging("SqlAccessGroupName"); + this.SetAttributeValue("sqlaccessgroupname", value); + this.OnPropertyChanged("SqlAccessGroupName"); + } + } + + /// + /// Setting for SQM data collection, 0 no, 1 yes enabled + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sqmenabled")] + public System.Nullable SQMEnabled + { + get + { + return this.GetAttributeValue>("sqmenabled"); + } + set + { + this.OnPropertyChanging("SQMEnabled"); + this.SetAttributeValue("sqmenabled", value); + this.OnPropertyChanged("SQMEnabled"); + } + } + + /// + /// Unique identifier of the support user for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supportuserid")] + public System.Nullable SupportUserId + { + get + { + return this.GetAttributeValue>("supportuserid"); + } + set + { + this.OnPropertyChanging("SupportUserId"); + this.SetAttributeValue("supportuserid", value); + this.OnPropertyChanged("SupportUserId"); + } + } + + /// + /// Unique identifier of the system user for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + this.OnPropertyChanged("SystemUserId"); + } + } + + /// + /// Maximum number of aggressive polling cycles executed for email auto-tagging when a new email is received. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tagmaxaggressivecycles")] + public System.Nullable TagMaxAggressiveCycles + { + get + { + return this.GetAttributeValue>("tagmaxaggressivecycles"); + } + set + { + this.OnPropertyChanging("TagMaxAggressiveCycles"); + this.SetAttributeValue("tagmaxaggressivecycles", value); + this.OnPropertyChanged("TagMaxAggressiveCycles"); + } + } + + /// + /// Normal polling frequency used for email receive auto-tagging in outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tagpollingperiod")] + public System.Nullable TagPollingPeriod + { + get + { + return this.GetAttributeValue>("tagpollingperiod"); + } + set + { + this.OnPropertyChanging("TagPollingPeriod"); + this.SetAttributeValue("tagpollingperiod", value); + this.OnPropertyChanged("TagPollingPeriod"); + } + } + + /// + /// Information that specifies how the time is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue TimeFormatCode + { + get + { + return this.GetAttributeValue("timeformatcode"); + } + set + { + this.OnPropertyChanging("TimeFormatCode"); + this.SetAttributeValue("timeformatcode", value); + this.OnPropertyChanged("TimeFormatCode"); + } + } + + /// + /// Text for how time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatstring")] + public string TimeFormatString + { + get + { + return this.GetAttributeValue("timeformatstring"); + } + set + { + this.OnPropertyChanging("TimeFormatString"); + this.SetAttributeValue("timeformatstring", value); + this.OnPropertyChanged("TimeFormatString"); + } + } + + /// + /// Text for how the time separator is displayed throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeseparator")] + public string TimeSeparator + { + get + { + return this.GetAttributeValue("timeseparator"); + } + set + { + this.OnPropertyChanging("TimeSeparator"); + this.SetAttributeValue("timeseparator", value); + this.OnPropertyChanged("TimeSeparator"); + } + } + + /// + /// 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"); + } + } + + /// + /// Duration used for token expiration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tokenexpiry")] + public System.Nullable TokenExpiry + { + get + { + return this.GetAttributeValue>("tokenexpiry"); + } + set + { + this.OnPropertyChanging("TokenExpiry"); + this.SetAttributeValue("tokenexpiry", value); + this.OnPropertyChanged("TokenExpiry"); + } + } + + /// + /// Token key. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tokenkey")] + public string TokenKey + { + get + { + return this.GetAttributeValue("tokenkey"); + } + set + { + this.OnPropertyChanging("TokenKey"); + this.SetAttributeValue("tokenkey", value); + this.OnPropertyChanged("TokenKey"); + } + } + + /// + /// History list of tracking token prefixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingprefix")] + public string TrackingPrefix + { + get + { + return this.GetAttributeValue("trackingprefix"); + } + set + { + this.OnPropertyChanging("TrackingPrefix"); + this.SetAttributeValue("trackingprefix", value); + this.OnPropertyChanged("TrackingPrefix"); + } + } + + /// + /// Base number used to provide separate tracking token identifiers to users belonging to different deployments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtokenidbase")] + public System.Nullable TrackingTokenIdBase + { + get + { + return this.GetAttributeValue>("trackingtokenidbase"); + } + set + { + this.OnPropertyChanging("TrackingTokenIdBase"); + this.SetAttributeValue("trackingtokenidbase", value); + this.OnPropertyChanged("TrackingTokenIdBase"); + } + } + + /// + /// Number of digits used to represent a tracking token identifier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtokeniddigits")] + public System.Nullable TrackingTokenIdDigits + { + get + { + return this.GetAttributeValue>("trackingtokeniddigits"); + } + set + { + this.OnPropertyChanging("TrackingTokenIdDigits"); + this.SetAttributeValue("trackingtokeniddigits", value); + this.OnPropertyChanged("TrackingTokenIdDigits"); + } + } + + /// + /// Number of characters appended to invoice, quote, and order numbers. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquespecifierlength")] + public System.Nullable UniqueSpecifierLength + { + get + { + return this.GetAttributeValue>("uniquespecifierlength"); + } + set + { + this.OnPropertyChanging("UniqueSpecifierLength"); + this.SetAttributeValue("uniquespecifierlength", value); + this.OnPropertyChanged("UniqueSpecifierLength"); + } + } + + /// + /// The interval at which user access is checked for auditing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useraccessauditinginterval")] + public System.Nullable UserAccessAuditingInterval + { + get + { + return this.GetAttributeValue>("useraccessauditinginterval"); + } + set + { + this.OnPropertyChanging("UserAccessAuditingInterval"); + this.SetAttributeValue("useraccessauditinginterval", value); + this.OnPropertyChanged("UserAccessAuditingInterval"); + } + } + + /// + /// Indicates whether the read-optimized form should be enabled for this organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usereadform")] + public System.Nullable UseReadForm + { + get + { + return this.GetAttributeValue>("usereadform"); + } + set + { + this.OnPropertyChanging("UseReadForm"); + this.SetAttributeValue("usereadform", value); + this.OnPropertyChanged("UseReadForm"); + } + } + + /// + /// Unique identifier of the default group of users in the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usergroupid")] + public System.Nullable UserGroupId + { + get + { + return this.GetAttributeValue>("usergroupid"); + } + set + { + this.OnPropertyChanging("UserGroupId"); + this.SetAttributeValue("usergroupid", value); + this.OnPropertyChanged("UserGroupId"); + } + } + + /// + /// Indicates default protocol selected for organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useskypeprotocol")] + public System.Nullable UseSkypeProtocol + { + get + { + return this.GetAttributeValue>("useskypeprotocol"); + } + set + { + this.OnPropertyChanging("UseSkypeProtocol"); + this.SetAttributeValue("useskypeprotocol", value); + this.OnPropertyChanged("UseSkypeProtocol"); + } + } + + /// + /// 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"); + } + } + + /// + /// Hash of the V3 callout configuration file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("v3calloutconfighash")] + public string V3CalloutConfigHash + { + get + { + return this.GetAttributeValue("v3calloutconfighash"); + } + } + + /// + /// Version number of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Designated first day of the week throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("weekstartdaycode")] + public Microsoft.Xrm.Sdk.OptionSetValue WeekStartDayCode + { + get + { + return this.GetAttributeValue("weekstartdaycode"); + } + set + { + this.OnPropertyChanging("WeekStartDayCode"); + this.SetAttributeValue("weekstartdaycode", value); + this.OnPropertyChanged("WeekStartDayCode"); + } + } + + /// + /// Denotes the Yammer group ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammergroupid")] + public System.Nullable YammerGroupId + { + get + { + return this.GetAttributeValue>("yammergroupid"); + } + set + { + this.OnPropertyChanging("YammerGroupId"); + this.SetAttributeValue("yammergroupid", value); + this.OnPropertyChanged("YammerGroupId"); + } + } + + /// + /// Denotes the Yammer network permalink + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammernetworkpermalink")] + public string YammerNetworkPermalink + { + get + { + return this.GetAttributeValue("yammernetworkpermalink"); + } + set + { + this.OnPropertyChanging("YammerNetworkPermalink"); + this.SetAttributeValue("yammernetworkpermalink", value); + this.OnPropertyChanged("YammerNetworkPermalink"); + } + } + + /// + /// Denotes whether the OAuth access token for Yammer network has expired + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeroauthaccesstokenexpired")] + public System.Nullable YammerOAuthAccessTokenExpired + { + get + { + return this.GetAttributeValue>("yammeroauthaccesstokenexpired"); + } + set + { + this.OnPropertyChanging("YammerOAuthAccessTokenExpired"); + this.SetAttributeValue("yammeroauthaccesstokenexpired", value); + this.OnPropertyChanged("YammerOAuthAccessTokenExpired"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammerpostmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue YammerPostMethod + { + get + { + return this.GetAttributeValue("yammerpostmethod"); + } + set + { + this.OnPropertyChanging("YammerPostMethod"); + this.SetAttributeValue("yammerpostmethod", value); + this.OnPropertyChanged("YammerPostMethod"); + } + } + + /// + /// Information that specifies how the first week of the year is specified in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yearstartweekcode")] + public System.Nullable YearStartWeekCode + { + get + { + return this.GetAttributeValue>("yearstartweekcode"); + } + set + { + this.OnPropertyChanging("YearStartWeekCode"); + this.SetAttributeValue("yearstartweekcode", value); + this.OnPropertyChanged("YearStartWeekCode"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_organizationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_organizationid")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_organizationid + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_organizationid", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_organizationid"); + this.SetRelatedEntities("lk_fieldsecurityprofile_organizationid", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_organizationid"); + } + } + + /// + /// 1:N lk_organizationui_organizationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationui_organizationid")] + public System.Collections.Generic.IEnumerable lk_organizationui_organizationid + { + get + { + return this.GetRelatedEntities("lk_organizationui_organizationid", null); + } + set + { + this.OnPropertyChanging("lk_organizationui_organizationid"); + this.SetRelatedEntities("lk_organizationui_organizationid", null, value); + this.OnPropertyChanged("lk_organizationui_organizationid"); + } + } + + /// + /// 1:N lk_principalobjectattributeaccess_organizationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_principalobjectattributeaccess_organizationid")] + public System.Collections.Generic.IEnumerable lk_principalobjectattributeaccess_organizationid + { + get + { + return this.GetRelatedEntities("lk_principalobjectattributeaccess_organizationid", null); + } + set + { + this.OnPropertyChanging("lk_principalobjectattributeaccess_organizationid"); + this.SetRelatedEntities("lk_principalobjectattributeaccess_organizationid", null, value); + this.OnPropertyChanged("lk_principalobjectattributeaccess_organizationid"); + } + } + + /// + /// 1:N Organization_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_AsyncOperations")] + public System.Collections.Generic.IEnumerable Organization_AsyncOperations + { + get + { + return this.GetRelatedEntities("Organization_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Organization_AsyncOperations"); + this.SetRelatedEntities("Organization_AsyncOperations", null, value); + this.OnPropertyChanged("Organization_AsyncOperations"); + } + } + + /// + /// 1:N organization_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_attributemap")] + public System.Collections.Generic.IEnumerable organization_attributemap + { + get + { + return this.GetRelatedEntities("organization_attributemap", null); + } + set + { + this.OnPropertyChanging("organization_attributemap"); + this.SetRelatedEntities("organization_attributemap", null, value); + this.OnPropertyChanged("organization_attributemap"); + } + } + + /// + /// 1:N Organization_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Organization_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Organization_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Organization_BulkDeleteFailures"); + this.SetRelatedEntities("Organization_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Organization_BulkDeleteFailures"); + } + } + + /// + /// 1:N organization_business_unit_news_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_unit_news_articles")] + public System.Collections.Generic.IEnumerable organization_business_unit_news_articles + { + get + { + return this.GetRelatedEntities("organization_business_unit_news_articles", null); + } + set + { + this.OnPropertyChanging("organization_business_unit_news_articles"); + this.SetRelatedEntities("organization_business_unit_news_articles", null, value); + this.OnPropertyChanged("organization_business_unit_news_articles"); + } + } + + /// + /// 1:N organization_business_units + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_units")] + public System.Collections.Generic.IEnumerable organization_business_units + { + get + { + return this.GetRelatedEntities("organization_business_units", null); + } + set + { + this.OnPropertyChanging("organization_business_units"); + this.SetRelatedEntities("organization_business_units", null, value); + this.OnPropertyChanged("organization_business_units"); + } + } + + /// + /// 1:N organization_calendars + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_calendars")] + public System.Collections.Generic.IEnumerable organization_calendars + { + get + { + return this.GetRelatedEntities("organization_calendars", null); + } + set + { + this.OnPropertyChanging("organization_calendars"); + this.SetRelatedEntities("organization_calendars", null, value); + this.OnPropertyChanged("organization_calendars"); + } + } + + /// + /// 1:N organization_competitors + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_competitors")] + public System.Collections.Generic.IEnumerable organization_competitors + { + get + { + return this.GetRelatedEntities("organization_competitors", null); + } + set + { + this.OnPropertyChanging("organization_competitors"); + this.SetRelatedEntities("organization_competitors", null, value); + this.OnPropertyChanged("organization_competitors"); + } + } + + /// + /// 1:N organization_connection_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_connection_roles")] + public System.Collections.Generic.IEnumerable organization_connection_roles + { + get + { + return this.GetRelatedEntities("organization_connection_roles", null); + } + set + { + this.OnPropertyChanging("organization_connection_roles"); + this.SetRelatedEntities("organization_connection_roles", null, value); + this.OnPropertyChanged("organization_connection_roles"); + } + } + + /// + /// 1:N organization_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_constraint_based_groups")] + public System.Collections.Generic.IEnumerable organization_constraint_based_groups + { + get + { + return this.GetRelatedEntities("organization_constraint_based_groups", null); + } + set + { + this.OnPropertyChanging("organization_constraint_based_groups"); + this.SetRelatedEntities("organization_constraint_based_groups", null, value); + this.OnPropertyChanged("organization_constraint_based_groups"); + } + } + + /// + /// 1:N organization_contract_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_contract_templates")] + public System.Collections.Generic.IEnumerable organization_contract_templates + { + get + { + return this.GetRelatedEntities("organization_contract_templates", null); + } + set + { + this.OnPropertyChanging("organization_contract_templates"); + this.SetRelatedEntities("organization_contract_templates", null, value); + this.OnPropertyChanged("organization_contract_templates"); + } + } + + /// + /// 1:N organization_custom_displaystrings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_custom_displaystrings")] + public System.Collections.Generic.IEnumerable organization_custom_displaystrings + { + get + { + return this.GetRelatedEntities("organization_custom_displaystrings", null); + } + set + { + this.OnPropertyChanging("organization_custom_displaystrings"); + this.SetRelatedEntities("organization_custom_displaystrings", null, value); + this.OnPropertyChanged("organization_custom_displaystrings"); + } + } + + /// + /// 1:N organization_discount_types + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_discount_types")] + public System.Collections.Generic.IEnumerable organization_discount_types + { + get + { + return this.GetRelatedEntities("organization_discount_types", null); + } + set + { + this.OnPropertyChanging("organization_discount_types"); + this.SetRelatedEntities("organization_discount_types", null, value); + this.OnPropertyChanged("organization_discount_types"); + } + } + + /// + /// 1:N organization_emailserverprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_emailserverprofile")] + public System.Collections.Generic.IEnumerable organization_emailserverprofile + { + get + { + return this.GetRelatedEntities("organization_emailserverprofile", null); + } + set + { + this.OnPropertyChanging("organization_emailserverprofile"); + this.SetRelatedEntities("organization_emailserverprofile", null, value); + this.OnPropertyChanged("organization_emailserverprofile"); + } + } + + /// + /// 1:N organization_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_entitymap")] + public System.Collections.Generic.IEnumerable organization_entitymap + { + get + { + return this.GetRelatedEntities("organization_entitymap", null); + } + set + { + this.OnPropertyChanging("organization_entitymap"); + this.SetRelatedEntities("organization_entitymap", null, value); + this.OnPropertyChanged("organization_entitymap"); + } + } + + /// + /// 1:N organization_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_equipment")] + public System.Collections.Generic.IEnumerable organization_equipment + { + get + { + return this.GetRelatedEntities("organization_equipment", null); + } + set + { + this.OnPropertyChanging("organization_equipment"); + this.SetRelatedEntities("organization_equipment", null, value); + this.OnPropertyChanged("organization_equipment"); + } + } + + /// + /// 1:N organization_importjob + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_importjob")] + public System.Collections.Generic.IEnumerable organization_importjob + { + get + { + return this.GetRelatedEntities("organization_importjob", null); + } + set + { + this.OnPropertyChanging("organization_importjob"); + this.SetRelatedEntities("organization_importjob", null, value); + this.OnPropertyChanged("organization_importjob"); + } + } + + /// + /// 1:N organization_isvconfigs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_isvconfigs")] + public System.Collections.Generic.IEnumerable organization_isvconfigs + { + get + { + return this.GetRelatedEntities("organization_isvconfigs", null); + } + set + { + this.OnPropertyChanging("organization_isvconfigs"); + this.SetRelatedEntities("organization_isvconfigs", null, value); + this.OnPropertyChanged("organization_isvconfigs"); + } + } + + /// + /// 1:N organization_kb_article_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_article_templates")] + public System.Collections.Generic.IEnumerable organization_kb_article_templates + { + get + { + return this.GetRelatedEntities("organization_kb_article_templates", null); + } + set + { + this.OnPropertyChanging("organization_kb_article_templates"); + this.SetRelatedEntities("organization_kb_article_templates", null, value); + this.OnPropertyChanged("organization_kb_article_templates"); + } + } + + /// + /// 1:N organization_kb_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_articles")] + public System.Collections.Generic.IEnumerable organization_kb_articles + { + get + { + return this.GetRelatedEntities("organization_kb_articles", null); + } + set + { + this.OnPropertyChanging("organization_kb_articles"); + this.SetRelatedEntities("organization_kb_articles", null, value); + this.OnPropertyChanged("organization_kb_articles"); + } + } + + /// + /// 1:N organization_licenses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_licenses")] + public System.Collections.Generic.IEnumerable organization_licenses + { + get + { + return this.GetRelatedEntities("organization_licenses", null); + } + set + { + this.OnPropertyChanging("organization_licenses"); + this.SetRelatedEntities("organization_licenses", null, value); + this.OnPropertyChanged("organization_licenses"); + } + } + + /// + /// 1:N organization_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_mailbox")] + public System.Collections.Generic.IEnumerable organization_mailbox + { + get + { + return this.GetRelatedEntities("organization_mailbox", null); + } + set + { + this.OnPropertyChanging("organization_mailbox"); + this.SetRelatedEntities("organization_mailbox", null, value); + this.OnPropertyChanged("organization_mailbox"); + } + } + + /// + /// 1:N organization_metric + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_metric")] + public System.Collections.Generic.IEnumerable organization_metric + { + get + { + return this.GetRelatedEntities("organization_metric", null); + } + set + { + this.OnPropertyChanging("organization_metric"); + this.SetRelatedEntities("organization_metric", null, value); + this.OnPropertyChanged("organization_metric"); + } + } + + /// + /// 1:N organization_msdyn_postconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postconfig")] + public System.Collections.Generic.IEnumerable organization_msdyn_postconfig + { + get + { + return this.GetRelatedEntities("organization_msdyn_postconfig", null); + } + set + { + this.OnPropertyChanging("organization_msdyn_postconfig"); + this.SetRelatedEntities("organization_msdyn_postconfig", null, value); + this.OnPropertyChanged("organization_msdyn_postconfig"); + } + } + + /// + /// 1:N organization_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postruleconfig")] + public System.Collections.Generic.IEnumerable organization_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntities("organization_msdyn_postruleconfig", null); + } + set + { + this.OnPropertyChanging("organization_msdyn_postruleconfig"); + this.SetRelatedEntities("organization_msdyn_postruleconfig", null, value); + this.OnPropertyChanged("organization_msdyn_postruleconfig"); + } + } + + /// + /// 1:N organization_msdyn_wallsavedquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_wallsavedquery")] + public System.Collections.Generic.IEnumerable organization_msdyn_wallsavedquery + { + get + { + return this.GetRelatedEntities("organization_msdyn_wallsavedquery", null); + } + set + { + this.OnPropertyChanging("organization_msdyn_wallsavedquery"); + this.SetRelatedEntities("organization_msdyn_wallsavedquery", null, value); + this.OnPropertyChanged("organization_msdyn_wallsavedquery"); + } + } + + /// + /// 1:N organization_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_pluginassembly")] + public System.Collections.Generic.IEnumerable organization_pluginassembly + { + get + { + return this.GetRelatedEntities("organization_pluginassembly", null); + } + set + { + this.OnPropertyChanging("organization_pluginassembly"); + this.SetRelatedEntities("organization_pluginassembly", null, value); + this.OnPropertyChanged("organization_pluginassembly"); + } + } + + /// + /// 1:N organization_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintype")] + public System.Collections.Generic.IEnumerable organization_plugintype + { + get + { + return this.GetRelatedEntities("organization_plugintype", null); + } + set + { + this.OnPropertyChanging("organization_plugintype"); + this.SetRelatedEntities("organization_plugintype", null, value); + this.OnPropertyChanged("organization_plugintype"); + } + } + + /// + /// 1:N organization_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintypestatistic")] + public System.Collections.Generic.IEnumerable organization_plugintypestatistic + { + get + { + return this.GetRelatedEntities("organization_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("organization_plugintypestatistic"); + this.SetRelatedEntities("organization_plugintypestatistic", null, value); + this.OnPropertyChanged("organization_plugintypestatistic"); + } + } + + /// + /// 1:N organization_post + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_post")] + public System.Collections.Generic.IEnumerable organization_post + { + get + { + return this.GetRelatedEntities("organization_post", null); + } + set + { + this.OnPropertyChanging("organization_post"); + this.SetRelatedEntities("organization_post", null, value); + this.OnPropertyChanged("organization_post"); + } + } + + /// + /// 1:N organization_PostComment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_PostComment")] + public System.Collections.Generic.IEnumerable organization_PostComment + { + get + { + return this.GetRelatedEntities("organization_PostComment", null); + } + set + { + this.OnPropertyChanging("organization_PostComment"); + this.SetRelatedEntities("organization_PostComment", null, value); + this.OnPropertyChanged("organization_PostComment"); + } + } + + /// + /// 1:N organization_postlike + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_postlike")] + public System.Collections.Generic.IEnumerable organization_postlike + { + get + { + return this.GetRelatedEntities("organization_postlike", null); + } + set + { + this.OnPropertyChanging("organization_postlike"); + this.SetRelatedEntities("organization_postlike", null, value); + this.OnPropertyChanged("organization_postlike"); + } + } + + /// + /// 1:N organization_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_price_levels")] + public System.Collections.Generic.IEnumerable organization_price_levels + { + get + { + return this.GetRelatedEntities("organization_price_levels", null); + } + set + { + this.OnPropertyChanging("organization_price_levels"); + this.SetRelatedEntities("organization_price_levels", null, value); + this.OnPropertyChanged("organization_price_levels"); + } + } + + /// + /// 1:N organization_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_products")] + public System.Collections.Generic.IEnumerable organization_products + { + get + { + return this.GetRelatedEntities("organization_products", null); + } + set + { + this.OnPropertyChanging("organization_products"); + this.SetRelatedEntities("organization_products", null, value); + this.OnPropertyChanged("organization_products"); + } + } + + /// + /// 1:N organization_publisher + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_publisher")] + public System.Collections.Generic.IEnumerable organization_publisher + { + get + { + return this.GetRelatedEntities("organization_publisher", null); + } + set + { + this.OnPropertyChanging("organization_publisher"); + this.SetRelatedEntities("organization_publisher", null, value); + this.OnPropertyChanged("organization_publisher"); + } + } + + /// + /// 1:N organization_queueitems + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queueitems")] + public System.Collections.Generic.IEnumerable organization_queueitems + { + get + { + return this.GetRelatedEntities("organization_queueitems", null); + } + set + { + this.OnPropertyChanging("organization_queueitems"); + this.SetRelatedEntities("organization_queueitems", null, value); + this.OnPropertyChanged("organization_queueitems"); + } + } + + /// + /// 1:N organization_queues + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queues")] + public System.Collections.Generic.IEnumerable organization_queues + { + get + { + return this.GetRelatedEntities("organization_queues", null); + } + set + { + this.OnPropertyChanging("organization_queues"); + this.SetRelatedEntities("organization_queues", null, value); + this.OnPropertyChanged("organization_queues"); + } + } + + /// + /// 1:N organization_relationship_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_relationship_roles")] + public System.Collections.Generic.IEnumerable organization_relationship_roles + { + get + { + return this.GetRelatedEntities("organization_relationship_roles", null); + } + set + { + this.OnPropertyChanging("organization_relationship_roles"); + this.SetRelatedEntities("organization_relationship_roles", null, value); + this.OnPropertyChanged("organization_relationship_roles"); + } + } + + /// + /// 1:N organization_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_groups")] + public System.Collections.Generic.IEnumerable organization_resource_groups + { + get + { + return this.GetRelatedEntities("organization_resource_groups", null); + } + set + { + this.OnPropertyChanging("organization_resource_groups"); + this.SetRelatedEntities("organization_resource_groups", null, value); + this.OnPropertyChanged("organization_resource_groups"); + } + } + + /// + /// 1:N organization_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_specs")] + public System.Collections.Generic.IEnumerable organization_resource_specs + { + get + { + return this.GetRelatedEntities("organization_resource_specs", null); + } + set + { + this.OnPropertyChanging("organization_resource_specs"); + this.SetRelatedEntities("organization_resource_specs", null, value); + this.OnPropertyChanged("organization_resource_specs"); + } + } + + /// + /// 1:N organization_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resources")] + public System.Collections.Generic.IEnumerable organization_resources + { + get + { + return this.GetRelatedEntities("organization_resources", null); + } + set + { + this.OnPropertyChanging("organization_resources"); + this.SetRelatedEntities("organization_resources", null, value); + this.OnPropertyChanged("organization_resources"); + } + } + + /// + /// 1:N organization_ribbon_customization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_ribbon_customization")] + public System.Collections.Generic.IEnumerable organization_ribbon_customization + { + get + { + return this.GetRelatedEntities("organization_ribbon_customization", null); + } + set + { + this.OnPropertyChanging("organization_ribbon_customization"); + this.SetRelatedEntities("organization_ribbon_customization", null, value); + this.OnPropertyChanged("organization_ribbon_customization"); + } + } + + /// + /// 1:N organization_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_roles")] + public System.Collections.Generic.IEnumerable organization_roles + { + get + { + return this.GetRelatedEntities("organization_roles", null); + } + set + { + this.OnPropertyChanging("organization_roles"); + this.SetRelatedEntities("organization_roles", null, value); + this.OnPropertyChanged("organization_roles"); + } + } + + /// + /// 1:N organization_sales_literature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sales_literature")] + public System.Collections.Generic.IEnumerable organization_sales_literature + { + get + { + return this.GetRelatedEntities("organization_sales_literature", null); + } + set + { + this.OnPropertyChanging("organization_sales_literature"); + this.SetRelatedEntities("organization_sales_literature", null, value); + this.OnPropertyChanged("organization_sales_literature"); + } + } + + /// + /// 1:N organization_saved_queries + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_queries")] + public System.Collections.Generic.IEnumerable organization_saved_queries + { + get + { + return this.GetRelatedEntities("organization_saved_queries", null); + } + set + { + this.OnPropertyChanging("organization_saved_queries"); + this.SetRelatedEntities("organization_saved_queries", null, value); + this.OnPropertyChanged("organization_saved_queries"); + } + } + + /// + /// 1:N organization_saved_query_visualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_query_visualizations")] + public System.Collections.Generic.IEnumerable organization_saved_query_visualizations + { + get + { + return this.GetRelatedEntities("organization_saved_query_visualizations", null); + } + set + { + this.OnPropertyChanging("organization_saved_query_visualizations"); + this.SetRelatedEntities("organization_saved_query_visualizations", null, value); + this.OnPropertyChanged("organization_saved_query_visualizations"); + } + } + + /// + /// 1:N organization_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessage")] + public System.Collections.Generic.IEnumerable organization_sdkmessage + { + get + { + return this.GetRelatedEntities("organization_sdkmessage", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessage"); + this.SetRelatedEntities("organization_sdkmessage", null, value); + this.OnPropertyChanged("organization_sdkmessage"); + } + } + + /// + /// 1:N organization_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable organization_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("organization_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagefilter"); + this.SetRelatedEntities("organization_sdkmessagefilter", null, value); + this.OnPropertyChanged("organization_sdkmessagefilter"); + } + } + + /// + /// 1:N organization_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagepair")] + public System.Collections.Generic.IEnumerable organization_sdkmessagepair + { + get + { + return this.GetRelatedEntities("organization_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagepair"); + this.SetRelatedEntities("organization_sdkmessagepair", null, value); + this.OnPropertyChanged("organization_sdkmessagepair"); + } + } + + /// + /// 1:N organization_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable organization_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("organization_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageprocessingstep"); + this.SetRelatedEntities("organization_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("organization_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N organization_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable organization_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("organization_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("organization_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("organization_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N organization_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable organization_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("organization_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("organization_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("organization_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// 1:N organization_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable organization_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("organization_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagerequest"); + this.SetRelatedEntities("organization_sdkmessagerequest", null, value); + this.OnPropertyChanged("organization_sdkmessagerequest"); + } + } + + /// + /// 1:N organization_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable organization_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("organization_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagerequestfield"); + this.SetRelatedEntities("organization_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("organization_sdkmessagerequestfield"); + } + } + + /// + /// 1:N organization_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable organization_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("organization_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageresponse"); + this.SetRelatedEntities("organization_sdkmessageresponse", null, value); + this.OnPropertyChanged("organization_sdkmessageresponse"); + } + } + + /// + /// 1:N organization_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable organization_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("organization_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageresponsefield"); + this.SetRelatedEntities("organization_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("organization_sdkmessageresponsefield"); + } + } + + /// + /// 1:N organization_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_serviceendpoint")] + public System.Collections.Generic.IEnumerable organization_serviceendpoint + { + get + { + return this.GetRelatedEntities("organization_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("organization_serviceendpoint"); + this.SetRelatedEntities("organization_serviceendpoint", null, value); + this.OnPropertyChanged("organization_serviceendpoint"); + } + } + + /// + /// 1:N organization_services + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_services")] + public System.Collections.Generic.IEnumerable organization_services + { + get + { + return this.GetRelatedEntities("organization_services", null); + } + set + { + this.OnPropertyChanging("organization_services"); + this.SetRelatedEntities("organization_services", null, value); + this.OnPropertyChanged("organization_services"); + } + } + + /// + /// 1:N organization_sitemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sitemap")] + public System.Collections.Generic.IEnumerable organization_sitemap + { + get + { + return this.GetRelatedEntities("organization_sitemap", null); + } + set + { + this.OnPropertyChanging("organization_sitemap"); + this.SetRelatedEntities("organization_sitemap", null, value); + this.OnPropertyChanged("organization_sitemap"); + } + } + + /// + /// 1:N organization_sites + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sites")] + public System.Collections.Generic.IEnumerable organization_sites + { + get + { + return this.GetRelatedEntities("organization_sites", null); + } + set + { + this.OnPropertyChanging("organization_sites"); + this.SetRelatedEntities("organization_sites", null, value); + this.OnPropertyChanged("organization_sites"); + } + } + + /// + /// 1:N organization_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_solution")] + public System.Collections.Generic.IEnumerable organization_solution + { + get + { + return this.GetRelatedEntities("organization_solution", null); + } + set + { + this.OnPropertyChanging("organization_solution"); + this.SetRelatedEntities("organization_solution", null, value); + this.OnPropertyChanged("organization_solution"); + } + } + + /// + /// 1:N organization_subjects + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_subjects")] + public System.Collections.Generic.IEnumerable organization_subjects + { + get + { + return this.GetRelatedEntities("organization_subjects", null); + } + set + { + this.OnPropertyChanging("organization_subjects"); + this.SetRelatedEntities("organization_subjects", null, value); + this.OnPropertyChanged("organization_subjects"); + } + } + + /// + /// 1:N organization_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_system_users")] + public System.Collections.Generic.IEnumerable organization_system_users + { + get + { + return this.GetRelatedEntities("organization_system_users", null); + } + set + { + this.OnPropertyChanging("organization_system_users"); + this.SetRelatedEntities("organization_system_users", null, value); + this.OnPropertyChanged("organization_system_users"); + } + } + + /// + /// 1:N organization_systemforms + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_systemforms")] + public System.Collections.Generic.IEnumerable organization_systemforms + { + get + { + return this.GetRelatedEntities("organization_systemforms", null); + } + set + { + this.OnPropertyChanging("organization_systemforms"); + this.SetRelatedEntities("organization_systemforms", null, value); + this.OnPropertyChanged("organization_systemforms"); + } + } + + /// + /// 1:N organization_teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_teams")] + public System.Collections.Generic.IEnumerable organization_teams + { + get + { + return this.GetRelatedEntities("organization_teams", null); + } + set + { + this.OnPropertyChanging("organization_teams"); + this.SetRelatedEntities("organization_teams", null, value); + this.OnPropertyChanged("organization_teams"); + } + } + + /// + /// 1:N organization_territories + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_territories")] + public System.Collections.Generic.IEnumerable organization_territories + { + get + { + return this.GetRelatedEntities("organization_territories", null); + } + set + { + this.OnPropertyChanging("organization_territories"); + this.SetRelatedEntities("organization_territories", null, value); + this.OnPropertyChanged("organization_territories"); + } + } + + /// + /// 1:N organization_tracelog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_tracelog")] + public System.Collections.Generic.IEnumerable organization_tracelog + { + get + { + return this.GetRelatedEntities("organization_tracelog", null); + } + set + { + this.OnPropertyChanging("organization_tracelog"); + this.SetRelatedEntities("organization_tracelog", null, value); + this.OnPropertyChanged("organization_tracelog"); + } + } + + /// + /// 1:N organization_transactioncurrencies + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_transactioncurrencies")] + public System.Collections.Generic.IEnumerable organization_transactioncurrencies + { + get + { + return this.GetRelatedEntities("organization_transactioncurrencies", null); + } + set + { + this.OnPropertyChanging("organization_transactioncurrencies"); + this.SetRelatedEntities("organization_transactioncurrencies", null, value); + this.OnPropertyChanged("organization_transactioncurrencies"); + } + } + + /// + /// 1:N organization_uof_schedules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_uof_schedules")] + public System.Collections.Generic.IEnumerable organization_uof_schedules + { + get + { + return this.GetRelatedEntities("organization_uof_schedules", null); + } + set + { + this.OnPropertyChanging("organization_uof_schedules"); + this.SetRelatedEntities("organization_uof_schedules", null, value); + this.OnPropertyChanged("organization_uof_schedules"); + } + } + + /// + /// 1:N userentityinstancedata_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_organization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_organization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_organization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_organization"); + this.SetRelatedEntities("userentityinstancedata_organization", null, value); + this.OnPropertyChanged("userentityinstancedata_organization"); + } + } + + /// + /// 1:N webresource_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_organization")] + public System.Collections.Generic.IEnumerable webresource_organization + { + get + { + return this.GetRelatedEntities("webresource_organization", null); + } + set + { + this.OnPropertyChanging("webresource_organization"); + this.SetRelatedEntities("webresource_organization", null, value); + this.OnPropertyChanged("webresource_organization"); + } + } + + /// + /// N:1 basecurrency_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("basecurrency_organization")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency basecurrency_organization + { + get + { + return this.GetRelatedEntity("basecurrency_organization", null); + } + set + { + this.OnPropertyChanging("basecurrency_organization"); + this.SetRelatedEntity("basecurrency_organization", null, value); + this.OnPropertyChanged("basecurrency_organization"); + } + } + + /// + /// N:1 calendar_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessclosurecalendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_organization")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_organization + { + get + { + return this.GetRelatedEntity("calendar_organization", null); + } + set + { + this.OnPropertyChanging("calendar_organization"); + this.SetRelatedEntity("calendar_organization", null, value); + this.OnPropertyChanged("calendar_organization"); + } + } + + /// + /// N:1 EmailServerProfile_Organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultemailserverprofileid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Organization")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile EmailServerProfile_Organization + { + get + { + return this.GetRelatedEntity("EmailServerProfile_Organization", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Organization"); + this.SetRelatedEntity("EmailServerProfile_Organization", null, value); + this.OnPropertyChanged("EmailServerProfile_Organization"); + } + } + + /// + /// N:1 lk_organization_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organization_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_organization_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_organization_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organization_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_organization_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_organizationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organizationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_organizationbase_createdby", null); + } + } + + /// + /// N:1 lk_organizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organizationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_organizationbase_modifiedby", null); + } + } + + /// + /// N:1 Template_Organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("acknowledgementtemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_Organization")] + public Xrm.Framework.CI.Common.Entities.Template Template_Organization + { + get + { + return this.GetRelatedEntity("Template_Organization", null); + } + set + { + this.OnPropertyChanging("Template_Organization"); + this.SetRelatedEntity("Template_Organization", null, value); + this.OnPropertyChanged("Template_Organization"); + } + } + } + + /// + /// Entity customizations including form layout and icons. Includes current and past versions. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("organizationui")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OrganizationUI : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OrganizationUI() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "organizationui"; + + public const int EntityTypeCode = 1021; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldxml")] + public string FieldXml + { + get + { + return this.GetAttributeValue("fieldxml"); + } + set + { + this.OnPropertyChanging("FieldXml"); + this.SetAttributeValue("fieldxml", value); + this.OnPropertyChanged("FieldXml"); + } + } + + /// + /// Unique identifier of the record type form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public System.Nullable FormId + { + get + { + return this.GetAttributeValue>("formid"); + } + set + { + this.OnPropertyChanging("FormId"); + this.SetAttributeValue("formid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FormId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FormId = value; + } + } + + /// + /// Unique identifier of the form used when synchronizing customizations for the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formidunique")] + public System.Nullable FormIdUnique + { + get + { + return this.GetAttributeValue>("formidunique"); + } + } + + /// + /// XML representation of the form layout. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formxml")] + public string FormXml + { + get + { + return this.GetAttributeValue("formxml"); + } + set + { + this.OnPropertyChanging("FormXml"); + this.SetAttributeValue("formxml", value); + this.OnPropertyChanged("FormXml"); + } + } + + /// + /// Binary representation of the icon used in record type grid views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("gridicon")] + public string GridIcon + { + get + { + return this.GetAttributeValue("gridicon"); + } + set + { + this.OnPropertyChanging("GridIcon"); + this.SetAttributeValue("gridicon", value); + this.OnPropertyChanged("GridIcon"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Binary representation of the large icon used in the record type form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("largeentityicon")] + public string LargeEntityIcon + { + get + { + return this.GetAttributeValue("largeentityicon"); + } + set + { + this.OnPropertyChanging("LargeEntityIcon"); + this.SetAttributeValue("largeentityicon", value); + this.OnPropertyChanged("LargeEntityIcon"); + } + } + + /// + /// Code that represents the record type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Binary representation of the large icon used in the Microsoft Dynamics CRM client for Outlook for this record type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlookshortcuticon")] + public string OutlookShortcutIcon + { + get + { + return this.GetAttributeValue("outlookshortcuticon"); + } + set + { + this.OnPropertyChanging("OutlookShortcutIcon"); + this.SetAttributeValue("outlookshortcuticon", value); + this.OnPropertyChanged("OutlookShortcutIcon"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previewcolumnsetxml")] + public string PreviewColumnsetXml + { + get + { + return this.GetAttributeValue("previewcolumnsetxml"); + } + set + { + this.OnPropertyChanging("PreviewColumnsetXml"); + this.SetAttributeValue("previewcolumnsetxml", value); + this.OnPropertyChanged("PreviewColumnsetXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previewxml")] + public string PreviewXml + { + get + { + return this.GetAttributeValue("previewxml"); + } + set + { + this.OnPropertyChanging("PreviewXml"); + this.SetAttributeValue("previewxml", value); + this.OnPropertyChanged("PreviewXml"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public System.Nullable Version + { + get + { + return this.GetAttributeValue>("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// Represents a version of customizations to be synchronized with the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 lk_organizationui_organizationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationui_organizationid")] + public Xrm.Framework.CI.Common.Entities.Organization lk_organizationui_organizationid + { + get + { + return this.GetRelatedEntity("lk_organizationui_organizationid", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OwnerMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps ownership data from the source file to Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ownermapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OwnerMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OwnerMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "ownermapping"; + + public const int EntityTypeCode = 4420; + + 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 owner mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the owner mapping 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 ownermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the data map with which the owner mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the owner mapping 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 ownermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the owner mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownermappingid")] + public System.Nullable OwnerMappingId + { + get + { + return this.GetAttributeValue>("ownermappingid"); + } + set + { + this.OnPropertyChanging("OwnerMappingId"); + this.SetAttributeValue("ownermappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OwnerMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownermappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OwnerMappingId = value; + } + } + + /// + /// Code that indicates whether the owner mapping has to be processed + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Source user name that has to be replaced + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcesystemusername")] + public string SourceSystemUserName + { + get + { + return this.GetAttributeValue("sourcesystemusername"); + } + set + { + this.OnPropertyChanging("SourceSystemUserName"); + this.SetAttributeValue("sourcesystemusername", value); + this.OnPropertyChanged("SourceSystemUserName"); + } + } + + /// + /// Source user value for source Microsoft Dynamics CRM user link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceuservalueforsourcecrmuserlink")] + public string SourceUserValueForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("sourceuservalueforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("SourceUserValueForSourceCRMUserLink"); + this.SetAttributeValue("sourceuservalueforsourcecrmuserlink", value); + this.OnPropertyChanged("SourceUserValueForSourceCRMUserLink"); + } + } + + /// + /// Status of the owner mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.OwnerMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OwnerMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the owner mapping. + /// + [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"); + } + } + + /// + /// Microsoft Dynamics CRM logon name with which the source user name should be replaced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetsystemuserdomainname")] + public string TargetSystemUserDomainName + { + get + { + return this.GetAttributeValue("targetsystemuserdomainname"); + } + set + { + this.OnPropertyChanging("TargetSystemUserDomainName"); + this.SetAttributeValue("targetsystemuserdomainname", value); + this.OnPropertyChanged("TargetSystemUserDomainName"); + } + } + + /// + /// Unique identifier of the Microsoft Dynamics CRM user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference TargetSystemUserId + { + get + { + return this.GetAttributeValue("targetsystemuserid"); + } + set + { + this.OnPropertyChanging("TargetSystemUserId"); + this.SetAttributeValue("targetsystemuserid", value); + this.OnPropertyChanged("TargetSystemUserId"); + } + } + + /// + /// Microsoft Dynamics CRM user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetuservalueforsourcecrmuserlink")] + public string TargetUserValueForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("targetuservalueforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("TargetUserValueForSourceCRMUserLink"); + this.SetAttributeValue("targetuservalueforsourcecrmuserlink", value); + this.OnPropertyChanged("TargetUserValueForSourceCRMUserLink"); + } + } + + /// + /// 1:N userentityinstancedata_ownermapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ownermapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_ownermapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_ownermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ownermapping"); + this.SetRelatedEntities("userentityinstancedata_ownermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_ownermapping"); + } + } + + /// + /// N:1 lk_ownermapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_createdby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_createdby", null); + } + } + + /// + /// N:1 lk_ownermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_ownermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_modifiedby", null); + } + } + + /// + /// N:1 lk_ownermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 OwnerMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap OwnerMapping_ImportMap + { + get + { + return this.GetRelatedEntity("OwnerMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_ImportMap"); + this.SetRelatedEntity("OwnerMapping_ImportMap", null, value); + this.OnPropertyChanged("OwnerMapping_ImportMap"); + } + } + + /// + /// N:1 OwnerMapping_SystemUser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_SystemUser")] + public Xrm.Framework.CI.Common.Entities.SystemUser OwnerMapping_SystemUser + { + get + { + return this.GetRelatedEntity("OwnerMapping_SystemUser", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_SystemUser"); + this.SetRelatedEntity("OwnerMapping_SystemUser", null, value); + this.OnPropertyChanged("OwnerMapping_SystemUser"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum PhoneCallState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity to track a telephone call. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("phonecall")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PhoneCall : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PhoneCall() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "phonecall"; + + public const int EntityTypeCode = 4210; + + 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 phone call 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Type the number of minutes spent on the phone call. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the phone call. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual duration of the phone call. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the phone call. By default, it displays the date and time when the activity was created, but can be edited to capture the actual duration of the phone call. + /// + [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"); + } + } + + /// + /// Type a category to identify the phone call type, such as lead gathering or customer follow-up, to tie the phone call to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the phone call, such as the primary message or the products and services discussed. + /// + [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 the direction of the phone call as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 account, contact, lead, or user who made the phone call. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information which specifies whether the phone call 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indication which specifies if the phone call activity was created by 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"); + } + } + + /// + /// Select whether a voice mail was left for the person. + /// + [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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 phone call 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 phone call 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 phone call activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the phone number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("phonenumber")] + public string PhoneNumber + { + get + { + return this.GetAttributeValue("phonenumber"); + } + set + { + this.OnPropertyChanging("PhoneNumber"); + this.SetAttributeValue("phonenumber", value); + this.OnPropertyChanged("PhoneNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the phone call 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"); + } + } + + /// + /// Scheduled duration of the phone call activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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 for an associated service. + /// + [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"); + } + } + + /// + /// 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 phone call is open, completed, or canceled. Completed and canceled phone calls are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.PhoneCallState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.PhoneCallState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the phone call'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"); + } + } + + /// + /// Type a subcategory to identify the phone call type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the phone call. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, or user recipients of the phone call. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 phone call activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N phonecall_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_activity_parties")] + public System.Collections.Generic.IEnumerable phonecall_activity_parties + { + get + { + return this.GetRelatedEntities("phonecall_activity_parties", null); + } + set + { + this.OnPropertyChanging("phonecall_activity_parties"); + this.SetRelatedEntities("phonecall_activity_parties", null, value); + this.OnPropertyChanged("phonecall_activity_parties"); + } + } + + /// + /// 1:N PhoneCall_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_Annotation")] + public System.Collections.Generic.IEnumerable PhoneCall_Annotation + { + get + { + return this.GetRelatedEntities("PhoneCall_Annotation", null); + } + set + { + this.OnPropertyChanging("PhoneCall_Annotation"); + this.SetRelatedEntities("PhoneCall_Annotation", null, value); + this.OnPropertyChanged("PhoneCall_Annotation"); + } + } + + /// + /// 1:N PhoneCall_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_AsyncOperations")] + public System.Collections.Generic.IEnumerable PhoneCall_AsyncOperations + { + get + { + return this.GetRelatedEntities("PhoneCall_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PhoneCall_AsyncOperations"); + this.SetRelatedEntities("PhoneCall_AsyncOperations", null, value); + this.OnPropertyChanged("PhoneCall_AsyncOperations"); + } + } + + /// + /// 1:N PhoneCall_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable PhoneCall_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("PhoneCall_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("PhoneCall_BulkDeleteFailures"); + this.SetRelatedEntities("PhoneCall_BulkDeleteFailures", null, value); + this.OnPropertyChanged("PhoneCall_BulkDeleteFailures"); + } + } + + /// + /// 1:N phonecall_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_campaignresponse")] + public System.Collections.Generic.IEnumerable phonecall_campaignresponse + { + get + { + return this.GetRelatedEntities("phonecall_campaignresponse", null); + } + set + { + this.OnPropertyChanging("phonecall_campaignresponse"); + this.SetRelatedEntities("phonecall_campaignresponse", null, value); + this.OnPropertyChanged("phonecall_campaignresponse"); + } + } + + /// + /// 1:N phonecall_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections1")] + public System.Collections.Generic.IEnumerable phonecall_connections1 + { + get + { + return this.GetRelatedEntities("phonecall_connections1", null); + } + set + { + this.OnPropertyChanging("phonecall_connections1"); + this.SetRelatedEntities("phonecall_connections1", null, value); + this.OnPropertyChanged("phonecall_connections1"); + } + } + + /// + /// 1:N phonecall_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections2")] + public System.Collections.Generic.IEnumerable phonecall_connections2 + { + get + { + return this.GetRelatedEntities("phonecall_connections2", null); + } + set + { + this.OnPropertyChanging("phonecall_connections2"); + this.SetRelatedEntities("phonecall_connections2", null, value); + this.OnPropertyChanged("phonecall_connections2"); + } + } + + /// + /// 1:N PhoneCall_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable PhoneCall_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("PhoneCall_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("PhoneCall_DuplicateBaseRecord"); + this.SetRelatedEntities("PhoneCall_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("PhoneCall_DuplicateBaseRecord"); + } + } + + /// + /// 1:N PhoneCall_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable PhoneCall_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("PhoneCall_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("PhoneCall_DuplicateMatchingRecord"); + this.SetRelatedEntities("PhoneCall_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("PhoneCall_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N phonecall_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_PostFollows")] + public System.Collections.Generic.IEnumerable phonecall_PostFollows + { + get + { + return this.GetRelatedEntities("phonecall_PostFollows", null); + } + set + { + this.OnPropertyChanging("phonecall_PostFollows"); + this.SetRelatedEntities("phonecall_PostFollows", null, value); + this.OnPropertyChanged("phonecall_PostFollows"); + } + } + + /// + /// 1:N phonecall_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable phonecall_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("phonecall_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("phonecall_principalobjectattributeaccess"); + this.SetRelatedEntities("phonecall_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("phonecall_principalobjectattributeaccess"); + } + } + + /// + /// 1:N PhoneCall_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_ProcessSessions")] + public System.Collections.Generic.IEnumerable PhoneCall_ProcessSessions + { + get + { + return this.GetRelatedEntities("PhoneCall_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PhoneCall_ProcessSessions"); + this.SetRelatedEntities("PhoneCall_ProcessSessions", null, value); + this.OnPropertyChanged("PhoneCall_ProcessSessions"); + } + } + + /// + /// 1:N PhoneCall_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_QueueItem")] + public System.Collections.Generic.IEnumerable PhoneCall_QueueItem + { + get + { + return this.GetRelatedEntities("PhoneCall_QueueItem", null); + } + set + { + this.OnPropertyChanging("PhoneCall_QueueItem"); + this.SetRelatedEntities("PhoneCall_QueueItem", null, value); + this.OnPropertyChanged("PhoneCall_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_phonecall")] + public System.Collections.Generic.IEnumerable userentityinstancedata_phonecall + { + get + { + return this.GetRelatedEntities("userentityinstancedata_phonecall", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_phonecall"); + this.SetRelatedEntities("userentityinstancedata_phonecall", null, value); + this.OnPropertyChanged("userentityinstancedata_phonecall"); + } + } + + /// + /// N:1 Account_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Account Account_Phonecalls + { + get + { + return this.GetRelatedEntity("Account_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Account_Phonecalls"); + this.SetRelatedEntity("Account_Phonecalls", null, value); + this.OnPropertyChanged("Account_Phonecalls"); + } + } + + /// + /// N:1 activity_pointer_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_phonecall")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_phonecall + { + get + { + return this.GetRelatedEntity("activity_pointer_phonecall", null); + } + set + { + this.OnPropertyChanging("activity_pointer_phonecall"); + this.SetRelatedEntity("activity_pointer_phonecall", null, value); + this.OnPropertyChanged("activity_pointer_phonecall"); + } + } + + /// + /// N:1 BulkOperation_Phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Phonecall")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Phonecall + { + get + { + return this.GetRelatedEntity("BulkOperation_Phonecall", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Phonecall"); + this.SetRelatedEntity("BulkOperation_Phonecall", null, value); + this.OnPropertyChanged("BulkOperation_Phonecall"); + } + } + + /// + /// N:1 business_unit_phone_call_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_phone_call_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_phone_call_activities + { + get + { + return this.GetRelatedEntity("business_unit_phone_call_activities", null); + } + } + + /// + /// N:1 Campaign_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Phonecalls + { + get + { + return this.GetRelatedEntity("Campaign_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Campaign_Phonecalls"); + this.SetRelatedEntity("Campaign_Phonecalls", null, value); + this.OnPropertyChanged("Campaign_Phonecalls"); + } + } + + /// + /// N:1 CampaignActivity_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Phonecalls + { + get + { + return this.GetRelatedEntity("CampaignActivity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Phonecalls"); + this.SetRelatedEntity("CampaignActivity_Phonecalls", null, value); + this.OnPropertyChanged("CampaignActivity_Phonecalls"); + } + } + + /// + /// N:1 Contact_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Phonecalls + { + get + { + return this.GetRelatedEntity("Contact_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contact_Phonecalls"); + this.SetRelatedEntity("Contact_Phonecalls", null, value); + this.OnPropertyChanged("Contact_Phonecalls"); + } + } + + /// + /// N:1 Contract_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Phonecalls + { + get + { + return this.GetRelatedEntity("Contract_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contract_Phonecalls"); + this.SetRelatedEntity("Contract_Phonecalls", null, value); + this.OnPropertyChanged("Contract_Phonecalls"); + } + } + + /// + /// N:1 Incident_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Phonecalls + { + get + { + return this.GetRelatedEntity("Incident_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Incident_Phonecalls"); + this.SetRelatedEntity("Incident_Phonecalls", null, value); + this.OnPropertyChanged("Incident_Phonecalls"); + } + } + + /// + /// N:1 Invoice_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Phonecalls + { + get + { + return this.GetRelatedEntity("Invoice_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Invoice_Phonecalls"); + this.SetRelatedEntity("Invoice_Phonecalls", null, value); + this.OnPropertyChanged("Invoice_Phonecalls"); + } + } + + /// + /// N:1 Lead_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Phonecalls + { + get + { + return this.GetRelatedEntity("Lead_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Lead_Phonecalls"); + this.SetRelatedEntity("Lead_Phonecalls", null, value); + this.OnPropertyChanged("Lead_Phonecalls"); + } + } + + /// + /// N:1 lk_phonecall_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_createdby + { + get + { + return this.GetRelatedEntity("lk_phonecall_createdby", null); + } + } + + /// + /// N:1 lk_phonecall_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_phonecall_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_phonecall_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_modifiedby + { + get + { + return this.GetRelatedEntity("lk_phonecall_modifiedby", null); + } + } + + /// + /// N:1 lk_phonecall_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_phonecall_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_PhoneCalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PhoneCalls")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_PhoneCalls + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_PhoneCalls", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PhoneCalls"); + this.SetRelatedEntity("msdyn_postalbum_PhoneCalls", null, value); + this.OnPropertyChanged("msdyn_postalbum_PhoneCalls"); + } + } + + /// + /// N:1 Opportunity_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Phonecalls + { + get + { + return this.GetRelatedEntity("Opportunity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Opportunity_Phonecalls"); + this.SetRelatedEntity("Opportunity_Phonecalls", null, value); + this.OnPropertyChanged("Opportunity_Phonecalls"); + } + } + + /// + /// N:1 processstage_phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_phonecalls")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_phonecalls + { + get + { + return this.GetRelatedEntity("processstage_phonecalls", null); + } + set + { + this.OnPropertyChanging("processstage_phonecalls"); + this.SetRelatedEntity("processstage_phonecalls", null, value); + this.OnPropertyChanged("processstage_phonecalls"); + } + } + + /// + /// N:1 Quote_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Phonecalls + { + get + { + return this.GetRelatedEntity("Quote_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Quote_Phonecalls"); + this.SetRelatedEntity("Quote_Phonecalls", null, value); + this.OnPropertyChanged("Quote_Phonecalls"); + } + } + + /// + /// N:1 SalesOrder_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Phonecalls + { + get + { + return this.GetRelatedEntity("SalesOrder_Phonecalls", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Phonecalls"); + this.SetRelatedEntity("SalesOrder_Phonecalls", null, value); + this.OnPropertyChanged("SalesOrder_Phonecalls"); + } + } + + /// + /// N:1 service_phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_phonecalls")] + public Xrm.Framework.CI.Common.Entities.Service service_phonecalls + { + get + { + return this.GetRelatedEntity("service_phonecalls", null); + } + set + { + this.OnPropertyChanging("service_phonecalls"); + this.SetRelatedEntity("service_phonecalls", null, value); + this.OnPropertyChanged("service_phonecalls"); + } + } + + /// + /// N:1 team_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_phonecall")] + public Xrm.Framework.CI.Common.Entities.Team team_phonecall + { + get + { + return this.GetRelatedEntity("team_phonecall", null); + } + } + + /// + /// N:1 TransactionCurrency_PhoneCall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_PhoneCall")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_PhoneCall + { + get + { + return this.GetRelatedEntity("TransactionCurrency_PhoneCall", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_PhoneCall"); + this.SetRelatedEntity("TransactionCurrency_PhoneCall", null, value); + this.OnPropertyChanged("TransactionCurrency_PhoneCall"); + } + } + + /// + /// N:1 user_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_phonecall")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_phonecall + { + get + { + return this.GetRelatedEntity("user_phonecall", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum PickListMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps list values from the source file to Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("picklistmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PickListMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PickListMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "picklistmapping"; + + public const int EntityTypeCode = 4418; + + 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 column mapping with which this list value mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public Microsoft.Xrm.Sdk.EntityReference ColumnMappingId + { + get + { + return this.GetAttributeValue("columnmappingid"); + } + set + { + this.OnPropertyChanging("ColumnMappingId"); + this.SetAttributeValue("columnmappingid", value); + this.OnPropertyChanged("ColumnMappingId"); + } + } + + /// + /// Unique identifier of the user who created the list value mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the list value mapping 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 picklistmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the user who last modified the list value mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the list value mapping 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 picklistmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the picklist mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picklistmappingid")] + public System.Nullable PickListMappingId + { + get + { + return this.GetAttributeValue>("picklistmappingid"); + } + set + { + this.OnPropertyChanging("PickListMappingId"); + this.SetAttributeValue("picklistmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PickListMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picklistmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PickListMappingId = value; + } + } + + /// + /// Information about whether the list value mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Source value to be replaced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcevalue")] + public string SourceValue + { + get + { + return this.GetAttributeValue("sourcevalue"); + } + set + { + this.OnPropertyChanging("SourceValue"); + this.SetAttributeValue("sourcevalue", value); + this.OnPropertyChanged("SourceValue"); + } + } + + /// + /// Status of the picklist mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.PickListMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.PickListMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the picklist mapping. + /// + [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"); + } + } + + /// + /// Microsoft Dynamics CRM list value with which to replace the source value. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetvalue")] + public System.Nullable TargetValue + { + get + { + return this.GetAttributeValue>("targetvalue"); + } + set + { + this.OnPropertyChanging("TargetValue"); + this.SetAttributeValue("targetvalue", value); + this.OnPropertyChanged("TargetValue"); + } + } + + /// + /// 1:N userentityinstancedata_picklistmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_picklistmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_picklistmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_picklistmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_picklistmapping"); + this.SetRelatedEntities("userentityinstancedata_picklistmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_picklistmapping"); + } + } + + /// + /// N:1 lk_picklistmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_createdby", null); + } + } + + /// + /// N:1 lk_picklistmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_picklistmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_picklistmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 PickListMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PickListMapping_ColumnMapping")] + public Xrm.Framework.CI.Common.Entities.ColumnMapping PickListMapping_ColumnMapping + { + get + { + return this.GetRelatedEntity("PickListMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("PickListMapping_ColumnMapping"); + this.SetRelatedEntity("PickListMapping_ColumnMapping", null, value); + this.OnPropertyChanged("PickListMapping_ColumnMapping"); + } + } + } + + /// + /// Assembly that contains one or more plug-in types. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pluginassembly")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PluginAssembly : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PluginAssembly() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "pluginassembly"; + + public const int EntityTypeCode = 4605; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Bytes of the assembly, in Base64 format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Unique identifier of the user who created the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in assembly was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Culture code for the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] + public string Culture + { + get + { + return this.GetAttributeValue("culture"); + } + set + { + this.OnPropertyChanging("Culture"); + this.SetAttributeValue("culture", value); + this.OnPropertyChanged("Culture"); + } + } + + /// + /// Customization Level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about how the plugin assembly is to be isolated at execution time; None / Sandboxed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isolationmode")] + public Microsoft.Xrm.Sdk.OptionSetValue IsolationMode + { + get + { + return this.GetAttributeValue("isolationmode"); + } + set + { + this.OnPropertyChanging("IsolationMode"); + this.SetAttributeValue("isolationmode", value); + this.OnPropertyChanged("IsolationMode"); + } + } + + /// + /// Major of the assembly version. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] + public System.Nullable Major + { + get + { + return this.GetAttributeValue>("major"); + } + } + + /// + /// Minor of the assembly version. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] + public System.Nullable Minor + { + get + { + return this.GetAttributeValue>("minor"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in assembly was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in assembly is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// File name of the plug-in assembly. Used when the source type is set to 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("path")] + public string Path + { + get + { + return this.GetAttributeValue("path"); + } + set + { + this.OnPropertyChanging("Path"); + this.SetAttributeValue("path", value); + this.OnPropertyChanged("Path"); + } + } + + /// + /// Unique identifier of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public System.Nullable PluginAssemblyId + { + get + { + return this.GetAttributeValue>("pluginassemblyid"); + } + set + { + this.OnPropertyChanging("PluginAssemblyId"); + this.SetAttributeValue("pluginassemblyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginAssemblyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginAssemblyId = value; + } + } + + /// + /// Unique identifier of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyidunique")] + public System.Nullable PluginAssemblyIdUnique + { + get + { + return this.GetAttributeValue>("pluginassemblyidunique"); + } + } + + /// + /// Public key token of the assembly. This value can be obtained from the assembly by using reflection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] + public string PublicKeyToken + { + get + { + return this.GetAttributeValue("publickeytoken"); + } + set + { + this.OnPropertyChanging("PublicKeyToken"); + this.SetAttributeValue("publickeytoken", value); + this.OnPropertyChanged("PublicKeyToken"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Hash of the source of the assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcehash")] + public string SourceHash + { + get + { + return this.GetAttributeValue("sourcehash"); + } + set + { + this.OnPropertyChanging("SourceHash"); + this.SetAttributeValue("sourcehash", value); + this.OnPropertyChanged("SourceHash"); + } + } + + /// + /// Location of the assembly, for example 0=database, 1=on-disk. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetype")] + public Microsoft.Xrm.Sdk.OptionSetValue SourceType + { + get + { + return this.GetAttributeValue("sourcetype"); + } + set + { + this.OnPropertyChanging("SourceType"); + this.SetAttributeValue("sourcetype", value); + this.OnPropertyChanged("SourceType"); + } + } + + /// + /// Version number of the assembly. The value can be obtained from the assembly through reflection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N pluginassembly_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] + public System.Collections.Generic.IEnumerable pluginassembly_plugintype + { + get + { + return this.GetRelatedEntities("pluginassembly_plugintype", null); + } + set + { + this.OnPropertyChanging("pluginassembly_plugintype"); + this.SetRelatedEntities("pluginassembly_plugintype", null, value); + this.OnPropertyChanged("pluginassembly_plugintype"); + } + } + + /// + /// 1:N userentityinstancedata_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pluginassembly")] + public System.Collections.Generic.IEnumerable userentityinstancedata_pluginassembly + { + get + { + return this.GetRelatedEntities("userentityinstancedata_pluginassembly", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pluginassembly"); + this.SetRelatedEntities("userentityinstancedata_pluginassembly", null, value); + this.OnPropertyChanged("userentityinstancedata_pluginassembly"); + } + } + + /// + /// N:1 createdby_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_pluginassembly + { + get + { + return this.GetRelatedEntity("createdby_pluginassembly", null); + } + } + + /// + /// N:1 lk_pluginassembly_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pluginassembly_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginassembly_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_pluginassembly_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pluginassembly_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_pluginassembly + { + get + { + return this.GetRelatedEntity("modifiedby_pluginassembly", null); + } + } + + /// + /// N:1 organization_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.Organization organization_pluginassembly + { + get + { + return this.GetRelatedEntity("organization_pluginassembly", null); + } + } + } + + /// + /// Type that inherits from the IPlugin interface and is contained within a plug-in assembly. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("plugintype")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PluginType : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PluginType() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "plugintype"; + + public const int EntityTypeCode = 4602; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Full path name of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("assemblyname")] + public string AssemblyName + { + get + { + return this.GetAttributeValue("assemblyname"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in type was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the plugintype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Culture code for the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] + public string Culture + { + get + { + return this.GetAttributeValue("culture"); + } + } + + /// + /// Customization level of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Serialized Custom Activity Type information, including required arguments. For more information, see SandboxCustomActivityInfo. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customworkflowactivityinfo")] + public string CustomWorkflowActivityInfo + { + get + { + return this.GetAttributeValue("customworkflowactivityinfo"); + } + } + + /// + /// Description of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// User friendly name for the plug-in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates if the plug-in is a custom activity for workflows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowactivity")] + public System.Nullable IsWorkflowActivity + { + get + { + return this.GetAttributeValue>("isworkflowactivity"); + } + } + + /// + /// Major of the version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] + public System.Nullable Major + { + get + { + return this.GetAttributeValue>("major"); + } + } + + /// + /// Minor of the version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] + public System.Nullable Minor + { + get + { + return this.GetAttributeValue>("minor"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in type was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the plugintype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in type is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the plug-in assembly that contains this plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public Microsoft.Xrm.Sdk.EntityReference PluginAssemblyId + { + get + { + return this.GetAttributeValue("pluginassemblyid"); + } + set + { + this.OnPropertyChanging("PluginAssemblyId"); + this.SetAttributeValue("pluginassemblyid", value); + this.OnPropertyChanged("PluginAssemblyId"); + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public System.Nullable PluginTypeId + { + get + { + return this.GetAttributeValue>("plugintypeid"); + } + set + { + this.OnPropertyChanging("PluginTypeId"); + this.SetAttributeValue("plugintypeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginTypeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginTypeId = value; + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeidunique")] + public System.Nullable PluginTypeIdUnique + { + get + { + return this.GetAttributeValue>("plugintypeidunique"); + } + } + + /// + /// Public key token of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] + public string PublicKeyToken + { + get + { + return this.GetAttributeValue("publickeytoken"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Fully qualified type name of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typename")] + public string TypeName + { + get + { + return this.GetAttributeValue("typename"); + } + set + { + this.OnPropertyChanging("TypeName"); + this.SetAttributeValue("typename", value); + this.OnPropertyChanged("TypeName"); + } + } + + /// + /// Version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Group name of workflow custom activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivitygroupname")] + public string WorkflowActivityGroupName + { + get + { + return this.GetAttributeValue("workflowactivitygroupname"); + } + set + { + this.OnPropertyChanging("WorkflowActivityGroupName"); + this.SetAttributeValue("workflowactivitygroupname", value); + this.OnPropertyChanged("WorkflowActivityGroupName"); + } + } + + /// + /// 1:N plugin_type_service + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugin_type_service")] + public System.Collections.Generic.IEnumerable plugin_type_service + { + get + { + return this.GetRelatedEntities("plugin_type_service", null); + } + set + { + this.OnPropertyChanging("plugin_type_service"); + this.SetRelatedEntities("plugin_type_service", null, value); + this.OnPropertyChanged("plugin_type_service"); + } + } + + /// + /// 1:N plugintype_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_plugintypestatistic")] + public System.Collections.Generic.IEnumerable plugintype_plugintypestatistic + { + get + { + return this.GetRelatedEntities("plugintype_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("plugintype_plugintypestatistic"); + this.SetRelatedEntities("plugintype_plugintypestatistic", null, value); + this.OnPropertyChanged("plugintype_plugintypestatistic"); + } + } + + /// + /// 1:N plugintype_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable plugintype_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("plugintype_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintype_sdkmessageprocessingstep"); + this.SetRelatedEntities("plugintype_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintype_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N plugintypeid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable plugintypeid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintypeid_sdkmessageprocessingstep"); + this.SetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintypeid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintype")] + public System.Collections.Generic.IEnumerable userentityinstancedata_plugintype + { + get + { + return this.GetRelatedEntities("userentityinstancedata_plugintype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintype"); + this.SetRelatedEntities("userentityinstancedata_plugintype", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintype"); + } + } + + /// + /// N:1 createdby_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_plugintype + { + get + { + return this.GetRelatedEntity("createdby_plugintype", null); + } + } + + /// + /// N:1 lk_plugintype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintype_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintype_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_plugintype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintype_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_plugintype + { + get + { + return this.GetRelatedEntity("modifiedby_plugintype", null); + } + } + + /// + /// N:1 organization_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintype")] + public Xrm.Framework.CI.Common.Entities.Organization organization_plugintype + { + get + { + return this.GetRelatedEntity("organization_plugintype", null); + } + } + + /// + /// N:1 pluginassembly_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] + public Xrm.Framework.CI.Common.Entities.PluginAssembly pluginassembly_plugintype + { + get + { + return this.GetRelatedEntity("pluginassembly_plugintype", null); + } + set + { + this.OnPropertyChanging("pluginassembly_plugintype"); + this.SetRelatedEntity("pluginassembly_plugintype", null, value); + this.OnPropertyChanged("pluginassembly_plugintype"); + } + } + } + + /// + /// Plug-in type statistic. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("plugintypestatistic")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PluginTypeStatistic : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PluginTypeStatistic() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "plugintypestatistic"; + + public const int EntityTypeCode = 4603; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// The average execution time (in milliseconds) for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("averageexecutetimeinmilliseconds")] + public System.Nullable AverageExecuteTimeInMilliseconds + { + get + { + return this.GetAttributeValue>("averageexecutetimeinmilliseconds"); + } + } + + /// + /// The plug-in type percentage contribution to crashes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crashcontributionpercent")] + public System.Nullable CrashContributionPercent + { + get + { + return this.GetAttributeValue>("crashcontributionpercent"); + } + } + + /// + /// Number of times the plug-in type has crashed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crashcount")] + public System.Nullable CrashCount + { + get + { + return this.GetAttributeValue>("crashcount"); + } + } + + /// + /// Percentage of crashes for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crashpercent")] + public System.Nullable CrashPercent + { + get + { + return this.GetAttributeValue>("crashpercent"); + } + } + + /// + /// Unique identifier of the user who created the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in type statistic 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 plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of times the plug-in type has been executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executecount")] + public System.Nullable ExecuteCount + { + get + { + return this.GetAttributeValue>("executecount"); + } + } + + /// + /// Number of times the plug-in type has failed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// Percentage of failures for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurepercent")] + public System.Nullable FailurePercent + { + get + { + return this.GetAttributeValue>("failurepercent"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in type statistic was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in type statistic is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the plug-in type associated with this plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + } + + /// + /// Unique identifier of the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypestatisticid")] + public System.Nullable PluginTypeStatisticId + { + get + { + return this.GetAttributeValue>("plugintypestatisticid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypestatisticid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to excessive CPU usage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminatecpucontributionpercent")] + public System.Nullable TerminateCpuContributionPercent + { + get + { + return this.GetAttributeValue>("terminatecpucontributionpercent"); + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to excessive handle usage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminatehandlescontributionpercent")] + public System.Nullable TerminateHandlesContributionPercent + { + get + { + return this.GetAttributeValue>("terminatehandlescontributionpercent"); + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to excessive memory usage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminatememorycontributionpercent")] + public System.Nullable TerminateMemoryContributionPercent + { + get + { + return this.GetAttributeValue>("terminatememorycontributionpercent"); + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to unknown reasons. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminateothercontributionpercent")] + public System.Nullable TerminateOtherContributionPercent + { + get + { + return this.GetAttributeValue>("terminateothercontributionpercent"); + } + } + + /// + /// 1:N userentityinstancedata_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintypestatistic")] + public System.Collections.Generic.IEnumerable userentityinstancedata_plugintypestatistic + { + get + { + return this.GetRelatedEntities("userentityinstancedata_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintypestatistic"); + this.SetRelatedEntities("userentityinstancedata_plugintypestatistic", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintypestatistic"); + } + } + + /// + /// N:1 createdby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_plugintypestatistic + { + get + { + return this.GetRelatedEntity("createdby_plugintypestatistic", null); + } + } + + /// + /// N:1 lk_plugintypestatisticbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintypestatisticbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintypestatisticbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_plugintypestatisticbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintypestatisticbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintypestatisticbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_plugintypestatistic + { + get + { + return this.GetRelatedEntity("modifiedby_plugintypestatistic", null); + } + } + + /// + /// N:1 organization_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.Organization organization_plugintypestatistic + { + get + { + return this.GetRelatedEntity("organization_plugintypestatistic", null); + } + } + + /// + /// N:1 plugintype_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.PluginType plugintype_plugintypestatistic + { + get + { + return this.GetRelatedEntity("plugintype_plugintypestatistic", null); + } + } + } + + /// + /// An activity feed post. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("post")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Post : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Post() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "post"; + + public const int EntityTypeCode = 8000; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 CRM options. + /// + [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"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public System.Nullable PostId + { + get + { + return this.GetAttributeValue>("postid"); + } + set + { + this.OnPropertyChanging("PostId"); + this.SetAttributeValue("postid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostId = value; + } + } + + /// + /// Choose the parent record for the post to identify the customer, opportunity, case, or other record that the post most closely relates to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the user or team who owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectownerid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwnerId + { + get + { + return this.GetAttributeValue("regardingobjectownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectowningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwningBusinessUnit + { + get + { + return this.GetAttributeValue("regardingobjectowningbusinessunit"); + } + } + + /// + /// Select whether the post was created manually or automatically. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public Microsoft.Xrm.Sdk.OptionSetValue Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// Shows the text of a post. If this is a manual post, it appears in plain text. If this is an auto post, it appears in XML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("text")] + public string Text + { + get + { + return this.GetAttributeValue("text"); + } + set + { + this.OnPropertyChanging("Text"); + this.SetAttributeValue("text", value); + this.OnPropertyChanged("Text"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the post type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N post_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_AsyncOperations")] + public System.Collections.Generic.IEnumerable post_AsyncOperations + { + get + { + return this.GetRelatedEntities("post_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("post_AsyncOperations"); + this.SetRelatedEntities("post_AsyncOperations", null, value); + this.OnPropertyChanged("post_AsyncOperations"); + } + } + + /// + /// 1:N post_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable post_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("post_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("post_BulkDeleteFailures"); + this.SetRelatedEntities("post_BulkDeleteFailures", null, value); + this.OnPropertyChanged("post_BulkDeleteFailures"); + } + } + + /// + /// 1:N Post_Comments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Comments")] + public System.Collections.Generic.IEnumerable Post_Comments + { + get + { + return this.GetRelatedEntities("Post_Comments", null); + } + set + { + this.OnPropertyChanging("Post_Comments"); + this.SetRelatedEntities("Post_Comments", null, value); + this.OnPropertyChanged("Post_Comments"); + } + } + + /// + /// 1:N Post_Likes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Likes")] + public System.Collections.Generic.IEnumerable Post_Likes + { + get + { + return this.GetRelatedEntities("Post_Likes", null); + } + set + { + this.OnPropertyChanging("Post_Likes"); + this.SetRelatedEntities("Post_Likes", null, value); + this.OnPropertyChanged("Post_Likes"); + } + } + + /// + /// N:1 lk_post_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_createdby + { + get + { + return this.GetRelatedEntity("lk_post_createdby", null); + } + } + + /// + /// N:1 lk_post_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_post_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_post_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_modifiedby + { + get + { + return this.GetRelatedEntity("lk_post_modifiedby", null); + } + } + + /// + /// N:1 lk_post_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_post_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_post + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_post")] + public Xrm.Framework.CI.Common.Entities.Organization organization_post + { + get + { + return this.GetRelatedEntity("organization_post", null); + } + } + } + + /// + /// A comment on an activity feed post. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("postcomment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PostComment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PostComment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "postcomment"; + + public const int EntityTypeCode = 8005; + + 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"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Shows the ID of the post comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postcommentid")] + public System.Nullable PostCommentId + { + get + { + return this.GetAttributeValue>("postcommentid"); + } + set + { + this.OnPropertyChanging("PostCommentId"); + this.SetAttributeValue("postcommentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostCommentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postcommentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostCommentId = value; + } + } + + /// + /// Unique identifier of the post with which the comment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public Microsoft.Xrm.Sdk.EntityReference PostId + { + get + { + return this.GetAttributeValue("postid"); + } + set + { + this.OnPropertyChanging("PostId"); + this.SetAttributeValue("postid", value); + this.OnPropertyChanged("PostId"); + } + } + + /// + /// Text of the comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("text")] + public string Text + { + get + { + return this.GetAttributeValue("text"); + } + set + { + this.OnPropertyChanging("Text"); + this.SetAttributeValue("text", value); + this.OnPropertyChanged("Text"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// N:1 lk_postcomment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postcomment_createdby + { + get + { + return this.GetRelatedEntity("lk_postcomment_createdby", null); + } + } + + /// + /// N:1 lk_postcomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postcomment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_postcomment_createdonbehalfby", null); + } + } + + /// + /// N:1 organization_PostComment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_PostComment")] + public Xrm.Framework.CI.Common.Entities.Organization organization_PostComment + { + get + { + return this.GetRelatedEntity("organization_PostComment", null); + } + } + + /// + /// N:1 Post_Comments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Comments")] + public Xrm.Framework.CI.Common.Entities.Post Post_Comments + { + get + { + return this.GetRelatedEntity("Post_Comments", null); + } + set + { + this.OnPropertyChanging("Post_Comments"); + this.SetRelatedEntity("Post_Comments", null, value); + this.OnPropertyChanged("Post_Comments"); + } + } + } + + /// + /// Represents a user following the activity feed of an object. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("postfollow")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PostFollow : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PostFollow() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "postfollow"; + + public const int EntityTypeCode = 8003; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 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 of the team who owns the follow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Shows the ID of the post follow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postfollowid")] + public System.Nullable PostFollowId + { + get + { + return this.GetAttributeValue>("postfollowid"); + } + set + { + this.OnPropertyChanging("PostFollowId"); + this.SetAttributeValue("postfollowid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostFollowId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postfollowid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostFollowId = value; + } + } + + /// + /// Choose the parent record for the followed post to identify the customer, opportunity, case, or other record type that the post most closely relates to. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammerpoststate")] + public System.Nullable YammerPostState + { + get + { + return this.GetAttributeValue>("yammerpoststate"); + } + } + + /// + /// 1:N PostFollow_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PostFollow_AsyncOperations")] + public System.Collections.Generic.IEnumerable PostFollow_AsyncOperations + { + get + { + return this.GetRelatedEntities("PostFollow_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PostFollow_AsyncOperations"); + this.SetRelatedEntities("PostFollow_AsyncOperations", null, value); + this.OnPropertyChanged("PostFollow_AsyncOperations"); + } + } + + /// + /// N:1 account_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Account account_PostFollows + { + get + { + return this.GetRelatedEntity("account_PostFollows", null); + } + set + { + this.OnPropertyChanging("account_PostFollows"); + this.SetRelatedEntity("account_PostFollows", null, value); + this.OnPropertyChanged("account_PostFollows"); + } + } + + /// + /// N:1 appointment_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_PostFollows + { + get + { + return this.GetRelatedEntity("appointment_PostFollows", null); + } + set + { + this.OnPropertyChanging("appointment_PostFollows"); + this.SetRelatedEntity("appointment_PostFollows", null, value); + this.OnPropertyChanged("appointment_PostFollows"); + } + } + + /// + /// N:1 business_unit_postfollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_postfollows")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_postfollows + { + get + { + return this.GetRelatedEntity("business_unit_postfollows", null); + } + } + + /// + /// N:1 competitor_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_PostFollows + { + get + { + return this.GetRelatedEntity("competitor_PostFollows", null); + } + set + { + this.OnPropertyChanging("competitor_PostFollows"); + this.SetRelatedEntity("competitor_PostFollows", null, value); + this.OnPropertyChanged("competitor_PostFollows"); + } + } + + /// + /// N:1 contact_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Contact contact_PostFollows + { + get + { + return this.GetRelatedEntity("contact_PostFollows", null); + } + set + { + this.OnPropertyChanging("contact_PostFollows"); + this.SetRelatedEntity("contact_PostFollows", null, value); + this.OnPropertyChanged("contact_PostFollows"); + } + } + + /// + /// N:1 incident_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Incident incident_PostFollows + { + get + { + return this.GetRelatedEntity("incident_PostFollows", null); + } + set + { + this.OnPropertyChanging("incident_PostFollows"); + this.SetRelatedEntity("incident_PostFollows", null, value); + this.OnPropertyChanged("incident_PostFollows"); + } + } + + /// + /// N:1 lead_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Lead lead_PostFollows + { + get + { + return this.GetRelatedEntity("lead_PostFollows", null); + } + set + { + this.OnPropertyChanging("lead_PostFollows"); + this.SetRelatedEntity("lead_PostFollows", null, value); + this.OnPropertyChanged("lead_PostFollows"); + } + } + + /// + /// N:1 lk_PostFollow_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_PostFollow_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_PostFollow_createdby + { + get + { + return this.GetRelatedEntity("lk_PostFollow_createdby", null); + } + } + + /// + /// N:1 lk_postfollow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postfollow_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postfollow_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_postfollow_createdonbehalfby", null); + } + } + + /// + /// N:1 opportunity_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_PostFollows + { + get + { + return this.GetRelatedEntity("opportunity_PostFollows", null); + } + set + { + this.OnPropertyChanging("opportunity_PostFollows"); + this.SetRelatedEntity("opportunity_PostFollows", null, value); + this.OnPropertyChanged("opportunity_PostFollows"); + } + } + + /// + /// N:1 OwningTeam_postfollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwningTeam_postfollows")] + public Xrm.Framework.CI.Common.Entities.Team OwningTeam_postfollows + { + get + { + return this.GetRelatedEntity("OwningTeam_postfollows", null); + } + } + + /// + /// N:1 phonecall_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_PostFollows")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_PostFollows + { + get + { + return this.GetRelatedEntity("phonecall_PostFollows", null); + } + set + { + this.OnPropertyChanging("phonecall_PostFollows"); + this.SetRelatedEntity("phonecall_PostFollows", null, value); + this.OnPropertyChanged("phonecall_PostFollows"); + } + } + + /// + /// N:1 processsession_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_PostFollows")] + public Xrm.Framework.CI.Common.Entities.ProcessSession processsession_PostFollows + { + get + { + return this.GetRelatedEntity("processsession_PostFollows", null); + } + set + { + this.OnPropertyChanging("processsession_PostFollows"); + this.SetRelatedEntity("processsession_PostFollows", null, value); + this.OnPropertyChanged("processsession_PostFollows"); + } + } + + /// + /// N:1 queue_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Queue queue_PostFollows + { + get + { + return this.GetRelatedEntity("queue_PostFollows", null); + } + set + { + this.OnPropertyChanging("queue_PostFollows"); + this.SetRelatedEntity("queue_PostFollows", null, value); + this.OnPropertyChanged("queue_PostFollows"); + } + } + + /// + /// N:1 recurringappointmentmaster_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_PostFollows")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_PostFollows + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_PostFollows", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_PostFollows"); + this.SetRelatedEntity("recurringappointmentmaster_PostFollows", null, value); + this.OnPropertyChanged("recurringappointmentmaster_PostFollows"); + } + } + + /// + /// N:1 systemuser_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_PostFollows")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_PostFollows + { + get + { + return this.GetRelatedEntity("systemuser_PostFollows", null); + } + set + { + this.OnPropertyChanging("systemuser_PostFollows"); + this.SetRelatedEntity("systemuser_PostFollows", null, value); + this.OnPropertyChanged("systemuser_PostFollows"); + } + } + + /// + /// N:1 task_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Task task_PostFollows + { + get + { + return this.GetRelatedEntity("task_PostFollows", null); + } + set + { + this.OnPropertyChanging("task_PostFollows"); + this.SetRelatedEntity("task_PostFollows", null, value); + this.OnPropertyChanged("task_PostFollows"); + } + } + + /// + /// N:1 user_owner_postfollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_owner_postfollows")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_owner_postfollows + { + get + { + return this.GetRelatedEntity("user_owner_postfollows", null); + } + } + } + + /// + /// A like on an activity feed post. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("postlike")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PostLike : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PostLike() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "postlike"; + + public const int EntityTypeCode = 8006; + + 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"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the post with which the like is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public Microsoft.Xrm.Sdk.EntityReference PostId + { + get + { + return this.GetAttributeValue("postid"); + } + set + { + this.OnPropertyChanging("PostId"); + this.SetAttributeValue("postid", value); + this.OnPropertyChanged("PostId"); + } + } + + /// + /// Shows the ID of the post like. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postlikeid")] + public System.Nullable PostLikeId + { + get + { + return this.GetAttributeValue>("postlikeid"); + } + set + { + this.OnPropertyChanging("PostLikeId"); + this.SetAttributeValue("postlikeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostLikeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postlikeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostLikeId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// N:1 lk_postlike_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postlike_createdby + { + get + { + return this.GetRelatedEntity("lk_postlike_createdby", null); + } + } + + /// + /// N:1 lk_postlike_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postlike_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_postlike_createdonbehalfby", null); + } + } + + /// + /// N:1 organization_postlike + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_postlike")] + public Xrm.Framework.CI.Common.Entities.Organization organization_postlike + { + get + { + return this.GetRelatedEntity("organization_postlike", null); + } + } + + /// + /// N:1 Post_Likes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Likes")] + public Xrm.Framework.CI.Common.Entities.Post Post_Likes + { + get + { + return this.GetRelatedEntity("Post_Likes", null); + } + set + { + this.OnPropertyChanging("Post_Likes"); + this.SetRelatedEntity("Post_Likes", null, value); + this.OnPropertyChanged("Post_Likes"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum PriceLevelState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Entity that defines pricing levels. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pricelevel")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PriceLevel : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PriceLevel() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "pricelevel"; + + public const int EntityTypeCode = 1022; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date on which the price list becomes effective. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("begindate")] + public System.Nullable BeginDate + { + get + { + return this.GetAttributeValue>("begindate"); + } + set + { + this.OnPropertyChanging("BeginDate"); + this.SetAttributeValue("begindate", value); + this.OnPropertyChanged("BeginDate"); + } + } + + /// + /// Unique identifier of the user who created the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the price list 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 pricelevel. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Date that is the last day the price list is valid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enddate")] + public System.Nullable EndDate + { + get + { + return this.GetAttributeValue>("enddate"); + } + set + { + this.OnPropertyChanging("EndDate"); + this.SetAttributeValue("enddate", value); + this.OnPropertyChanged("EndDate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Freight terms for the price list. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the price list 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 pricelevel. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the price list. + /// + [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"); + } + } + + /// + /// Payment terms to use with the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymentmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PaymentMethodCode + { + get + { + return this.GetAttributeValue("paymentmethodcode"); + } + set + { + this.OnPropertyChanging("PaymentMethodCode"); + this.SetAttributeValue("paymentmethodcode", value); + this.OnPropertyChanged("PaymentMethodCode"); + } + } + + /// + /// Unique identifier of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public System.Nullable PriceLevelId + { + get + { + return this.GetAttributeValue>("pricelevelid"); + } + set + { + this.OnPropertyChanging("PriceLevelId"); + this.SetAttributeValue("pricelevelid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PriceLevelId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PriceLevelId = value; + } + } + + /// + /// Method of shipment for products in the price list. + /// + [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"); + } + } + + /// + /// Status of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.PriceLevelState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.PriceLevelState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the price list. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the price level. + /// + [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 of the price level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N price_level_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_accounts")] + public System.Collections.Generic.IEnumerable price_level_accounts + { + get + { + return this.GetRelatedEntities("price_level_accounts", null); + } + set + { + this.OnPropertyChanging("price_level_accounts"); + this.SetRelatedEntities("price_level_accounts", null, value); + this.OnPropertyChanged("price_level_accounts"); + } + } + + /// + /// 1:N price_level_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_contacts")] + public System.Collections.Generic.IEnumerable price_level_contacts + { + get + { + return this.GetRelatedEntities("price_level_contacts", null); + } + set + { + this.OnPropertyChanging("price_level_contacts"); + this.SetRelatedEntities("price_level_contacts", null, value); + this.OnPropertyChanged("price_level_contacts"); + } + } + + /// + /// 1:N price_level_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_invoices")] + public System.Collections.Generic.IEnumerable price_level_invoices + { + get + { + return this.GetRelatedEntities("price_level_invoices", null); + } + set + { + this.OnPropertyChanging("price_level_invoices"); + this.SetRelatedEntities("price_level_invoices", null, value); + this.OnPropertyChanged("price_level_invoices"); + } + } + + /// + /// 1:N price_level_opportunties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_opportunties")] + public System.Collections.Generic.IEnumerable price_level_opportunties + { + get + { + return this.GetRelatedEntities("price_level_opportunties", null); + } + set + { + this.OnPropertyChanging("price_level_opportunties"); + this.SetRelatedEntities("price_level_opportunties", null, value); + this.OnPropertyChanged("price_level_opportunties"); + } + } + + /// + /// 1:N price_level_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_orders")] + public System.Collections.Generic.IEnumerable price_level_orders + { + get + { + return this.GetRelatedEntities("price_level_orders", null); + } + set + { + this.OnPropertyChanging("price_level_orders"); + this.SetRelatedEntities("price_level_orders", null, value); + this.OnPropertyChanged("price_level_orders"); + } + } + + /// + /// 1:N price_level_product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_product_price_levels")] + public System.Collections.Generic.IEnumerable price_level_product_price_levels + { + get + { + return this.GetRelatedEntities("price_level_product_price_levels", null); + } + set + { + this.OnPropertyChanging("price_level_product_price_levels"); + this.SetRelatedEntities("price_level_product_price_levels", null, value); + this.OnPropertyChanged("price_level_product_price_levels"); + } + } + + /// + /// 1:N price_level_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_products")] + public System.Collections.Generic.IEnumerable price_level_products + { + get + { + return this.GetRelatedEntities("price_level_products", null); + } + set + { + this.OnPropertyChanging("price_level_products"); + this.SetRelatedEntities("price_level_products", null, value); + this.OnPropertyChanged("price_level_products"); + } + } + + /// + /// 1:N price_level_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_quotes")] + public System.Collections.Generic.IEnumerable price_level_quotes + { + get + { + return this.GetRelatedEntities("price_level_quotes", null); + } + set + { + this.OnPropertyChanging("price_level_quotes"); + this.SetRelatedEntities("price_level_quotes", null, value); + this.OnPropertyChanged("price_level_quotes"); + } + } + + /// + /// 1:N PriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_AsyncOperations")] + public System.Collections.Generic.IEnumerable PriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntities("PriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PriceLevel_AsyncOperations"); + this.SetRelatedEntities("PriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("PriceLevel_AsyncOperations"); + } + } + + /// + /// 1:N PriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable PriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("PriceLevel_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("PriceLevel_BulkDeleteFailures"); + this.SetRelatedEntities("PriceLevel_BulkDeleteFailures", null, value); + this.OnPropertyChanged("PriceLevel_BulkDeleteFailures"); + } + } + + /// + /// 1:N pricelevel_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pricelevel_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable pricelevel_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("pricelevel_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("pricelevel_principalobjectattributeaccess"); + this.SetRelatedEntities("pricelevel_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("pricelevel_principalobjectattributeaccess"); + } + } + + /// + /// 1:N PriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_ProcessSessions")] + public System.Collections.Generic.IEnumerable PriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntities("PriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PriceLevel_ProcessSessions"); + this.SetRelatedEntities("PriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("PriceLevel_ProcessSessions"); + } + } + + /// + /// 1:N PriceList_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceList_Campaigns")] + public System.Collections.Generic.IEnumerable PriceList_Campaigns + { + get + { + return this.GetRelatedEntities("PriceList_Campaigns", null); + } + set + { + this.OnPropertyChanging("PriceList_Campaigns"); + this.SetRelatedEntities("PriceList_Campaigns", null, value); + this.OnPropertyChanged("PriceList_Campaigns"); + } + } + + /// + /// 1:N userentityinstancedata_pricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pricelevel")] + public System.Collections.Generic.IEnumerable userentityinstancedata_pricelevel + { + get + { + return this.GetRelatedEntities("userentityinstancedata_pricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pricelevel"); + this.SetRelatedEntities("userentityinstancedata_pricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_pricelevel"); + } + } + + /// + /// N:1 lk_pricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pricelevel_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_pricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pricelevel_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_pricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevelbase_createdby + { + get + { + return this.GetRelatedEntity("lk_pricelevelbase_createdby", null); + } + } + + /// + /// N:1 lk_pricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_pricelevelbase_modifiedby", null); + } + } + + /// + /// N:1 organization_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_price_levels")] + public Xrm.Framework.CI.Common.Entities.Organization organization_price_levels + { + get + { + return this.GetRelatedEntity("organization_price_levels", null); + } + } + + /// + /// N:1 transactioncurrency_pricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_pricelevel")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_pricelevel + { + get + { + return this.GetRelatedEntity("transactioncurrency_pricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_pricelevel"); + this.SetRelatedEntity("transactioncurrency_pricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_pricelevel"); + } + } + } + + /// + /// Map CRM security principals (users and teams) to user/team owned entities with basic read privilege. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("principalentitymap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PrincipalEntityMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PrincipalEntityMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "principalentitymap"; + + public const int EntityTypeCode = 41; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalentitymapid")] + public System.Nullable PrincipalEntityMapId + { + get + { + return this.GetAttributeValue>("principalentitymapid"); + } + set + { + this.OnPropertyChanging("PrincipalEntityMapId"); + this.SetAttributeValue("principalentitymapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PrincipalEntityMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalentitymapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PrincipalEntityMapId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + public System.Nullable PrincipalId + { + get + { + return this.GetAttributeValue>("principalid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_principalentitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalentitymap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_principalentitymap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_principalentitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalentitymap"); + this.SetRelatedEntities("userentityinstancedata_principalentitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_principalentitymap"); + } + } + } + + /// + /// Defines CRM security principals (users and teams) access rights to secured field for an entity instance. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("principalobjectattributeaccess")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PrincipalObjectAttributeAccess : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PrincipalObjectAttributeAccess() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "principalobjectattributeaccess"; + + public const int EntityTypeCode = 44; + + 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 shared secured field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributeid")] + public System.Nullable AttributeId + { + get + { + return this.GetAttributeValue>("attributeid"); + } + set + { + this.OnPropertyChanging("AttributeId"); + this.SetAttributeValue("attributeid", value); + this.OnPropertyChanged("AttributeId"); + } + } + + /// + /// Unique identifier of the entity instance with shared secured field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Unique identifier of the associated organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the principal to which secured field is shared + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + public Microsoft.Xrm.Sdk.EntityReference PrincipalId + { + get + { + return this.GetAttributeValue("principalid"); + } + set + { + this.OnPropertyChanging("PrincipalId"); + this.SetAttributeValue("principalid", value); + this.OnPropertyChanged("PrincipalId"); + } + } + + /// + /// Unique identifier of the shared secured field instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalobjectattributeaccessid")] + public System.Nullable PrincipalObjectAttributeAccessId + { + get + { + return this.GetAttributeValue>("principalobjectattributeaccessid"); + } + set + { + this.OnPropertyChanging("PrincipalObjectAttributeAccessId"); + this.SetAttributeValue("principalobjectattributeaccessid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PrincipalObjectAttributeAccessId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalobjectattributeaccessid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PrincipalObjectAttributeAccessId = value; + } + } + + /// + /// Read permission for secured field instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("readaccess")] + public System.Nullable ReadAccess + { + get + { + return this.GetAttributeValue>("readaccess"); + } + set + { + this.OnPropertyChanging("ReadAccess"); + this.SetAttributeValue("readaccess", value); + this.OnPropertyChanged("ReadAccess"); + } + } + + /// + /// Update permission for secured field instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("updateaccess")] + public System.Nullable UpdateAccess + { + get + { + return this.GetAttributeValue>("updateaccess"); + } + set + { + this.OnPropertyChanging("UpdateAccess"); + this.SetAttributeValue("updateaccess", value); + this.OnPropertyChanged("UpdateAccess"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable userentityinstancedata_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("userentityinstancedata_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalobjectattributeaccess"); + this.SetRelatedEntities("userentityinstancedata_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("userentityinstancedata_principalobjectattributeaccess"); + } + } + + /// + /// N:1 account_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Account account_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("account_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("account_principalobjectattributeaccess"); + this.SetRelatedEntity("account_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("account_principalobjectattributeaccess"); + } + } + + /// + /// N:1 appointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("appointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("appointment_principalobjectattributeaccess"); + this.SetRelatedEntity("appointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("appointment_principalobjectattributeaccess"); + } + } + + /// + /// N:1 businessunit_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("businessunit_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit businessunit_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("businessunit_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("businessunit_principalobjectattributeaccess"); + this.SetRelatedEntity("businessunit_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("businessunit_principalobjectattributeaccess"); + } + } + + /// + /// N:1 campaign_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("campaign_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaign_principalobjectattributeaccess"); + this.SetRelatedEntity("campaign_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaign_principalobjectattributeaccess"); + } + } + + /// + /// N:1 campaignactivity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("campaignactivity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignactivity_principalobjectattributeaccess"); + this.SetRelatedEntity("campaignactivity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignactivity_principalobjectattributeaccess"); + } + } + + /// + /// N:1 campaignresponse_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse campaignresponse_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("campaignresponse_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignresponse_principalobjectattributeaccess"); + this.SetRelatedEntity("campaignresponse_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignresponse_principalobjectattributeaccess"); + } + } + + /// + /// N:1 competitor_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("competitor_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("competitor_principalobjectattributeaccess"); + this.SetRelatedEntity("competitor_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("competitor_principalobjectattributeaccess"); + } + } + + /// + /// N:1 connection_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Connection connection_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("connection_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("connection_principalobjectattributeaccess"); + this.SetRelatedEntity("connection_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("connection_principalobjectattributeaccess"); + } + } + + /// + /// N:1 contact_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Contact contact_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("contact_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contact_principalobjectattributeaccess"); + this.SetRelatedEntity("contact_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contact_principalobjectattributeaccess"); + } + } + + /// + /// N:1 contract_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Contract contract_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("contract_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contract_principalobjectattributeaccess"); + this.SetRelatedEntity("contract_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contract_principalobjectattributeaccess"); + } + } + + /// + /// N:1 contractdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractdetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.ContractDetail contractdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("contractdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contractdetail_principalobjectattributeaccess"); + this.SetRelatedEntity("contractdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contractdetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 customeraddress_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customeraddress_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customeraddress_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("customeraddress_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("customeraddress_principalobjectattributeaccess"); + this.SetRelatedEntity("customeraddress_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("customeraddress_principalobjectattributeaccess"); + } + } + + /// + /// N:1 email_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Email email_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("email_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("email_principalobjectattributeaccess"); + this.SetRelatedEntity("email_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("email_principalobjectattributeaccess"); + } + } + + /// + /// N:1 equipment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("equipment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("equipment_principalobjectattributeaccess"); + this.SetRelatedEntity("equipment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("equipment_principalobjectattributeaccess"); + } + } + + /// + /// N:1 fax_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Fax fax_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("fax_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("fax_principalobjectattributeaccess"); + this.SetRelatedEntity("fax_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("fax_principalobjectattributeaccess"); + } + } + + /// + /// N:1 goal_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Goal goal_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("goal_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("goal_principalobjectattributeaccess"); + this.SetRelatedEntity("goal_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("goal_principalobjectattributeaccess"); + } + } + + /// + /// N:1 incident_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Incident incident_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("incident_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("incident_principalobjectattributeaccess"); + this.SetRelatedEntity("incident_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("incident_principalobjectattributeaccess"); + } + } + + /// + /// N:1 invoice_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("invoice_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoice_principalobjectattributeaccess"); + this.SetRelatedEntity("invoice_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoice_principalobjectattributeaccess"); + } + } + + /// + /// N:1 invoicedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoicedetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail invoicedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("invoicedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoicedetail_principalobjectattributeaccess"); + this.SetRelatedEntity("invoicedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoicedetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 kbarticle_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.KbArticle kbarticle_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("kbarticle_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("kbarticle_principalobjectattributeaccess"); + this.SetRelatedEntity("kbarticle_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("kbarticle_principalobjectattributeaccess"); + } + } + + /// + /// N:1 lead_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Lead lead_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("lead_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("lead_principalobjectattributeaccess"); + this.SetRelatedEntity("lead_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("lead_principalobjectattributeaccess"); + } + } + + /// + /// N:1 letter_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Letter letter_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("letter_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("letter_principalobjectattributeaccess"); + this.SetRelatedEntity("letter_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("letter_principalobjectattributeaccess"); + } + } + + /// + /// N:1 list_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.List list_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("list_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("list_principalobjectattributeaccess"); + this.SetRelatedEntity("list_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("list_principalobjectattributeaccess"); + } + } + + /// + /// N:1 lk_principalobjectattributeaccess_organizationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_principalobjectattributeaccess_organizationid")] + public Xrm.Framework.CI.Common.Entities.Organization lk_principalobjectattributeaccess_organizationid + { + get + { + return this.GetRelatedEntity("lk_principalobjectattributeaccess_organizationid", null); + } + } + + /// + /// N:1 mailmergetemplate_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailmergetemplate_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate mailmergetemplate_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("mailmergetemplate_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("mailmergetemplate_principalobjectattributeaccess"); + this.SetRelatedEntity("mailmergetemplate_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("mailmergetemplate_principalobjectattributeaccess"); + } + } + + /// + /// N:1 msdyn_postalbum_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_postalbum_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_postconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_postconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_postruleconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 opportunity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("opportunity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunity_principalobjectattributeaccess"); + this.SetRelatedEntity("opportunity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunity_principalobjectattributeaccess"); + } + } + + /// + /// N:1 opportunityproduct_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityproduct_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct opportunityproduct_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("opportunityproduct_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunityproduct_principalobjectattributeaccess"); + this.SetRelatedEntity("opportunityproduct_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunityproduct_principalobjectattributeaccess"); + } + } + + /// + /// N:1 phonecall_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("phonecall_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("phonecall_principalobjectattributeaccess"); + this.SetRelatedEntity("phonecall_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("phonecall_principalobjectattributeaccess"); + } + } + + /// + /// N:1 pricelevel_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pricelevel_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.PriceLevel pricelevel_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("pricelevel_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("pricelevel_principalobjectattributeaccess"); + this.SetRelatedEntity("pricelevel_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("pricelevel_principalobjectattributeaccess"); + } + } + + /// + /// N:1 product_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Product product_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("product_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("product_principalobjectattributeaccess"); + this.SetRelatedEntity("product_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("product_principalobjectattributeaccess"); + } + } + + /// + /// N:1 queue_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Queue queue_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("queue_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queue_principalobjectattributeaccess"); + this.SetRelatedEntity("queue_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queue_principalobjectattributeaccess"); + } + } + + /// + /// N:1 queueitem_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queueitem_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.QueueItem queueitem_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("queueitem_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queueitem_principalobjectattributeaccess"); + this.SetRelatedEntity("queueitem_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queueitem_principalobjectattributeaccess"); + } + } + + /// + /// N:1 quote_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Quote quote_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("quote_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quote_principalobjectattributeaccess"); + this.SetRelatedEntity("quote_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quote_principalobjectattributeaccess"); + } + } + + /// + /// N:1 quotedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quotedetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail quotedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("quotedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quotedetail_principalobjectattributeaccess"); + this.SetRelatedEntity("quotedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quotedetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 recurringappointmentmaster_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_principalobjectattributeaccess"); + this.SetRelatedEntity("recurringappointmentmaster_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("recurringappointmentmaster_principalobjectattributeaccess"); + } + } + + /// + /// N:1 reportcategory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("reportcategory_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.ReportCategory reportcategory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("reportcategory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("reportcategory_principalobjectattributeaccess"); + this.SetRelatedEntity("reportcategory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("reportcategory_principalobjectattributeaccess"); + } + } + + /// + /// N:1 salesliterature_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesliterature_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature salesliterature_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("salesliterature_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesliterature_principalobjectattributeaccess"); + this.SetRelatedEntity("salesliterature_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesliterature_principalobjectattributeaccess"); + } + } + + /// + /// N:1 salesorder_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("salesorder_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorder_principalobjectattributeaccess"); + this.SetRelatedEntity("salesorder_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorder_principalobjectattributeaccess"); + } + } + + /// + /// N:1 salesorderdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorderdetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail salesorderdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("salesorderdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorderdetail_principalobjectattributeaccess"); + this.SetRelatedEntity("salesorderdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorderdetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 serviceappointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("serviceappointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("serviceappointment_principalobjectattributeaccess"); + this.SetRelatedEntity("serviceappointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("serviceappointment_principalobjectattributeaccess"); + } + } + + /// + /// N:1 sharepointdocumentlocation_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation sharepointdocumentlocation_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("sharepointdocumentlocation_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_principalobjectattributeaccess"); + this.SetRelatedEntity("sharepointdocumentlocation_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_principalobjectattributeaccess"); + } + } + + /// + /// N:1 sharepointsite_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SharePointSite sharepointsite_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("sharepointsite_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointsite_principalobjectattributeaccess"); + this.SetRelatedEntity("sharepointsite_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointsite_principalobjectattributeaccess"); + } + } + + /// + /// N:1 systemuser_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("systemuser_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess"); + this.SetRelatedEntity("systemuser_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess"); + } + } + + /// + /// N:1 systemuser_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess_principalid")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntity("systemuser_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess_principalid"); + this.SetRelatedEntity("systemuser_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess_principalid"); + } + } + + /// + /// N:1 task_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Task task_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("task_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("task_principalobjectattributeaccess"); + this.SetRelatedEntity("task_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("task_principalobjectattributeaccess"); + } + } + + /// + /// N:1 team_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Team team_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("team_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess"); + this.SetRelatedEntity("team_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess"); + } + } + + /// + /// N:1 team_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess_principalid")] + public Xrm.Framework.CI.Common.Entities.Team team_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntity("team_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess_principalid"); + this.SetRelatedEntity("team_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess_principalid"); + } + } + + /// + /// N:1 territory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Territory territory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("territory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("territory_principalobjectattributeaccess"); + this.SetRelatedEntity("territory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("territory_principalobjectattributeaccess"); + } + } + } + + /// + /// Permission to perform an action in Microsoft CRM. The platform checks for the privilege and rejects the attempt if the user does not hold the privilege. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("privilege")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Privilege : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Privilege() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "privilege"; + + public const int EntityTypeCode = 1023; + + 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)); + } + } + + /// + /// Rights a user has to an instance of an entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessright")] + public System.Nullable AccessRight + { + get + { + return this.GetAttributeValue>("accessright"); + } + set + { + this.OnPropertyChanging("AccessRight"); + this.SetAttributeValue("accessright", value); + this.OnPropertyChanged("AccessRight"); + } + } + + /// + /// Information that specifies whether the privilege applies to the user, the user's team, or objects shared by the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbebasic")] + public System.Nullable CanBeBasic + { + get + { + return this.GetAttributeValue>("canbebasic"); + } + set + { + this.OnPropertyChanging("CanBeBasic"); + this.SetAttributeValue("canbebasic", value); + this.OnPropertyChanged("CanBeBasic"); + } + } + + /// + /// Information that specifies whether the privilege applies to child business units of the business unit associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeep")] + public System.Nullable CanBeDeep + { + get + { + return this.GetAttributeValue>("canbedeep"); + } + set + { + this.OnPropertyChanging("CanBeDeep"); + this.SetAttributeValue("canbedeep", value); + this.OnPropertyChanged("CanBeDeep"); + } + } + + /// + /// Information that specifies whether the privilege applies to the entire organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbeglobal")] + public System.Nullable CanBeGlobal + { + get + { + return this.GetAttributeValue>("canbeglobal"); + } + set + { + this.OnPropertyChanging("CanBeGlobal"); + this.SetAttributeValue("canbeglobal", value); + this.OnPropertyChanged("CanBeGlobal"); + } + } + + /// + /// Information that specifies whether the privilege applies to the user's business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbelocal")] + public System.Nullable CanBeLocal + { + get + { + return this.GetAttributeValue>("canbelocal"); + } + set + { + this.OnPropertyChanging("CanBeLocal"); + this.SetAttributeValue("canbelocal", value); + this.OnPropertyChanged("CanBeLocal"); + } + } + + /// + /// Name of the privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public System.Nullable PrivilegeId + { + get + { + return this.GetAttributeValue>("privilegeid"); + } + set + { + this.OnPropertyChanging("PrivilegeId"); + this.SetAttributeValue("privilegeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PrivilegeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PrivilegeId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Privilege_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_AsyncOperations")] + public System.Collections.Generic.IEnumerable Privilege_AsyncOperations + { + get + { + return this.GetRelatedEntities("Privilege_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Privilege_AsyncOperations"); + this.SetRelatedEntities("Privilege_AsyncOperations", null, value); + this.OnPropertyChanged("Privilege_AsyncOperations"); + } + } + + /// + /// 1:N Privilege_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Privilege_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Privilege_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Privilege_BulkDeleteFailures"); + this.SetRelatedEntities("Privilege_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Privilege_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_privilege + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_privilege")] + public System.Collections.Generic.IEnumerable userentityinstancedata_privilege + { + get + { + return this.GetRelatedEntities("userentityinstancedata_privilege", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_privilege"); + this.SetRelatedEntities("userentityinstancedata_privilege", null, value); + this.OnPropertyChanged("userentityinstancedata_privilege"); + } + } + + /// + /// N:N roleprivileges_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("roleprivileges_association")] + public System.Collections.Generic.IEnumerable roleprivileges_association + { + get + { + return this.GetRelatedEntities("roleprivileges_association", null); + } + set + { + this.OnPropertyChanging("roleprivileges_association"); + this.SetRelatedEntities("roleprivileges_association", null, value); + this.OnPropertyChanged("roleprivileges_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ProcessSessionState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Incomplete = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Complete = 1, + } + + /// + /// Information that is generated when a dialog is run. Every time that you run a dialog, a dialog session is created. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("processsession")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProcessSession : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProcessSession() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "processsession"; + + public const int EntityTypeCode = 4710; + + 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)); + } + } + + /// + /// Name of the activity that is being executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityname")] + public string ActivityName + { + get + { + return this.GetAttributeValue("activityname"); + } + set + { + this.OnPropertyChanging("ActivityName"); + this.SetAttributeValue("activityname", value); + this.OnPropertyChanged("ActivityName"); + } + } + + /// + /// Unique identifier of the user who canceled the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canceledby")] + public Microsoft.Xrm.Sdk.EntityReference CanceledBy + { + get + { + return this.GetAttributeValue("canceledby"); + } + } + + /// + /// Date and time when the dialog session was canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canceledon")] + public System.Nullable CanceledOn + { + get + { + return this.GetAttributeValue>("canceledon"); + } + set + { + this.OnPropertyChanging("CanceledOn"); + this.SetAttributeValue("canceledon", value); + this.OnPropertyChanged("CanceledOn"); + } + } + + /// + /// User comments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("comments")] + public string Comments + { + get + { + return this.GetAttributeValue("comments"); + } + set + { + this.OnPropertyChanging("Comments"); + this.SetAttributeValue("comments", value); + this.OnPropertyChanged("Comments"); + } + } + + /// + /// Unique identifier of the user who completed the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedby")] + public Microsoft.Xrm.Sdk.EntityReference CompletedBy + { + get + { + return this.GetAttributeValue("completedby"); + } + } + + /// + /// Date and time when the dialog session was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + set + { + this.OnPropertyChanging("CompletedOn"); + this.SetAttributeValue("completedon", value); + this.OnPropertyChanged("CompletedOn"); + } + } + + /// + /// Unique identifier of the user who started the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the dialog session 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 dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Error code related to the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + set + { + this.OnPropertyChanging("ErrorCode"); + this.SetAttributeValue("errorcode", value); + this.OnPropertyChanged("ErrorCode"); + } + } + + /// + /// Unique identifier of the user who ran the dialog process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executedby")] + public Microsoft.Xrm.Sdk.EntityReference ExecutedBy + { + get + { + return this.GetAttributeValue("executedby"); + } + set + { + this.OnPropertyChanging("ExecutedBy"); + this.SetAttributeValue("executedby", value); + this.OnPropertyChanged("ExecutedBy"); + } + } + + /// + /// Date and time when the dialog process was run. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executedon")] + public System.Nullable ExecutedOn + { + get + { + return this.GetAttributeValue>("executedon"); + } + } + + /// + /// Input arguments for the child dialog process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inputarguments")] + public string InputArguments + { + get + { + return this.GetAttributeValue("inputarguments"); + } + set + { + this.OnPropertyChanging("InputArguments"); + this.SetAttributeValue("inputarguments", value); + this.OnPropertyChanged("InputArguments"); + } + } + + /// + /// Unique identifier of the user who last modified the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the dialog session was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the succeeding linked dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextlinkedsessionid")] + public Microsoft.Xrm.Sdk.EntityReference NextLinkedSessionId + { + get + { + return this.GetAttributeValue("nextlinkedsessionid"); + } + set + { + this.OnPropertyChanging("NextLinkedSessionId"); + this.SetAttributeValue("nextlinkedsessionid", value); + this.OnPropertyChanged("NextLinkedSessionId"); + } + } + + /// + /// Unique identifier of the originating dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingsessionid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingSessionId + { + get + { + return this.GetAttributeValue("originatingsessionid"); + } + set + { + this.OnPropertyChanging("OriginatingSessionId"); + this.SetAttributeValue("originatingsessionid", value); + this.OnPropertyChanged("OriginatingSessionId"); + } + } + + /// + /// Unique identifier of the user or team who owns the dialog session. + /// + [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 dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the preceding linked dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previouslinkedsessionid")] + public Microsoft.Xrm.Sdk.EntityReference PreviousLinkedSessionId + { + get + { + return this.GetAttributeValue("previouslinkedsessionid"); + } + set + { + this.OnPropertyChanging("PreviousLinkedSessionId"); + this.SetAttributeValue("previouslinkedsessionid", value); + this.OnPropertyChanged("PreviousLinkedSessionId"); + } + } + + /// + /// Select the process activation record that is related to the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public Microsoft.Xrm.Sdk.EntityReference ProcessId + { + get + { + return this.GetAttributeValue("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processsessionid")] + public System.Nullable ProcessSessionId + { + get + { + return this.GetAttributeValue>("processsessionid"); + } + set + { + this.OnPropertyChanging("ProcessSessionId"); + this.SetAttributeValue("processsessionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProcessSessionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processsessionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProcessSessionId = value; + } + } + + /// + /// Name of the dialog stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstagename")] + public string ProcessStageName + { + get + { + return this.GetAttributeValue("processstagename"); + } + set + { + this.OnPropertyChanging("ProcessStageName"); + this.SetAttributeValue("processstagename", value); + this.OnPropertyChanged("ProcessStageName"); + } + } + + /// + /// State of the dialog process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstate")] + public string ProcessState + { + get + { + return this.GetAttributeValue("processstate"); + } + set + { + this.OnPropertyChanging("ProcessState"); + this.SetAttributeValue("processstate", value); + this.OnPropertyChanged("ProcessState"); + } + } + + /// + /// Unique identifier of the object with which the dialog session is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the user who started the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedby")] + public Microsoft.Xrm.Sdk.EntityReference StartedBy + { + get + { + return this.GetAttributeValue("startedby"); + } + } + + /// + /// Date and time when the dialog session was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + set + { + this.OnPropertyChanging("StartedOn"); + this.SetAttributeValue("startedon", value); + this.OnPropertyChanged("StartedOn"); + } + } + + /// + /// Status of the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ProcessSessionState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ProcessSessionState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the dialog session. + /// + [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"); + } + } + + /// + /// Name of the dialog step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepname")] + public string StepName + { + get + { + return this.GetAttributeValue("stepname"); + } + set + { + this.OnPropertyChanging("StepName"); + this.SetAttributeValue("stepname", value); + this.OnPropertyChanged("StepName"); + } + } + + /// + /// 1:N lk_processsession_nextlinkedsessionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_processsession_nextlinkedsessionid + { + get + { + return this.GetRelatedEntities("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_processsession_nextlinkedsessionid"); + this.SetRelatedEntities("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_processsession_nextlinkedsessionid"); + } + } + + /// + /// 1:N lk_processsession_originatingsessionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_processsession_originatingsessionid + { + get + { + return this.GetRelatedEntities("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_processsession_originatingsessionid"); + this.SetRelatedEntities("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_processsession_originatingsessionid"); + } + } + + /// + /// 1:N lk_processsession_previouslinkedsessionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_processsession_previouslinkedsessionid + { + get + { + return this.GetRelatedEntities("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_processsession_previouslinkedsessionid"); + this.SetRelatedEntities("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_processsession_previouslinkedsessionid"); + } + } + + /// + /// 1:N lk_workflowlog_processsession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession")] + public System.Collections.Generic.IEnumerable lk_workflowlog_processsession + { + get + { + return this.GetRelatedEntities("lk_workflowlog_processsession", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession"); + this.SetRelatedEntities("lk_workflowlog_processsession", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession"); + } + } + + /// + /// 1:N lk_workflowlog_processsession_childworkflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession_childworkflow")] + public System.Collections.Generic.IEnumerable lk_workflowlog_processsession_childworkflow + { + get + { + return this.GetRelatedEntities("lk_workflowlog_processsession_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession_childworkflow"); + this.SetRelatedEntities("lk_workflowlog_processsession_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession_childworkflow"); + } + } + + /// + /// 1:N processsession_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections1")] + public System.Collections.Generic.IEnumerable processsession_connections1 + { + get + { + return this.GetRelatedEntities("processsession_connections1", null); + } + set + { + this.OnPropertyChanging("processsession_connections1"); + this.SetRelatedEntities("processsession_connections1", null, value); + this.OnPropertyChanged("processsession_connections1"); + } + } + + /// + /// 1:N processsession_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections2")] + public System.Collections.Generic.IEnumerable processsession_connections2 + { + get + { + return this.GetRelatedEntities("processsession_connections2", null); + } + set + { + this.OnPropertyChanging("processsession_connections2"); + this.SetRelatedEntities("processsession_connections2", null, value); + this.OnPropertyChanged("processsession_connections2"); + } + } + + /// + /// 1:N processsession_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_PostFollows")] + public System.Collections.Generic.IEnumerable processsession_PostFollows + { + get + { + return this.GetRelatedEntities("processsession_PostFollows", null); + } + set + { + this.OnPropertyChanging("processsession_PostFollows"); + this.SetRelatedEntities("processsession_PostFollows", null, value); + this.OnPropertyChanged("processsession_PostFollows"); + } + } + + /// + /// 1:N userentityinstancedata_processsession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_processsession")] + public System.Collections.Generic.IEnumerable userentityinstancedata_processsession + { + get + { + return this.GetRelatedEntities("userentityinstancedata_processsession", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_processsession"); + this.SetRelatedEntities("userentityinstancedata_processsession", null, value); + this.OnPropertyChanged("userentityinstancedata_processsession"); + } + } + + /// + /// N:1 Account_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Account Account_ProcessSessions + { + get + { + return this.GetRelatedEntity("Account_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Account_ProcessSessions"); + this.SetRelatedEntity("Account_ProcessSessions", null, value); + this.OnPropertyChanged("Account_ProcessSessions"); + } + } + + /// + /// N:1 Annotation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Annotation Annotation_ProcessSessions + { + get + { + return this.GetRelatedEntity("Annotation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Annotation_ProcessSessions"); + this.SetRelatedEntity("Annotation_ProcessSessions", null, value); + this.OnPropertyChanged("Annotation_ProcessSessions"); + } + } + + /// + /// N:1 Appointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_ProcessSessions + { + get + { + return this.GetRelatedEntity("Appointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Appointment_ProcessSessions"); + this.SetRelatedEntity("Appointment_ProcessSessions", null, value); + this.OnPropertyChanged("Appointment_ProcessSessions"); + } + } + + /// + /// N:1 BusinessUnit_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ProcessSessions + { + get + { + return this.GetRelatedEntity("BusinessUnit_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ProcessSessions"); + this.SetRelatedEntity("BusinessUnit_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnit_ProcessSessions"); + } + } + + /// + /// N:1 BusinessUnitNewsArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle BusinessUnitNewsArticle_ProcessSessions + { + get + { + return this.GetRelatedEntity("BusinessUnitNewsArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_ProcessSessions"); + this.SetRelatedEntity("BusinessUnitNewsArticle_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_ProcessSessions"); + } + } + + /// + /// N:1 Campaign_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_ProcessSessions + { + get + { + return this.GetRelatedEntity("Campaign_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Campaign_ProcessSessions"); + this.SetRelatedEntity("Campaign_ProcessSessions", null, value); + this.OnPropertyChanged("Campaign_ProcessSessions"); + } + } + + /// + /// N:1 CampaignActivity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_ProcessSessions + { + get + { + return this.GetRelatedEntity("CampaignActivity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ProcessSessions"); + this.SetRelatedEntity("CampaignActivity_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignActivity_ProcessSessions"); + } + } + + /// + /// N:1 CampaignResponse_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_ProcessSessions + { + get + { + return this.GetRelatedEntity("CampaignResponse_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_ProcessSessions"); + this.SetRelatedEntity("CampaignResponse_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignResponse_ProcessSessions"); + } + } + + /// + /// N:1 Competitor_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_ProcessSessions + { + get + { + return this.GetRelatedEntity("Competitor_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Competitor_ProcessSessions"); + this.SetRelatedEntity("Competitor_ProcessSessions", null, value); + this.OnPropertyChanged("Competitor_ProcessSessions"); + } + } + + /// + /// N:1 Connection_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Connection Connection_ProcessSessions + { + get + { + return this.GetRelatedEntity("Connection_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Connection_ProcessSessions"); + this.SetRelatedEntity("Connection_ProcessSessions", null, value); + this.OnPropertyChanged("Connection_ProcessSessions"); + } + } + + /// + /// N:1 ConnectionRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConnectionRole_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole ConnectionRole_ProcessSessions + { + get + { + return this.GetRelatedEntity("ConnectionRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConnectionRole_ProcessSessions"); + this.SetRelatedEntity("ConnectionRole_ProcessSessions", null, value); + this.OnPropertyChanged("ConnectionRole_ProcessSessions"); + } + } + + /// + /// N:1 ConstraintBasedGroup_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup ConstraintBasedGroup_ProcessSessions + { + get + { + return this.GetRelatedEntity("ConstraintBasedGroup_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_ProcessSessions"); + this.SetRelatedEntity("ConstraintBasedGroup_ProcessSessions", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_ProcessSessions"); + } + } + + /// + /// N:1 Contact_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_ProcessSessions + { + get + { + return this.GetRelatedEntity("Contact_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contact_ProcessSessions"); + this.SetRelatedEntity("Contact_ProcessSessions", null, value); + this.OnPropertyChanged("Contact_ProcessSessions"); + } + } + + /// + /// N:1 Contract_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_ProcessSessions + { + get + { + return this.GetRelatedEntity("Contract_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contract_ProcessSessions"); + this.SetRelatedEntity("Contract_ProcessSessions", null, value); + this.OnPropertyChanged("Contract_ProcessSessions"); + } + } + + /// + /// N:1 ContractDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("ContractDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractDetail_ProcessSessions"); + this.SetRelatedEntity("ContractDetail_ProcessSessions", null, value); + this.OnPropertyChanged("ContractDetail_ProcessSessions"); + } + } + + /// + /// N:1 ContractTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate ContractTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntity("ContractTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_ProcessSessions"); + this.SetRelatedEntity("ContractTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("ContractTemplate_ProcessSessions"); + } + } + + /// + /// N:1 CustomerAddress_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress CustomerAddress_ProcessSessions + { + get + { + return this.GetRelatedEntity("CustomerAddress_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_ProcessSessions"); + this.SetRelatedEntity("CustomerAddress_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerAddress_ProcessSessions"); + } + } + + /// + /// N:1 CustomerOpportunityRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole CustomerOpportunityRole_ProcessSessions + { + get + { + return this.GetRelatedEntity("CustomerOpportunityRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_ProcessSessions"); + this.SetRelatedEntity("CustomerOpportunityRole_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_ProcessSessions"); + } + } + + /// + /// N:1 CustomerRelationship_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship CustomerRelationship_ProcessSessions + { + get + { + return this.GetRelatedEntity("CustomerRelationship_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_ProcessSessions"); + this.SetRelatedEntity("CustomerRelationship_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerRelationship_ProcessSessions"); + } + } + + /// + /// N:1 Discount_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Discount Discount_ProcessSessions + { + get + { + return this.GetRelatedEntity("Discount_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Discount_ProcessSessions"); + this.SetRelatedEntity("Discount_ProcessSessions", null, value); + this.OnPropertyChanged("Discount_ProcessSessions"); + } + } + + /// + /// N:1 DiscountType_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.DiscountType DiscountType_ProcessSessions + { + get + { + return this.GetRelatedEntity("DiscountType_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("DiscountType_ProcessSessions"); + this.SetRelatedEntity("DiscountType_ProcessSessions", null, value); + this.OnPropertyChanged("DiscountType_ProcessSessions"); + } + } + + /// + /// N:1 Email_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Email Email_ProcessSessions + { + get + { + return this.GetRelatedEntity("Email_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Email_ProcessSessions"); + this.SetRelatedEntity("Email_ProcessSessions", null, value); + this.OnPropertyChanged("Email_ProcessSessions"); + } + } + + /// + /// N:1 Equipment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_ProcessSessions + { + get + { + return this.GetRelatedEntity("Equipment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Equipment_ProcessSessions"); + this.SetRelatedEntity("Equipment_ProcessSessions", null, value); + this.OnPropertyChanged("Equipment_ProcessSessions"); + } + } + + /// + /// N:1 Fax_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_ProcessSessions + { + get + { + return this.GetRelatedEntity("Fax_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Fax_ProcessSessions"); + this.SetRelatedEntity("Fax_ProcessSessions", null, value); + this.OnPropertyChanged("Fax_ProcessSessions"); + } + } + + /// + /// N:1 Goal_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Goal Goal_ProcessSessions + { + get + { + return this.GetRelatedEntity("Goal_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Goal_ProcessSessions"); + this.SetRelatedEntity("Goal_ProcessSessions", null, value); + this.OnPropertyChanged("Goal_ProcessSessions"); + } + } + + /// + /// N:1 goalrollupquery_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goalrollupquery_ProcessSessions + { + get + { + return this.GetRelatedEntity("goalrollupquery_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_ProcessSessions"); + this.SetRelatedEntity("goalrollupquery_ProcessSessions", null, value); + this.OnPropertyChanged("goalrollupquery_ProcessSessions"); + } + } + + /// + /// N:1 Incident_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_ProcessSessions + { + get + { + return this.GetRelatedEntity("Incident_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Incident_ProcessSessions"); + this.SetRelatedEntity("Incident_ProcessSessions", null, value); + this.OnPropertyChanged("Incident_ProcessSessions"); + } + } + + /// + /// N:1 Invoice_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_ProcessSessions + { + get + { + return this.GetRelatedEntity("Invoice_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Invoice_ProcessSessions"); + this.SetRelatedEntity("Invoice_ProcessSessions", null, value); + this.OnPropertyChanged("Invoice_ProcessSessions"); + } + } + + /// + /// N:1 InvoiceDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail InvoiceDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("InvoiceDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_ProcessSessions"); + this.SetRelatedEntity("InvoiceDetail_ProcessSessions", null, value); + this.OnPropertyChanged("InvoiceDetail_ProcessSessions"); + } + } + + /// + /// N:1 KbArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_ProcessSessions + { + get + { + return this.GetRelatedEntity("KbArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticle_ProcessSessions"); + this.SetRelatedEntity("KbArticle_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticle_ProcessSessions"); + } + } + + /// + /// N:1 KbArticleComment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment KbArticleComment_ProcessSessions + { + get + { + return this.GetRelatedEntity("KbArticleComment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_ProcessSessions"); + this.SetRelatedEntity("KbArticleComment_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleComment_ProcessSessions"); + } + } + + /// + /// N:1 KbArticleTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate KbArticleTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntity("KbArticleTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_ProcessSessions"); + this.SetRelatedEntity("KbArticleTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleTemplate_ProcessSessions"); + } + } + + /// + /// N:1 Lead_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_ProcessSessions + { + get + { + return this.GetRelatedEntity("Lead_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Lead_ProcessSessions"); + this.SetRelatedEntity("Lead_ProcessSessions", null, value); + this.OnPropertyChanged("Lead_ProcessSessions"); + } + } + + /// + /// N:1 Letter_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_ProcessSessions + { + get + { + return this.GetRelatedEntity("Letter_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Letter_ProcessSessions"); + this.SetRelatedEntity("Letter_ProcessSessions", null, value); + this.OnPropertyChanged("Letter_ProcessSessions"); + } + } + + /// + /// N:1 List_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.List List_ProcessSessions + { + get + { + return this.GetRelatedEntity("List_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("List_ProcessSessions"); + this.SetRelatedEntity("List_ProcessSessions", null, value); + this.OnPropertyChanged("List_ProcessSessions"); + } + } + + /// + /// N:1 lk_processsession_canceledby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canceledby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_canceledby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_canceledby + { + get + { + return this.GetRelatedEntity("lk_processsession_canceledby", null); + } + } + + /// + /// N:1 lk_processsession_completedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_completedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_completedby + { + get + { + return this.GetRelatedEntity("lk_processsession_completedby", null); + } + } + + /// + /// N:1 lk_processsession_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_createdby + { + get + { + return this.GetRelatedEntity("lk_processsession_createdby", null); + } + } + + /// + /// N:1 lk_processsession_executedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_executedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_executedby + { + get + { + return this.GetRelatedEntity("lk_processsession_executedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_executedby"); + this.SetRelatedEntity("lk_processsession_executedby", null, value); + this.OnPropertyChanged("lk_processsession_executedby"); + } + } + + /// + /// N:1 lk_processsession_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_modifiedby + { + get + { + return this.GetRelatedEntity("lk_processsession_modifiedby", null); + } + } + + /// + /// N:1 lk_processsession_nextlinkedsessionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextlinkedsessionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.ProcessSession Referencinglk_processsession_nextlinkedsessionid + { + get + { + return this.GetRelatedEntity("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinglk_processsession_nextlinkedsessionid"); + this.SetRelatedEntity("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinglk_processsession_nextlinkedsessionid"); + } + } + + /// + /// N:1 lk_processsession_originatingsessionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingsessionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.ProcessSession Referencinglk_processsession_originatingsessionid + { + get + { + return this.GetRelatedEntity("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinglk_processsession_originatingsessionid"); + this.SetRelatedEntity("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinglk_processsession_originatingsessionid"); + } + } + + /// + /// N:1 lk_processsession_previouslinkedsessionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previouslinkedsessionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.ProcessSession Referencinglk_processsession_previouslinkedsessionid + { + get + { + return this.GetRelatedEntity("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinglk_processsession_previouslinkedsessionid"); + this.SetRelatedEntity("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinglk_processsession_previouslinkedsessionid"); + } + } + + /// + /// N:1 lk_processsession_processid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_processid")] + public Xrm.Framework.CI.Common.Entities.Workflow lk_processsession_processid + { + get + { + return this.GetRelatedEntity("lk_processsession_processid", null); + } + set + { + this.OnPropertyChanging("lk_processsession_processid"); + this.SetRelatedEntity("lk_processsession_processid", null, value); + this.OnPropertyChanged("lk_processsession_processid"); + } + } + + /// + /// N:1 lk_processsession_startedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_startedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_startedby + { + get + { + return this.GetRelatedEntity("lk_processsession_startedby", null); + } + } + + /// + /// N:1 lk_processsessionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsessionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processsessionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_processsessionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsessionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processsessionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 mailbox_processsessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_processsessions")] + public Xrm.Framework.CI.Common.Entities.Mailbox mailbox_processsessions + { + get + { + return this.GetRelatedEntity("mailbox_processsessions", null); + } + set + { + this.OnPropertyChanging("mailbox_processsessions"); + this.SetRelatedEntity("mailbox_processsessions", null, value); + this.OnPropertyChanged("mailbox_processsessions"); + } + } + + /// + /// N:1 MailMergeTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate MailMergeTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntity("MailMergeTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_ProcessSessions"); + this.SetRelatedEntity("MailMergeTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("MailMergeTemplate_ProcessSessions"); + } + } + + /// + /// N:1 metric_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Metric metric_ProcessSessions + { + get + { + return this.GetRelatedEntity("metric_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("metric_ProcessSessions"); + this.SetRelatedEntity("metric_ProcessSessions", null, value); + this.OnPropertyChanged("metric_ProcessSessions"); + } + } + + /// + /// N:1 msdyn_postalbum_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ProcessSession"); + this.SetRelatedEntity("msdyn_postalbum_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postalbum_ProcessSession"); + } + } + + /// + /// N:1 msdyn_postconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_ProcessSession"); + this.SetRelatedEntity("msdyn_postconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postconfig_ProcessSession"); + } + } + + /// + /// N:1 msdyn_postruleconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_ProcessSession"); + this.SetRelatedEntity("msdyn_postruleconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_ProcessSession"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_ProcessSession"); + this.SetRelatedEntity("msdyn_wallsavedquery_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_ProcessSession"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_ProcessSession"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_ProcessSession"); + } + } + + /// + /// N:1 Opportunity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_ProcessSessions + { + get + { + return this.GetRelatedEntity("Opportunity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Opportunity_ProcessSessions"); + this.SetRelatedEntity("Opportunity_ProcessSessions", null, value); + this.OnPropertyChanged("Opportunity_ProcessSessions"); + } + } + + /// + /// N:1 OpportunityProduct_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct OpportunityProduct_ProcessSessions + { + get + { + return this.GetRelatedEntity("OpportunityProduct_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_ProcessSessions"); + this.SetRelatedEntity("OpportunityProduct_ProcessSessions", null, value); + this.OnPropertyChanged("OpportunityProduct_ProcessSessions"); + } + } + + /// + /// N:1 Owning_businessunit_processsessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Owning_businessunit_processsessions")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit Owning_businessunit_processsessions + { + get + { + return this.GetRelatedEntity("Owning_businessunit_processsessions", null); + } + } + + /// + /// N:1 PhoneCall_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_ProcessSessions + { + get + { + return this.GetRelatedEntity("PhoneCall_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PhoneCall_ProcessSessions"); + this.SetRelatedEntity("PhoneCall_ProcessSessions", null, value); + this.OnPropertyChanged("PhoneCall_ProcessSessions"); + } + } + + /// + /// N:1 PriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntity("PriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PriceLevel_ProcessSessions"); + this.SetRelatedEntity("PriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("PriceLevel_ProcessSessions"); + } + } + + /// + /// N:1 Product_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Product Product_ProcessSessions + { + get + { + return this.GetRelatedEntity("Product_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Product_ProcessSessions"); + this.SetRelatedEntity("Product_ProcessSessions", null, value); + this.OnPropertyChanged("Product_ProcessSessions"); + } + } + + /// + /// N:1 ProductPriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel ProductPriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntity("ProductPriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_ProcessSessions"); + this.SetRelatedEntity("ProductPriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("ProductPriceLevel_ProcessSessions"); + } + } + + /// + /// N:1 Queue_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_ProcessSessions + { + get + { + return this.GetRelatedEntity("Queue_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Queue_ProcessSessions"); + this.SetRelatedEntity("Queue_ProcessSessions", null, value); + this.OnPropertyChanged("Queue_ProcessSessions"); + } + } + + /// + /// N:1 QueueItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.QueueItem QueueItem_ProcessSessions + { + get + { + return this.GetRelatedEntity("QueueItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QueueItem_ProcessSessions"); + this.SetRelatedEntity("QueueItem_ProcessSessions", null, value); + this.OnPropertyChanged("QueueItem_ProcessSessions"); + } + } + + /// + /// N:1 Quote_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_ProcessSessions + { + get + { + return this.GetRelatedEntity("Quote_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Quote_ProcessSessions"); + this.SetRelatedEntity("Quote_ProcessSessions", null, value); + this.OnPropertyChanged("Quote_ProcessSessions"); + } + } + + /// + /// N:1 QuoteDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail QuoteDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("QuoteDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_ProcessSessions"); + this.SetRelatedEntity("QuoteDetail_ProcessSessions", null, value); + this.OnPropertyChanged("QuoteDetail_ProcessSessions"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_ProcessSessions + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_ProcessSessions"); + this.SetRelatedEntity("RecurringAppointmentMaster_ProcessSessions", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_ProcessSessions"); + } + } + + /// + /// N:1 RelationshipRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole RelationshipRole_ProcessSessions + { + get + { + return this.GetRelatedEntity("RelationshipRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_ProcessSessions"); + this.SetRelatedEntity("RelationshipRole_ProcessSessions", null, value); + this.OnPropertyChanged("RelationshipRole_ProcessSessions"); + } + } + + /// + /// N:1 Report_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Report Report_ProcessSessions + { + get + { + return this.GetRelatedEntity("Report_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Report_ProcessSessions"); + this.SetRelatedEntity("Report_ProcessSessions", null, value); + this.OnPropertyChanged("Report_ProcessSessions"); + } + } + + /// + /// N:1 rollupfield_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.RollupField rollupfield_ProcessSessions + { + get + { + return this.GetRelatedEntity("rollupfield_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("rollupfield_ProcessSessions"); + this.SetRelatedEntity("rollupfield_ProcessSessions", null, value); + this.OnPropertyChanged("rollupfield_ProcessSessions"); + } + } + + /// + /// N:1 SalesLiterature_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesLiterature_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_ProcessSessions"); + this.SetRelatedEntity("SalesLiterature_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiterature_ProcessSessions"); + } + } + + /// + /// N:1 SalesLiteratureItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem SalesLiteratureItem_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesLiteratureItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_ProcessSessions"); + this.SetRelatedEntity("SalesLiteratureItem_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiteratureItem_ProcessSessions"); + } + } + + /// + /// N:1 SalesOrder_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesOrder_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ProcessSessions"); + this.SetRelatedEntity("SalesOrder_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrder_ProcessSessions"); + } + } + + /// + /// N:1 SalesOrderDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail SalesOrderDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesOrderDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_ProcessSessions"); + this.SetRelatedEntity("SalesOrderDetail_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrderDetail_ProcessSessions"); + } + } + + /// + /// N:1 Service_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Service Service_ProcessSessions + { + get + { + return this.GetRelatedEntity("Service_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Service_ProcessSessions"); + this.SetRelatedEntity("Service_ProcessSessions", null, value); + this.OnPropertyChanged("Service_ProcessSessions"); + } + } + + /// + /// N:1 ServiceAppointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_ProcessSessions + { + get + { + return this.GetRelatedEntity("ServiceAppointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_ProcessSessions"); + this.SetRelatedEntity("ServiceAppointment_ProcessSessions", null, value); + this.OnPropertyChanged("ServiceAppointment_ProcessSessions"); + } + } + + /// + /// N:1 SharePointDocumentLocation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_ProcessSessions + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_ProcessSessions"); + this.SetRelatedEntity("SharePointDocumentLocation_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_ProcessSessions"); + } + } + + /// + /// N:1 SharePointSite_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_ProcessSessions + { + get + { + return this.GetRelatedEntity("SharePointSite_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointSite_ProcessSessions"); + this.SetRelatedEntity("SharePointSite_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointSite_ProcessSessions"); + } + } + + /// + /// N:1 Site_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Site Site_ProcessSessions + { + get + { + return this.GetRelatedEntity("Site_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Site_ProcessSessions"); + this.SetRelatedEntity("Site_ProcessSessions", null, value); + this.OnPropertyChanged("Site_ProcessSessions"); + } + } + + /// + /// N:1 Subject_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Subject Subject_ProcessSessions + { + get + { + return this.GetRelatedEntity("Subject_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Subject_ProcessSessions"); + this.SetRelatedEntity("Subject_ProcessSessions", null, value); + this.OnPropertyChanged("Subject_ProcessSessions"); + } + } + + /// + /// N:1 SystemUser_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ProcessSessions + { + get + { + return this.GetRelatedEntity("SystemUser_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SystemUser_ProcessSessions"); + this.SetRelatedEntity("SystemUser_ProcessSessions", null, value); + this.OnPropertyChanged("SystemUser_ProcessSessions"); + } + } + + /// + /// N:1 Task_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Task Task_ProcessSessions + { + get + { + return this.GetRelatedEntity("Task_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Task_ProcessSessions"); + this.SetRelatedEntity("Task_ProcessSessions", null, value); + this.OnPropertyChanged("Task_ProcessSessions"); + } + } + + /// + /// N:1 team_processsession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_processsession")] + public Xrm.Framework.CI.Common.Entities.Team team_processsession + { + get + { + return this.GetRelatedEntity("team_processsession", null); + } + } + + /// + /// N:1 Team_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Team Team_ProcessSessions + { + get + { + return this.GetRelatedEntity("Team_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Team_ProcessSessions"); + this.SetRelatedEntity("Team_ProcessSessions", null, value); + this.OnPropertyChanged("Team_ProcessSessions"); + } + } + + /// + /// N:1 Template_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Template Template_ProcessSessions + { + get + { + return this.GetRelatedEntity("Template_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Template_ProcessSessions"); + this.SetRelatedEntity("Template_ProcessSessions", null, value); + this.OnPropertyChanged("Template_ProcessSessions"); + } + } + + /// + /// N:1 Territory_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_ProcessSessions + { + get + { + return this.GetRelatedEntity("Territory_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Territory_ProcessSessions"); + this.SetRelatedEntity("Territory_ProcessSessions", null, value); + this.OnPropertyChanged("Territory_ProcessSessions"); + } + } + + /// + /// N:1 TransactionCurrency_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ProcessSessions + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ProcessSessions"); + this.SetRelatedEntity("TransactionCurrency_ProcessSessions", null, value); + this.OnPropertyChanged("TransactionCurrency_ProcessSessions"); + } + } + } + + /// + /// Stage associated with a process. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("processstage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProcessStage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProcessStage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "processstage"; + + public const int EntityTypeCode = 4724; + + 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)); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the business unit that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Primary entity associated with the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public Microsoft.Xrm.Sdk.EntityReference ProcessId + { + get + { + return this.GetAttributeValue("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Shows the ID of the process stage record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstageid")] + public System.Nullable ProcessStageId + { + get + { + return this.GetAttributeValue>("processstageid"); + } + set + { + this.OnPropertyChanging("ProcessStageId"); + this.SetAttributeValue("processstageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProcessStageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProcessStageId = value; + } + } + + /// + /// Select the category of the sales process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagecategory")] + public Microsoft.Xrm.Sdk.OptionSetValue StageCategory + { + get + { + return this.GetAttributeValue("stagecategory"); + } + set + { + this.OnPropertyChanging("StageCategory"); + this.SetAttributeValue("stagecategory", value); + this.OnPropertyChanged("StageCategory"); + } + } + + /// + /// Type a name for the process stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagename")] + public string StageName + { + get + { + return this.GetAttributeValue("stagename"); + } + set + { + this.OnPropertyChanging("StageName"); + this.SetAttributeValue("stagename", value); + this.OnPropertyChanged("StageName"); + } + } + + /// + /// Version number of the process stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N processstage_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_account")] + public System.Collections.Generic.IEnumerable processstage_account + { + get + { + return this.GetRelatedEntities("processstage_account", null); + } + set + { + this.OnPropertyChanging("processstage_account"); + this.SetRelatedEntities("processstage_account", null, value); + this.OnPropertyChanged("processstage_account"); + } + } + + /// + /// 1:N processstage_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_appointments")] + public System.Collections.Generic.IEnumerable processstage_appointments + { + get + { + return this.GetRelatedEntities("processstage_appointments", null); + } + set + { + this.OnPropertyChanging("processstage_appointments"); + this.SetRelatedEntities("processstage_appointments", null, value); + this.OnPropertyChanged("processstage_appointments"); + } + } + + /// + /// 1:N processstage_campaignactivities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignactivities")] + public System.Collections.Generic.IEnumerable processstage_campaignactivities + { + get + { + return this.GetRelatedEntities("processstage_campaignactivities", null); + } + set + { + this.OnPropertyChanging("processstage_campaignactivities"); + this.SetRelatedEntities("processstage_campaignactivities", null, value); + this.OnPropertyChanged("processstage_campaignactivities"); + } + } + + /// + /// 1:N processstage_campaignresponses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignresponses")] + public System.Collections.Generic.IEnumerable processstage_campaignresponses + { + get + { + return this.GetRelatedEntities("processstage_campaignresponses", null); + } + set + { + this.OnPropertyChanging("processstage_campaignresponses"); + this.SetRelatedEntities("processstage_campaignresponses", null, value); + this.OnPropertyChanged("processstage_campaignresponses"); + } + } + + /// + /// 1:N processstage_campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaigns")] + public System.Collections.Generic.IEnumerable processstage_campaigns + { + get + { + return this.GetRelatedEntities("processstage_campaigns", null); + } + set + { + this.OnPropertyChanging("processstage_campaigns"); + this.SetRelatedEntities("processstage_campaigns", null, value); + this.OnPropertyChanged("processstage_campaigns"); + } + } + + /// + /// 1:N processstage_competitors + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_competitors")] + public System.Collections.Generic.IEnumerable processstage_competitors + { + get + { + return this.GetRelatedEntities("processstage_competitors", null); + } + set + { + this.OnPropertyChanging("processstage_competitors"); + this.SetRelatedEntities("processstage_competitors", null, value); + this.OnPropertyChanged("processstage_competitors"); + } + } + + /// + /// 1:N processstage_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_contact")] + public System.Collections.Generic.IEnumerable processstage_contact + { + get + { + return this.GetRelatedEntities("processstage_contact", null); + } + set + { + this.OnPropertyChanging("processstage_contact"); + this.SetRelatedEntities("processstage_contact", null, value); + this.OnPropertyChanged("processstage_contact"); + } + } + + /// + /// 1:N processstage_emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_emails")] + public System.Collections.Generic.IEnumerable processstage_emails + { + get + { + return this.GetRelatedEntities("processstage_emails", null); + } + set + { + this.OnPropertyChanging("processstage_emails"); + this.SetRelatedEntities("processstage_emails", null, value); + this.OnPropertyChanged("processstage_emails"); + } + } + + /// + /// 1:N processstage_faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_faxes")] + public System.Collections.Generic.IEnumerable processstage_faxes + { + get + { + return this.GetRelatedEntities("processstage_faxes", null); + } + set + { + this.OnPropertyChanging("processstage_faxes"); + this.SetRelatedEntities("processstage_faxes", null, value); + this.OnPropertyChanged("processstage_faxes"); + } + } + + /// + /// 1:N processstage_incident + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_incident")] + public System.Collections.Generic.IEnumerable processstage_incident + { + get + { + return this.GetRelatedEntities("processstage_incident", null); + } + set + { + this.OnPropertyChanging("processstage_incident"); + this.SetRelatedEntities("processstage_incident", null, value); + this.OnPropertyChanged("processstage_incident"); + } + } + + /// + /// 1:N processstage_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_invoices")] + public System.Collections.Generic.IEnumerable processstage_invoices + { + get + { + return this.GetRelatedEntities("processstage_invoices", null); + } + set + { + this.OnPropertyChanging("processstage_invoices"); + this.SetRelatedEntities("processstage_invoices", null, value); + this.OnPropertyChanged("processstage_invoices"); + } + } + + /// + /// 1:N processstage_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lead")] + public System.Collections.Generic.IEnumerable processstage_lead + { + get + { + return this.GetRelatedEntities("processstage_lead", null); + } + set + { + this.OnPropertyChanging("processstage_lead"); + this.SetRelatedEntities("processstage_lead", null, value); + this.OnPropertyChanged("processstage_lead"); + } + } + + /// + /// 1:N processstage_letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_letters")] + public System.Collections.Generic.IEnumerable processstage_letters + { + get + { + return this.GetRelatedEntities("processstage_letters", null); + } + set + { + this.OnPropertyChanging("processstage_letters"); + this.SetRelatedEntities("processstage_letters", null, value); + this.OnPropertyChanged("processstage_letters"); + } + } + + /// + /// 1:N processstage_lists + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lists")] + public System.Collections.Generic.IEnumerable processstage_lists + { + get + { + return this.GetRelatedEntities("processstage_lists", null); + } + set + { + this.OnPropertyChanging("processstage_lists"); + this.SetRelatedEntities("processstage_lists", null, value); + this.OnPropertyChanged("processstage_lists"); + } + } + + /// + /// 1:N processstage_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_opportunity")] + public System.Collections.Generic.IEnumerable processstage_opportunity + { + get + { + return this.GetRelatedEntities("processstage_opportunity", null); + } + set + { + this.OnPropertyChanging("processstage_opportunity"); + this.SetRelatedEntities("processstage_opportunity", null, value); + this.OnPropertyChanged("processstage_opportunity"); + } + } + + /// + /// 1:N processstage_phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_phonecalls")] + public System.Collections.Generic.IEnumerable processstage_phonecalls + { + get + { + return this.GetRelatedEntities("processstage_phonecalls", null); + } + set + { + this.OnPropertyChanging("processstage_phonecalls"); + this.SetRelatedEntities("processstage_phonecalls", null, value); + this.OnPropertyChanged("processstage_phonecalls"); + } + } + + /// + /// 1:N processstage_productpricelevels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_productpricelevels")] + public System.Collections.Generic.IEnumerable processstage_productpricelevels + { + get + { + return this.GetRelatedEntities("processstage_productpricelevels", null); + } + set + { + this.OnPropertyChanging("processstage_productpricelevels"); + this.SetRelatedEntities("processstage_productpricelevels", null, value); + this.OnPropertyChanged("processstage_productpricelevels"); + } + } + + /// + /// 1:N processstage_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_products")] + public System.Collections.Generic.IEnumerable processstage_products + { + get + { + return this.GetRelatedEntities("processstage_products", null); + } + set + { + this.OnPropertyChanging("processstage_products"); + this.SetRelatedEntities("processstage_products", null, value); + this.OnPropertyChanged("processstage_products"); + } + } + + /// + /// 1:N processstage_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_quotes")] + public System.Collections.Generic.IEnumerable processstage_quotes + { + get + { + return this.GetRelatedEntities("processstage_quotes", null); + } + set + { + this.OnPropertyChanging("processstage_quotes"); + this.SetRelatedEntities("processstage_quotes", null, value); + this.OnPropertyChanged("processstage_quotes"); + } + } + + /// + /// 1:N processstage_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_recurringappointmentmasters")] + public System.Collections.Generic.IEnumerable processstage_recurringappointmentmasters + { + get + { + return this.GetRelatedEntities("processstage_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("processstage_recurringappointmentmasters"); + this.SetRelatedEntities("processstage_recurringappointmentmasters", null, value); + this.OnPropertyChanged("processstage_recurringappointmentmasters"); + } + } + + /// + /// 1:N processstage_salesliteratures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesliteratures")] + public System.Collections.Generic.IEnumerable processstage_salesliteratures + { + get + { + return this.GetRelatedEntities("processstage_salesliteratures", null); + } + set + { + this.OnPropertyChanging("processstage_salesliteratures"); + this.SetRelatedEntities("processstage_salesliteratures", null, value); + this.OnPropertyChanged("processstage_salesliteratures"); + } + } + + /// + /// 1:N processstage_salesorders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesorders")] + public System.Collections.Generic.IEnumerable processstage_salesorders + { + get + { + return this.GetRelatedEntities("processstage_salesorders", null); + } + set + { + this.OnPropertyChanging("processstage_salesorders"); + this.SetRelatedEntities("processstage_salesorders", null, value); + this.OnPropertyChanged("processstage_salesorders"); + } + } + + /// + /// 1:N processstage_systemusers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_systemusers")] + public System.Collections.Generic.IEnumerable processstage_systemusers + { + get + { + return this.GetRelatedEntities("processstage_systemusers", null); + } + set + { + this.OnPropertyChanging("processstage_systemusers"); + this.SetRelatedEntities("processstage_systemusers", null, value); + this.OnPropertyChanged("processstage_systemusers"); + } + } + + /// + /// 1:N processstage_tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_tasks")] + public System.Collections.Generic.IEnumerable processstage_tasks + { + get + { + return this.GetRelatedEntities("processstage_tasks", null); + } + set + { + this.OnPropertyChanging("processstage_tasks"); + this.SetRelatedEntities("processstage_tasks", null, value); + this.OnPropertyChanged("processstage_tasks"); + } + } + + /// + /// 1:N processstage_teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_teams")] + public System.Collections.Generic.IEnumerable processstage_teams + { + get + { + return this.GetRelatedEntities("processstage_teams", null); + } + set + { + this.OnPropertyChanging("processstage_teams"); + this.SetRelatedEntities("processstage_teams", null, value); + this.OnPropertyChanged("processstage_teams"); + } + } + + /// + /// N:1 process_processstage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processstage")] + public Xrm.Framework.CI.Common.Entities.Workflow process_processstage + { + get + { + return this.GetRelatedEntity("process_processstage", null); + } + set + { + this.OnPropertyChanging("process_processstage"); + this.SetRelatedEntity("process_processstage", null, value); + this.OnPropertyChanged("process_processstage"); + } + } + } + + /// + /// Trigger that invoke a rule. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("processtrigger")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProcessTrigger : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProcessTrigger() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "processtrigger"; + + public const int EntityTypeCode = 4712; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Name of the control. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("controlname")] + public string ControlName + { + get + { + return this.GetAttributeValue("controlname"); + } + set + { + this.OnPropertyChanging("ControlName"); + this.SetAttributeValue("controlname", value); + this.OnPropertyChanged("ControlName"); + } + } + + /// + /// Type of the control to which this trigger is bound + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("controltype")] + public Microsoft.Xrm.Sdk.OptionSetValue ControlType + { + get + { + return this.GetAttributeValue("controltype"); + } + set + { + this.OnPropertyChanging("ControlType"); + this.SetAttributeValue("controltype", value); + this.OnPropertyChanged("ControlType"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Indicates the event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("event")] + public string Event + { + get + { + return this.GetAttributeValue("event"); + } + set + { + this.OnPropertyChanging("Event"); + this.SetAttributeValue("event", value); + this.OnPropertyChanged("Event"); + } + } + + /// + /// Unique identifier of the form associated with the trigger. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public Microsoft.Xrm.Sdk.EntityReference FormId + { + get + { + return this.GetAttributeValue("formid"); + } + set + { + this.OnPropertyChanging("FormId"); + this.SetAttributeValue("formid", value); + this.OnPropertyChanged("FormId"); + } + } + + /// + /// Indicates whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the business unit that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Primary entity for the process which is invoked by the event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public Microsoft.Xrm.Sdk.EntityReference ProcessId + { + get + { + return this.GetAttributeValue("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the process trigger record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processtriggerid")] + public System.Nullable ProcessTriggerId + { + get + { + return this.GetAttributeValue>("processtriggerid"); + } + set + { + this.OnPropertyChanging("ProcessTriggerId"); + this.SetAttributeValue("processtriggerid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProcessTriggerId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processtriggerid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProcessTriggerId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processtriggeridunique")] + public System.Nullable ProcessTriggerIdUnique + { + get + { + return this.GetAttributeValue>("processtriggeridunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 lk_processtriggerbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_createdby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_createdby", null); + } + } + + /// + /// N:1 lk_processtriggerbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_processtriggerbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_modifiedby", null); + } + } + + /// + /// N:1 lk_processtriggerbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 process_processtrigger + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processtrigger")] + public Xrm.Framework.CI.Common.Entities.Workflow process_processtrigger + { + get + { + return this.GetRelatedEntity("process_processtrigger", null); + } + set + { + this.OnPropertyChanging("process_processtrigger"); + this.SetRelatedEntity("process_processtrigger", null, value); + this.OnPropertyChanged("process_processtrigger"); + } + } + + /// + /// N:1 processtrigger_systemform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processtrigger_systemform")] + public Xrm.Framework.CI.Common.Entities.SystemForm processtrigger_systemform + { + get + { + return this.GetRelatedEntity("processtrigger_systemform", null); + } + set + { + this.OnPropertyChanging("processtrigger_systemform"); + this.SetRelatedEntity("processtrigger_systemform", null, value); + this.OnPropertyChanged("processtrigger_systemform"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ProductState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Information about products and their pricing information. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("product")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Product : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Product() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "product"; + + 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"); + } + } + + /// + /// Date and time when the product 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Base currency equivalent of the current cost for the product item. + /// + [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"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the product with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Date and time when the product 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 product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("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 of the organization associated with the product. + /// + [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"); + } + } + + /// + /// List price of the product. + /// + [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"); + } + } + + /// + /// Base currency equivalent of the list price of the product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("price_base")] + public Microsoft.Xrm.Sdk.Money Price_Base + { + get + { + return this.GetAttributeValue("price_base"); + } + } + + /// + /// Unique identifier of the price list associated with 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the 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 number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productnumber")] + public string ProductNumber + { + get + { + return this.GetAttributeValue("productnumber"); + } + set + { + this.OnPropertyChanging("ProductNumber"); + this.SetAttributeValue("productnumber", value); + this.OnPropertyChanged("ProductNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Standard cost of the product. + /// + [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"); + } + } + + /// + /// Base currency equivalent of the standard cost of the product. + /// + [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 ((Xrm.Framework.CI.Common.Entities.ProductState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ProductState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the subject associated with 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Part number for the vendor's 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 of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N opportunity_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_products")] + public System.Collections.Generic.IEnumerable opportunity_products + { + get + { + return this.GetRelatedEntities("opportunity_products", null); + } + set + { + this.OnPropertyChanging("opportunity_products"); + this.SetRelatedEntities("opportunity_products", null, value); + this.OnPropertyChanged("opportunity_products"); + } + } + + /// + /// 1:N Product_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_Annotation")] + public System.Collections.Generic.IEnumerable Product_Annotation + { + get + { + return this.GetRelatedEntities("Product_Annotation", null); + } + set + { + this.OnPropertyChanging("Product_Annotation"); + this.SetRelatedEntities("Product_Annotation", null, value); + this.OnPropertyChanged("Product_Annotation"); + } + } + + /// + /// 1:N Product_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_AsyncOperations")] + public System.Collections.Generic.IEnumerable Product_AsyncOperations + { + get + { + return this.GetRelatedEntities("Product_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Product_AsyncOperations"); + this.SetRelatedEntities("Product_AsyncOperations", null, value); + this.OnPropertyChanged("Product_AsyncOperations"); + } + } + + /// + /// 1:N Product_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Product_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Product_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Product_BulkDeleteFailures"); + this.SetRelatedEntities("Product_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Product_BulkDeleteFailures"); + } + } + + /// + /// 1:N product_contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_contract_line_items")] + public System.Collections.Generic.IEnumerable product_contract_line_items + { + get + { + return this.GetRelatedEntities("product_contract_line_items", null); + } + set + { + this.OnPropertyChanging("product_contract_line_items"); + this.SetRelatedEntities("product_contract_line_items", null, value); + this.OnPropertyChanged("product_contract_line_items"); + } + } + + /// + /// 1:N product_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_incidents")] + public System.Collections.Generic.IEnumerable product_incidents + { + get + { + return this.GetRelatedEntities("product_incidents", null); + } + set + { + this.OnPropertyChanging("product_incidents"); + this.SetRelatedEntities("product_incidents", null, value); + this.OnPropertyChanged("product_incidents"); + } + } + + /// + /// 1:N product_invoice_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_invoice_details")] + public System.Collections.Generic.IEnumerable product_invoice_details + { + get + { + return this.GetRelatedEntities("product_invoice_details", null); + } + set + { + this.OnPropertyChanging("product_invoice_details"); + this.SetRelatedEntities("product_invoice_details", null, value); + this.OnPropertyChanged("product_invoice_details"); + } + } + + /// + /// 1:N product_order_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_order_details")] + public System.Collections.Generic.IEnumerable product_order_details + { + get + { + return this.GetRelatedEntities("product_order_details", null); + } + set + { + this.OnPropertyChanging("product_order_details"); + this.SetRelatedEntities("product_order_details", null, value); + this.OnPropertyChanged("product_order_details"); + } + } + + /// + /// 1:N product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_price_levels")] + public System.Collections.Generic.IEnumerable product_price_levels + { + get + { + return this.GetRelatedEntities("product_price_levels", null); + } + set + { + this.OnPropertyChanging("product_price_levels"); + this.SetRelatedEntities("product_price_levels", null, value); + this.OnPropertyChanged("product_price_levels"); + } + } + + /// + /// 1:N product_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable product_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("product_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("product_principalobjectattributeaccess"); + this.SetRelatedEntities("product_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("product_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Product_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_ProcessSessions")] + public System.Collections.Generic.IEnumerable Product_ProcessSessions + { + get + { + return this.GetRelatedEntities("Product_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Product_ProcessSessions"); + this.SetRelatedEntities("Product_ProcessSessions", null, value); + this.OnPropertyChanged("Product_ProcessSessions"); + } + } + + /// + /// 1:N product_quote_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_quote_details")] + public System.Collections.Generic.IEnumerable product_quote_details + { + get + { + return this.GetRelatedEntities("product_quote_details", null); + } + set + { + this.OnPropertyChanging("product_quote_details"); + this.SetRelatedEntities("product_quote_details", null, value); + this.OnPropertyChanged("product_quote_details"); + } + } + + /// + /// 1:N Product_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Product_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Product_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Product_SharepointDocumentLocation"); + this.SetRelatedEntities("Product_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Product_SharepointDocumentLocation"); + } + } + + /// + /// 1:N userentityinstancedata_product + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_product")] + public System.Collections.Generic.IEnumerable userentityinstancedata_product + { + get + { + return this.GetRelatedEntities("userentityinstancedata_product", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_product"); + this.SetRelatedEntities("userentityinstancedata_product", null, value); + this.OnPropertyChanged("userentityinstancedata_product"); + } + } + + /// + /// N:N campaignproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignproduct_association")] + public System.Collections.Generic.IEnumerable campaignproduct_association + { + get + { + return this.GetRelatedEntities("campaignproduct_association", null); + } + set + { + this.OnPropertyChanging("campaignproduct_association"); + this.SetRelatedEntities("campaignproduct_association", null, value); + this.OnPropertyChanged("campaignproduct_association"); + } + } + + /// + /// N:N competitorproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorproduct_association")] + public System.Collections.Generic.IEnumerable competitorproduct_association + { + get + { + return this.GetRelatedEntities("competitorproduct_association", null); + } + set + { + this.OnPropertyChanging("competitorproduct_association"); + this.SetRelatedEntities("competitorproduct_association", null, value); + this.OnPropertyChanged("competitorproduct_association"); + } + } + + /// + /// N:N leadproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadproduct_association")] + public System.Collections.Generic.IEnumerable leadproduct_association + { + get + { + return this.GetRelatedEntities("leadproduct_association", null); + } + set + { + this.OnPropertyChanging("leadproduct_association"); + this.SetRelatedEntities("leadproduct_association", null, value); + this.OnPropertyChanged("leadproduct_association"); + } + } + + /// + /// N:N productassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingproductassociation_association + { + get + { + return this.GetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingproductassociation_association"); + this.SetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingproductassociation_association"); + } + } + + /// + /// N:N productassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedproductassociation_association + { + get + { + return this.GetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedproductassociation_association"); + this.SetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedproductassociation_association"); + } + } + + /// + /// N:N productsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsalesliterature_association")] + public System.Collections.Generic.IEnumerable productsalesliterature_association + { + get + { + return this.GetRelatedEntities("productsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("productsalesliterature_association"); + this.SetRelatedEntities("productsalesliterature_association", null, value); + this.OnPropertyChanged("productsalesliterature_association"); + } + } + + /// + /// N:N productsubstitute_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingproductsubstitute_association + { + get + { + return this.GetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingproductsubstitute_association"); + this.SetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingproductsubstitute_association"); + } + } + + /// + /// N:N productsubstitute_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedproductsubstitute_association + { + get + { + return this.GetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedproductsubstitute_association"); + this.SetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedproductsubstitute_association"); + } + } + + /// + /// N:1 lk_product_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_product_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_product_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_product_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_product_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_product_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_productbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productbase_createdby + { + get + { + return this.GetRelatedEntity("lk_productbase_createdby", null); + } + } + + /// + /// N:1 lk_productbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_productbase_modifiedby", null); + } + } + + /// + /// N:1 organization_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_products")] + public Xrm.Framework.CI.Common.Entities.Organization organization_products + { + get + { + return this.GetRelatedEntity("organization_products", null); + } + } + + /// + /// N:1 price_level_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_products")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_products + { + get + { + return this.GetRelatedEntity("price_level_products", null); + } + set + { + this.OnPropertyChanging("price_level_products"); + this.SetRelatedEntity("price_level_products", null, value); + this.OnPropertyChanged("price_level_products"); + } + } + + /// + /// N:1 processstage_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_products")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_products + { + get + { + return this.GetRelatedEntity("processstage_products", null); + } + set + { + this.OnPropertyChanging("processstage_products"); + this.SetRelatedEntity("processstage_products", null, value); + this.OnPropertyChanged("processstage_products"); + } + } + + /// + /// N:1 subject_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_products")] + public Xrm.Framework.CI.Common.Entities.Subject subject_products + { + get + { + return this.GetRelatedEntity("subject_products", null); + } + set + { + this.OnPropertyChanging("subject_products"); + this.SetRelatedEntity("subject_products", null, value); + this.OnPropertyChanged("subject_products"); + } + } + + /// + /// N:1 transactioncurrency_product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_product")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_product + { + get + { + return this.GetRelatedEntity("transactioncurrency_product", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_product"); + this.SetRelatedEntity("transactioncurrency_product", null, value); + this.OnPropertyChanged("transactioncurrency_product"); + } + } + + /// + /// N:1 unit_of_measurement_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultuomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_products")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_products + { + get + { + return this.GetRelatedEntity("unit_of_measurement_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_products"); + this.SetRelatedEntity("unit_of_measurement_products", null, value); + this.OnPropertyChanged("unit_of_measurement_products"); + } + } + + /// + /// N:1 unit_of_measurement_schedule_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultuomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_schedule_products")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule unit_of_measurement_schedule_products + { + get + { + return this.GetRelatedEntity("unit_of_measurement_schedule_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_schedule_products"); + this.SetRelatedEntity("unit_of_measurement_schedule_products", null, value); + this.OnPropertyChanged("unit_of_measurement_schedule_products"); + } + } + } + + /// + /// Relationship that stores information about products that belong to a kit. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productassociation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductAssociation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductAssociation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productassociation"; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedproduct")] + public System.Nullable AssociatedProduct + { + get + { + return this.GetAttributeValue>("associatedproduct"); + } + set + { + this.OnPropertyChanging("AssociatedProduct"); + this.SetAttributeValue("associatedproduct", value); + this.OnPropertyChanged("AssociatedProduct"); + } + } + + /// + /// 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; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_productassociation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productassociation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productassociation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productassociation"); + this.SetRelatedEntities("userentityinstancedata_productassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_productassociation"); + } + } + + /// + /// N:N productassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productassociation_association")] + public System.Collections.Generic.IEnumerable productassociation_association + { + get + { + return this.GetRelatedEntities("productassociation_association", null); + } + set + { + this.OnPropertyChanging("productassociation_association"); + this.SetRelatedEntities("productassociation_association", null, value); + this.OnPropertyChanged("productassociation_association"); + } + } + } + + /// + /// Information about how to price a product in the specified price level, including pricing method, rounding option, and discount type based on a specified product unit. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productpricelevel")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductPriceLevel : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductPriceLevel() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productpricelevel"; + + public const int EntityTypeCode = 1026; + + 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)); + } + } + + /// + /// Monetary amount for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount")] + public Microsoft.Xrm.Sdk.Money Amount + { + get + { + return this.GetAttributeValue("amount"); + } + set + { + this.OnPropertyChanging("Amount"); + this.SetAttributeValue("amount", value); + this.OnPropertyChanged("Amount"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency, if specified as a fixed amount. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount_base")] + public Microsoft.Xrm.Sdk.Money Amount_Base + { + get + { + return this.GetAttributeValue("amount_base"); + } + } + + /// + /// Unique identifier of the user who created the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the price list 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"); + } + } + + /// + /// Unique identifier of the discount list associated with the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public Microsoft.Xrm.Sdk.EntityReference DiscountTypeId + { + get + { + return this.GetAttributeValue("discounttypeid"); + } + set + { + this.OnPropertyChanging("DiscountTypeId"); + this.SetAttributeValue("discounttypeid", value); + this.OnPropertyChanged("DiscountTypeId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the price list was last 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"); + } + } + + /// + /// Unique identifier of the organization associated with the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Percentage for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentage")] + public System.Nullable Percentage + { + get + { + return this.GetAttributeValue>("percentage"); + } + set + { + this.OnPropertyChanging("Percentage"); + this.SetAttributeValue("percentage", value); + this.OnPropertyChanged("Percentage"); + } + } + + /// + /// Unique identifier of the price level associated with this price list. + /// + [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 method applied to the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PricingMethodCode + { + get + { + return this.GetAttributeValue("pricingmethodcode"); + } + set + { + this.OnPropertyChanging("PricingMethodCode"); + this.SetAttributeValue("pricingmethodcode", value); + this.OnPropertyChanged("PricingMethodCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Product associated with the price list. + /// + [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"); + } + } + + /// + /// Unique identifier of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productpricelevelid")] + public System.Nullable ProductPriceLevelId + { + get + { + return this.GetAttributeValue>("productpricelevelid"); + } + set + { + this.OnPropertyChanging("ProductPriceLevelId"); + this.SetAttributeValue("productpricelevelid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductPriceLevelId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productpricelevelid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductPriceLevelId = value; + } + } + + /// + /// Quantity of the product that must be sold for a given price level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantitysellingcode")] + public Microsoft.Xrm.Sdk.OptionSetValue QuantitySellingCode + { + get + { + return this.GetAttributeValue("quantitysellingcode"); + } + set + { + this.OnPropertyChanging("QuantitySellingCode"); + this.SetAttributeValue("quantitysellingcode", value); + this.OnPropertyChanged("QuantitySellingCode"); + } + } + + /// + /// Rounding option amount for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roundingoptionamount")] + public Microsoft.Xrm.Sdk.Money RoundingOptionAmount + { + get + { + return this.GetAttributeValue("roundingoptionamount"); + } + set + { + this.OnPropertyChanging("RoundingOptionAmount"); + this.SetAttributeValue("roundingoptionamount", value); + this.OnPropertyChanged("RoundingOptionAmount"); + } + } + + /// + /// Shows the Rounding Amount 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("roundingoptionamount_base")] + public Microsoft.Xrm.Sdk.Money RoundingOptionAmount_Base + { + get + { + return this.GetAttributeValue("roundingoptionamount_base"); + } + } + + /// + /// Option for rounding the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roundingoptioncode")] + public Microsoft.Xrm.Sdk.OptionSetValue RoundingOptionCode + { + get + { + return this.GetAttributeValue("roundingoptioncode"); + } + set + { + this.OnPropertyChanging("RoundingOptionCode"); + this.SetAttributeValue("roundingoptioncode", value); + this.OnPropertyChanged("RoundingOptionCode"); + } + } + + /// + /// Policy for rounding the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roundingpolicycode")] + public Microsoft.Xrm.Sdk.OptionSetValue RoundingPolicyCode + { + get + { + return this.GetAttributeValue("roundingpolicycode"); + } + set + { + this.OnPropertyChanging("RoundingPolicyCode"); + this.SetAttributeValue("roundingpolicycode", value); + this.OnPropertyChanged("RoundingPolicyCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the unit for the price list. + /// + [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"); + } + } + + /// + /// Unique identifier of the unit schedule for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference UoMScheduleId + { + get + { + return this.GetAttributeValue("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + this.OnPropertyChanged("UoMScheduleId"); + } + } + + /// + /// Version number of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ProductPriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_AsyncOperations")] + public System.Collections.Generic.IEnumerable ProductPriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntities("ProductPriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_AsyncOperations"); + this.SetRelatedEntities("ProductPriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("ProductPriceLevel_AsyncOperations"); + } + } + + /// + /// 1:N ProductPriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ProductPriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ProductPriceLevel_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_BulkDeleteFailures"); + this.SetRelatedEntities("ProductPriceLevel_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ProductPriceLevel_BulkDeleteFailures"); + } + } + + /// + /// 1:N ProductPriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_ProcessSessions")] + public System.Collections.Generic.IEnumerable ProductPriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntities("ProductPriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_ProcessSessions"); + this.SetRelatedEntities("ProductPriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("ProductPriceLevel_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_productpricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productpricelevel")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productpricelevel + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productpricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productpricelevel"); + this.SetRelatedEntities("userentityinstancedata_productpricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_productpricelevel"); + } + } + + /// + /// N:1 discount_type_product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_product_price_levels")] + public Xrm.Framework.CI.Common.Entities.DiscountType discount_type_product_price_levels + { + get + { + return this.GetRelatedEntity("discount_type_product_price_levels", null); + } + set + { + this.OnPropertyChanging("discount_type_product_price_levels"); + this.SetRelatedEntity("discount_type_product_price_levels", null, value); + this.OnPropertyChanged("discount_type_product_price_levels"); + } + } + + /// + /// N:1 lk_productpricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_productpricelevel_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_productpricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_productpricelevel_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_productpricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevelbase_createdby + { + get + { + return this.GetRelatedEntity("lk_productpricelevelbase_createdby", null); + } + } + + /// + /// N:1 lk_productpricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_productpricelevelbase_modifiedby", null); + } + } + + /// + /// N:1 price_level_product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_product_price_levels")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_product_price_levels + { + get + { + return this.GetRelatedEntity("price_level_product_price_levels", null); + } + set + { + this.OnPropertyChanging("price_level_product_price_levels"); + this.SetRelatedEntity("price_level_product_price_levels", null, value); + this.OnPropertyChanged("price_level_product_price_levels"); + } + } + + /// + /// N:1 processstage_productpricelevels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_productpricelevels")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_productpricelevels + { + get + { + return this.GetRelatedEntity("processstage_productpricelevels", null); + } + set + { + this.OnPropertyChanging("processstage_productpricelevels"); + this.SetRelatedEntity("processstage_productpricelevels", null, value); + this.OnPropertyChanged("processstage_productpricelevels"); + } + } + + /// + /// N:1 product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_price_levels")] + public Xrm.Framework.CI.Common.Entities.Product product_price_levels + { + get + { + return this.GetRelatedEntity("product_price_levels", null); + } + set + { + this.OnPropertyChanging("product_price_levels"); + this.SetRelatedEntity("product_price_levels", null, value); + this.OnPropertyChanged("product_price_levels"); + } + } + + /// + /// N:1 transactioncurrency_productpricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_productpricelevel")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_productpricelevel + { + get + { + return this.GetRelatedEntity("transactioncurrency_productpricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_productpricelevel"); + this.SetRelatedEntity("transactioncurrency_productpricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_productpricelevel"); + } + } + + /// + /// N:1 unit_of_measure_schedule_product_price_level + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_product_price_level")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule unit_of_measure_schedule_product_price_level + { + get + { + return this.GetRelatedEntity("unit_of_measure_schedule_product_price_level", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_product_price_level"); + this.SetRelatedEntity("unit_of_measure_schedule_product_price_level", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_product_price_level"); + } + } + + /// + /// N:1 unit_of_measurement_product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_product_price_levels")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_product_price_levels + { + get + { + return this.GetRelatedEntity("unit_of_measurement_product_price_levels", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_product_price_levels"); + this.SetRelatedEntity("unit_of_measurement_product_price_levels", null, value); + this.OnPropertyChanged("unit_of_measurement_product_price_levels"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productsalesliterature")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductSalesLiterature : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductSalesLiterature() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productsalesliterature"; + + public const int EntityTypeCode = 21; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + } + + /// + /// Unique identifier of the product sales literature associated with this price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productsalesliteratureid")] + public System.Nullable ProductSalesLiteratureId + { + get + { + return this.GetAttributeValue>("productsalesliteratureid"); + } + set + { + this.OnPropertyChanging("ProductSalesLiteratureId"); + this.SetAttributeValue("productsalesliteratureid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductSalesLiteratureId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productsalesliteratureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductSalesLiteratureId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public System.Nullable SalesLiteratureId + { + get + { + return this.GetAttributeValue>("salesliteratureid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_productsalesliterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsalesliterature")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productsalesliterature + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsalesliterature"); + this.SetRelatedEntities("userentityinstancedata_productsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_productsalesliterature"); + } + } + + /// + /// N:N productsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsalesliterature_association")] + public System.Collections.Generic.IEnumerable productsalesliterature_association + { + get + { + return this.GetRelatedEntities("productsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("productsalesliterature_association"); + this.SetRelatedEntities("productsalesliterature_association", null, value); + this.OnPropertyChanged("productsalesliterature_association"); + } + } + } + + /// + /// Storage of an association between a product and a substitute product. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productsubstitute")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductSubstitute : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductSubstitute() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productsubstitute"; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// Unique identifier of the product substitute. + /// + [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; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("substitutedproductid")] + public System.Nullable SubstitutedProductId + { + get + { + return this.GetAttributeValue>("substitutedproductid"); + } + set + { + this.OnPropertyChanging("SubstitutedProductId"); + this.SetAttributeValue("substitutedproductid", value); + this.OnPropertyChanged("SubstitutedProductId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_productsubstitute + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsubstitute")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productsubstitute + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productsubstitute", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsubstitute"); + this.SetRelatedEntities("userentityinstancedata_productsubstitute", null, value); + this.OnPropertyChanged("userentityinstancedata_productsubstitute"); + } + } + + /// + /// N:N productsubstitute_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsubstitute_association")] + public System.Collections.Generic.IEnumerable productsubstitute_association + { + get + { + return this.GetRelatedEntities("productsubstitute_association", null); + } + set + { + this.OnPropertyChanging("productsubstitute_association"); + this.SetRelatedEntities("productsubstitute_association", null, value); + this.OnPropertyChanged("productsubstitute_association"); + } + } + } + + /// + /// A publisher of a CRM solution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("publisher")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Publisher : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Publisher() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "publisher"; + + public const int EntityTypeCode = 7101; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2. such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the user who created the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the publisher was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default option value prefix used for newly created options for solutions associated with this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationoptionvalueprefix")] + public System.Nullable CustomizationOptionValuePrefix + { + get + { + return this.GetAttributeValue>("customizationoptionvalueprefix"); + } + set + { + this.OnPropertyChanging("CustomizationOptionValuePrefix"); + this.SetAttributeValue("customizationoptionvalueprefix", value); + this.OnPropertyChanged("CustomizationOptionValuePrefix"); + } + } + + /// + /// Prefix used for new entities, attributes, and entity relationships for solutions associated with this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationprefix")] + public string CustomizationPrefix + { + get + { + return this.GetAttributeValue("customizationprefix"); + } + set + { + this.OnPropertyChanging("CustomizationPrefix"); + this.SetAttributeValue("customizationprefix", value); + this.OnPropertyChanged("CustomizationPrefix"); + } + } + + /// + /// Description of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address for the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// User display name for this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// Indicates whether the publisher was created as part of a managed solution installation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] + public System.Nullable IsReadonly + { + get + { + return this.GetAttributeValue>("isreadonly"); + } + } + + /// + /// Unique identifier of the user who last modified the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the publisher was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Default locale of the publisher in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherdefaultlocale")] + public string PinpointPublisherDefaultLocale + { + get + { + return this.GetAttributeValue("pinpointpublisherdefaultlocale"); + } + } + + /// + /// Identifier of the publisher in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] + public System.Nullable PinpointPublisherId + { + get + { + return this.GetAttributeValue>("pinpointpublisherid"); + } + } + + /// + /// Unique identifier of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public System.Nullable PublisherId + { + get + { + return this.GetAttributeValue>("publisherid"); + } + set + { + this.OnPropertyChanging("PublisherId"); + this.SetAttributeValue("publisherid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PublisherId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PublisherId = value; + } + } + + /// + /// URL for the supporting website of this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supportingwebsiteurl")] + public string SupportingWebsiteUrl + { + get + { + return this.GetAttributeValue("supportingwebsiteurl"); + } + set + { + this.OnPropertyChanging("SupportingWebsiteUrl"); + this.SetAttributeValue("supportingwebsiteurl", value); + this.OnPropertyChanged("SupportingWebsiteUrl"); + } + } + + /// + /// The unique name of this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Publisher_PublisherAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Publisher_PublisherAddress")] + public System.Collections.Generic.IEnumerable Publisher_PublisherAddress + { + get + { + return this.GetRelatedEntities("Publisher_PublisherAddress", null); + } + set + { + this.OnPropertyChanging("Publisher_PublisherAddress"); + this.SetRelatedEntities("Publisher_PublisherAddress", null, value); + this.OnPropertyChanged("Publisher_PublisherAddress"); + } + } + + /// + /// 1:N publisher_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] + public System.Collections.Generic.IEnumerable publisher_solution + { + get + { + return this.GetRelatedEntities("publisher_solution", null); + } + set + { + this.OnPropertyChanging("publisher_solution"); + this.SetRelatedEntities("publisher_solution", null, value); + this.OnPropertyChanged("publisher_solution"); + } + } + + /// + /// 1:N userentityinstancedata_publisher + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisher")] + public System.Collections.Generic.IEnumerable userentityinstancedata_publisher + { + get + { + return this.GetRelatedEntities("userentityinstancedata_publisher", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisher"); + this.SetRelatedEntities("userentityinstancedata_publisher", null, value); + this.OnPropertyChanged("userentityinstancedata_publisher"); + } + } + + /// + /// N:1 lk_publisher_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisher_createdby + { + get + { + return this.GetRelatedEntity("lk_publisher_createdby", null); + } + } + + /// + /// N:1 lk_publisher_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisher_modifiedby + { + get + { + return this.GetRelatedEntity("lk_publisher_modifiedby", null); + } + } + + /// + /// N:1 lk_publisherbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisherbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisherbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_publisherbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisherbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_publisher + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_publisher")] + public Xrm.Framework.CI.Common.Entities.Organization organization_publisher + { + get + { + return this.GetRelatedEntity("organization_publisher", null); + } + } + } + + /// + /// Address and shipping information. Used to store additional addresses for a publisher. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("publisheraddress")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PublisherAddress : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PublisherAddress() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "publisheraddress"; + + public const int EntityTypeCode = 7102; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Specifies which publisher address is applicable. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressnumber")] + public System.Nullable AddressNumber + { + get + { + return this.GetAttributeValue>("addressnumber"); + } + set + { + this.OnPropertyChanging("AddressNumber"); + this.SetAttributeValue("addressnumber", value); + this.OnPropertyChanged("AddressNumber"); + } + } + + /// + /// Type of address for the publisher, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AddressTypeCode + { + get + { + return this.GetAttributeValue("addresstypecode"); + } + set + { + this.OnPropertyChanging("AddressTypeCode"); + this.SetAttributeValue("addresstypecode", value); + this.OnPropertyChanged("AddressTypeCode"); + } + } + + /// + /// City name in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("city")] + public string City + { + get + { + return this.GetAttributeValue("city"); + } + set + { + this.OnPropertyChanging("City"); + this.SetAttributeValue("city", value); + this.OnPropertyChanged("City"); + } + } + + /// + /// Country/region name in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("country")] + public string Country + { + get + { + return this.GetAttributeValue("country"); + } + set + { + this.OnPropertyChanging("Country"); + this.SetAttributeValue("country", value); + this.OnPropertyChanged("Country"); + } + } + + /// + /// County name in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("county")] + public string County + { + get + { + return this.GetAttributeValue("county"); + } + set + { + this.OnPropertyChanging("County"); + this.SetAttributeValue("county", value); + this.OnPropertyChanged("County"); + } + } + + /// + /// Unique identifier of the user who created the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the publisher address was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Fax number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// Freight terms for the publisher address. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Latitude for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("latitude")] + public System.Nullable Latitude + { + get + { + return this.GetAttributeValue>("latitude"); + } + set + { + this.OnPropertyChanging("Latitude"); + this.SetAttributeValue("latitude", value); + this.OnPropertyChanged("Latitude"); + } + } + + /// + /// First line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line1")] + public string Line1 + { + get + { + return this.GetAttributeValue("line1"); + } + set + { + this.OnPropertyChanging("Line1"); + this.SetAttributeValue("line1", value); + this.OnPropertyChanged("Line1"); + } + } + + /// + /// Second line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line2")] + public string Line2 + { + get + { + return this.GetAttributeValue("line2"); + } + set + { + this.OnPropertyChanging("Line2"); + this.SetAttributeValue("line2", value); + this.OnPropertyChanged("Line2"); + } + } + + /// + /// Third line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line3")] + public string Line3 + { + get + { + return this.GetAttributeValue("line3"); + } + set + { + this.OnPropertyChanging("Line3"); + this.SetAttributeValue("line3", value); + this.OnPropertyChanged("Line3"); + } + } + + /// + /// Longitude for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longitude")] + public System.Nullable Longitude + { + get + { + return this.GetAttributeValue>("longitude"); + } + set + { + this.OnPropertyChanging("Longitude"); + this.SetAttributeValue("longitude", value); + this.OnPropertyChanged("Longitude"); + } + } + + /// + /// Unique identifier of the user who last modified the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the publisher address was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name used to identify the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the parent object with which the publisher address is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + public Microsoft.Xrm.Sdk.EntityReference ParentId + { + get + { + return this.GetAttributeValue("parentid"); + } + set + { + this.OnPropertyChanging("ParentId"); + this.SetAttributeValue("parentid", value); + this.OnPropertyChanged("ParentId"); + } + } + + /// + /// ZIP Code or postal code in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postalcode")] + public string PostalCode + { + get + { + return this.GetAttributeValue("postalcode"); + } + set + { + this.OnPropertyChanging("PostalCode"); + this.SetAttributeValue("postalcode", value); + this.OnPropertyChanged("PostalCode"); + } + } + + /// + /// Post office box number in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postofficebox")] + public string PostOfficeBox + { + get + { + return this.GetAttributeValue("postofficebox"); + } + set + { + this.OnPropertyChanging("PostOfficeBox"); + this.SetAttributeValue("postofficebox", value); + this.OnPropertyChanged("PostOfficeBox"); + } + } + + /// + /// Name of the primary contact at the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactname")] + public string PrimaryContactName + { + get + { + return this.GetAttributeValue("primarycontactname"); + } + set + { + this.OnPropertyChanging("PrimaryContactName"); + this.SetAttributeValue("primarycontactname", value); + this.OnPropertyChanged("PrimaryContactName"); + } + } + + /// + /// Unique identifier of the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheraddressid")] + public System.Nullable PublisherAddressId + { + get + { + return this.GetAttributeValue>("publisheraddressid"); + } + set + { + this.OnPropertyChanging("PublisherAddressId"); + this.SetAttributeValue("publisheraddressid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PublisherAddressId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheraddressid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PublisherAddressId = value; + } + } + + /// + /// Method of shipment for the publisher 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"); + } + } + + /// + /// State or province in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stateorprovince")] + public string StateOrProvince + { + get + { + return this.GetAttributeValue("stateorprovince"); + } + set + { + this.OnPropertyChanging("StateOrProvince"); + this.SetAttributeValue("stateorprovince", value); + this.OnPropertyChanged("StateOrProvince"); + } + } + + /// + /// First telephone number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone1")] + public string Telephone1 + { + get + { + return this.GetAttributeValue("telephone1"); + } + set + { + this.OnPropertyChanging("Telephone1"); + this.SetAttributeValue("telephone1", value); + this.OnPropertyChanged("Telephone1"); + } + } + + /// + /// Second telephone number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone2")] + public string Telephone2 + { + get + { + return this.GetAttributeValue("telephone2"); + } + set + { + this.OnPropertyChanging("Telephone2"); + this.SetAttributeValue("telephone2", value); + this.OnPropertyChanged("Telephone2"); + } + } + + /// + /// Third telephone number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// 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"); + } + } + + /// + /// United Parcel Service (UPS) zone for the address of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upszone")] + public string UPSZone + { + get + { + return this.GetAttributeValue("upszone"); + } + set + { + this.OnPropertyChanging("UPSZone"); + this.SetAttributeValue("upszone", value); + this.OnPropertyChanged("UPSZone"); + } + } + + /// + /// 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"); + } + } + + /// + /// UTC offset for the address. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_publisheraddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisheraddress")] + public System.Collections.Generic.IEnumerable userentityinstancedata_publisheraddress + { + get + { + return this.GetRelatedEntities("userentityinstancedata_publisheraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisheraddress"); + this.SetRelatedEntities("userentityinstancedata_publisheraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_publisheraddress"); + } + } + + /// + /// N:1 lk_publisheraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_createdby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_createdby", null); + } + } + + /// + /// N:1 lk_publisheraddressbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_publisheraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_modifiedby", null); + } + } + + /// + /// N:1 lk_publisheraddressbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Publisher_PublisherAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Publisher_PublisherAddress")] + public Xrm.Framework.CI.Common.Entities.Publisher Publisher_PublisherAddress + { + get + { + return this.GetRelatedEntity("Publisher_PublisherAddress", null); + } + set + { + this.OnPropertyChanging("Publisher_PublisherAddress"); + this.SetRelatedEntity("Publisher_PublisherAddress", null, value); + this.OnPropertyChanged("Publisher_PublisherAddress"); + } + } + } + + /// + /// Quarterly fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("quarterlyfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QuarterlyFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QuarterlyFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quarterlyfiscalcalendar"; + + public const int EntityTypeCode = 2002; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the quarterly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the quarterly fiscal calendar 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 quarterlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the quarterly fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the quarterly fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the quarterly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the quarterly fiscal calendar 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 quarterlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Sales quota for the first quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter1")] + public Microsoft.Xrm.Sdk.Money Quarter1 + { + get + { + return this.GetAttributeValue("quarter1"); + } + set + { + this.OnPropertyChanging("Quarter1"); + this.SetAttributeValue("quarter1", value); + this.OnPropertyChanged("Quarter1"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter1_base")] + public Microsoft.Xrm.Sdk.Money Quarter1_Base + { + get + { + return this.GetAttributeValue("quarter1_base"); + } + } + + /// + /// Sales quota for the second quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter2")] + public Microsoft.Xrm.Sdk.Money Quarter2 + { + get + { + return this.GetAttributeValue("quarter2"); + } + set + { + this.OnPropertyChanging("Quarter2"); + this.SetAttributeValue("quarter2", value); + this.OnPropertyChanged("Quarter2"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second quarter in the fiscal year + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter2_base")] + public Microsoft.Xrm.Sdk.Money Quarter2_Base + { + get + { + return this.GetAttributeValue("quarter2_base"); + } + } + + /// + /// Sales quota for the third quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter3")] + public Microsoft.Xrm.Sdk.Money Quarter3 + { + get + { + return this.GetAttributeValue("quarter3"); + } + set + { + this.OnPropertyChanging("Quarter3"); + this.SetAttributeValue("quarter3", value); + this.OnPropertyChanged("Quarter3"); + } + } + + /// + /// Base currency equivalent of the sales quota for the third quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter3_base")] + public Microsoft.Xrm.Sdk.Money Quarter3_Base + { + get + { + return this.GetAttributeValue("quarter3_base"); + } + } + + /// + /// Sales quota for the fourth quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter4")] + public Microsoft.Xrm.Sdk.Money Quarter4 + { + get + { + return this.GetAttributeValue("quarter4"); + } + set + { + this.OnPropertyChanging("Quarter4"); + this.SetAttributeValue("quarter4", value); + this.OnPropertyChanged("Quarter4"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fourth quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter4_base")] + public Microsoft.Xrm.Sdk.Money Quarter4_Base + { + get + { + return this.GetAttributeValue("quarter4_base"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 quarterly fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the quarterly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N QuarterlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable QuarterlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("QuarterlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuarterlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("QuarterlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("QuarterlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N QuarterlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QuarterlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QuarterlyFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QuarterlyFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("QuarterlyFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QuarterlyFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_quarterlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_quarterlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quarterlyfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_quarterlyfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_quarterlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quarterlyfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_quarterlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_quarterlyfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum QueueState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// A list of records requiring action, such as accounts, cases, and activities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("queue")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Queue : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Queue() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "queue"; + + public const int EntityTypeCode = 2020; + + 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)); + } + } + + /// + /// Choose whether to allow server-side synchronization or the Email Router to use credentials for email processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowemailcredentials")] + [System.ObsoleteAttribute()] + public System.Nullable AllowEmailCredentials + { + get + { + return this.GetAttributeValue>("allowemailcredentials"); + } + } + + /// + /// Unique identifier of the business unit with which the queue is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the user who created the queue record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the queue 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 queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Select the mailbox associated with this queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + public Microsoft.Xrm.Sdk.EntityReference DefaultMailbox + { + get + { + return this.GetAttributeValue("defaultmailbox"); + } + } + + /// + /// Description of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address that is associated with the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Password for email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailpassword")] + [System.ObsoleteAttribute()] + public string EmailPassword + { + get + { + return this.GetAttributeValue("emailpassword"); + } + } + + /// + /// Shows the status of the primary email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailRouterAccessApproval + { + get + { + return this.GetAttributeValue("emailrouteraccessapproval"); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// User name for email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailusername")] + [System.ObsoleteAttribute()] + public string EmailUsername + { + get + { + return this.GetAttributeValue("emailusername"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the queue with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Information that specifies whether a queue is to ignore unsolicited email (deprecated). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreunsolicitedemail")] + public System.Nullable IgnoreUnsolicitedEmail + { + get + { + return this.GetAttributeValue>("ignoreunsolicitedemail"); + } + set + { + this.OnPropertyChanging("IgnoreUnsolicitedEmail"); + this.SetAttributeValue("ignoreunsolicitedemail", value); + this.OnPropertyChanged("IgnoreUnsolicitedEmail"); + } + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Incoming email delivery method for the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("incomingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Incoming email filtering method. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailfilteringmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailFilteringMethod + { + get + { + return this.GetAttributeValue("incomingemailfilteringmethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailFilteringMethod"); + this.SetAttributeValue("incomingemailfilteringmethod", value); + this.OnPropertyChanged("IncomingEmailFilteringMethod"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Indication of whether a queue is the fax delivery queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfaxqueue")] + [System.ObsoleteAttribute()] + public System.Nullable IsFaxQueue + { + get + { + return this.GetAttributeValue>("isfaxqueue"); + } + } + + /// + /// Unique identifier of the user who last modified the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the queue 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 queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Outgoing email delivery method for the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("outgoingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Unique identifier of the user or team who owns the queue. + /// + [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 queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the owner of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryuserid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference PrimaryUserId + { + get + { + return this.GetAttributeValue("primaryuserid"); + } + set + { + this.OnPropertyChanging("PrimaryUserId"); + this.SetAttributeValue("primaryuserid", value); + this.OnPropertyChanged("PrimaryUserId"); + } + } + + /// + /// Unique identifier of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public System.Nullable QueueId + { + get + { + return this.GetAttributeValue>("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QueueId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QueueId = value; + } + } + + /// + /// Type of queue that is automatically assigned when a user or queue is created. The type can be public, private, or work in process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queuetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue QueueTypeCode + { + get + { + return this.GetAttributeValue("queuetypecode"); + } + } + + /// + /// Status of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.QueueState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QueueState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the queue. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the queue. + /// + [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"); + } + } + + /// + /// Version number of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N mailbox_regarding_queue + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_queue")] + public System.Collections.Generic.IEnumerable mailbox_regarding_queue + { + get + { + return this.GetRelatedEntities("mailbox_regarding_queue", null); + } + set + { + this.OnPropertyChanging("mailbox_regarding_queue"); + this.SetRelatedEntities("mailbox_regarding_queue", null, value); + this.OnPropertyChanged("mailbox_regarding_queue"); + } + } + + /// + /// 1:N queue_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_activity_parties")] + public System.Collections.Generic.IEnumerable queue_activity_parties + { + get + { + return this.GetRelatedEntities("queue_activity_parties", null); + } + set + { + this.OnPropertyChanging("queue_activity_parties"); + this.SetRelatedEntities("queue_activity_parties", null, value); + this.OnPropertyChanged("queue_activity_parties"); + } + } + + /// + /// 1:N Queue_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_AsyncOperations")] + public System.Collections.Generic.IEnumerable Queue_AsyncOperations + { + get + { + return this.GetRelatedEntities("Queue_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Queue_AsyncOperations"); + this.SetRelatedEntities("Queue_AsyncOperations", null, value); + this.OnPropertyChanged("Queue_AsyncOperations"); + } + } + + /// + /// 1:N Queue_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Queue_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Queue_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Queue_BulkDeleteFailures"); + this.SetRelatedEntities("Queue_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Queue_BulkDeleteFailures"); + } + } + + /// + /// 1:N Queue_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Queue_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Queue_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Queue_DuplicateBaseRecord"); + this.SetRelatedEntities("Queue_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Queue_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Queue_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Queue_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Queue_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Queue_DuplicateMatchingRecord"); + this.SetRelatedEntities("Queue_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Queue_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N queue_entries + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_entries")] + public System.Collections.Generic.IEnumerable queue_entries + { + get + { + return this.GetRelatedEntities("queue_entries", null); + } + set + { + this.OnPropertyChanging("queue_entries"); + this.SetRelatedEntities("queue_entries", null, value); + this.OnPropertyChanged("queue_entries"); + } + } + + /// + /// 1:N queue_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_PostFollows")] + public System.Collections.Generic.IEnumerable queue_PostFollows + { + get + { + return this.GetRelatedEntities("queue_PostFollows", null); + } + set + { + this.OnPropertyChanging("queue_PostFollows"); + this.SetRelatedEntities("queue_PostFollows", null, value); + this.OnPropertyChanged("queue_PostFollows"); + } + } + + /// + /// 1:N queue_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable queue_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("queue_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queue_principalobjectattributeaccess"); + this.SetRelatedEntities("queue_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queue_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Queue_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_ProcessSessions")] + public System.Collections.Generic.IEnumerable Queue_ProcessSessions + { + get + { + return this.GetRelatedEntities("Queue_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Queue_ProcessSessions"); + this.SetRelatedEntities("Queue_ProcessSessions", null, value); + this.OnPropertyChanged("Queue_ProcessSessions"); + } + } + + /// + /// 1:N queue_system_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_system_user")] + public System.Collections.Generic.IEnumerable queue_system_user + { + get + { + return this.GetRelatedEntities("queue_system_user", null); + } + set + { + this.OnPropertyChanging("queue_system_user"); + this.SetRelatedEntities("queue_system_user", null, value); + this.OnPropertyChanged("queue_system_user"); + } + } + + /// + /// 1:N queue_team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_team")] + public System.Collections.Generic.IEnumerable queue_team + { + get + { + return this.GetRelatedEntities("queue_team", null); + } + set + { + this.OnPropertyChanging("queue_team"); + this.SetRelatedEntities("queue_team", null, value); + this.OnPropertyChanged("queue_team"); + } + } + + /// + /// 1:N userentityinstancedata_queue + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queue")] + public System.Collections.Generic.IEnumerable userentityinstancedata_queue + { + get + { + return this.GetRelatedEntities("userentityinstancedata_queue", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queue"); + this.SetRelatedEntities("userentityinstancedata_queue", null, value); + this.OnPropertyChanged("userentityinstancedata_queue"); + } + } + + /// + /// N:1 business_unit_queues + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_queues + { + get + { + return this.GetRelatedEntity("business_unit_queues", null); + } + set + { + this.OnPropertyChanging("business_unit_queues"); + this.SetRelatedEntity("business_unit_queues", null, value); + this.OnPropertyChanged("business_unit_queues"); + } + } + + /// + /// N:1 business_unit_queues2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues2")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_queues2 + { + get + { + return this.GetRelatedEntity("business_unit_queues2", null); + } + } + + /// + /// N:1 lk_queue_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queue_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queue_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_queue_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queue_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queue_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_queuebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queuebase_createdby + { + get + { + return this.GetRelatedEntity("lk_queuebase_createdby", null); + } + } + + /// + /// N:1 lk_queuebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queuebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_queuebase_modifiedby", null); + } + } + + /// + /// N:1 organization_queues + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queues")] + public Xrm.Framework.CI.Common.Entities.Organization organization_queues + { + get + { + return this.GetRelatedEntity("organization_queues", null); + } + } + + /// + /// N:1 queue_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_defaultmailbox_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox queue_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntity("queue_defaultmailbox_mailbox", null); + } + } + + /// + /// N:1 queue_primary_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_primary_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser queue_primary_user + { + get + { + return this.GetRelatedEntity("queue_primary_user", null); + } + set + { + this.OnPropertyChanging("queue_primary_user"); + this.SetRelatedEntity("queue_primary_user", null, value); + this.OnPropertyChanged("queue_primary_user"); + } + } + + /// + /// N:1 TransactionCurrency_Queue + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Queue")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Queue + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Queue", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Queue"); + this.SetRelatedEntity("TransactionCurrency_Queue", null, value); + this.OnPropertyChanged("TransactionCurrency_Queue"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum QueueItemState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// A specific item in a queue, such as a case record or an activity record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("queueitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QueueItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QueueItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "queueitem"; + + public const int EntityTypeCode = 2029; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Shows the date the record was assigned to the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enteredon")] + public System.Nullable EnteredOn + { + get + { + return this.GetAttributeValue>("enteredon"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the queueitem. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Choose the activity, case, or article assigned to the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Select the type of the queue item, such as activity, case, or appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + } + + /// + /// Unique identifier of the organization with which the queue item is associated. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Priority of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priority")] + [System.ObsoleteAttribute()] + public System.Nullable Priority + { + get + { + return this.GetAttributeValue>("priority"); + } + set + { + this.OnPropertyChanging("Priority"); + this.SetAttributeValue("priority", value); + this.OnPropertyChanged("Priority"); + } + } + + /// + /// Choose the queue that the item is assigned to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Unique identifier of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueitemid")] + public System.Nullable QueueItemId + { + get + { + return this.GetAttributeValue>("queueitemid"); + } + set + { + this.OnPropertyChanging("QueueItemId"); + this.SetAttributeValue("queueitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QueueItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QueueItemId = value; + } + } + + /// + /// Sender who created the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sender")] + [System.ObsoleteAttribute()] + public string Sender + { + get + { + return this.GetAttributeValue("sender"); + } + set + { + this.OnPropertyChanging("Sender"); + this.SetAttributeValue("sender", value); + this.OnPropertyChanged("Sender"); + } + } + + /// + /// Status of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("state")] + [System.ObsoleteAttribute()] + public System.Nullable State + { + get + { + return this.GetAttributeValue>("state"); + } + set + { + this.OnPropertyChanging("State"); + this.SetAttributeValue("state", value); + this.OnPropertyChanged("State"); + } + } + + /// + /// Shows whether the queue record is active or inactive. Inactive queue records 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 ((Xrm.Framework.CI.Common.Entities.QueueItemState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QueueItemState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("status")] + [System.ObsoleteAttribute()] + public System.Nullable Status + { + get + { + return this.GetAttributeValue>("status"); + } + set + { + this.OnPropertyChanging("Status"); + this.SetAttributeValue("status", value); + this.OnPropertyChanged("Status"); + } + } + + /// + /// Select the item'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 title or name that describes the queue record. This value is copied from the record that was assigned to the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + } + + /// + /// Recipients listed on the To line of the message for email queue items. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("torecipients")] + [System.ObsoleteAttribute()] + public string ToRecipients + { + get + { + return this.GetAttributeValue("torecipients"); + } + set + { + this.OnPropertyChanging("ToRecipients"); + this.SetAttributeValue("torecipients", value); + this.OnPropertyChanged("ToRecipients"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Shows who is working on the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workerid")] + public Microsoft.Xrm.Sdk.EntityReference WorkerId + { + get + { + return this.GetAttributeValue("workerid"); + } + set + { + this.OnPropertyChanging("WorkerId"); + this.SetAttributeValue("workerid", value); + this.OnPropertyChanged("WorkerId"); + } + } + + /// + /// Shows the date and time when the queue item was last assigned to a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workeridmodifiedon")] + public System.Nullable WorkerIdModifiedOn + { + get + { + return this.GetAttributeValue>("workeridmodifiedon"); + } + } + + /// + /// 1:N QueueItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_AsyncOperations")] + public System.Collections.Generic.IEnumerable QueueItem_AsyncOperations + { + get + { + return this.GetRelatedEntities("QueueItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QueueItem_AsyncOperations"); + this.SetRelatedEntities("QueueItem_AsyncOperations", null, value); + this.OnPropertyChanged("QueueItem_AsyncOperations"); + } + } + + /// + /// 1:N QueueItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QueueItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QueueItem_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QueueItem_BulkDeleteFailures"); + this.SetRelatedEntities("QueueItem_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QueueItem_BulkDeleteFailures"); + } + } + + /// + /// 1:N queueitem_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queueitem_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable queueitem_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("queueitem_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queueitem_principalobjectattributeaccess"); + this.SetRelatedEntities("queueitem_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queueitem_principalobjectattributeaccess"); + } + } + + /// + /// 1:N QueueItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_ProcessSessions")] + public System.Collections.Generic.IEnumerable QueueItem_ProcessSessions + { + get + { + return this.GetRelatedEntities("QueueItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QueueItem_ProcessSessions"); + this.SetRelatedEntities("QueueItem_ProcessSessions", null, value); + this.OnPropertyChanged("QueueItem_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_queueitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queueitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_queueitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_queueitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queueitem"); + this.SetRelatedEntities("userentityinstancedata_queueitem", null, value); + this.OnPropertyChanged("userentityinstancedata_queueitem"); + } + } + + /// + /// N:1 ActivityPointer_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_QueueItem")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_QueueItem + { + get + { + return this.GetRelatedEntity("ActivityPointer_QueueItem", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_QueueItem"); + this.SetRelatedEntity("ActivityPointer_QueueItem", null, value); + this.OnPropertyChanged("ActivityPointer_QueueItem"); + } + } + + /// + /// N:1 Appointment_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_QueueItem + { + get + { + return this.GetRelatedEntity("Appointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("Appointment_QueueItem"); + this.SetRelatedEntity("Appointment_QueueItem", null, value); + this.OnPropertyChanged("Appointment_QueueItem"); + } + } + + /// + /// N:1 BulkOperation_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_QueueItem")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_QueueItem + { + get + { + return this.GetRelatedEntity("BulkOperation_QueueItem", null); + } + set + { + this.OnPropertyChanging("BulkOperation_QueueItem"); + this.SetRelatedEntity("BulkOperation_QueueItem", null, value); + this.OnPropertyChanged("BulkOperation_QueueItem"); + } + } + + /// + /// N:1 CampaignActivity_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_QueueItem")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_QueueItem + { + get + { + return this.GetRelatedEntity("CampaignActivity_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_QueueItem"); + this.SetRelatedEntity("CampaignActivity_QueueItem", null, value); + this.OnPropertyChanged("CampaignActivity_QueueItem"); + } + } + + /// + /// N:1 CampaignResponse_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_QueueItem")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_QueueItem + { + get + { + return this.GetRelatedEntity("CampaignResponse_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_QueueItem"); + this.SetRelatedEntity("CampaignResponse_QueueItem", null, value); + this.OnPropertyChanged("CampaignResponse_QueueItem"); + } + } + + /// + /// N:1 Email_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Email Email_QueueItem + { + get + { + return this.GetRelatedEntity("Email_QueueItem", null); + } + set + { + this.OnPropertyChanging("Email_QueueItem"); + this.SetRelatedEntity("Email_QueueItem", null, value); + this.OnPropertyChanged("Email_QueueItem"); + } + } + + /// + /// N:1 Fax_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_QueueItem + { + get + { + return this.GetRelatedEntity("Fax_QueueItem", null); + } + set + { + this.OnPropertyChanging("Fax_QueueItem"); + this.SetRelatedEntity("Fax_QueueItem", null, value); + this.OnPropertyChanged("Fax_QueueItem"); + } + } + + /// + /// N:1 Incident_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_QueueItem + { + get + { + return this.GetRelatedEntity("Incident_QueueItem", null); + } + set + { + this.OnPropertyChanging("Incident_QueueItem"); + this.SetRelatedEntity("Incident_QueueItem", null, value); + this.OnPropertyChanged("Incident_QueueItem"); + } + } + + /// + /// N:1 Letter_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_QueueItem + { + get + { + return this.GetRelatedEntity("Letter_QueueItem", null); + } + set + { + this.OnPropertyChanging("Letter_QueueItem"); + this.SetRelatedEntity("Letter_QueueItem", null, value); + this.OnPropertyChanged("Letter_QueueItem"); + } + } + + /// + /// N:1 lk_queueitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitem_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queueitem_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_queueitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queueitem_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_queueitembase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitembase_createdby + { + get + { + return this.GetRelatedEntity("lk_queueitembase_createdby", null); + } + } + + /// + /// N:1 lk_queueitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitembase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_queueitembase_modifiedby", null); + } + } + + /// + /// N:1 lk_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_workerid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitembase_workerid + { + get + { + return this.GetRelatedEntity("lk_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_workerid"); + this.SetRelatedEntity("lk_queueitembase_workerid", null, value); + this.OnPropertyChanged("lk_queueitembase_workerid"); + } + } + + /// + /// N:1 organization_queueitems + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queueitems")] + public Xrm.Framework.CI.Common.Entities.Organization organization_queueitems + { + get + { + return this.GetRelatedEntity("organization_queueitems", null); + } + } + + /// + /// N:1 PhoneCall_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_QueueItem")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_QueueItem + { + get + { + return this.GetRelatedEntity("PhoneCall_QueueItem", null); + } + set + { + this.OnPropertyChanging("PhoneCall_QueueItem"); + this.SetRelatedEntity("PhoneCall_QueueItem", null, value); + this.OnPropertyChanged("PhoneCall_QueueItem"); + } + } + + /// + /// N:1 queue_entries + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_entries")] + public Xrm.Framework.CI.Common.Entities.Queue queue_entries + { + get + { + return this.GetRelatedEntity("queue_entries", null); + } + set + { + this.OnPropertyChanging("queue_entries"); + this.SetRelatedEntity("queue_entries", null, value); + this.OnPropertyChanged("queue_entries"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_QueueItem")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_QueueItem + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_QueueItem", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_QueueItem"); + this.SetRelatedEntity("RecurringAppointmentMaster_QueueItem", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_QueueItem"); + } + } + + /// + /// N:1 ServiceAppointment_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_QueueItem")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_QueueItem + { + get + { + return this.GetRelatedEntity("ServiceAppointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_QueueItem"); + this.SetRelatedEntity("ServiceAppointment_QueueItem", null, value); + this.OnPropertyChanged("ServiceAppointment_QueueItem"); + } + } + + /// + /// N:1 Task_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Task Task_QueueItem + { + get + { + return this.GetRelatedEntity("Task_QueueItem", null); + } + set + { + this.OnPropertyChanging("Task_QueueItem"); + this.SetRelatedEntity("Task_QueueItem", null, value); + this.OnPropertyChanged("Task_QueueItem"); + } + } + + /// + /// N:1 team_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_queueitembase_workerid")] + public Xrm.Framework.CI.Common.Entities.Team team_queueitembase_workerid + { + get + { + return this.GetRelatedEntity("team_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("team_queueitembase_workerid"); + this.SetRelatedEntity("team_queueitembase_workerid", null, value); + this.OnPropertyChanged("team_queueitembase_workerid"); + } + } + + /// + /// N:1 TransactionCurrency_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_QueueItem")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_QueueItem + { + get + { + return this.GetRelatedEntity("TransactionCurrency_QueueItem", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_QueueItem"); + this.SetRelatedEntity("TransactionCurrency_QueueItem", null, value); + this.OnPropertyChanged("TransactionCurrency_QueueItem"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Quote : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Quote() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quote"; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the quote. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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 ((Xrm.Framework.CI.Common.Entities.QuoteState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QuoteState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Pre-Freight Amount converted field to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Discount Amount converted field to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Line Item Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 quote. + /// + [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"); + } + } + + /// + /// 1:N quote_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_activity_parties")] + public System.Collections.Generic.IEnumerable quote_activity_parties + { + get + { + return this.GetRelatedEntities("quote_activity_parties", null); + } + set + { + this.OnPropertyChanging("quote_activity_parties"); + this.SetRelatedEntities("quote_activity_parties", null, value); + this.OnPropertyChanged("quote_activity_parties"); + } + } + + /// + /// 1:N Quote_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ActivityPointers")] + public System.Collections.Generic.IEnumerable Quote_ActivityPointers + { + get + { + return this.GetRelatedEntities("Quote_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Quote_ActivityPointers"); + this.SetRelatedEntities("Quote_ActivityPointers", null, value); + this.OnPropertyChanged("Quote_ActivityPointers"); + } + } + + /// + /// 1:N Quote_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Annotation")] + public System.Collections.Generic.IEnumerable Quote_Annotation + { + get + { + return this.GetRelatedEntities("Quote_Annotation", null); + } + set + { + this.OnPropertyChanging("Quote_Annotation"); + this.SetRelatedEntities("Quote_Annotation", null, value); + this.OnPropertyChanged("Quote_Annotation"); + } + } + + /// + /// 1:N Quote_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Appointments")] + public System.Collections.Generic.IEnumerable Quote_Appointments + { + get + { + return this.GetRelatedEntities("Quote_Appointments", null); + } + set + { + this.OnPropertyChanging("Quote_Appointments"); + this.SetRelatedEntities("Quote_Appointments", null, value); + this.OnPropertyChanged("Quote_Appointments"); + } + } + + /// + /// 1:N Quote_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_AsyncOperations")] + public System.Collections.Generic.IEnumerable Quote_AsyncOperations + { + get + { + return this.GetRelatedEntities("Quote_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Quote_AsyncOperations"); + this.SetRelatedEntities("Quote_AsyncOperations", null, value); + this.OnPropertyChanged("Quote_AsyncOperations"); + } + } + + /// + /// 1:N Quote_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Quote_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Quote_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Quote_BulkDeleteFailures"); + this.SetRelatedEntities("Quote_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Quote_BulkDeleteFailures"); + } + } + + /// + /// 1:N quote_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections1")] + public System.Collections.Generic.IEnumerable quote_connections1 + { + get + { + return this.GetRelatedEntities("quote_connections1", null); + } + set + { + this.OnPropertyChanging("quote_connections1"); + this.SetRelatedEntities("quote_connections1", null, value); + this.OnPropertyChanged("quote_connections1"); + } + } + + /// + /// 1:N quote_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections2")] + public System.Collections.Generic.IEnumerable quote_connections2 + { + get + { + return this.GetRelatedEntities("quote_connections2", null); + } + set + { + this.OnPropertyChanging("quote_connections2"); + this.SetRelatedEntities("quote_connections2", null, value); + this.OnPropertyChanged("quote_connections2"); + } + } + + /// + /// 1:N quote_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_details")] + public System.Collections.Generic.IEnumerable quote_details + { + get + { + return this.GetRelatedEntities("quote_details", null); + } + set + { + this.OnPropertyChanging("quote_details"); + this.SetRelatedEntities("quote_details", null, value); + this.OnPropertyChanged("quote_details"); + } + } + + /// + /// 1:N Quote_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Quote_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Quote_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Quote_DuplicateBaseRecord"); + this.SetRelatedEntities("Quote_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Quote_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Quote_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Quote_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Quote_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Quote_DuplicateMatchingRecord"); + this.SetRelatedEntities("Quote_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Quote_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Quote_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Emails")] + public System.Collections.Generic.IEnumerable Quote_Emails + { + get + { + return this.GetRelatedEntities("Quote_Emails", null); + } + set + { + this.OnPropertyChanging("Quote_Emails"); + this.SetRelatedEntities("Quote_Emails", null, value); + this.OnPropertyChanged("Quote_Emails"); + } + } + + /// + /// 1:N Quote_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Faxes")] + public System.Collections.Generic.IEnumerable Quote_Faxes + { + get + { + return this.GetRelatedEntities("Quote_Faxes", null); + } + set + { + this.OnPropertyChanging("Quote_Faxes"); + this.SetRelatedEntities("Quote_Faxes", null, value); + this.OnPropertyChanged("Quote_Faxes"); + } + } + + /// + /// 1:N Quote_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Letters")] + public System.Collections.Generic.IEnumerable Quote_Letters + { + get + { + return this.GetRelatedEntities("Quote_Letters", null); + } + set + { + this.OnPropertyChanging("Quote_Letters"); + this.SetRelatedEntities("Quote_Letters", null, value); + this.OnPropertyChanged("Quote_Letters"); + } + } + + /// + /// 1:N quote_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_orders")] + public System.Collections.Generic.IEnumerable quote_orders + { + get + { + return this.GetRelatedEntities("quote_orders", null); + } + set + { + this.OnPropertyChanging("quote_orders"); + this.SetRelatedEntities("quote_orders", null, value); + this.OnPropertyChanged("quote_orders"); + } + } + + /// + /// 1:N Quote_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Phonecalls")] + public System.Collections.Generic.IEnumerable Quote_Phonecalls + { + get + { + return this.GetRelatedEntities("Quote_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Quote_Phonecalls"); + this.SetRelatedEntities("Quote_Phonecalls", null, value); + this.OnPropertyChanged("Quote_Phonecalls"); + } + } + + /// + /// 1:N quote_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable quote_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("quote_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quote_principalobjectattributeaccess"); + this.SetRelatedEntities("quote_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quote_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Quote_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ProcessSessions")] + public System.Collections.Generic.IEnumerable Quote_ProcessSessions + { + get + { + return this.GetRelatedEntities("Quote_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Quote_ProcessSessions"); + this.SetRelatedEntities("Quote_ProcessSessions", null, value); + this.OnPropertyChanged("Quote_ProcessSessions"); + } + } + + /// + /// 1:N Quote_QuoteClose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_QuoteClose")] + public System.Collections.Generic.IEnumerable Quote_QuoteClose + { + get + { + return this.GetRelatedEntities("Quote_QuoteClose", null); + } + set + { + this.OnPropertyChanging("Quote_QuoteClose"); + this.SetRelatedEntities("Quote_QuoteClose", null, value); + this.OnPropertyChanged("Quote_QuoteClose"); + } + } + + /// + /// 1:N Quote_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Quote_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Quote_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Quote_RecurringAppointmentMasters"); + this.SetRelatedEntities("Quote_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Quote_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Quote_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Quote_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Quote_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Quote_ServiceAppointments"); + this.SetRelatedEntities("Quote_ServiceAppointments", null, value); + this.OnPropertyChanged("Quote_ServiceAppointments"); + } + } + + /// + /// 1:N Quote_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Quote_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Quote_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Quote_SharepointDocumentLocation"); + this.SetRelatedEntities("Quote_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Quote_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Quote_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Tasks")] + public System.Collections.Generic.IEnumerable Quote_Tasks + { + get + { + return this.GetRelatedEntities("Quote_Tasks", null); + } + set + { + this.OnPropertyChanging("Quote_Tasks"); + this.SetRelatedEntities("Quote_Tasks", null, value); + this.OnPropertyChanged("Quote_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_quote + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quote")] + public System.Collections.Generic.IEnumerable userentityinstancedata_quote + { + get + { + return this.GetRelatedEntities("userentityinstancedata_quote", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quote"); + this.SetRelatedEntities("userentityinstancedata_quote", null, value); + this.OnPropertyChanged("userentityinstancedata_quote"); + } + } + + /// + /// N:N contactquotes_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactquotes_association")] + public System.Collections.Generic.IEnumerable contactquotes_association + { + get + { + return this.GetRelatedEntities("contactquotes_association", null); + } + set + { + this.OnPropertyChanging("contactquotes_association"); + this.SetRelatedEntities("contactquotes_association", null, value); + this.OnPropertyChanged("contactquotes_association"); + } + } + + /// + /// N:1 business_unit_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quotes")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_quotes + { + get + { + return this.GetRelatedEntity("business_unit_quotes", null); + } + } + + /// + /// N:1 campaign_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_quotes")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_quotes + { + get + { + return this.GetRelatedEntity("campaign_quotes", null); + } + set + { + this.OnPropertyChanging("campaign_quotes"); + this.SetRelatedEntity("campaign_quotes", null, value); + this.OnPropertyChanged("campaign_quotes"); + } + } + + /// + /// N:1 lk_quote_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quote_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quote_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quote_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quote_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quote_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_quotebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotebase_createdby + { + get + { + return this.GetRelatedEntity("lk_quotebase_createdby", null); + } + } + + /// + /// N:1 lk_quotebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quotebase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_quotes")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_quotes + { + get + { + return this.GetRelatedEntity("opportunity_quotes", null); + } + set + { + this.OnPropertyChanging("opportunity_quotes"); + this.SetRelatedEntity("opportunity_quotes", null, value); + this.OnPropertyChanged("opportunity_quotes"); + } + } + + /// + /// N:1 price_level_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_quotes")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_quotes + { + get + { + return this.GetRelatedEntity("price_level_quotes", null); + } + set + { + this.OnPropertyChanging("price_level_quotes"); + this.SetRelatedEntity("price_level_quotes", null, value); + this.OnPropertyChanged("price_level_quotes"); + } + } + + /// + /// N:1 processstage_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_quotes")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_quotes + { + get + { + return this.GetRelatedEntity("processstage_quotes", null); + } + set + { + this.OnPropertyChanging("processstage_quotes"); + this.SetRelatedEntity("processstage_quotes", null, value); + this.OnPropertyChanged("processstage_quotes"); + } + } + + /// + /// N:1 quote_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account quote_customer_accounts + { + get + { + return this.GetRelatedEntity("quote_customer_accounts", null); + } + set + { + this.OnPropertyChanging("quote_customer_accounts"); + this.SetRelatedEntity("quote_customer_accounts", null, value); + this.OnPropertyChanged("quote_customer_accounts"); + } + } + + /// + /// N:1 quote_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact quote_customer_contacts + { + get + { + return this.GetRelatedEntity("quote_customer_contacts", null); + } + set + { + this.OnPropertyChanging("quote_customer_contacts"); + this.SetRelatedEntity("quote_customer_contacts", null, value); + this.OnPropertyChanged("quote_customer_contacts"); + } + } + + /// + /// N:1 system_user_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotes")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_quotes + { + get + { + return this.GetRelatedEntity("system_user_quotes", null); + } + } + + /// + /// N:1 team_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quotes")] + public Xrm.Framework.CI.Common.Entities.Team team_quotes + { + get + { + return this.GetRelatedEntity("team_quotes", null); + } + } + + /// + /// N:1 transactioncurrency_quote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quote")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_quote + { + get + { + return this.GetRelatedEntity("transactioncurrency_quote", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quote"); + this.SetRelatedEntity("transactioncurrency_quote", null, value); + this.OnPropertyChanged("transactioncurrency_quote"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QuoteClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QuoteClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quoteclose"; + + 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)); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 quote close 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 quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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 ((Xrm.Framework.CI.Common.Entities.QuoteCloseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QuoteCloseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N quoteclose_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quoteclose_activity_parties")] + public System.Collections.Generic.IEnumerable quoteclose_activity_parties + { + get + { + return this.GetRelatedEntities("quoteclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("quoteclose_activity_parties"); + this.SetRelatedEntities("quoteclose_activity_parties", null, value); + this.OnPropertyChanged("quoteclose_activity_parties"); + } + } + + /// + /// 1:N QuoteClose_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_Annotation")] + public System.Collections.Generic.IEnumerable QuoteClose_Annotation + { + get + { + return this.GetRelatedEntities("QuoteClose_Annotation", null); + } + set + { + this.OnPropertyChanging("QuoteClose_Annotation"); + this.SetRelatedEntities("QuoteClose_Annotation", null, value); + this.OnPropertyChanged("QuoteClose_Annotation"); + } + } + + /// + /// 1:N QuoteClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_AsyncOperations")] + public System.Collections.Generic.IEnumerable QuoteClose_AsyncOperations + { + get + { + return this.GetRelatedEntities("QuoteClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteClose_AsyncOperations"); + this.SetRelatedEntities("QuoteClose_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteClose_AsyncOperations"); + } + } + + /// + /// 1:N QuoteClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QuoteClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QuoteClose_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QuoteClose_BulkDeleteFailures"); + this.SetRelatedEntities("QuoteClose_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QuoteClose_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quoteclose")] + public System.Collections.Generic.IEnumerable userentityinstancedata_quoteclose + { + get + { + return this.GetRelatedEntities("userentityinstancedata_quoteclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quoteclose"); + this.SetRelatedEntities("userentityinstancedata_quoteclose", null, value); + this.OnPropertyChanged("userentityinstancedata_quoteclose"); + } + } + + /// + /// N:1 activity_pointer_quote_close + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_quote_close")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_quote_close + { + get + { + return this.GetRelatedEntity("activity_pointer_quote_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_quote_close"); + this.SetRelatedEntity("activity_pointer_quote_close", null, value); + this.OnPropertyChanged("activity_pointer_quote_close"); + } + } + + /// + /// N:1 business_unit_quote_close_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quote_close_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_quote_close_activities + { + get + { + return this.GetRelatedEntity("business_unit_quote_close_activities", null); + } + } + + /// + /// N:1 lk_quoteclose_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_createdby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_createdby", null); + } + } + + /// + /// N:1 lk_quoteclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quoteclose_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_modifiedby", null); + } + } + + /// + /// N:1 lk_quoteclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Quote_QuoteClose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_QuoteClose")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_QuoteClose + { + get + { + return this.GetRelatedEntity("Quote_QuoteClose", null); + } + set + { + this.OnPropertyChanging("Quote_QuoteClose"); + this.SetRelatedEntity("Quote_QuoteClose", null, value); + this.OnPropertyChanged("Quote_QuoteClose"); + } + } + + /// + /// N:1 service_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_quoteclose")] + public Xrm.Framework.CI.Common.Entities.Service service_quoteclose + { + get + { + return this.GetRelatedEntity("service_quoteclose", null); + } + set + { + this.OnPropertyChanging("service_quoteclose"); + this.SetRelatedEntity("service_quoteclose", null, value); + this.OnPropertyChanged("service_quoteclose"); + } + } + + /// + /// N:1 team_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quoteclose")] + public Xrm.Framework.CI.Common.Entities.Team team_quoteclose + { + get + { + return this.GetRelatedEntity("team_quoteclose", null); + } + } + + /// + /// N:1 user_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_quoteclose")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_quoteclose + { + get + { + return this.GetRelatedEntity("user_quoteclose", null); + } + } + } + + /// + /// Product line item in a quote. The details include such information as product ID, description, quantity, and cost. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("quotedetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QuoteDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QuoteDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quotedetail"; + + public const int EntityTypeCode = 1085; + + 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 quote 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the quote 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 quote 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"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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 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 quote 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 CRM product catalog or is a write-in product specific to the quote. + /// + [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 quote product to easily identify the product in the quote and make sure it's listed in the correct order. + /// + [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 quote product to deduct any negotiated or other savings from the product total on the quote. + /// + [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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 quote detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the quote detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the quote detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Type the price per unit of the quote product. The default is to the value in the price list specified on the quote 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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Type a name or description to identify the type of write-in product included in the quote. + /// + [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 quote to link the product's pricing and other information to the quote. + /// + [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"); + } + } + + /// + /// Type the amount or quantity of the product requested 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"); + } + } + + /// + /// Unique identifier of the product line item in the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotedetailid")] + public System.Nullable QuoteDetailId + { + get + { + return this.GetAttributeValue>("quotedetailid"); + } + set + { + this.OnPropertyChanging("QuoteDetailId"); + this.SetAttributeValue("quotedetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QuoteDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotedetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QuoteDetailId = value; + } + } + + /// + /// Unique identifier of the quote for the quote product. + /// + [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"); + } + } + + /// + /// Status of the quote product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotestatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue QuoteStateCode + { + get + { + return this.GetAttributeValue("quotestatecode"); + } + } + + /// + /// Enter the delivery date requested by the customer for the quote 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"); + } + } + + /// + /// Choose the user responsible for the sale of the quote 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"); + } + } + + /// + /// Unique identifier 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the tax amount for the quote 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the quote detail. + /// + [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"); + } + } + + /// + /// 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_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// Select whether the quote 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"); + } + } + + /// + /// 1:N QuoteDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable QuoteDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("QuoteDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_AsyncOperations"); + this.SetRelatedEntities("QuoteDetail_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteDetail_AsyncOperations"); + } + } + + /// + /// 1:N QuoteDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QuoteDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QuoteDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_BulkDeleteFailures"); + this.SetRelatedEntities("QuoteDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QuoteDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N quotedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quotedetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable quotedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("quotedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quotedetail_principalobjectattributeaccess"); + this.SetRelatedEntities("quotedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quotedetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N QuoteDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable QuoteDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("QuoteDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_ProcessSessions"); + this.SetRelatedEntities("QuoteDetail_ProcessSessions", null, value); + this.OnPropertyChanged("QuoteDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_quotedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quotedetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_quotedetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_quotedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quotedetail"); + this.SetRelatedEntities("userentityinstancedata_quotedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_quotedetail"); + } + } + + /// + /// N:1 lk_quotedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quotedetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quotedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quotedetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_quotedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_quotedetailbase_createdby", null); + } + } + + /// + /// N:1 lk_quotedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quotedetailbase_modifiedby", null); + } + } + + /// + /// N:1 product_quote_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_quote_details")] + public Xrm.Framework.CI.Common.Entities.Product product_quote_details + { + get + { + return this.GetRelatedEntity("product_quote_details", null); + } + set + { + this.OnPropertyChanging("product_quote_details"); + this.SetRelatedEntity("product_quote_details", null, value); + this.OnPropertyChanged("product_quote_details"); + } + } + + /// + /// N:1 quote_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_details")] + public Xrm.Framework.CI.Common.Entities.Quote quote_details + { + get + { + return this.GetRelatedEntity("quote_details", null); + } + set + { + this.OnPropertyChanging("quote_details"); + this.SetRelatedEntity("quote_details", null, value); + this.OnPropertyChanged("quote_details"); + } + } + + /// + /// N:1 system_user_quotedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotedetail")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_quotedetail + { + get + { + return this.GetRelatedEntity("system_user_quotedetail", null); + } + set + { + this.OnPropertyChanging("system_user_quotedetail"); + this.SetRelatedEntity("system_user_quotedetail", null, value); + this.OnPropertyChanged("system_user_quotedetail"); + } + } + + /// + /// N:1 transactioncurrency_quotedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quotedetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_quotedetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_quotedetail", null); + } + } + + /// + /// N:1 unit_of_measurement_quote_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_quote_details")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_quote_details + { + get + { + return this.GetRelatedEntity("unit_of_measurement_quote_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_quote_details"); + this.SetRelatedEntity("unit_of_measurement_quote_details", null, value); + this.OnPropertyChanged("unit_of_measurement_quote_details"); + } + } + } + + /// + /// Recurrence Rule represents the pattern of incidence of recurring entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("recurrencerule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RecurrenceRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RecurrenceRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "recurrencerule"; + + public const int EntityTypeCode = 4250; + + 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 recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the recurrence rule 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 recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// The day of the month on which the recurring appointment or task occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dayofmonth")] + public System.Nullable DayOfMonth + { + get + { + return this.GetAttributeValue>("dayofmonth"); + } + set + { + this.OnPropertyChanging("DayOfMonth"); + this.SetAttributeValue("dayofmonth", value); + this.OnPropertyChanged("DayOfMonth"); + } + } + + /// + /// Bitmask representing the days of the week on which the recurring appointment or task occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daysofweekmask")] + public System.Nullable DaysOfWeekMask + { + get + { + return this.GetAttributeValue>("daysofweekmask"); + } + set + { + this.OnPropertyChanging("DaysOfWeekMask"); + this.SetAttributeValue("daysofweekmask", value); + this.OnPropertyChanged("DaysOfWeekMask"); + } + } + + /// + /// Duration of the recurrence pattern in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// The actual end date for expansion of the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveenddate")] + public System.Nullable EffectiveEndDate + { + get + { + return this.GetAttributeValue>("effectiveenddate"); + } + set + { + this.OnPropertyChanging("EffectiveEndDate"); + this.SetAttributeValue("effectiveenddate", value); + this.OnPropertyChanged("EffectiveEndDate"); + } + } + + /// + /// The actual start date for expansion of the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivestartdate")] + public System.Nullable EffectiveStartDate + { + get + { + return this.GetAttributeValue>("effectivestartdate"); + } + set + { + this.OnPropertyChanging("EffectiveStartDate"); + this.SetAttributeValue("effectivestartdate", value); + this.OnPropertyChanged("EffectiveStartDate"); + } + } + + /// + /// End time of the associated activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endtime")] + public System.Nullable EndTime + { + get + { + return this.GetAttributeValue>("endtime"); + } + set + { + this.OnPropertyChanging("EndTime"); + this.SetAttributeValue("endtime", value); + this.OnPropertyChanged("EndTime"); + } + } + + /// + /// First day Of week for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstdayofweek")] + public System.Nullable FirstDayOfWeek + { + get + { + return this.GetAttributeValue>("firstdayofweek"); + } + set + { + this.OnPropertyChanging("FirstDayOfWeek"); + this.SetAttributeValue("firstdayofweek", value); + this.OnPropertyChanged("FirstDayOfWeek"); + } + } + + /// + /// Specifies the count for which the recurrence pattern is valid for a given interval. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instance")] + public Microsoft.Xrm.Sdk.OptionSetValue Instance + { + get + { + return this.GetAttributeValue("instance"); + } + set + { + this.OnPropertyChanging("Instance"); + this.SetAttributeValue("instance", value); + this.OnPropertyChanged("Instance"); + } + } + + /// + /// Number of units of a given recurrence type between occurrences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("interval")] + public System.Nullable Interval + { + get + { + return this.GetAttributeValue>("interval"); + } + set + { + this.OnPropertyChanging("Interval"); + this.SetAttributeValue("interval", value); + this.OnPropertyChanged("Interval"); + } + } + + /// + /// Specifies whether the monthly recurrence pattern is Nth monthly, valid only for monthly recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthmonthly")] + public System.Nullable IsNthMonthly + { + get + { + return this.GetAttributeValue>("isnthmonthly"); + } + set + { + this.OnPropertyChanging("IsNthMonthly"); + this.SetAttributeValue("isnthmonthly", value); + this.OnPropertyChanged("IsNthMonthly"); + } + } + + /// + /// Specifies whether the yearly recurrence pattern is Nth yearly, valid only for yearly recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthyearly")] + public System.Nullable IsNthYearly + { + get + { + return this.GetAttributeValue>("isnthyearly"); + } + set + { + this.OnPropertyChanging("IsNthYearly"); + this.SetAttributeValue("isnthyearly", value); + this.OnPropertyChanged("IsNthYearly"); + } + } + + /// + /// Valid only for task type recurrence,indicates whether task should be regenerated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isregenerate")] + public System.Nullable IsRegenerate + { + get + { + return this.GetAttributeValue>("isregenerate"); + } + set + { + this.OnPropertyChanging("IsRegenerate"); + this.SetAttributeValue("isregenerate", value); + this.OnPropertyChanged("IsRegenerate"); + } + } + + /// + /// Specifies whether the weekly recurrence pattern is actually a daily every weekday pattern, valid only for weekly recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isweekdaypattern")] + public System.Nullable IsWeekDayPattern + { + get + { + return this.GetAttributeValue>("isweekdaypattern"); + } + set + { + this.OnPropertyChanging("IsWeekDayPattern"); + this.SetAttributeValue("isweekdaypattern", value); + this.OnPropertyChanged("IsWeekDayPattern"); + } + } + + /// + /// Unique identifier of the user who last modified the recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the recurrence rule was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Specifies the month of the year valid for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("monthofyear")] + public Microsoft.Xrm.Sdk.OptionSetValue MonthOfYear + { + get + { + return this.GetAttributeValue("monthofyear"); + } + set + { + this.OnPropertyChanging("MonthOfYear"); + this.SetAttributeValue("monthofyear", value); + this.OnPropertyChanged("MonthOfYear"); + } + } + + /// + /// Unique identifier of the object with which the recurrence rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Number of occurrences of the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("occurrences")] + public System.Nullable Occurrences + { + get + { + return this.GetAttributeValue>("occurrences"); + } + set + { + this.OnPropertyChanging("Occurrences"); + this.SetAttributeValue("occurrences", value); + this.OnPropertyChanged("Occurrences"); + } + } + + /// + /// Unique identifier of the user or team who owns the recurrence rule. + /// + [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 recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// End date of the Recurrence Range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternenddate")] + public System.Nullable PatternEndDate + { + get + { + return this.GetAttributeValue>("patternenddate"); + } + set + { + this.OnPropertyChanging("PatternEndDate"); + this.SetAttributeValue("patternenddate", value); + this.OnPropertyChanged("PatternEndDate"); + } + } + + /// + /// Pattern End Type of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternendtype")] + public Microsoft.Xrm.Sdk.OptionSetValue PatternEndType + { + get + { + return this.GetAttributeValue("patternendtype"); + } + set + { + this.OnPropertyChanging("PatternEndType"); + this.SetAttributeValue("patternendtype", value); + this.OnPropertyChanged("PatternEndType"); + } + } + + /// + /// Start date of the Recurrence Range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternstartdate")] + public System.Nullable PatternStartDate + { + get + { + return this.GetAttributeValue>("patternstartdate"); + } + set + { + this.OnPropertyChanging("PatternStartDate"); + this.SetAttributeValue("patternstartdate", value); + this.OnPropertyChanged("PatternStartDate"); + } + } + + /// + /// Type of Recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepatterntype")] + public Microsoft.Xrm.Sdk.OptionSetValue RecurrencePatternType + { + get + { + return this.GetAttributeValue("recurrencepatterntype"); + } + set + { + this.OnPropertyChanging("RecurrencePatternType"); + this.SetAttributeValue("recurrencepatterntype", value); + this.OnPropertyChanged("RecurrencePatternType"); + } + } + + /// + /// Unique identifier of the entity associated with recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ruleid")] + public System.Nullable RuleId + { + get + { + return this.GetAttributeValue>("ruleid"); + } + set + { + this.OnPropertyChanging("RuleId"); + this.SetAttributeValue("ruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RuleId = value; + } + } + + /// + /// Start time of the recurring activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N recurrencerule_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurrencerule_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable recurrencerule_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("recurrencerule_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("recurrencerule_recurringappointmentmaster"); + this.SetRelatedEntities("recurrencerule_recurringappointmentmaster", null, value); + this.OnPropertyChanged("recurrencerule_recurringappointmentmaster"); + } + } + + /// + /// N:1 activity_pointer_recurrencerule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurrencerule")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_recurrencerule + { + get + { + return this.GetRelatedEntity("activity_pointer_recurrencerule", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurrencerule"); + this.SetRelatedEntity("activity_pointer_recurrencerule", null, value); + this.OnPropertyChanged("activity_pointer_recurrencerule"); + } + } + + /// + /// N:1 business_unit_recurrencerule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurrencerule")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_recurrencerule + { + get + { + return this.GetRelatedEntity("business_unit_recurrencerule", null); + } + } + + /// + /// N:1 lk_recurrencerule_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerule_createdby + { + get + { + return this.GetRelatedEntity("lk_recurrencerule_createdby", null); + } + } + + /// + /// N:1 lk_recurrencerule_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerule_modifiedby + { + get + { + return this.GetRelatedEntity("lk_recurrencerule_modifiedby", null); + } + } + + /// + /// N:1 lk_recurrencerulebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerulebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurrencerulebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_recurrencerulebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerulebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurrencerulebase_modifiedonbehalfby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum RecurringAppointmentMasterState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// The Master appointment of a recurring appointment series. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("recurringappointmentmaster")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RecurringAppointmentMaster : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RecurringAppointmentMaster() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "recurringappointmentmaster"; + + public const int EntityTypeCode = 4251; + + 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 recurring appointment series. + /// + [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"); + } + } + + /// + /// Type a category to identify the recurring appointment type, such as status meeting or service call, to tie the appointment to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// The day of the month on which the recurring appointment occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dayofmonth")] + public System.Nullable DayOfMonth + { + get + { + return this.GetAttributeValue>("dayofmonth"); + } + set + { + this.OnPropertyChanging("DayOfMonth"); + this.SetAttributeValue("dayofmonth", value); + this.OnPropertyChanged("DayOfMonth"); + } + } + + /// + /// Bitmask that represents the days of the week on which the recurring appointment occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daysofweekmask")] + public System.Nullable DaysOfWeekMask + { + get + { + return this.GetAttributeValue>("daysofweekmask"); + } + set + { + this.OnPropertyChanging("DaysOfWeekMask"); + this.SetAttributeValue("daysofweekmask", value); + this.OnPropertyChanged("DaysOfWeekMask"); + } + } + + /// + /// List of deleted instances of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletedexceptionslist")] + public string DeletedExceptionsList + { + get + { + return this.GetAttributeValue("deletedexceptionslist"); + } + } + + /// + /// Type additional information to describe the recurring appointment, such as key talking points or objectives. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Duration of the recurring appointment series in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// Actual end date of the recurring appointment series based on the specified end date and recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveenddate")] + public System.Nullable EffectiveEndDate + { + get + { + return this.GetAttributeValue>("effectiveenddate"); + } + set + { + this.OnPropertyChanging("EffectiveEndDate"); + this.SetAttributeValue("effectiveenddate", value); + this.OnPropertyChanged("EffectiveEndDate"); + } + } + + /// + /// Actual start date of the recurring appointment series based on the specified start date and recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivestartdate")] + public System.Nullable EffectiveStartDate + { + get + { + return this.GetAttributeValue>("effectivestartdate"); + } + set + { + this.OnPropertyChanging("EffectiveStartDate"); + this.SetAttributeValue("effectivestartdate", value); + this.OnPropertyChanged("EffectiveStartDate"); + } + } + + /// + /// End time of the associated activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endtime")] + public System.Nullable EndTime + { + get + { + return this.GetAttributeValue>("endtime"); + } + set + { + this.OnPropertyChanging("EndTime"); + this.SetAttributeValue("endtime", value); + this.OnPropertyChanged("EndTime"); + } + } + + /// + /// 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"); + } + } + + /// + /// State code to indicate whether the recurring appointment series is expanded fully or partially. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expansionstatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ExpansionStateCode + { + get + { + return this.GetAttributeValue("expansionstatecode"); + } + } + + /// + /// First day of week for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstdayofweek")] + public System.Nullable FirstDayOfWeek + { + get + { + return this.GetAttributeValue>("firstdayofweek"); + } + set + { + this.OnPropertyChanging("FirstDayOfWeek"); + this.SetAttributeValue("firstdayofweek", value); + this.OnPropertyChanged("FirstDayOfWeek"); + } + } + + /// + /// Unique Outlook identifier to correlate recurring appointment series across Exchange mailboxes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("globalobjectid")] + public string GlobalObjectId + { + get + { + return this.GetAttributeValue("globalobjectid"); + } + set + { + this.OnPropertyChanging("GlobalObjectId"); + this.SetAttributeValue("globalobjectid", value); + this.OnPropertyChanged("GlobalObjectId"); + } + } + + /// + /// Unique identifier of the recurring appointment series for which the recurrence information was updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupid")] + public Microsoft.Xrm.Sdk.EntityReference GroupId + { + get + { + return this.GetAttributeValue("groupid"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies the recurring appointment series to occur on every Nth day of a month. Valid for monthly and yearly recurrence patterns only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instance")] + public Microsoft.Xrm.Sdk.OptionSetValue Instance + { + get + { + return this.GetAttributeValue("instance"); + } + set + { + this.OnPropertyChanging("Instance"); + this.SetAttributeValue("instance", value); + this.OnPropertyChanged("Instance"); + } + } + + /// + /// Type of instance of a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Number of units of a given recurrence type between occurrences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("interval")] + public System.Nullable Interval + { + get + { + return this.GetAttributeValue>("interval"); + } + set + { + this.OnPropertyChanging("Interval"); + this.SetAttributeValue("interval", value); + this.OnPropertyChanged("Interval"); + } + } + + /// + /// Select whether the recurring appointment is an all-day event to make sure that the required resources are scheduled for the full day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isalldayevent")] + public System.Nullable IsAllDayEvent + { + get + { + return this.GetAttributeValue>("isalldayevent"); + } + set + { + this.OnPropertyChanging("IsAllDayEvent"); + this.SetAttributeValue("isalldayevent", value); + this.OnPropertyChanged("IsAllDayEvent"); + } + } + + /// + /// Indicates whether the recurring appointment series 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"); + } + } + + /// + /// Indicates whether the recurring appointment series should occur after every N months. Valid for monthly recurrence pattern only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthmonthly")] + public System.Nullable IsNthMonthly + { + get + { + return this.GetAttributeValue>("isnthmonthly"); + } + set + { + this.OnPropertyChanging("IsNthMonthly"); + this.SetAttributeValue("isnthmonthly", value); + this.OnPropertyChanged("IsNthMonthly"); + } + } + + /// + /// Indicates whether the recurring appointment series should occur after every N years. Valid for yearly recurrence pattern only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthyearly")] + public System.Nullable IsNthYearly + { + get + { + return this.GetAttributeValue>("isnthyearly"); + } + set + { + this.OnPropertyChanging("IsNthYearly"); + this.SetAttributeValue("isnthyearly", value); + this.OnPropertyChanged("IsNthYearly"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isregenerate")] + public System.Nullable IsRegenerate + { + get + { + return this.GetAttributeValue>("isregenerate"); + } + set + { + this.OnPropertyChanging("IsRegenerate"); + this.SetAttributeValue("isregenerate", value); + this.OnPropertyChanged("IsRegenerate"); + } + } + + /// + /// Indicates 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"); + } + } + + /// + /// Indicates whether the weekly recurrence pattern is a daily weekday pattern. Valid for weekly recurrence pattern only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isweekdaypattern")] + public System.Nullable IsWeekDayPattern + { + get + { + return this.GetAttributeValue>("isweekdaypattern"); + } + set + { + this.OnPropertyChanging("IsWeekDayPattern"); + this.SetAttributeValue("isweekdaypattern", value); + this.OnPropertyChanged("IsWeekDayPattern"); + } + } + + /// + /// Indicates whether the recurring appointment series 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"); + } + } + + /// + /// Date of last expanded instance of a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastexpandedinstancedate")] + public System.Nullable LastExpandedInstanceDate + { + get + { + return this.GetAttributeValue>("lastexpandedinstancedate"); + } + } + + /// + /// Type the location where the recurring appointment will take place, such as a conference room or customer office. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("location")] + public string Location + { + get + { + return this.GetAttributeValue("location"); + } + set + { + this.OnPropertyChanging("Location"); + this.SetAttributeValue("location", value); + this.OnPropertyChanged("Location"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Indicates the month of the year for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("monthofyear")] + public Microsoft.Xrm.Sdk.OptionSetValue MonthOfYear + { + get + { + return this.GetAttributeValue("monthofyear"); + } + set + { + this.OnPropertyChanging("MonthOfYear"); + this.SetAttributeValue("monthofyear", value); + this.OnPropertyChanged("MonthOfYear"); + } + } + + /// + /// Date of the next expanded instance of a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextexpansioninstancedate")] + public System.Nullable NextExpansionInstanceDate + { + get + { + return this.GetAttributeValue>("nextexpansioninstancedate"); + } + } + + /// + /// Number of appointment occurrences in a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("occurrences")] + public System.Nullable Occurrences + { + get + { + return this.GetAttributeValue>("occurrences"); + } + set + { + this.OnPropertyChanging("Occurrences"); + this.SetAttributeValue("occurrences", value); + this.OnPropertyChanged("Occurrences"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are not needed at the recurring appointment, but can optionally attend. + /// + [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"); + } + } + + /// + /// Enter the user who is in charge of coordinating or leading the recurring appointment to make sure the appointment is displayed in the user's My Activities view. + /// + [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"); + } + } + + /// + /// Unique identifier of the Microsoft Office Outlook recurring appointment series owner that correlates to the PR_OWNER_APPT_ID MAPI property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlookownerapptid")] + public System.Nullable OutlookOwnerApptId + { + get + { + return this.GetAttributeValue>("outlookownerapptid"); + } + set + { + this.OnPropertyChanging("OutlookOwnerApptId"); + this.SetAttributeValue("outlookownerapptid", value); + this.OnPropertyChanged("OutlookOwnerApptId"); + } + } + + /// + /// 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 recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// End date of the recurrence range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternenddate")] + public System.Nullable PatternEndDate + { + get + { + return this.GetAttributeValue>("patternenddate"); + } + set + { + this.OnPropertyChanging("PatternEndDate"); + this.SetAttributeValue("patternenddate", value); + this.OnPropertyChanged("PatternEndDate"); + } + } + + /// + /// Select the type of end date for the recurring appointment, such as no end date or the number of occurrences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternendtype")] + public Microsoft.Xrm.Sdk.OptionSetValue PatternEndType + { + get + { + return this.GetAttributeValue("patternendtype"); + } + set + { + this.OnPropertyChanging("PatternEndType"); + this.SetAttributeValue("patternendtype", value); + this.OnPropertyChanged("PatternEndType"); + } + } + + /// + /// Start date of the recurrence range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternstartdate")] + public System.Nullable PatternStartDate + { + get + { + return this.GetAttributeValue>("patternstartdate"); + } + set + { + this.OnPropertyChanging("PatternStartDate"); + this.SetAttributeValue("patternstartdate", value); + this.OnPropertyChanged("PatternStartDate"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the pattern type for the recurring appointment to indicate whether the appointment occurs daily, weekly, monthly, or yearly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepatterntype")] + public Microsoft.Xrm.Sdk.OptionSetValue RecurrencePatternType + { + get + { + return this.GetAttributeValue("recurrencepatterntype"); + } + set + { + this.OnPropertyChanging("RecurrencePatternType"); + this.SetAttributeValue("recurrencepatterntype", value); + this.OnPropertyChanged("RecurrencePatternType"); + } + } + + /// + /// Unique identifier of the object with which the recurring appointment series 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"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are required to attend the recurring appointment. + /// + [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"); + } + } + + /// + /// Unique identifier of the recurrence rule that is associated with the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ruleid")] + public Microsoft.Xrm.Sdk.EntityReference RuleId + { + get + { + return this.GetAttributeValue("ruleid"); + } + } + + /// + /// Scheduled end time of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + } + + /// + /// Scheduled start time of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + } + + /// + /// Indicates whether the recurring appointment series is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesstatus")] + public System.Nullable SeriesStatus + { + get + { + return this.GetAttributeValue>("seriesstatus"); + } + set + { + this.OnPropertyChanging("SeriesStatus"); + this.SetAttributeValue("seriesstatus", value); + this.OnPropertyChanged("SeriesStatus"); + } + } + + /// + /// Unique identifier for an associated service. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Start time of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// Shows whether the recurring appointment is open, scheduled, completed, or canceled. Completed and canceled appointments are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.RecurringAppointmentMasterState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.RecurringAppointmentMasterState), 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 recurring appointment'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"); + } + } + + /// + /// Type a subcategory to identify the recurring appointment type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the recurring appointment. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N recurringappointmentmaster_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_activity_parties")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_activity_parties + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_activity_parties", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_activity_parties"); + this.SetRelatedEntities("recurringappointmentmaster_activity_parties", null, value); + this.OnPropertyChanged("recurringappointmentmaster_activity_parties"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_Annotation")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_Annotation + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_Annotation", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_Annotation"); + this.SetRelatedEntities("RecurringAppointmentMaster_Annotation", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_Annotation"); + } + } + + /// + /// 1:N recurringappointmentmaster_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_appointment")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_appointment + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_appointment", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_appointment"); + this.SetRelatedEntities("recurringappointmentmaster_appointment", null, value); + this.OnPropertyChanged("recurringappointmentmaster_appointment"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_AsyncOperations")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_AsyncOperations + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_AsyncOperations"); + this.SetRelatedEntities("RecurringAppointmentMaster_AsyncOperations", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_AsyncOperations"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_BulkDeleteFailures"); + this.SetRelatedEntities("RecurringAppointmentMaster_BulkDeleteFailures", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_BulkDeleteFailures"); + } + } + + /// + /// 1:N recurringappointmentmaster_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_campaignresponse")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_campaignresponse + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_campaignresponse", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_campaignresponse"); + this.SetRelatedEntities("recurringappointmentmaster_campaignresponse", null, value); + this.OnPropertyChanged("recurringappointmentmaster_campaignresponse"); + } + } + + /// + /// 1:N recurringappointmentmaster_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections1")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_connections1 + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_connections1", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections1"); + this.SetRelatedEntities("recurringappointmentmaster_connections1", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections1"); + } + } + + /// + /// 1:N recurringappointmentmaster_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections2")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_connections2 + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_connections2", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections2"); + this.SetRelatedEntities("recurringappointmentmaster_connections2", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections2"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_DuplicateBaseRecord"); + this.SetRelatedEntities("RecurringAppointmentMaster_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_DuplicateBaseRecord"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_DuplicateMatchingRecord"); + this.SetRelatedEntities("RecurringAppointmentMaster_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N recurringappointmentmaster_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_PostFollows")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_PostFollows + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_PostFollows", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_PostFollows"); + this.SetRelatedEntities("recurringappointmentmaster_PostFollows", null, value); + this.OnPropertyChanged("recurringappointmentmaster_PostFollows"); + } + } + + /// + /// 1:N recurringappointmentmaster_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_principalobjectattributeaccess"); + this.SetRelatedEntities("recurringappointmentmaster_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("recurringappointmentmaster_principalobjectattributeaccess"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_ProcessSessions")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_ProcessSessions + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_ProcessSessions"); + this.SetRelatedEntities("RecurringAppointmentMaster_ProcessSessions", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_ProcessSessions"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_QueueItem")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_QueueItem + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_QueueItem", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_QueueItem"); + this.SetRelatedEntities("RecurringAppointmentMaster_QueueItem", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable userentityinstancedata_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("userentityinstancedata_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_recurringappointmentmaster"); + this.SetRelatedEntities("userentityinstancedata_recurringappointmentmaster", null, value); + this.OnPropertyChanged("userentityinstancedata_recurringappointmentmaster"); + } + } + + /// + /// N:1 Account_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Account Account_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Account_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Account_RecurringAppointmentMasters"); + this.SetRelatedEntity("Account_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Account_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 activity_pointer_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("activity_pointer_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurringappointmentmaster"); + this.SetRelatedEntity("activity_pointer_recurringappointmentmaster", null, value); + this.OnPropertyChanged("activity_pointer_recurringappointmentmaster"); + } + } + + /// + /// N:1 BulkOperation_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_RecurringAppointmentMaster")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntity("BulkOperation_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("BulkOperation_RecurringAppointmentMaster"); + this.SetRelatedEntity("BulkOperation_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("BulkOperation_RecurringAppointmentMaster"); + } + } + + /// + /// N:1 business_unit_recurringappointmentmaster_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurringappointmentmaster_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_recurringappointmentmaster_activities + { + get + { + return this.GetRelatedEntity("business_unit_recurringappointmentmaster_activities", null); + } + } + + /// + /// N:1 Campaign_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Campaign_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Campaign_RecurringAppointmentMasters"); + this.SetRelatedEntity("Campaign_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Campaign_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 CampaignActivity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("CampaignActivity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_RecurringAppointmentMasters"); + this.SetRelatedEntity("CampaignActivity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("CampaignActivity_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Contact_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Contact_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contact_RecurringAppointmentMasters"); + this.SetRelatedEntity("Contact_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contact_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Contract_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Contract_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contract_RecurringAppointmentMasters"); + this.SetRelatedEntity("Contract_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contract_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Incident_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Incident_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Incident_RecurringAppointmentMasters"); + this.SetRelatedEntity("Incident_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Incident_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Invoice_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Invoice_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Invoice_RecurringAppointmentMasters"); + this.SetRelatedEntity("Invoice_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Invoice_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Lead_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Lead_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Lead_RecurringAppointmentMasters"); + this.SetRelatedEntity("Lead_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Lead_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_createdby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_createdby", null); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_modifiedby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_modifiedby", null); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_RecurringAppointmentMasters"); + this.SetRelatedEntity("msdyn_postalbum_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("msdyn_postalbum_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Opportunity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Opportunity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Opportunity_RecurringAppointmentMasters"); + this.SetRelatedEntity("Opportunity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Opportunity_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 processstage_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_recurringappointmentmasters")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_recurringappointmentmasters + { + get + { + return this.GetRelatedEntity("processstage_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("processstage_recurringappointmentmasters"); + this.SetRelatedEntity("processstage_recurringappointmentmasters", null, value); + this.OnPropertyChanged("processstage_recurringappointmentmasters"); + } + } + + /// + /// N:1 Quote_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Quote_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Quote_RecurringAppointmentMasters"); + this.SetRelatedEntity("Quote_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Quote_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 recurrencerule_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurrencerule_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.RecurrenceRule recurrencerule_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("recurrencerule_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("recurrencerule_recurringappointmentmaster"); + this.SetRelatedEntity("recurrencerule_recurringappointmentmaster", null, value); + this.OnPropertyChanged("recurrencerule_recurringappointmentmaster"); + } + } + + /// + /// N:1 SalesOrder_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("SalesOrder_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_RecurringAppointmentMasters"); + this.SetRelatedEntity("SalesOrder_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("SalesOrder_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 service_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_recurringappointmentmasters")] + public Xrm.Framework.CI.Common.Entities.Service service_recurringappointmentmasters + { + get + { + return this.GetRelatedEntity("service_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("service_recurringappointmentmasters"); + this.SetRelatedEntity("service_recurringappointmentmasters", null, value); + this.OnPropertyChanged("service_recurringappointmentmasters"); + } + } + + /// + /// N:1 team_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.Team team_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("team_recurringappointmentmaster", null); + } + } + + /// + /// N:1 TransactionCurrency_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_RecurringAppointmentMaster")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntity("TransactionCurrency_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_RecurringAppointmentMaster"); + this.SetRelatedEntity("TransactionCurrency_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("TransactionCurrency_RecurringAppointmentMaster"); + } + } + + /// + /// N:1 user_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("user_recurringappointmentmaster", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum RelationshipRoleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Relationship between an account or contact and an opportunity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("relationshiprole")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RelationshipRole : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RelationshipRole() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "relationshiprole"; + + public const int EntityTypeCode = 4500; + + 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 relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the relationship role 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 relationshiprole. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the relationship role 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 relationshiprole. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique Identifier of the organization that this relationship role belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + public System.Nullable RelationshipRoleId + { + get + { + return this.GetAttributeValue>("relationshiproleid"); + } + set + { + this.OnPropertyChanging("RelationshipRoleId"); + this.SetAttributeValue("relationshiproleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RelationshipRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RelationshipRoleId = value; + } + } + + /// + /// Status of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.RelationshipRoleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.RelationshipRoleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the relationship role. + /// + [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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N relationship_role_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable relationship_role_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("relationship_role_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_opportunity_roles"); + this.SetRelatedEntities("relationship_role_customer_opportunity_roles", null, value); + this.OnPropertyChanged("relationship_role_customer_opportunity_roles"); + } + } + + /// + /// 1:N relationship_role_customer_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_role")] + public System.Collections.Generic.IEnumerable relationship_role_customer_role + { + get + { + return this.GetRelatedEntities("relationship_role_customer_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_role"); + this.SetRelatedEntities("relationship_role_customer_role", null, value); + this.OnPropertyChanged("relationship_role_customer_role"); + } + } + + /// + /// 1:N relationship_role_partner_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_partner_role")] + public System.Collections.Generic.IEnumerable relationship_role_partner_role + { + get + { + return this.GetRelatedEntities("relationship_role_partner_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_partner_role"); + this.SetRelatedEntities("relationship_role_partner_role", null, value); + this.OnPropertyChanged("relationship_role_partner_role"); + } + } + + /// + /// 1:N relationship_role_relationship_role_map + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_relationship_role_map")] + public System.Collections.Generic.IEnumerable relationship_role_relationship_role_map + { + get + { + return this.GetRelatedEntities("relationship_role_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("relationship_role_relationship_role_map"); + this.SetRelatedEntities("relationship_role_relationship_role_map", null, value); + this.OnPropertyChanged("relationship_role_relationship_role_map"); + } + } + + /// + /// 1:N RelationshipRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_AsyncOperations")] + public System.Collections.Generic.IEnumerable RelationshipRole_AsyncOperations + { + get + { + return this.GetRelatedEntities("RelationshipRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_AsyncOperations"); + this.SetRelatedEntities("RelationshipRole_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRole_AsyncOperations"); + } + } + + /// + /// 1:N RelationshipRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable RelationshipRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("RelationshipRole_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_BulkDeleteFailures"); + this.SetRelatedEntities("RelationshipRole_BulkDeleteFailures", null, value); + this.OnPropertyChanged("RelationshipRole_BulkDeleteFailures"); + } + } + + /// + /// 1:N RelationshipRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_ProcessSessions")] + public System.Collections.Generic.IEnumerable RelationshipRole_ProcessSessions + { + get + { + return this.GetRelatedEntities("RelationshipRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_ProcessSessions"); + this.SetRelatedEntities("RelationshipRole_ProcessSessions", null, value); + this.OnPropertyChanged("RelationshipRole_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_relationshiprole + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprole")] + public System.Collections.Generic.IEnumerable userentityinstancedata_relationshiprole + { + get + { + return this.GetRelatedEntities("userentityinstancedata_relationshiprole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprole"); + this.SetRelatedEntities("userentityinstancedata_relationshiprole", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprole"); + } + } + + /// + /// N:1 createdby_relationship_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_relationship_role + { + get + { + return this.GetRelatedEntity("createdby_relationship_role", null); + } + } + + /// + /// N:1 lk_relationshiprole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprole_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprole_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_relationshiprole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprole_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_relationship_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_relationship_role + { + get + { + return this.GetRelatedEntity("modifiedby_relationship_role", null); + } + } + + /// + /// N:1 organization_relationship_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_relationship_roles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_relationship_roles + { + get + { + return this.GetRelatedEntity("organization_relationship_roles", null); + } + } + } + + /// + /// Mapping of the primary associated objects between which the relationship role is valid. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("relationshiprolemap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RelationshipRoleMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RelationshipRoleMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "relationshiprolemap"; + + public const int EntityTypeCode = 4501; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type of the associated entity in the relationship role mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associateobjecttypecode")] + public string AssociateObjectTypeCode + { + get + { + return this.GetAttributeValue("associateobjecttypecode"); + } + set + { + this.OnPropertyChanging("AssociateObjectTypeCode"); + this.SetAttributeValue("associateobjecttypecode", value); + this.OnPropertyChanged("AssociateObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user who created the relationship role map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the relationship role map 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 relationshiprolemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the user who last modified the relationship role map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the relationship role map record 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 relationshiprolemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the relationship role map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Type of the primary entity in the relationship role mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + set + { + this.OnPropertyChanging("PrimaryObjectTypeCode"); + this.SetAttributeValue("primaryobjecttypecode", value); + this.OnPropertyChanged("PrimaryObjectTypeCode"); + } + } + + /// + /// Unique identifier of the relationship role. This relationship role is only valid in a relationship between an entity of type specified in the primaryobjecttypecode property and an entity of type specified in the associateobjecttypecode property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + public Microsoft.Xrm.Sdk.EntityReference RelationshipRoleId + { + get + { + return this.GetAttributeValue("relationshiproleid"); + } + set + { + this.OnPropertyChanging("RelationshipRoleId"); + this.SetAttributeValue("relationshiproleid", value); + this.OnPropertyChanged("RelationshipRoleId"); + } + } + + /// + /// Unique identifier of the relationship role map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiprolemapid")] + public System.Nullable RelationshipRoleMapId + { + get + { + return this.GetAttributeValue>("relationshiprolemapid"); + } + set + { + this.OnPropertyChanging("RelationshipRoleMapId"); + this.SetAttributeValue("relationshiprolemapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RelationshipRoleMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiprolemapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RelationshipRoleMapId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N RelationshipRoleMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable RelationshipRoleMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("RelationshipRoleMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRoleMap_AsyncOperations"); + this.SetRelatedEntities("RelationshipRoleMap_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRoleMap_AsyncOperations"); + } + } + + /// + /// 1:N RelationshipRoleMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable RelationshipRoleMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("RelationshipRoleMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("RelationshipRoleMap_BulkDeleteFailures"); + this.SetRelatedEntities("RelationshipRoleMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("RelationshipRoleMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_relationshiprolemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprolemap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_relationshiprolemap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_relationshiprolemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprolemap"); + this.SetRelatedEntities("userentityinstancedata_relationshiprolemap", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprolemap"); + } + } + + /// + /// N:1 createdby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role_map")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_relationship_role_map + { + get + { + return this.GetRelatedEntity("createdby_relationship_role_map", null); + } + } + + /// + /// N:1 lk_relationshiprolemap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprolemap_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprolemap_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_relationshiprolemap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprolemap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprolemap_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role_map")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_relationship_role_map + { + get + { + return this.GetRelatedEntity("modifiedby_relationship_role_map", null); + } + } + + /// + /// N:1 relationship_role_relationship_role_map + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_relationship_role_map")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_relationship_role_map + { + get + { + return this.GetRelatedEntity("relationship_role_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("relationship_role_relationship_role_map"); + this.SetRelatedEntity("relationship_role_relationship_role_map", null, value); + this.OnPropertyChanged("relationship_role_relationship_role_map"); + } + } + } + + /// + /// Data summary in an easy-to-read layout. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("report")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Report : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Report() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "report"; + + public const int EntityTypeCode = 9100; + + 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)); + } + } + + /// + /// Binary report contents (base-64 encoded). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bodybinary")] + public string BodyBinary + { + get + { + return this.GetAttributeValue("bodybinary"); + } + set + { + this.OnPropertyChanging("BodyBinary"); + this.SetAttributeValue("bodybinary", value); + this.OnPropertyChanged("BodyBinary"); + } + } + + /// + /// Text contents of the RDL file for a Reporting Services report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bodytext")] + public string BodyText + { + get + { + return this.GetAttributeValue("bodytext"); + } + set + { + this.OnPropertyChanging("BodyText"); + this.SetAttributeValue("bodytext", value); + this.OnPropertyChanged("BodyText"); + } + } + + /// + /// URL for a linked report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bodyurl")] + public string BodyUrl + { + get + { + return this.GetAttributeValue("bodyurl"); + } + set + { + this.OnPropertyChanging("BodyUrl"); + this.SetAttributeValue("bodyurl", value); + this.OnPropertyChanged("BodyUrl"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report 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 report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// XML used to define a custom report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customreportxml")] + public string CustomReportXml + { + get + { + return this.GetAttributeValue("customreportxml"); + } + } + + /// + /// Default filter for the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilter")] + public string DefaultFilter + { + get + { + return this.GetAttributeValue("defaultfilter"); + } + set + { + this.OnPropertyChanging("DefaultFilter"); + this.SetAttributeValue("defaultfilter", value); + this.OnPropertyChanged("DefaultFilter"); + } + } + + /// + /// Description of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// File name of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information about whether the report is a custom report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomreport")] + public System.Nullable IsCustomReport + { + get + { + return this.GetAttributeValue>("iscustomreport"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether the report is personal or is available to all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispersonal")] + public System.Nullable IsPersonal + { + get + { + return this.GetAttributeValue>("ispersonal"); + } + set + { + this.OnPropertyChanging("IsPersonal"); + this.SetAttributeValue("ispersonal", value); + this.OnPropertyChanged("IsPersonal"); + } + } + + /// + /// Information about whether the report is a scheduled report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isscheduledreport")] + public System.Nullable IsScheduledReport + { + get + { + return this.GetAttributeValue>("isscheduledreport"); + } + } + + /// + /// Language in which the report will be displayed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// MIME type of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report 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 report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Original Text contents of the RDL file for a Reporting Services report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originalbodytext")] + public string OriginalBodyText + { + get + { + return this.GetAttributeValue("originalbodytext"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report. + /// + [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 report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the parent report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentreportid")] + public Microsoft.Xrm.Sdk.EntityReference ParentReportId + { + get + { + return this.GetAttributeValue("parentreportid"); + } + set + { + this.OnPropertyChanging("ParentReportId"); + this.SetAttributeValue("parentreportid", value); + this.OnPropertyChanged("ParentReportId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryinfo")] + public string QueryInfo + { + get + { + return this.GetAttributeValue("queryinfo"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public System.Nullable ReportId + { + get + { + return this.GetAttributeValue>("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportidunique")] + public System.Nullable ReportIdUnique + { + get + { + return this.GetAttributeValue>("reportidunique"); + } + } + + /// + /// Name of the report on SRS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportnameonsrs")] + public string ReportNameOnSRS + { + get + { + return this.GetAttributeValue("reportnameonsrs"); + } + } + + /// + /// Type of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reporttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ReportTypeCode + { + get + { + return this.GetAttributeValue("reporttypecode"); + } + set + { + this.OnPropertyChanging("ReportTypeCode"); + this.SetAttributeValue("reporttypecode", value); + this.OnPropertyChanged("ReportTypeCode"); + } + } + + /// + /// XML used for defining the report schedule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulexml")] + public string ScheduleXml + { + get + { + return this.GetAttributeValue("schedulexml"); + } + } + + /// + /// Report signature date, used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signaturedate")] + public System.Nullable SignatureDate + { + get + { + return this.GetAttributeValue>("signaturedate"); + } + set + { + this.OnPropertyChanging("SignatureDate"); + this.SetAttributeValue("signaturedate", value); + this.OnPropertyChanged("SignatureDate"); + } + } + + /// + /// Unique identifier of the report signature used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signatureid")] + public System.Nullable SignatureId + { + get + { + return this.GetAttributeValue>("signatureid"); + } + set + { + this.OnPropertyChanging("SignatureId"); + this.SetAttributeValue("signatureid", value); + this.OnPropertyChanged("SignatureId"); + } + } + + /// + /// Report signature language code used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signaturelcid")] + public System.Nullable SignatureLcid + { + get + { + return this.GetAttributeValue>("signaturelcid"); + } + set + { + this.OnPropertyChanging("SignatureLcid"); + this.SetAttributeValue("signaturelcid", value); + this.OnPropertyChanged("SignatureLcid"); + } + } + + /// + /// Report signature major version, used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signaturemajorversion")] + public System.Nullable SignatureMajorVersion + { + get + { + return this.GetAttributeValue>("signaturemajorversion"); + } + set + { + this.OnPropertyChanging("SignatureMajorVersion"); + this.SetAttributeValue("signaturemajorversion", value); + this.OnPropertyChanged("SignatureMajorVersion"); + } + } + + /// + /// Report signature minor version, used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signatureminorversion")] + public System.Nullable SignatureMinorVersion + { + get + { + return this.GetAttributeValue>("signatureminorversion"); + } + set + { + this.OnPropertyChanging("SignatureMinorVersion"); + this.SetAttributeValue("signatureminorversion", value); + this.OnPropertyChanged("SignatureMinorVersion"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// 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 of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Report_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_AsyncOperations")] + public System.Collections.Generic.IEnumerable Report_AsyncOperations + { + get + { + return this.GetRelatedEntities("Report_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Report_AsyncOperations"); + this.SetRelatedEntities("Report_AsyncOperations", null, value); + this.OnPropertyChanged("Report_AsyncOperations"); + } + } + + /// + /// 1:N report_parent_report + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedreport_parent_report + { + get + { + return this.GetRelatedEntities("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedreport_parent_report"); + this.SetRelatedEntities("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedreport_parent_report"); + } + } + + /// + /// 1:N Report_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_ProcessSessions")] + public System.Collections.Generic.IEnumerable Report_ProcessSessions + { + get + { + return this.GetRelatedEntities("Report_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Report_ProcessSessions"); + this.SetRelatedEntities("Report_ProcessSessions", null, value); + this.OnPropertyChanged("Report_ProcessSessions"); + } + } + + /// + /// 1:N report_reportcategories + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportcategories")] + public System.Collections.Generic.IEnumerable report_reportcategories + { + get + { + return this.GetRelatedEntities("report_reportcategories", null); + } + set + { + this.OnPropertyChanging("report_reportcategories"); + this.SetRelatedEntities("report_reportcategories", null, value); + this.OnPropertyChanged("report_reportcategories"); + } + } + + /// + /// 1:N report_reportentities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportentities")] + public System.Collections.Generic.IEnumerable report_reportentities + { + get + { + return this.GetRelatedEntities("report_reportentities", null); + } + set + { + this.OnPropertyChanging("report_reportentities"); + this.SetRelatedEntities("report_reportentities", null, value); + this.OnPropertyChanged("report_reportentities"); + } + } + + /// + /// 1:N report_reportlink + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink")] + public System.Collections.Generic.IEnumerable report_reportlink + { + get + { + return this.GetRelatedEntities("report_reportlink", null); + } + set + { + this.OnPropertyChanging("report_reportlink"); + this.SetRelatedEntities("report_reportlink", null, value); + this.OnPropertyChanged("report_reportlink"); + } + } + + /// + /// 1:N report_reportlink_sub + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink_sub")] + public System.Collections.Generic.IEnumerable report_reportlink_sub + { + get + { + return this.GetRelatedEntities("report_reportlink_sub", null); + } + set + { + this.OnPropertyChanging("report_reportlink_sub"); + this.SetRelatedEntities("report_reportlink_sub", null, value); + this.OnPropertyChanged("report_reportlink_sub"); + } + } + + /// + /// 1:N report_reportvisibility + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportvisibility")] + public System.Collections.Generic.IEnumerable report_reportvisibility + { + get + { + return this.GetRelatedEntities("report_reportvisibility", null); + } + set + { + this.OnPropertyChanging("report_reportvisibility"); + this.SetRelatedEntities("report_reportvisibility", null, value); + this.OnPropertyChanged("report_reportvisibility"); + } + } + + /// + /// 1:N userentityinstancedata_report + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_report")] + public System.Collections.Generic.IEnumerable userentityinstancedata_report + { + get + { + return this.GetRelatedEntities("userentityinstancedata_report", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_report"); + this.SetRelatedEntities("userentityinstancedata_report", null, value); + this.OnPropertyChanged("userentityinstancedata_report"); + } + } + + /// + /// N:1 business_unit_reports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_reports")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_reports + { + get + { + return this.GetRelatedEntity("business_unit_reports", null); + } + } + + /// + /// N:1 lk_report_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_report_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_report_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_report_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_report_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_report_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportbase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportbase_createdby", null); + } + } + + /// + /// N:1 lk_reportbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportbase_modifiedby", null); + } + } + + /// + /// N:1 report_parent_report + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentreportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Report Referencingreport_parent_report + { + get + { + return this.GetRelatedEntity("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingreport_parent_report"); + this.SetRelatedEntity("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingreport_parent_report"); + } + } + } + + /// + /// Categories related to a report. A report can be related to multiple categories. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportcategory")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportCategory : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportCategory() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportcategory"; + + public const int EntityTypeCode = 9102; + + 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)); + } + } + + /// + /// Category of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("categorycode")] + public Microsoft.Xrm.Sdk.OptionSetValue CategoryCode + { + get + { + return this.GetAttributeValue("categorycode"); + } + set + { + this.OnPropertyChanging("CategoryCode"); + this.SetAttributeValue("categorycode", value); + this.OnPropertyChanged("CategoryCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report category 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 report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Exchange rate for the currency associated with the report category with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report category 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 report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportcategoryid")] + public System.Nullable ReportCategoryId + { + get + { + return this.GetAttributeValue>("reportcategoryid"); + } + set + { + this.OnPropertyChanging("ReportCategoryId"); + this.SetAttributeValue("reportcategoryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportCategoryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportcategoryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportCategoryId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportcategoryidunique")] + public System.Nullable ReportCategoryIdUnique + { + get + { + return this.GetAttributeValue>("reportcategoryidunique"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// 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 Report category. + /// + [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 of the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N reportcategory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("reportcategory_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable reportcategory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("reportcategory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("reportcategory_principalobjectattributeaccess"); + this.SetRelatedEntities("reportcategory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("reportcategory_principalobjectattributeaccess"); + } + } + + /// + /// 1:N userentityinstancedata_reportcategory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportcategory")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportcategory + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportcategory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportcategory"); + this.SetRelatedEntities("userentityinstancedata_reportcategory", null, value); + this.OnPropertyChanged("userentityinstancedata_reportcategory"); + } + } + + /// + /// N:1 lk_reportcategory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategory_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportcategory_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportcategory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportcategory_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportcategorybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategorybase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportcategorybase_createdby", null); + } + } + + /// + /// N:1 lk_reportcategorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategorybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportcategorybase_modifiedby", null); + } + } + + /// + /// N:1 report_reportcategories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportcategories")] + public Xrm.Framework.CI.Common.Entities.Report report_reportcategories + { + get + { + return this.GetRelatedEntity("report_reportcategories", null); + } + set + { + this.OnPropertyChanging("report_reportcategories"); + this.SetRelatedEntity("report_reportcategories", null, value); + this.OnPropertyChanged("report_reportcategories"); + } + } + + /// + /// N:1 TransactionCurrency_ReportCategory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ReportCategory")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ReportCategory + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ReportCategory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ReportCategory"); + this.SetRelatedEntity("TransactionCurrency_ReportCategory", null, value); + this.OnPropertyChanged("TransactionCurrency_ReportCategory"); + } + } + } + + /// + /// Entities related to a report. A report can be related to multiple entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportentity")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportEntity : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportEntity() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportentity"; + + public const int EntityTypeCode = 9101; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report 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 reportentity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information about whether the report is filterable. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfilterable")] + public System.Nullable IsFilterable + { + get + { + return this.GetAttributeValue>("isfilterable"); + } + set + { + this.OnPropertyChanging("IsFilterable"); + this.SetAttributeValue("isfilterable", value); + this.OnPropertyChanged("IsFilterable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report record 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 reportentity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Type of record with which the report is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportentityid")] + public System.Nullable ReportEntityId + { + get + { + return this.GetAttributeValue>("reportentityid"); + } + set + { + this.OnPropertyChanging("ReportEntityId"); + this.SetAttributeValue("reportentityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportEntityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportentityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportEntityId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportentityidunique")] + public System.Nullable ReportEntityIdUnique + { + get + { + return this.GetAttributeValue>("reportentityidunique"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_reportentity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportentity")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportentity + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportentity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportentity"); + this.SetRelatedEntities("userentityinstancedata_reportentity", null, value); + this.OnPropertyChanged("userentityinstancedata_reportentity"); + } + } + + /// + /// N:1 lk_reportentity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentity_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportentity_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportentity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportentity_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportentitybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentitybase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportentitybase_createdby", null); + } + } + + /// + /// N:1 lk_reportentitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentitybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportentitybase_modifiedby", null); + } + } + + /// + /// N:1 report_reportentities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportentities")] + public Xrm.Framework.CI.Common.Entities.Report report_reportentities + { + get + { + return this.GetRelatedEntity("report_reportentities", null); + } + set + { + this.OnPropertyChanging("report_reportentities"); + this.SetRelatedEntity("report_reportentities", null, value); + this.OnPropertyChanged("report_reportentities"); + } + } + } + + /// + /// Links and dependencies between reports. A report may drill through to another report, or it may have another report as a sub-report. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportlink")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportLink : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportLink() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportlink"; + + public const int EntityTypeCode = 9104; + + 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 report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report link 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 reportlink. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the linked report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linkedreportid")] + public Microsoft.Xrm.Sdk.EntityReference LinkedReportId + { + get + { + return this.GetAttributeValue("linkedreportid"); + } + set + { + this.OnPropertyChanging("LinkedReportId"); + this.SetAttributeValue("linkedreportid", value); + this.OnPropertyChanged("LinkedReportId"); + } + } + + /// + /// Name of the linked report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linkedreportname")] + public string LinkedReportName + { + get + { + return this.GetAttributeValue("linkedreportname"); + } + set + { + this.OnPropertyChanging("LinkedReportName"); + this.SetAttributeValue("linkedreportname", value); + this.OnPropertyChanged("LinkedReportName"); + } + } + + /// + /// Link type of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linktypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LinkTypeCode + { + get + { + return this.GetAttributeValue("linktypecode"); + } + set + { + this.OnPropertyChanging("LinkTypeCode"); + this.SetAttributeValue("linktypecode", value); + this.OnPropertyChanged("LinkTypeCode"); + } + } + + /// + /// Unique identifier of the user who last modified the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report link 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 reportlink. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the main report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportlinkid")] + public System.Nullable ReportLinkId + { + get + { + return this.GetAttributeValue>("reportlinkid"); + } + set + { + this.OnPropertyChanging("ReportLinkId"); + this.SetAttributeValue("reportlinkid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportLinkId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportlinkid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportLinkId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportlinkidunique")] + public System.Nullable ReportLinkIdUnique + { + get + { + return this.GetAttributeValue>("reportlinkidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_reportlink + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportlink")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportlink + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportlink", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportlink"); + this.SetRelatedEntities("userentityinstancedata_reportlink", null, value); + this.OnPropertyChanged("userentityinstancedata_reportlink"); + } + } + + /// + /// N:1 lk_reportlink_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlink_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportlink_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportlink_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlink_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportlink_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportlinkbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlinkbase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportlinkbase_createdby", null); + } + } + + /// + /// N:1 lk_reportlinkbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlinkbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportlinkbase_modifiedby", null); + } + } + + /// + /// N:1 report_reportlink + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink")] + public Xrm.Framework.CI.Common.Entities.Report report_reportlink + { + get + { + return this.GetRelatedEntity("report_reportlink", null); + } + set + { + this.OnPropertyChanging("report_reportlink"); + this.SetRelatedEntity("report_reportlink", null, value); + this.OnPropertyChanged("report_reportlink"); + } + } + + /// + /// N:1 report_reportlink_sub + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linkedreportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink_sub")] + public Xrm.Framework.CI.Common.Entities.Report report_reportlink_sub + { + get + { + return this.GetRelatedEntity("report_reportlink_sub", null); + } + set + { + this.OnPropertyChanging("report_reportlink_sub"); + this.SetRelatedEntity("report_reportlink_sub", null, value); + this.OnPropertyChanged("report_reportlink_sub"); + } + } + } + + /// + /// Area in which to show a report. A report can be shown in multiple areas. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportvisibility")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportVisibility : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportVisibility() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportvisibility"; + + public const int EntityTypeCode = 9103; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report visibility 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 reportvisibility. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report visibility record 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 reportvisibility. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report visibility. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportvisibilityid")] + public System.Nullable ReportVisibilityId + { + get + { + return this.GetAttributeValue>("reportvisibilityid"); + } + set + { + this.OnPropertyChanging("ReportVisibilityId"); + this.SetAttributeValue("reportvisibilityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportVisibilityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportvisibilityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportVisibilityId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportvisibilityidunique")] + public System.Nullable ReportVisibilityIdUnique + { + get + { + return this.GetAttributeValue>("reportvisibilityidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type of visibility of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("visibilitycode")] + public Microsoft.Xrm.Sdk.OptionSetValue VisibilityCode + { + get + { + return this.GetAttributeValue("visibilitycode"); + } + set + { + this.OnPropertyChanging("VisibilityCode"); + this.SetAttributeValue("visibilitycode", value); + this.OnPropertyChanged("VisibilityCode"); + } + } + + /// + /// 1:N userentityinstancedata_reportvisibility + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportvisibility")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportvisibility + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportvisibility", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportvisibility"); + this.SetRelatedEntities("userentityinstancedata_reportvisibility", null, value); + this.OnPropertyChanged("userentityinstancedata_reportvisibility"); + } + } + + /// + /// N:1 lk_reportvisibility_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibility_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportvisibility_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportvisibility_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibility_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportvisibility_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportvisibilitybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibilitybase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportvisibilitybase_createdby", null); + } + } + + /// + /// N:1 lk_reportvisibilitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibilitybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportvisibilitybase_modifiedby", null); + } + } + + /// + /// N:1 report_reportvisibility + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportvisibility")] + public Xrm.Framework.CI.Common.Entities.Report report_reportvisibility + { + get + { + return this.GetRelatedEntity("report_reportvisibility", null); + } + set + { + this.OnPropertyChanging("report_reportvisibility"); + this.SetRelatedEntity("report_reportvisibility", null, value); + this.OnPropertyChanged("report_reportvisibility"); + } + } + } + + /// + /// User or facility/equipment that can be scheduled for a service. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("resource")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Resource : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Resource() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "resource"; + + public const int EntityTypeCode = 4002; + + 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 business unit with which the resource is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the calendar for the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public System.Nullable CalendarId + { + get + { + return this.GetAttributeValue>("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the resource is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + set + { + this.OnPropertyChanging("IsDisabled"); + this.SetAttributeValue("isdisabled", value); + this.OnPropertyChanged("IsDisabled"); + } + } + + /// + /// Name of the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of entity with which the resource is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization with which the resource is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + public System.Nullable ResourceId + { + get + { + return this.GetAttributeValue>("resourceid"); + } + set + { + this.OnPropertyChanging("ResourceId"); + this.SetAttributeValue("resourceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ResourceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ResourceId = value; + } + } + + /// + /// Unique identifier of the site at which the resource is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Version number of the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Resource_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_AsyncOperations")] + public System.Collections.Generic.IEnumerable Resource_AsyncOperations + { + get + { + return this.GetRelatedEntities("Resource_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Resource_AsyncOperations"); + this.SetRelatedEntities("Resource_AsyncOperations", null, value); + this.OnPropertyChanged("Resource_AsyncOperations"); + } + } + + /// + /// 1:N Resource_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Resource_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Resource_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Resource_BulkDeleteFailures"); + this.SetRelatedEntities("Resource_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Resource_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_resource + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resource")] + public System.Collections.Generic.IEnumerable userentityinstancedata_resource + { + get + { + return this.GetRelatedEntities("userentityinstancedata_resource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resource"); + this.SetRelatedEntities("userentityinstancedata_resource", null, value); + this.OnPropertyChanged("userentityinstancedata_resource"); + } + } + + /// + /// N:1 business_unit_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resources")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_resources + { + get + { + return this.GetRelatedEntity("business_unit_resources", null); + } + set + { + this.OnPropertyChanging("business_unit_resources"); + this.SetRelatedEntity("business_unit_resources", null, value); + this.OnPropertyChanged("business_unit_resources"); + } + } + + /// + /// N:1 equipment_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_resources")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_resources + { + get + { + return this.GetRelatedEntity("equipment_resources", null); + } + set + { + this.OnPropertyChanging("equipment_resources"); + this.SetRelatedEntity("equipment_resources", null, value); + this.OnPropertyChanged("equipment_resources"); + } + } + + /// + /// N:1 organization_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resources")] + public Xrm.Framework.CI.Common.Entities.Organization organization_resources + { + get + { + return this.GetRelatedEntity("organization_resources", null); + } + } + + /// + /// N:1 resourcespec_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcespec_resources")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec resourcespec_resources + { + get + { + return this.GetRelatedEntity("resourcespec_resources", null); + } + set + { + this.OnPropertyChanging("resourcespec_resources"); + this.SetRelatedEntity("resourcespec_resources", null, value); + this.OnPropertyChanged("resourcespec_resources"); + } + } + + /// + /// N:1 site_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_resources")] + public Xrm.Framework.CI.Common.Entities.Site site_resources + { + get + { + return this.GetRelatedEntity("site_resources", null); + } + set + { + this.OnPropertyChanging("site_resources"); + this.SetRelatedEntity("site_resources", null, value); + this.OnPropertyChanged("site_resources"); + } + } + + /// + /// N:1 systemuser_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_resources")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_resources + { + get + { + return this.GetRelatedEntity("systemuser_resources", null); + } + set + { + this.OnPropertyChanging("systemuser_resources"); + this.SetRelatedEntity("systemuser_resources", null, value); + this.OnPropertyChanged("systemuser_resources"); + } + } + } + + /// + /// Resource group or team whose members can be scheduled for a service. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("resourcegroup")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ResourceGroup : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ResourceGroup() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "resourcegroup"; + + public const int EntityTypeCode = 4005; + + 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 business unit with which the scheduling group is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Scheduling group type code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("grouptypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue GroupTypeCode + { + get + { + return this.GetAttributeValue("grouptypecode"); + } + } + + /// + /// Name of the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of entity with which the scheduling group is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization associated with the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + public System.Nullable ResourceGroupId + { + get + { + return this.GetAttributeValue>("resourcegroupid"); + } + set + { + this.OnPropertyChanging("ResourceGroupId"); + this.SetAttributeValue("resourcegroupid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ResourceGroupId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ResourceGroupId = value; + } + } + + /// + /// Version number of the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ResourceGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_AsyncOperations")] + public System.Collections.Generic.IEnumerable ResourceGroup_AsyncOperations + { + get + { + return this.GetRelatedEntities("ResourceGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_AsyncOperations"); + this.SetRelatedEntities("ResourceGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceGroup_AsyncOperations"); + } + } + + /// + /// 1:N ResourceGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ResourceGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ResourceGroup_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_BulkDeleteFailures"); + this.SetRelatedEntities("ResourceGroup_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ResourceGroup_BulkDeleteFailures"); + } + } + + /// + /// 1:N resourcegroup_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections1")] + public System.Collections.Generic.IEnumerable resourcegroup_connections1 + { + get + { + return this.GetRelatedEntities("resourcegroup_connections1", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections1"); + this.SetRelatedEntities("resourcegroup_connections1", null, value); + this.OnPropertyChanged("resourcegroup_connections1"); + } + } + + /// + /// 1:N resourcegroup_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections2")] + public System.Collections.Generic.IEnumerable resourcegroup_connections2 + { + get + { + return this.GetRelatedEntities("resourcegroup_connections2", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections2"); + this.SetRelatedEntities("resourcegroup_connections2", null, value); + this.OnPropertyChanged("resourcegroup_connections2"); + } + } + + /// + /// 1:N ResourceGroup_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable ResourceGroup_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("ResourceGroup_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_DuplicateBaseRecord"); + this.SetRelatedEntities("ResourceGroup_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("ResourceGroup_DuplicateBaseRecord"); + } + } + + /// + /// 1:N ResourceGroup_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable ResourceGroup_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("ResourceGroup_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_DuplicateMatchingRecord"); + this.SetRelatedEntities("ResourceGroup_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("ResourceGroup_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N userentityinstancedata_resourcegroup + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcegroup")] + public System.Collections.Generic.IEnumerable userentityinstancedata_resourcegroup + { + get + { + return this.GetRelatedEntities("userentityinstancedata_resourcegroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcegroup"); + this.SetRelatedEntities("userentityinstancedata_resourcegroup", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcegroup"); + } + } + + /// + /// N:1 business_unit_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_groups")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_resource_groups + { + get + { + return this.GetRelatedEntity("business_unit_resource_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_groups"); + this.SetRelatedEntity("business_unit_resource_groups", null, value); + this.OnPropertyChanged("business_unit_resource_groups"); + } + } + + /// + /// N:1 constraintbasedgroup_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_resource_groups")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraintbasedgroup_resource_groups + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_resource_groups", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_resource_groups"); + this.SetRelatedEntity("constraintbasedgroup_resource_groups", null, value); + this.OnPropertyChanged("constraintbasedgroup_resource_groups"); + } + } + + /// + /// N:1 organization_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_groups")] + public Xrm.Framework.CI.Common.Entities.Organization organization_resource_groups + { + get + { + return this.GetRelatedEntity("organization_resource_groups", null); + } + } + + /// + /// N:1 team_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_groups")] + public Xrm.Framework.CI.Common.Entities.Team team_resource_groups + { + get + { + return this.GetRelatedEntity("team_resource_groups", null); + } + set + { + this.OnPropertyChanging("team_resource_groups"); + this.SetRelatedEntity("team_resource_groups", null, value); + this.OnPropertyChanged("team_resource_groups"); + } + } + } + + /// + /// Selection rule that allows the scheduling engine to select a number of resources from a pool of resources. The rules can be associated with a service. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("resourcespec")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ResourceSpec : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ResourceSpec() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "resourcespec"; + + public const int EntityTypeCode = 4006; + + 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 business unit with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Additional constraints, specified as expressions, which are used to filter a set of valid resources. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraints")] + public string Constraints + { + get + { + return this.GetAttributeValue("constraints"); + } + set + { + this.OnPropertyChanging("Constraints"); + this.SetAttributeValue("constraints", value); + this.OnPropertyChanged("Constraints"); + } + } + + /// + /// Unique identifier of the user who created the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the resource specification 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 resourcespec. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Selection rule that allows the scheduling engine to select a number of resources from a pool of resources. The rules can be associated with a service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Number that specifies the minimal effort required from resources. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effortrequired")] + public System.Nullable EffortRequired + { + get + { + return this.GetAttributeValue>("effortrequired"); + } + set + { + this.OnPropertyChanging("EffortRequired"); + this.SetAttributeValue("effortrequired", value); + this.OnPropertyChanged("EffortRequired"); + } + } + + /// + /// Unique identifier of the scheduling group with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupobjectid")] + public System.Nullable GroupObjectId + { + get + { + return this.GetAttributeValue>("groupobjectid"); + } + set + { + this.OnPropertyChanging("GroupObjectId"); + this.SetAttributeValue("groupobjectid", value); + this.OnPropertyChanged("GroupObjectId"); + } + } + + /// + /// Unique identifier of the user who last modified the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the resource specification 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 resourcespec. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Search strategy to use for the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectiveexpression")] + public string ObjectiveExpression + { + get + { + return this.GetAttributeValue("objectiveexpression"); + } + set + { + this.OnPropertyChanging("ObjectiveExpression"); + this.SetAttributeValue("objectiveexpression", value); + this.OnPropertyChanged("ObjectiveExpression"); + } + } + + /// + /// Type of entity with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Required number of resources that must be available. Use -1 to indicate all resources. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcount")] + public System.Nullable RequiredCount + { + get + { + return this.GetAttributeValue>("requiredcount"); + } + set + { + this.OnPropertyChanging("RequiredCount"); + this.SetAttributeValue("requiredcount", value); + this.OnPropertyChanged("RequiredCount"); + } + } + + /// + /// Unique identifier of the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public System.Nullable ResourceSpecId + { + get + { + return this.GetAttributeValue>("resourcespecid"); + } + set + { + this.OnPropertyChanging("ResourceSpecId"); + this.SetAttributeValue("resourcespecid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ResourceSpecId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ResourceSpecId = value; + } + } + + /// + /// Value that specifies that all valid and available resources must be in the same site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("samesite")] + public System.Nullable SameSite + { + get + { + return this.GetAttributeValue>("samesite"); + } + set + { + this.OnPropertyChanging("SameSite"); + this.SetAttributeValue("samesite", value); + this.OnPropertyChanged("SameSite"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ActivityPartyResourceSpec + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPartyResourceSpec")] + public System.Collections.Generic.IEnumerable ActivityPartyResourceSpec + { + get + { + return this.GetRelatedEntities("ActivityPartyResourceSpec", null); + } + set + { + this.OnPropertyChanging("ActivityPartyResourceSpec"); + this.SetRelatedEntities("ActivityPartyResourceSpec", null, value); + this.OnPropertyChanged("ActivityPartyResourceSpec"); + } + } + + /// + /// 1:N resource_spec_services + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resource_spec_services")] + public System.Collections.Generic.IEnumerable resource_spec_services + { + get + { + return this.GetRelatedEntities("resource_spec_services", null); + } + set + { + this.OnPropertyChanging("resource_spec_services"); + this.SetRelatedEntities("resource_spec_services", null, value); + this.OnPropertyChanged("resource_spec_services"); + } + } + + /// + /// 1:N ResourceSpec_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_Annotation")] + public System.Collections.Generic.IEnumerable ResourceSpec_Annotation + { + get + { + return this.GetRelatedEntities("ResourceSpec_Annotation", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_Annotation"); + this.SetRelatedEntities("ResourceSpec_Annotation", null, value); + this.OnPropertyChanged("ResourceSpec_Annotation"); + } + } + + /// + /// 1:N ResourceSpec_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_AsyncOperations")] + public System.Collections.Generic.IEnumerable ResourceSpec_AsyncOperations + { + get + { + return this.GetRelatedEntities("ResourceSpec_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_AsyncOperations"); + this.SetRelatedEntities("ResourceSpec_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceSpec_AsyncOperations"); + } + } + + /// + /// 1:N ResourceSpec_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ResourceSpec_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ResourceSpec_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_BulkDeleteFailures"); + this.SetRelatedEntities("ResourceSpec_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ResourceSpec_BulkDeleteFailures"); + } + } + + /// + /// 1:N resourcespec_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcespec_resources")] + public System.Collections.Generic.IEnumerable resourcespec_resources + { + get + { + return this.GetRelatedEntities("resourcespec_resources", null); + } + set + { + this.OnPropertyChanging("resourcespec_resources"); + this.SetRelatedEntities("resourcespec_resources", null, value); + this.OnPropertyChanged("resourcespec_resources"); + } + } + + /// + /// 1:N userentityinstancedata_resourcespec + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcespec")] + public System.Collections.Generic.IEnumerable userentityinstancedata_resourcespec + { + get + { + return this.GetRelatedEntities("userentityinstancedata_resourcespec", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcespec"); + this.SetRelatedEntities("userentityinstancedata_resourcespec", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcespec"); + } + } + + /// + /// N:1 business_unit_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_specs")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_resource_specs + { + get + { + return this.GetRelatedEntity("business_unit_resource_specs", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_specs"); + this.SetRelatedEntity("business_unit_resource_specs", null, value); + this.OnPropertyChanged("business_unit_resource_specs"); + } + } + + /// + /// N:1 constraint_based_group_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraint_based_group_resource_specs")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraint_based_group_resource_specs + { + get + { + return this.GetRelatedEntity("constraint_based_group_resource_specs", null); + } + set + { + this.OnPropertyChanging("constraint_based_group_resource_specs"); + this.SetRelatedEntity("constraint_based_group_resource_specs", null, value); + this.OnPropertyChanged("constraint_based_group_resource_specs"); + } + } + + /// + /// N:1 lk_resourcespec_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_createdby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_createdby", null); + } + } + + /// + /// N:1 lk_resourcespec_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_resourcespec_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_modifiedby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_modifiedby", null); + } + } + + /// + /// N:1 lk_resourcespec_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_specs")] + public Xrm.Framework.CI.Common.Entities.Organization organization_resource_specs + { + get + { + return this.GetRelatedEntity("organization_resource_specs", null); + } + } + + /// + /// N:1 team_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_specs")] + public Xrm.Framework.CI.Common.Entities.Team team_resource_specs + { + get + { + return this.GetRelatedEntity("team_resource_specs", null); + } + set + { + this.OnPropertyChanging("team_resource_specs"); + this.SetRelatedEntity("team_resource_specs", null, value); + this.OnPropertyChanged("team_resource_specs"); + } + } + } + + /// + /// Ribbon customizations for the application ribbon and entity ribbon templates. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ribboncustomization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RibbonCustomization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RibbonCustomization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "ribboncustomization"; + + public const int EntityTypeCode = 1120; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Specifies which entity's ribbons this customization applies to. If null, then the customizations apply to the global ribbons. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entity")] + public string Entity + { + get + { + return this.GetAttributeValue("entity"); + } + set + { + this.OnPropertyChanging("Entity"); + this.SetAttributeValue("entity", value); + this.OnPropertyChanged("Entity"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publishedon")] + public System.Nullable PublishedOn + { + get + { + return this.GetAttributeValue>("publishedon"); + } + } + + /// + /// Unique identifier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ribboncustomizationid")] + public System.Nullable RibbonCustomizationId + { + get + { + return this.GetAttributeValue>("ribboncustomizationid"); + } + set + { + this.OnPropertyChanging("RibbonCustomizationId"); + this.SetAttributeValue("ribboncustomizationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RibbonCustomizationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ribboncustomizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RibbonCustomizationId = value; + } + } + + /// + /// Unique identifier for this row. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ribboncustomizationuniqueid")] + public System.Nullable RibbonCustomizationUniqueId + { + get + { + return this.GetAttributeValue>("ribboncustomizationuniqueid"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Represents a version of customizations to be synchronized with the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_ribboncustomization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ribboncustomization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_ribboncustomization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_ribboncustomization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ribboncustomization"); + this.SetRelatedEntities("userentityinstancedata_ribboncustomization", null, value); + this.OnPropertyChanged("userentityinstancedata_ribboncustomization"); + } + } + + /// + /// N:1 organization_ribbon_customization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_ribbon_customization")] + public Xrm.Framework.CI.Common.Entities.Organization organization_ribbon_customization + { + get + { + return this.GetRelatedEntity("organization_ribbon_customization", null); + } + } + } + + /// + /// Grouping of security privileges. Users are assigned roles that authorize their access to the Microsoft CRM system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("role")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Role : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Role() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "role"; + + public const int EntityTypeCode = 1036; + + 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 business unit with which the role is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the role 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 role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the role 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 role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the parent role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentroleid")] + public Microsoft.Xrm.Sdk.EntityReference ParentRoleId + { + get + { + return this.GetAttributeValue("parentroleid"); + } + } + + /// + /// Unique identifier of the parent root role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentrootroleid")] + public Microsoft.Xrm.Sdk.EntityReference ParentRootRoleId + { + get + { + return this.GetAttributeValue("parentrootroleid"); + } + } + + /// + /// Unique identifier of the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + set + { + this.OnPropertyChanging("RoleId"); + this.SetAttributeValue("roleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RoleId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleidunique")] + public System.Nullable RoleIdUnique + { + get + { + return this.GetAttributeValue>("roleidunique"); + } + } + + /// + /// Unique identifier of the role template that is associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateid")] + public Microsoft.Xrm.Sdk.EntityReference RoleTemplateId + { + get + { + return this.GetAttributeValue("roletemplateid"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Version number of the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_AsyncOperations")] + public System.Collections.Generic.IEnumerable Role_AsyncOperations + { + get + { + return this.GetRelatedEntities("Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Role_AsyncOperations"); + this.SetRelatedEntities("Role_AsyncOperations", null, value); + this.OnPropertyChanged("Role_AsyncOperations"); + } + } + + /// + /// 1:N Role_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Role_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Role_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Role_BulkDeleteFailures"); + this.SetRelatedEntities("Role_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Role_BulkDeleteFailures"); + } + } + + /// + /// 1:N role_parent_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedrole_parent_role + { + get + { + return this.GetRelatedEntities("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedrole_parent_role"); + this.SetRelatedEntities("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedrole_parent_role"); + } + } + + /// + /// 1:N role_parent_root_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedrole_parent_root_role + { + get + { + return this.GetRelatedEntities("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedrole_parent_root_role"); + this.SetRelatedEntities("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedrole_parent_root_role"); + } + } + + /// + /// 1:N userentityinstancedata_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_role")] + public System.Collections.Generic.IEnumerable userentityinstancedata_role + { + get + { + return this.GetRelatedEntities("userentityinstancedata_role", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_role"); + this.SetRelatedEntities("userentityinstancedata_role", null, value); + this.OnPropertyChanged("userentityinstancedata_role"); + } + } + + /// + /// N:N roleprivileges_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("roleprivileges_association")] + public System.Collections.Generic.IEnumerable roleprivileges_association + { + get + { + return this.GetRelatedEntities("roleprivileges_association", null); + } + set + { + this.OnPropertyChanging("roleprivileges_association"); + this.SetRelatedEntities("roleprivileges_association", null, value); + this.OnPropertyChanged("roleprivileges_association"); + } + } + + /// + /// N:N systemuserroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserroles_association")] + public System.Collections.Generic.IEnumerable systemuserroles_association + { + get + { + return this.GetRelatedEntities("systemuserroles_association", null); + } + set + { + this.OnPropertyChanging("systemuserroles_association"); + this.SetRelatedEntities("systemuserroles_association", null, value); + this.OnPropertyChanged("systemuserroles_association"); + } + } + + /// + /// N:N teamroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamroles_association")] + public System.Collections.Generic.IEnumerable teamroles_association + { + get + { + return this.GetRelatedEntities("teamroles_association", null); + } + set + { + this.OnPropertyChanging("teamroles_association"); + this.SetRelatedEntities("teamroles_association", null, value); + this.OnPropertyChanged("teamroles_association"); + } + } + + /// + /// N:1 business_unit_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_roles")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_roles + { + get + { + return this.GetRelatedEntity("business_unit_roles", null); + } + set + { + this.OnPropertyChanging("business_unit_roles"); + this.SetRelatedEntity("business_unit_roles", null, value); + this.OnPropertyChanged("business_unit_roles"); + } + } + + /// + /// N:1 lk_role_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_role_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_role_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_role_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_role_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_role_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_rolebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rolebase_createdby + { + get + { + return this.GetRelatedEntity("lk_rolebase_createdby", null); + } + } + + /// + /// N:1 lk_rolebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rolebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_rolebase_modifiedby", null); + } + } + + /// + /// N:1 organization_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_roles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_roles + { + get + { + return this.GetRelatedEntity("organization_roles", null); + } + } + + /// + /// N:1 role_parent_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Role Referencingrole_parent_role + { + get + { + return this.GetRelatedEntity("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 role_parent_root_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentrootroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Role Referencingrole_parent_root_role + { + get + { + return this.GetRelatedEntity("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + } + + /// + /// Group of privileges used to categorize users to provide appropriate access to entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("roleprivileges")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RolePrivileges : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RolePrivileges() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "roleprivileges"; + + public const int EntityTypeCode = 12; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// System-generated attribute that stores the privileges associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegedepthmask")] + public System.Nullable PrivilegeDepthMask + { + get + { + return this.GetAttributeValue>("privilegedepthmask"); + } + set + { + this.OnPropertyChanging("PrivilegeDepthMask"); + this.SetAttributeValue("privilegedepthmask", value); + this.OnPropertyChanged("PrivilegeDepthMask"); + } + } + + /// + /// Unique identifier of the privilege associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public System.Nullable PrivilegeId + { + get + { + return this.GetAttributeValue>("privilegeid"); + } + } + + /// + /// Unique identifier of the role that is associated with the role privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + } + + /// + /// Unique identifier of the role privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleprivilegeid")] + public System.Nullable RolePrivilegeId + { + get + { + return this.GetAttributeValue>("roleprivilegeid"); + } + set + { + this.OnPropertyChanging("RolePrivilegeId"); + this.SetAttributeValue("roleprivilegeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RolePrivilegeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleprivilegeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RolePrivilegeId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleprivilegeidunique")] + public System.Nullable RolePrivilegeIdUnique + { + get + { + return this.GetAttributeValue>("roleprivilegeidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N roleprivileges_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("roleprivileges_association")] + public System.Collections.Generic.IEnumerable roleprivileges_association + { + get + { + return this.GetRelatedEntities("roleprivileges_association", null); + } + set + { + this.OnPropertyChanging("roleprivileges_association"); + this.SetRelatedEntities("roleprivileges_association", null, value); + this.OnPropertyChanged("roleprivileges_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("roletemplateprivileges")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RoleTemplatePrivileges : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RoleTemplatePrivileges() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "roletemplateprivileges"; + + public const int EntityTypeCode = 28; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about whether the role in the template applies to the user, the user's team, or objects shared by the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isbasic")] + public System.Nullable IsBasic + { + get + { + return this.GetAttributeValue>("isbasic"); + } + set + { + this.OnPropertyChanging("IsBasic"); + this.SetAttributeValue("isbasic", value); + this.OnPropertyChanged("IsBasic"); + } + } + + /// + /// Information about whether the role in the template applies to child business units of the business unit associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdeep")] + public System.Nullable IsDeep + { + get + { + return this.GetAttributeValue>("isdeep"); + } + set + { + this.OnPropertyChanging("IsDeep"); + this.SetAttributeValue("isdeep", value); + this.OnPropertyChanged("IsDeep"); + } + } + + /// + /// Information about whether the role in the template applies to the entire organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isglobal")] + public System.Nullable IsGlobal + { + get + { + return this.GetAttributeValue>("isglobal"); + } + set + { + this.OnPropertyChanging("IsGlobal"); + this.SetAttributeValue("isglobal", value); + this.OnPropertyChanged("IsGlobal"); + } + } + + /// + /// Information about whether the role in the template applies to the user's business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islocal")] + public System.Nullable IsLocal + { + get + { + return this.GetAttributeValue>("islocal"); + } + set + { + this.OnPropertyChanging("IsLocal"); + this.SetAttributeValue("islocal", value); + this.OnPropertyChanged("IsLocal"); + } + } + + /// + /// Unique identifier of the privilege assigned to the role template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public System.Nullable PrivilegeId + { + get + { + return this.GetAttributeValue>("privilegeid"); + } + } + + /// + /// Unique identifier of the role template that is associated with the role privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateid")] + public System.Nullable RoleTemplateId + { + get + { + return this.GetAttributeValue>("roletemplateid"); + } + } + + /// + /// Unique identifier of the role template privileges. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateprivilegeid")] + public System.Nullable RoleTemplatePrivilegeId + { + get + { + return this.GetAttributeValue>("roletemplateprivilegeid"); + } + set + { + this.OnPropertyChanging("RoleTemplatePrivilegeId"); + this.SetAttributeValue("roletemplateprivilegeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RoleTemplatePrivilegeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateprivilegeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RoleTemplatePrivilegeId = value; + } + } + } + + /// + /// Field to be rolled up to calculate the actual and in-progress values against the goal. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("rollupfield")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RollupField : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RollupField() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "rollupfield"; + + public const int EntityTypeCode = 9604; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select a date field for the selected record type, such as Actual Closed Date for the Opportunity record type. A record participates in the goal rollup, if the selected date falls between the start date and the end date for the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateattribute")] + public string DateAttribute + { + get + { + return this.GetAttributeValue("dateattribute"); + } + set + { + this.OnPropertyChanging("DateAttribute"); + this.SetAttributeValue("dateattribute", value); + this.OnPropertyChanged("DateAttribute"); + } + } + + /// + /// Select the record type that contains the date field that will be considered while rolling up data to the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityfordateattribute")] + public string EntityForDateAttribute + { + get + { + return this.GetAttributeValue("entityfordateattribute"); + } + set + { + this.OnPropertyChanging("EntityForDateAttribute"); + this.SetAttributeValue("entityfordateattribute", value); + this.OnPropertyChanged("EntityForDateAttribute"); + } + } + + /// + /// Select a rollup field where the metric rollup data will be displayed in the goal. The options are an integer or money, depending on the Metric Type you chose for the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalattribute")] + public string GoalAttribute + { + get + { + return this.GetAttributeValue("goalattribute"); + } + set + { + this.OnPropertyChanging("GoalAttribute"); + this.SetAttributeValue("goalattribute", value); + this.OnPropertyChanged("GoalAttribute"); + } + } + + /// + /// 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"); + } + } + + /// + /// Tells whether the state or status belongs to the parent entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isstateparententityattribute")] + public System.Nullable IsStateParentEntityAttribute + { + get + { + return this.GetAttributeValue>("isstateparententityattribute"); + } + set + { + this.OnPropertyChanging("IsStateParentEntityAttribute"); + this.SetAttributeValue("isstateparententityattribute", value); + this.OnPropertyChanged("IsStateParentEntityAttribute"); + } + } + + /// + /// Unique identifier of the goal metric associated with the rollup field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public Microsoft.Xrm.Sdk.EntityReference MetricId + { + get + { + return this.GetAttributeValue("metricid"); + } + set + { + this.OnPropertyChanging("MetricId"); + this.SetAttributeValue("metricid", value); + this.OnPropertyChanged("MetricId"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Choose the ID of the organization that the record is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the rollup field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupfieldid")] + public System.Nullable RollupFieldId + { + get + { + return this.GetAttributeValue>("rollupfieldid"); + } + set + { + this.OnPropertyChanging("RollupFieldId"); + this.SetAttributeValue("rollupfieldid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RollupFieldId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupfieldid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RollupFieldId = value; + } + } + + /// + /// Type the name of the field that the data for the goal rolls up from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceattribute")] + public string SourceAttribute + { + get + { + return this.GetAttributeValue("sourceattribute"); + } + set + { + this.OnPropertyChanging("SourceAttribute"); + this.SetAttributeValue("sourceattribute", value); + this.OnPropertyChanged("SourceAttribute"); + } + } + + /// + /// Type the name of the record type (entity) that the data for the goal must roll up from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentity")] + public string SourceEntity + { + get + { + return this.GetAttributeValue("sourceentity"); + } + set + { + this.OnPropertyChanging("SourceEntity"); + this.SetAttributeValue("sourceentity", value); + this.OnPropertyChanged("SourceEntity"); + } + } + + /// + /// Select the state of the records you want to use as the source of the rollup data for the metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcestate")] + public System.Nullable SourceState + { + get + { + return this.GetAttributeValue>("sourcestate"); + } + set + { + this.OnPropertyChanging("SourceState"); + this.SetAttributeValue("sourcestate", value); + this.OnPropertyChanged("SourceState"); + } + } + + /// + /// Select the status of the records you want to use as the source of the rollup data for the metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcestatus")] + public System.Nullable SourceStatus + { + get + { + return this.GetAttributeValue>("sourcestatus"); + } + set + { + this.OnPropertyChanging("SourceStatus"); + this.SetAttributeValue("sourcestatus", value); + this.OnPropertyChanged("SourceStatus"); + } + } + + /// + /// 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 of the rollup field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N rollupfield_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_AsyncOperations")] + public System.Collections.Generic.IEnumerable rollupfield_AsyncOperations + { + get + { + return this.GetRelatedEntities("rollupfield_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("rollupfield_AsyncOperations"); + this.SetRelatedEntities("rollupfield_AsyncOperations", null, value); + this.OnPropertyChanged("rollupfield_AsyncOperations"); + } + } + + /// + /// 1:N rollupfield_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_ProcessSessions")] + public System.Collections.Generic.IEnumerable rollupfield_ProcessSessions + { + get + { + return this.GetRelatedEntities("rollupfield_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("rollupfield_ProcessSessions"); + this.SetRelatedEntities("rollupfield_ProcessSessions", null, value); + this.OnPropertyChanged("rollupfield_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_rollupfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_rollupfield")] + public System.Collections.Generic.IEnumerable userentityinstancedata_rollupfield + { + get + { + return this.GetRelatedEntities("userentityinstancedata_rollupfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_rollupfield"); + this.SetRelatedEntities("userentityinstancedata_rollupfield", null, value); + this.OnPropertyChanged("userentityinstancedata_rollupfield"); + } + } + + /// + /// N:1 lk_rollupfield_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_createdby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_createdby", null); + } + } + + /// + /// N:1 lk_rollupfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_rollupfield_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_modifiedby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_modifiedby", null); + } + } + + /// + /// N:1 lk_rollupfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_modifiedonbehalfby", null); + } + } + + /// + /// N:1 metric_rollupfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_rollupfield")] + public Xrm.Framework.CI.Common.Entities.Metric metric_rollupfield + { + get + { + return this.GetRelatedEntity("metric_rollupfield", null); + } + set + { + this.OnPropertyChanging("metric_rollupfield"); + this.SetRelatedEntity("metric_rollupfield", null, value); + this.OnPropertyChanged("metric_rollupfield"); + } + } + } + + /// + /// Storage of sales literature, which may contain one or more documents. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesliterature")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesLiterature : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesLiterature() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesliterature"; + + public const int EntityTypeCode = 1038; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the sales literature, such as the intended audience or primary messages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Choose the user who is responsible for maintaining or updating the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeecontactid")] + public Microsoft.Xrm.Sdk.EntityReference EmployeeContactId + { + get + { + return this.GetAttributeValue("employeecontactid"); + } + set + { + this.OnPropertyChanging("EmployeeContactId"); + this.SetAttributeValue("employeecontactid", value); + this.OnPropertyChanged("EmployeeContactId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the expiration date or last day the sales literature can be distributed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expirationdate")] + public System.Nullable ExpirationDate + { + get + { + return this.GetAttributeValue>("expirationdate"); + } + set + { + this.OnPropertyChanging("ExpirationDate"); + this.SetAttributeValue("expirationdate", value); + this.OnPropertyChanged("ExpirationDate"); + } + } + + /// + /// Tells whether the sales literature has one or more attachments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hasattachments")] + public System.Nullable HasAttachments + { + get + { + return this.GetAttributeValue>("hasattachments"); + } + set + { + this.OnPropertyChanging("HasAttachments"); + this.SetAttributeValue("hasattachments", value); + this.OnPropertyChanged("HasAttachments"); + } + } + + /// + /// 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 sales literature can be distributed to prospects and customers or is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomerviewable")] + public System.Nullable IsCustomerViewable + { + get + { + return this.GetAttributeValue>("iscustomerviewable"); + } + set + { + this.OnPropertyChanging("IsCustomerViewable"); + this.SetAttributeValue("iscustomerviewable", value); + this.OnPropertyChanged("IsCustomerViewable"); + } + } + + /// + /// Type one or more topics or keywords that can be used to search for the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keywords")] + public string KeyWords + { + get + { + return this.GetAttributeValue("keywords"); + } + set + { + this.OnPropertyChanging("KeyWords"); + this.SetAttributeValue("keywords", value); + this.OnPropertyChanged("KeyWords"); + } + } + + /// + /// Select a category or type to help others identify the intended use of the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("literaturetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LiteratureTypeCode + { + get + { + return this.GetAttributeValue("literaturetypecode"); + } + set + { + this.OnPropertyChanging("LiteratureTypeCode"); + this.SetAttributeValue("literaturetypecode", value); + this.OnPropertyChanged("LiteratureTypeCode"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive title for the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose the ID of the organization that the record is associated with. + /// + [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 ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public System.Nullable SalesLiteratureId + { + get + { + return this.GetAttributeValue>("salesliteratureid"); + } + set + { + this.OnPropertyChanging("SalesLiteratureId"); + this.SetAttributeValue("salesliteratureid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SalesLiteratureId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SalesLiteratureId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the subject for the sales literature to relate the item to a product or business group. Administrators can configure subjects under Business Management in the Settings area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N sales_literature_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sales_literature_items")] + public System.Collections.Generic.IEnumerable sales_literature_items + { + get + { + return this.GetRelatedEntities("sales_literature_items", null); + } + set + { + this.OnPropertyChanging("sales_literature_items"); + this.SetRelatedEntities("sales_literature_items", null, value); + this.OnPropertyChanged("sales_literature_items"); + } + } + + /// + /// 1:N SalesLiterature_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesLiterature_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesLiterature_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_AsyncOperations"); + this.SetRelatedEntities("SalesLiterature_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiterature_AsyncOperations"); + } + } + + /// + /// 1:N SalesLiterature_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesLiterature_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesLiterature_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_BulkDeleteFailures"); + this.SetRelatedEntities("SalesLiterature_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesLiterature_BulkDeleteFailures"); + } + } + + /// + /// 1:N salesliterature_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesliterature_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable salesliterature_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("salesliterature_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesliterature_principalobjectattributeaccess"); + this.SetRelatedEntities("salesliterature_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesliterature_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SalesLiterature_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesLiterature_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesLiterature_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_ProcessSessions"); + this.SetRelatedEntities("SalesLiterature_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiterature_ProcessSessions"); + } + } + + /// + /// 1:N SalesLiterature_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable SalesLiterature_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("SalesLiterature_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_SharepointDocumentLocation"); + this.SetRelatedEntities("SalesLiterature_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("SalesLiterature_SharepointDocumentLocation"); + } + } + + /// + /// 1:N userentityinstancedata_salesliterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliterature")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesliterature + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliterature"); + this.SetRelatedEntities("userentityinstancedata_salesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliterature"); + } + } + + /// + /// N:N campaignactivitysalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitysalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignactivitysalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignactivitysalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitysalesliterature_association"); + this.SetRelatedEntities("campaignactivitysalesliterature_association", null, value); + this.OnPropertyChanged("campaignactivitysalesliterature_association"); + } + } + + /// + /// N:N campaignsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignsalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignsalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignsalesliterature_association"); + this.SetRelatedEntities("campaignsalesliterature_association", null, value); + this.OnPropertyChanged("campaignsalesliterature_association"); + } + } + + /// + /// N:N competitorsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorsalesliterature_association")] + public System.Collections.Generic.IEnumerable competitorsalesliterature_association + { + get + { + return this.GetRelatedEntities("competitorsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("competitorsalesliterature_association"); + this.SetRelatedEntities("competitorsalesliterature_association", null, value); + this.OnPropertyChanged("competitorsalesliterature_association"); + } + } + + /// + /// N:N productsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsalesliterature_association")] + public System.Collections.Generic.IEnumerable productsalesliterature_association + { + get + { + return this.GetRelatedEntities("productsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("productsalesliterature_association"); + this.SetRelatedEntities("productsalesliterature_association", null, value); + this.OnPropertyChanged("productsalesliterature_association"); + } + } + + /// + /// N:1 lk_salesliterature_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliterature_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliterature_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliterature_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliterature_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliterature_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliteraturebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteraturebase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesliteraturebase_createdby", null); + } + } + + /// + /// N:1 lk_salesliteraturebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteraturebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesliteraturebase_modifiedby", null); + } + } + + /// + /// N:1 organization_sales_literature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sales_literature")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sales_literature + { + get + { + return this.GetRelatedEntity("organization_sales_literature", null); + } + } + + /// + /// N:1 processstage_salesliteratures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesliteratures")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_salesliteratures + { + get + { + return this.GetRelatedEntity("processstage_salesliteratures", null); + } + set + { + this.OnPropertyChanging("processstage_salesliteratures"); + this.SetRelatedEntity("processstage_salesliteratures", null, value); + this.OnPropertyChanged("processstage_salesliteratures"); + } + } + + /// + /// N:1 subject_sales_literature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_sales_literature")] + public Xrm.Framework.CI.Common.Entities.Subject subject_sales_literature + { + get + { + return this.GetRelatedEntity("subject_sales_literature", null); + } + set + { + this.OnPropertyChanging("subject_sales_literature"); + this.SetRelatedEntity("subject_sales_literature", null, value); + this.OnPropertyChanged("subject_sales_literature"); + } + } + + /// + /// N:1 system_user_sales_literature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeecontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_sales_literature")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_sales_literature + { + get + { + return this.GetRelatedEntity("system_user_sales_literature", null); + } + set + { + this.OnPropertyChanging("system_user_sales_literature"); + this.SetRelatedEntity("system_user_sales_literature", null, value); + this.OnPropertyChanged("system_user_sales_literature"); + } + } + + /// + /// N:1 TransactionCurrency_SalesLiterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SalesLiterature")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SalesLiterature + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SalesLiterature", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SalesLiterature"); + this.SetRelatedEntity("TransactionCurrency_SalesLiterature", null, value); + this.OnPropertyChanged("TransactionCurrency_SalesLiterature"); + } + } + } + + /// + /// Item in the sales literature collection. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesliteratureitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesLiteratureItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesLiteratureItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesliteratureitem"; + + public const int EntityTypeCode = 1070; + + 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)); + } + } + + /// + /// Abstract of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("abstract")] + public string Abstract + { + get + { + return this.GetAttributeValue("abstract"); + } + set + { + this.OnPropertyChanging("Abstract"); + this.SetAttributeValue("abstract", value); + this.OnPropertyChanged("Abstract"); + } + } + + /// + /// URL of the Website on which the document is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attacheddocumenturl")] + public string AttachedDocumentUrl + { + get + { + return this.GetAttributeValue("attacheddocumenturl"); + } + set + { + this.OnPropertyChanging("AttachedDocumentUrl"); + this.SetAttributeValue("attacheddocumenturl", value); + this.OnPropertyChanged("AttachedDocumentUrl"); + } + } + + /// + /// Author name for the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("authorname")] + public string AuthorName + { + get + { + return this.GetAttributeValue("authorname"); + } + set + { + this.OnPropertyChanging("AuthorName"); + this.SetAttributeValue("authorname", value); + this.OnPropertyChanged("AuthorName"); + } + } + + /// + /// Unique identifier of the user who created the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the document 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 salesliteratureitem. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Shows the encoded contents of the sales literature document attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("documentbody")] + public string DocumentBody + { + get + { + return this.GetAttributeValue("documentbody"); + } + set + { + this.OnPropertyChanging("DocumentBody"); + this.SetAttributeValue("documentbody", value); + this.OnPropertyChanged("DocumentBody"); + } + } + + /// + /// File name of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Select the file type of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue FileTypeCode + { + get + { + return this.GetAttributeValue("filetypecode"); + } + set + { + this.OnPropertyChanging("FileTypeCode"); + this.SetAttributeValue("filetypecode", value); + this.OnPropertyChanged("FileTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Tells whether the document can be shared with customers or is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomerviewable")] + public System.Nullable IsCustomerViewable + { + get + { + return this.GetAttributeValue>("iscustomerviewable"); + } + set + { + this.OnPropertyChanging("IsCustomerViewable"); + this.SetAttributeValue("iscustomerviewable", value); + this.OnPropertyChanged("IsCustomerViewable"); + } + } + + /// + /// Keywords to use for searches in documents. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keywords")] + public string KeyWords + { + get + { + return this.GetAttributeValue("keywords"); + } + set + { + this.OnPropertyChanging("KeyWords"); + this.SetAttributeValue("keywords", value); + this.OnPropertyChanged("KeyWords"); + } + } + + /// + /// Shows the file type of the sales literature document attachment, such as text or document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the document 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 salesliteratureitem. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Unique identifier of the sales literature that is associated with the individual item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public Microsoft.Xrm.Sdk.EntityReference SalesLiteratureId + { + get + { + return this.GetAttributeValue("salesliteratureid"); + } + set + { + this.OnPropertyChanging("SalesLiteratureId"); + this.SetAttributeValue("salesliteratureid", value); + this.OnPropertyChanged("SalesLiteratureId"); + } + } + + /// + /// Unique identifier for the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureitemid")] + public System.Nullable SalesLiteratureItemId + { + get + { + return this.GetAttributeValue>("salesliteratureitemid"); + } + set + { + this.OnPropertyChanging("SalesLiteratureItemId"); + this.SetAttributeValue("salesliteratureitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SalesLiteratureItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SalesLiteratureItemId = value; + } + } + + /// + /// Type the title or name that describes the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Version number of the sales literature item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SalesLiteratureItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesLiteratureItem_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesLiteratureItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_AsyncOperations"); + this.SetRelatedEntities("SalesLiteratureItem_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiteratureItem_AsyncOperations"); + } + } + + /// + /// 1:N SalesLiteratureItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesLiteratureItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesLiteratureItem_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_BulkDeleteFailures"); + this.SetRelatedEntities("SalesLiteratureItem_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesLiteratureItem_BulkDeleteFailures"); + } + } + + /// + /// 1:N SalesLiteratureItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesLiteratureItem_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesLiteratureItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_ProcessSessions"); + this.SetRelatedEntities("SalesLiteratureItem_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiteratureItem_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_salesliteratureitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliteratureitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesliteratureitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesliteratureitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliteratureitem"); + this.SetRelatedEntities("userentityinstancedata_salesliteratureitem", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliteratureitem"); + } + } + + /// + /// N:1 lk_salesliteratureitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitem_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitem_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliteratureitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitem_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliteratureitembase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitembase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitembase_createdby", null); + } + } + + /// + /// N:1 lk_salesliteratureitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitembase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitembase_modifiedby", null); + } + } + + /// + /// N:1 sales_literature_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sales_literature_items")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature sales_literature_items + { + get + { + return this.GetRelatedEntity("sales_literature_items", null); + } + set + { + this.OnPropertyChanging("sales_literature_items"); + this.SetRelatedEntity("sales_literature_items", null, value); + this.OnPropertyChanged("sales_literature_items"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesOrder : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesOrder() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesorder"; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Order Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the order. + /// + [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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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 ((Xrm.Framework.CI.Common.Entities.SalesOrderState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SalesOrderState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Line Item Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 order. + /// + [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"); + } + } + + /// + /// 1:N order_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_details")] + public System.Collections.Generic.IEnumerable order_details + { + get + { + return this.GetRelatedEntities("order_details", null); + } + set + { + this.OnPropertyChanging("order_details"); + this.SetRelatedEntities("order_details", null, value); + this.OnPropertyChanged("order_details"); + } + } + + /// + /// 1:N order_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_invoices")] + public System.Collections.Generic.IEnumerable order_invoices + { + get + { + return this.GetRelatedEntities("order_invoices", null); + } + set + { + this.OnPropertyChanging("order_invoices"); + this.SetRelatedEntities("order_invoices", null, value); + this.OnPropertyChanged("order_invoices"); + } + } + + /// + /// 1:N salesorder_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_activity_parties")] + public System.Collections.Generic.IEnumerable salesorder_activity_parties + { + get + { + return this.GetRelatedEntities("salesorder_activity_parties", null); + } + set + { + this.OnPropertyChanging("salesorder_activity_parties"); + this.SetRelatedEntities("salesorder_activity_parties", null, value); + this.OnPropertyChanged("salesorder_activity_parties"); + } + } + + /// + /// 1:N SalesOrder_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ActivityPointers")] + public System.Collections.Generic.IEnumerable SalesOrder_ActivityPointers + { + get + { + return this.GetRelatedEntities("SalesOrder_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ActivityPointers"); + this.SetRelatedEntities("SalesOrder_ActivityPointers", null, value); + this.OnPropertyChanged("SalesOrder_ActivityPointers"); + } + } + + /// + /// 1:N SalesOrder_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Annotation")] + public System.Collections.Generic.IEnumerable SalesOrder_Annotation + { + get + { + return this.GetRelatedEntities("SalesOrder_Annotation", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Annotation"); + this.SetRelatedEntities("SalesOrder_Annotation", null, value); + this.OnPropertyChanged("SalesOrder_Annotation"); + } + } + + /// + /// 1:N SalesOrder_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Appointments")] + public System.Collections.Generic.IEnumerable SalesOrder_Appointments + { + get + { + return this.GetRelatedEntities("SalesOrder_Appointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Appointments"); + this.SetRelatedEntities("SalesOrder_Appointments", null, value); + this.OnPropertyChanged("SalesOrder_Appointments"); + } + } + + /// + /// 1:N SalesOrder_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesOrder_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesOrder_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrder_AsyncOperations"); + this.SetRelatedEntities("SalesOrder_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrder_AsyncOperations"); + } + } + + /// + /// 1:N SalesOrder_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesOrder_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesOrder_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesOrder_BulkDeleteFailures"); + this.SetRelatedEntities("SalesOrder_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesOrder_BulkDeleteFailures"); + } + } + + /// + /// 1:N salesorder_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections1")] + public System.Collections.Generic.IEnumerable salesorder_connections1 + { + get + { + return this.GetRelatedEntities("salesorder_connections1", null); + } + set + { + this.OnPropertyChanging("salesorder_connections1"); + this.SetRelatedEntities("salesorder_connections1", null, value); + this.OnPropertyChanged("salesorder_connections1"); + } + } + + /// + /// 1:N salesorder_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections2")] + public System.Collections.Generic.IEnumerable salesorder_connections2 + { + get + { + return this.GetRelatedEntities("salesorder_connections2", null); + } + set + { + this.OnPropertyChanging("salesorder_connections2"); + this.SetRelatedEntities("salesorder_connections2", null, value); + this.OnPropertyChanged("salesorder_connections2"); + } + } + + /// + /// 1:N SalesOrder_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Emails")] + public System.Collections.Generic.IEnumerable SalesOrder_Emails + { + get + { + return this.GetRelatedEntities("SalesOrder_Emails", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Emails"); + this.SetRelatedEntities("SalesOrder_Emails", null, value); + this.OnPropertyChanged("SalesOrder_Emails"); + } + } + + /// + /// 1:N SalesOrder_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Faxes")] + public System.Collections.Generic.IEnumerable SalesOrder_Faxes + { + get + { + return this.GetRelatedEntities("SalesOrder_Faxes", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Faxes"); + this.SetRelatedEntities("SalesOrder_Faxes", null, value); + this.OnPropertyChanged("SalesOrder_Faxes"); + } + } + + /// + /// 1:N SalesOrder_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Letters")] + public System.Collections.Generic.IEnumerable SalesOrder_Letters + { + get + { + return this.GetRelatedEntities("SalesOrder_Letters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Letters"); + this.SetRelatedEntities("SalesOrder_Letters", null, value); + this.OnPropertyChanged("SalesOrder_Letters"); + } + } + + /// + /// 1:N SalesOrder_OrderClose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_OrderClose")] + public System.Collections.Generic.IEnumerable SalesOrder_OrderClose + { + get + { + return this.GetRelatedEntities("SalesOrder_OrderClose", null); + } + set + { + this.OnPropertyChanging("SalesOrder_OrderClose"); + this.SetRelatedEntities("SalesOrder_OrderClose", null, value); + this.OnPropertyChanged("SalesOrder_OrderClose"); + } + } + + /// + /// 1:N SalesOrder_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Phonecalls")] + public System.Collections.Generic.IEnumerable SalesOrder_Phonecalls + { + get + { + return this.GetRelatedEntities("SalesOrder_Phonecalls", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Phonecalls"); + this.SetRelatedEntities("SalesOrder_Phonecalls", null, value); + this.OnPropertyChanged("SalesOrder_Phonecalls"); + } + } + + /// + /// 1:N salesorder_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable salesorder_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("salesorder_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorder_principalobjectattributeaccess"); + this.SetRelatedEntities("salesorder_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorder_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SalesOrder_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesOrder_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesOrder_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ProcessSessions"); + this.SetRelatedEntities("SalesOrder_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrder_ProcessSessions"); + } + } + + /// + /// 1:N SalesOrder_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable SalesOrder_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("SalesOrder_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_RecurringAppointmentMasters"); + this.SetRelatedEntities("SalesOrder_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("SalesOrder_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N SalesOrder_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ServiceAppointments")] + public System.Collections.Generic.IEnumerable SalesOrder_ServiceAppointments + { + get + { + return this.GetRelatedEntities("SalesOrder_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ServiceAppointments"); + this.SetRelatedEntities("SalesOrder_ServiceAppointments", null, value); + this.OnPropertyChanged("SalesOrder_ServiceAppointments"); + } + } + + /// + /// 1:N SalesOrder_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Tasks")] + public System.Collections.Generic.IEnumerable SalesOrder_Tasks + { + get + { + return this.GetRelatedEntities("SalesOrder_Tasks", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Tasks"); + this.SetRelatedEntities("SalesOrder_Tasks", null, value); + this.OnPropertyChanged("SalesOrder_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_salesorder + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorder")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesorder + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesorder", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorder"); + this.SetRelatedEntities("userentityinstancedata_salesorder", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorder"); + } + } + + /// + /// N:N contactorders_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactorders_association")] + public System.Collections.Generic.IEnumerable contactorders_association + { + get + { + return this.GetRelatedEntities("contactorders_association", null); + } + set + { + this.OnPropertyChanging("contactorders_association"); + this.SetRelatedEntities("contactorders_association", null, value); + this.OnPropertyChanged("contactorders_association"); + } + } + + /// + /// N:1 business_unit_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_orders")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_orders + { + get + { + return this.GetRelatedEntity("business_unit_orders", null); + } + } + + /// + /// N:1 campaign_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_orders")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_orders + { + get + { + return this.GetRelatedEntity("campaign_orders", null); + } + set + { + this.OnPropertyChanging("campaign_orders"); + this.SetRelatedEntity("campaign_orders", null, value); + this.OnPropertyChanged("campaign_orders"); + } + } + + /// + /// N:1 lk_salesorder_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorder_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorder_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorder_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorder_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorder_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorderbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderbase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesorderbase_createdby", null); + } + } + + /// + /// N:1 lk_salesorderbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesorderbase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_sales_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_sales_orders")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_sales_orders + { + get + { + return this.GetRelatedEntity("opportunity_sales_orders", null); + } + set + { + this.OnPropertyChanging("opportunity_sales_orders"); + this.SetRelatedEntity("opportunity_sales_orders", null, value); + this.OnPropertyChanged("opportunity_sales_orders"); + } + } + + /// + /// N:1 order_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account order_customer_accounts + { + get + { + return this.GetRelatedEntity("order_customer_accounts", null); + } + set + { + this.OnPropertyChanging("order_customer_accounts"); + this.SetRelatedEntity("order_customer_accounts", null, value); + this.OnPropertyChanged("order_customer_accounts"); + } + } + + /// + /// N:1 order_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact order_customer_contacts + { + get + { + return this.GetRelatedEntity("order_customer_contacts", null); + } + set + { + this.OnPropertyChanging("order_customer_contacts"); + this.SetRelatedEntity("order_customer_contacts", null, value); + this.OnPropertyChanged("order_customer_contacts"); + } + } + + /// + /// N:1 price_level_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_orders")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_orders + { + get + { + return this.GetRelatedEntity("price_level_orders", null); + } + set + { + this.OnPropertyChanging("price_level_orders"); + this.SetRelatedEntity("price_level_orders", null, value); + this.OnPropertyChanged("price_level_orders"); + } + } + + /// + /// N:1 processstage_salesorders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesorders")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_salesorders + { + get + { + return this.GetRelatedEntity("processstage_salesorders", null); + } + set + { + this.OnPropertyChanging("processstage_salesorders"); + this.SetRelatedEntity("processstage_salesorders", null, value); + this.OnPropertyChanged("processstage_salesorders"); + } + } + + /// + /// N:1 quote_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_orders")] + public Xrm.Framework.CI.Common.Entities.Quote quote_orders + { + get + { + return this.GetRelatedEntity("quote_orders", null); + } + set + { + this.OnPropertyChanging("quote_orders"); + this.SetRelatedEntity("quote_orders", null, value); + this.OnPropertyChanged("quote_orders"); + } + } + + /// + /// N:1 system_user_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_orders")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_orders + { + get + { + return this.GetRelatedEntity("system_user_orders", null); + } + } + + /// + /// N:1 team_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orders")] + public Xrm.Framework.CI.Common.Entities.Team team_orders + { + get + { + return this.GetRelatedEntity("team_orders", null); + } + } + + /// + /// N:1 transactioncurrency_salesorder + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorder")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_salesorder + { + get + { + return this.GetRelatedEntity("transactioncurrency_salesorder", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_salesorder"); + this.SetRelatedEntity("transactioncurrency_salesorder", null, value); + this.OnPropertyChanged("transactioncurrency_salesorder"); + } + } + } + + /// + /// Line item in a sales order. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesorderdetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesOrderDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesOrderDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesorderdetail"; + + 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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 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 CRM 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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the business unit that owns the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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; + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the status of the order that the order detail is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderstatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesOrderStateCode + { + get + { + return this.GetAttributeValue("salesorderstatecode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the sales order detail. + /// + [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"); + } + } + + /// + /// Shows the Volume Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 1:N SalesOrderDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesOrderDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesOrderDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_AsyncOperations"); + this.SetRelatedEntities("SalesOrderDetail_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrderDetail_AsyncOperations"); + } + } + + /// + /// 1:N SalesOrderDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesOrderDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesOrderDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_BulkDeleteFailures"); + this.SetRelatedEntities("SalesOrderDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesOrderDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N salesorderdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorderdetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable salesorderdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("salesorderdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorderdetail_principalobjectattributeaccess"); + this.SetRelatedEntities("salesorderdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorderdetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SalesOrderDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesOrderDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesOrderDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_ProcessSessions"); + this.SetRelatedEntities("SalesOrderDetail_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrderDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_salesorderdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorderdetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesorderdetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorderdetail"); + this.SetRelatedEntities("userentityinstancedata_salesorderdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorderdetail"); + } + } + + /// + /// N:1 lk_salesorderdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorderdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorderdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetailbase_createdby", null); + } + } + + /// + /// N:1 lk_salesorderdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetailbase_modifiedby", null); + } + } + + /// + /// N:1 order_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_details")] + public Xrm.Framework.CI.Common.Entities.SalesOrder order_details + { + get + { + return this.GetRelatedEntity("order_details", null); + } + set + { + this.OnPropertyChanging("order_details"); + this.SetRelatedEntity("order_details", null, value); + this.OnPropertyChanged("order_details"); + } + } + + /// + /// N:1 product_order_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_order_details")] + public Xrm.Framework.CI.Common.Entities.Product product_order_details + { + get + { + return this.GetRelatedEntity("product_order_details", null); + } + set + { + this.OnPropertyChanging("product_order_details"); + this.SetRelatedEntity("product_order_details", null, value); + this.OnPropertyChanged("product_order_details"); + } + } + + /// + /// N:1 system_user_salesorderdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_salesorderdetail")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_salesorderdetail + { + get + { + return this.GetRelatedEntity("system_user_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("system_user_salesorderdetail"); + this.SetRelatedEntity("system_user_salesorderdetail", null, value); + this.OnPropertyChanged("system_user_salesorderdetail"); + } + } + + /// + /// N:1 transactioncurrency_salesorderdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorderdetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_salesorderdetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_salesorderdetail", null); + } + } + + /// + /// N:1 unit_of_measurement_order_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_order_details")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_order_details + { + get + { + return this.GetRelatedEntity("unit_of_measurement_order_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_order_details"); + this.SetRelatedEntity("unit_of_measurement_order_details", null, value); + this.OnPropertyChanged("unit_of_measurement_order_details"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SavedQueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Saved query against the database. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("savedquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SavedQuery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SavedQuery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "savedquery"; + + public const int EntityTypeCode = 1039; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type the column name that will be used to group the results from the data collected across multiple records from a system view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("advancedgroupby")] + public string AdvancedGroupBy + { + get + { + return this.GetAttributeValue("advancedgroupby"); + } + set + { + this.OnPropertyChanging("AdvancedGroupBy"); + this.SetAttributeValue("advancedgroupby", value); + this.OnPropertyChanged("AdvancedGroupBy"); + } + } + + /// + /// Tells whether the view can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty CanBeDeleted + { + get + { + return this.GetAttributeValue("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// Contains the columns and sorting criteria for the view, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnsetxml")] + public string ColumnSetXml + { + get + { + return this.GetAttributeValue("columnsetxml"); + } + set + { + this.OnPropertyChanging("ColumnSetXml"); + this.SetAttributeValue("columnsetxml", value); + this.OnPropertyChanged("ColumnSetXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Type information about how the items in the system view are formatted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("conditionalformatting")] + public string ConditionalFormatting + { + get + { + return this.GetAttributeValue("conditionalformatting"); + } + set + { + this.OnPropertyChanging("ConditionalFormatting"); + this.SetAttributeValue("conditionalformatting", value); + this.OnPropertyChanged("ConditionalFormatting"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the view, such as the filter criteria or intended results set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// String specifying the query in Fetch XML language. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fetchxml")] + public string FetchXml + { + get + { + return this.GetAttributeValue("fetchxml"); + } + set + { + this.OnPropertyChanging("FetchXml"); + this.SetAttributeValue("fetchxml", value); + this.OnPropertyChanged("FetchXml"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Tells whether the component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Tells whether the view is the default view for the specified record type (entity). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Tells whether the record is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether or not this is viewable by the entire organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] + [System.ObsoleteAttribute()] + public System.Nullable IsPrivate + { + get + { + return this.GetAttributeValue>("isprivate"); + } + } + + /// + /// Choose whether the view is compatible with Quick Find. When users search for specific items, you define the fields that are searched in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isquickfindquery")] + public System.Nullable IsQuickFindQuery + { + get + { + return this.GetAttributeValue>("isquickfindquery"); + } + set + { + this.OnPropertyChanging("IsQuickFindQuery"); + this.SetAttributeValue("isquickfindquery", value); + this.OnPropertyChanged("IsQuickFindQuery"); + } + } + + /// + /// Tells whether the view was created by a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isuserdefined")] + public System.Nullable IsUserDefined + { + get + { + return this.GetAttributeValue>("isuserdefined"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("layoutxml")] + public string LayoutXml + { + get + { + return this.GetAttributeValue("layoutxml"); + } + set + { + this.OnPropertyChanging("LayoutXml"); + this.SetAttributeValue("layoutxml", value); + this.OnPropertyChanged("LayoutXml"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a name for the view to describe what results the view will contain. This name is visible to users in the View list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose the ID of the organization that the record is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For the organization, type the tab order to determine how users navigate through the screen using only the Tab key. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationtaborder")] + public System.Nullable OrganizationTabOrder + { + get + { + return this.GetAttributeValue>("organizationtaborder"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryapi")] + public string QueryAPI + { + get + { + return this.GetAttributeValue("queryapi"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryappusage")] + public System.Nullable QueryAppUsage + { + get + { + return this.GetAttributeValue>("queryappusage"); + } + set + { + this.OnPropertyChanging("QueryAppUsage"); + this.SetAttributeValue("queryappusage", value); + this.OnPropertyChanged("QueryAppUsage"); + } + } + + /// + /// Shows the type of the query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("querytype")] + public System.Nullable QueryType + { + get + { + return this.GetAttributeValue>("querytype"); + } + set + { + this.OnPropertyChanging("QueryType"); + this.SetAttributeValue("querytype", value); + this.OnPropertyChanged("QueryType"); + } + } + + /// + /// Type of entity displayed in the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("returnedtypecode")] + public string ReturnedTypeCode + { + get + { + return this.GetAttributeValue("returnedtypecode"); + } + set + { + this.OnPropertyChanging("ReturnedTypeCode"); + this.SetAttributeValue("returnedtypecode", value); + this.OnPropertyChanged("ReturnedTypeCode"); + } + } + + /// + /// Unique identifier of the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryid")] + public System.Nullable SavedQueryId + { + get + { + return this.GetAttributeValue>("savedqueryid"); + } + set + { + this.OnPropertyChanging("SavedQueryId"); + this.SetAttributeValue("savedqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SavedQueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SavedQueryId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryidunique")] + public System.Nullable SavedQueryIdUnique + { + get + { + return this.GetAttributeValue>("savedqueryidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Shows the status of the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SavedQueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SavedQueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows the reason code that explains the status of the record. + /// + [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"); + } + } + + /// + /// Version number of the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SavedQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_AsyncOperations")] + public System.Collections.Generic.IEnumerable SavedQuery_AsyncOperations + { + get + { + return this.GetRelatedEntities("SavedQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SavedQuery_AsyncOperations"); + this.SetRelatedEntities("SavedQuery_AsyncOperations", null, value); + this.OnPropertyChanged("SavedQuery_AsyncOperations"); + } + } + + /// + /// 1:N SavedQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SavedQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SavedQuery_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SavedQuery_BulkDeleteFailures"); + this.SetRelatedEntities("SavedQuery_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SavedQuery_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_savedquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedquery")] + public System.Collections.Generic.IEnumerable userentityinstancedata_savedquery + { + get + { + return this.GetRelatedEntities("userentityinstancedata_savedquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedquery"); + this.SetRelatedEntities("userentityinstancedata_savedquery", null, value); + this.OnPropertyChanged("userentityinstancedata_savedquery"); + } + } + + /// + /// N:1 lk_savedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_savedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_savedquerybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquerybase_createdby + { + get + { + return this.GetRelatedEntity("lk_savedquerybase_createdby", null); + } + } + + /// + /// N:1 lk_savedquerybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquerybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_savedquerybase_modifiedby", null); + } + } + + /// + /// N:1 organization_saved_queries + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_queries")] + public Xrm.Framework.CI.Common.Entities.Organization organization_saved_queries + { + get + { + return this.GetRelatedEntity("organization_saved_queries", null); + } + } + } + + /// + /// System chart attached to an entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("savedqueryvisualization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SavedQueryVisualization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SavedQueryVisualization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "savedqueryvisualization"; + + public const int EntityTypeCode = 1111; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the system chart 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 system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// XML string used to define the underlying data for the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datadescription")] + public string DataDescription + { + get + { + return this.GetAttributeValue("datadescription"); + } + set + { + this.OnPropertyChanging("DataDescription"); + this.SetAttributeValue("datadescription", value); + this.OnPropertyChanged("DataDescription"); + } + } + + /// + /// Description of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the system chart is the default chart for the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the system chart 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 system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// XML string used to define the presentation properties of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentationdescription")] + public string PresentationDescription + { + get + { + return this.GetAttributeValue("presentationdescription"); + } + set + { + this.OnPropertyChanging("PresentationDescription"); + this.SetAttributeValue("presentationdescription", value); + this.OnPropertyChanged("PresentationDescription"); + } + } + + /// + /// Type of entity with which the system chart is attached. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Unique identifier of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryvisualizationid")] + public System.Nullable SavedQueryVisualizationId + { + get + { + return this.GetAttributeValue>("savedqueryvisualizationid"); + } + set + { + this.OnPropertyChanging("SavedQueryVisualizationId"); + this.SetAttributeValue("savedqueryvisualizationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SavedQueryVisualizationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryvisualizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SavedQueryVisualizationId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryvisualizationidunique")] + public System.Nullable SavedQueryVisualizationIdUnique + { + get + { + return this.GetAttributeValue>("savedqueryvisualizationidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Version number of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Unique identifier of the Web resource that will be displayed in the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public Microsoft.Xrm.Sdk.EntityReference WebResourceId + { + get + { + return this.GetAttributeValue("webresourceid"); + } + set + { + this.OnPropertyChanging("WebResourceId"); + this.SetAttributeValue("webresourceid", value); + this.OnPropertyChanged("WebResourceId"); + } + } + + /// + /// 1:N userentityinstancedata_savedqueryvisualization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedqueryvisualization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_savedqueryvisualization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_savedqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedqueryvisualization"); + this.SetRelatedEntities("userentityinstancedata_savedqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_savedqueryvisualization"); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_createdby", null); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_modifiedby", null); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_saved_query_visualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_query_visualizations")] + public Xrm.Framework.CI.Common.Entities.Organization organization_saved_query_visualizations + { + get + { + return this.GetRelatedEntity("organization_saved_query_visualizations", null); + } + } + + /// + /// N:1 webresource_savedqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_savedqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.WebResource webresource_savedqueryvisualizations + { + get + { + return this.GetRelatedEntity("webresource_savedqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_savedqueryvisualizations"); + this.SetRelatedEntity("webresource_savedqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_savedqueryvisualizations"); + } + } + } + + /// + /// Message that is supported by the SDK. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessage"; + + public const int EntityTypeCode = 4606; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about whether the SDK message is automatically transacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autotransact")] + public System.Nullable AutoTransact + { + get + { + return this.GetAttributeValue>("autotransact"); + } + set + { + this.OnPropertyChanging("AutoTransact"); + this.SetAttributeValue("autotransact", value); + this.OnPropertyChanged("AutoTransact"); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] + public System.Nullable Availability + { + get + { + return this.GetAttributeValue>("availability"); + } + set + { + this.OnPropertyChanging("Availability"); + this.SetAttributeValue("availability", value); + this.OnPropertyChanged("Availability"); + } + } + + /// + /// If this is a categorized method, this is the name, otherwise None. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("categoryname")] + public string CategoryName + { + get + { + return this.GetAttributeValue("categoryname"); + } + set + { + this.OnPropertyChanging("CategoryName"); + this.SetAttributeValue("categoryname", value); + this.OnPropertyChanged("CategoryName"); + } + } + + /// + /// Unique identifier of the user who created the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Indicates whether the SDK message should have its requests expanded per primary entity defined in its filters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expand")] + public System.Nullable Expand + { + get + { + return this.GetAttributeValue>("expand"); + } + set + { + this.OnPropertyChanging("Expand"); + this.SetAttributeValue("expand", value); + this.OnPropertyChanged("Expand"); + } + } + + /// + /// Information about whether the SDK message is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactive")] + public System.Nullable IsActive + { + get + { + return this.GetAttributeValue>("isactive"); + } + set + { + this.OnPropertyChanging("IsActive"); + this.SetAttributeValue("isactive", value); + this.OnPropertyChanged("IsActive"); + } + } + + /// + /// Indicates whether the SDK message is private. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] + public System.Nullable IsPrivate + { + get + { + return this.GetAttributeValue>("isprivate"); + } + set + { + this.OnPropertyChanging("IsPrivate"); + this.SetAttributeValue("isprivate", value); + this.OnPropertyChanged("IsPrivate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvalidforexecuteasync")] + public System.Nullable IsValidForExecuteAsync + { + get + { + return this.GetAttributeValue>("isvalidforexecuteasync"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the SDK message entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public System.Nullable SdkMessageId + { + get + { + return this.GetAttributeValue>("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageId = value; + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidunique")] + public System.Nullable SdkMessageIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageidunique"); + } + } + + /// + /// Indicates whether the SDK message is a template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("template")] + public System.Nullable Template + { + get + { + return this.GetAttributeValue>("template"); + } + set + { + this.OnPropertyChanging("Template"); + this.SetAttributeValue("template", value); + this.OnPropertyChanged("Template"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("throttlesettings")] + public string ThrottleSettings + { + get + { + return this.GetAttributeValue("throttlesettings"); + } + } + + /// + /// Number that identifies a specific revision of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N message_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("message_sdkmessagepair")] + public System.Collections.Generic.IEnumerable message_sdkmessagepair + { + get + { + return this.GetRelatedEntities("message_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("message_sdkmessagepair"); + this.SetRelatedEntities("message_sdkmessagepair", null, value); + this.OnPropertyChanged("message_sdkmessagepair"); + } + } + + /// + /// 1:N sdkmessageid_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable sdkmessageid_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("sdkmessageid_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessagefilter"); + this.SetRelatedEntities("sdkmessageid_sdkmessagefilter", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessagefilter"); + } + } + + /// + /// 1:N sdkmessageid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessageid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N sdkmessageid_workflow_dependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_workflow_dependency")] + public System.Collections.Generic.IEnumerable sdkmessageid_workflow_dependency + { + get + { + return this.GetRelatedEntities("sdkmessageid_workflow_dependency", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_workflow_dependency"); + this.SetRelatedEntities("sdkmessageid_workflow_dependency", null, value); + this.OnPropertyChanged("sdkmessageid_workflow_dependency"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessage")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessage + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessage"); + this.SetRelatedEntities("userentityinstancedata_sdkmessage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessage"); + } + } + + /// + /// N:1 createdby_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessage + { + get + { + return this.GetRelatedEntity("createdby_sdkmessage", null); + } + } + + /// + /// N:1 lk_sdkmessage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessage + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessage", null); + } + } + + /// + /// N:1 organization_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessage + { + get + { + return this.GetRelatedEntity("organization_sdkmessage", null); + } + } + } + + /// + /// Filter that defines which SDK messages are valid for each type of entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagefilter")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageFilter : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageFilter() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagefilter"; + + public const int EntityTypeCode = 4607; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] + public System.Nullable Availability + { + get + { + return this.GetAttributeValue>("availability"); + } + set + { + this.OnPropertyChanging("Availability"); + this.SetAttributeValue("availability", value); + this.OnPropertyChanged("Availability"); + } + } + + /// + /// Unique identifier of the user who created the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message filter was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessagefilter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Indicates whether a custom SDK message processing step is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomprocessingstepallowed")] + public System.Nullable IsCustomProcessingStepAllowed + { + get + { + return this.GetAttributeValue>("iscustomprocessingstepallowed"); + } + set + { + this.OnPropertyChanging("IsCustomProcessingStepAllowed"); + this.SetAttributeValue("iscustomprocessingstepallowed", value); + this.OnPropertyChanged("IsCustomProcessingStepAllowed"); + } + } + + /// + /// Indicates whether the filter should be visible. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message filter was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessagefilter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message filter is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Type of entity with which the SDK message filter is primarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + } + + /// + /// Unique identifier of the SDK message filter entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public System.Nullable SdkMessageFilterId + { + get + { + return this.GetAttributeValue>("sdkmessagefilterid"); + } + set + { + this.OnPropertyChanging("SdkMessageFilterId"); + this.SetAttributeValue("sdkmessagefilterid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageFilterId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageFilterId = value; + } + } + + /// + /// Unique identifier of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilteridunique")] + public System.Nullable SdkMessageFilterIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagefilteridunique"); + } + } + + /// + /// Unique identifier of the related SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Type of entity with which the SDK message filter is secondarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondaryobjecttypecode")] + public string SecondaryObjectTypeCode + { + get + { + return this.GetAttributeValue("secondaryobjecttypecode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N sdkmessagefilterid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessagefilterid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessagefilterid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessagefilterid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagefilter"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagefilter", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagefilter"); + } + } + + /// + /// N:1 createdby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagefilter", null); + } + } + + /// + /// N:1 lk_sdkmessagefilter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagefilter_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagefilter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagefilter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagefilter", null); + } + } + + /// + /// N:1 organization_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("organization_sdkmessagefilter", null); + } + } + + /// + /// N:1 sdkmessageid_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SdkMessage sdkmessageid_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("sdkmessageid_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessagefilter"); + this.SetRelatedEntity("sdkmessageid_sdkmessagefilter", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessagefilter"); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagepair")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessagePair : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessagePair() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagepair"; + + public const int EntityTypeCode = 4613; + + 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 SDK message pair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message pair 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 sdkmessagepair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Endpoint that the message pair is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endpoint")] + public string Endpoint + { + get + { + return this.GetAttributeValue("endpoint"); + } + set + { + this.OnPropertyChanging("Endpoint"); + this.SetAttributeValue("endpoint", value); + this.OnPropertyChanged("Endpoint"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message pair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message pair 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 sdkmessagepair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Namespace that the message pair is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("namespace")] + public string Namespace + { + get + { + return this.GetAttributeValue("namespace"); + } + set + { + this.OnPropertyChanging("Namespace"); + this.SetAttributeValue("namespace", value); + this.OnPropertyChanged("Namespace"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message pair is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the message with which the SDK message pair is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + } + + /// + /// Unique identifier of the SDK message pair entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + public System.Nullable SdkMessagePairId + { + get + { + return this.GetAttributeValue>("sdkmessagepairid"); + } + set + { + this.OnPropertyChanging("SdkMessagePairId"); + this.SetAttributeValue("sdkmessagepairid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessagePairId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessagePairId = value; + } + } + + /// + /// Unique identifier of the SDK message pair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairidunique")] + public System.Nullable SdkMessagePairIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagepairidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N messagepair_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagepair_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable messagepair_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("messagepair_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("messagepair_sdkmessagerequest"); + this.SetRelatedEntities("messagepair_sdkmessagerequest", null, value); + this.OnPropertyChanged("messagepair_sdkmessagerequest"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagepair")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagepair + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagepair"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagepair", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagepair"); + } + } + + /// + /// N:1 createdby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagepair + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagepair", null); + } + } + + /// + /// N:1 lk_sdkmessagepair_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagepair_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagepair_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagepair_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagepair_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagepair_modifiedonbehalfby", null); + } + } + + /// + /// N:1 message_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("message_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SdkMessage message_sdkmessagepair + { + get + { + return this.GetRelatedEntity("message_sdkmessagepair", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagepair + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagepair", null); + } + } + + /// + /// N:1 organization_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagepair + { + get + { + return this.GetRelatedEntity("organization_sdkmessagepair", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SdkMessageProcessingStepState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Enabled = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disabled = 1, + } + + /// + /// Stage in the execution pipeline that a plug-in is to execute. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstep")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageProcessingStep : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStep() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstep"; + + public const int EntityTypeCode = 4608; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Indicates whether the asynchronous system job is automatically deleted on completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodelete")] + public System.Nullable AsyncAutoDelete + { + get + { + return this.GetAttributeValue>("asyncautodelete"); + } + set + { + this.OnPropertyChanging("AsyncAutoDelete"); + this.SetAttributeValue("asyncautodelete", value); + this.OnPropertyChanged("AsyncAutoDelete"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Step-specific configuration for the plug-in type. Passed to the plug-in constructor at run time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configuration")] + public string Configuration + { + get + { + return this.GetAttributeValue("configuration"); + } + set + { + this.OnPropertyChanging("Configuration"); + this.SetAttributeValue("configuration", value); + this.OnPropertyChanged("Configuration"); + } + } + + /// + /// Unique identifier of the user who created the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the associated event handler. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + public Microsoft.Xrm.Sdk.EntityReference EventHandler + { + get + { + return this.GetAttributeValue("eventhandler"); + } + set + { + this.OnPropertyChanging("EventHandler"); + this.SetAttributeValue("eventhandler", value); + this.OnPropertyChanged("EventHandler"); + } + } + + /// + /// Comma-separated list of attributes. If at least one of these attributes is modified, the plug-in should execute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filteringattributes")] + public string FilteringAttributes + { + get + { + return this.GetAttributeValue("filteringattributes"); + } + set + { + this.OnPropertyChanging("FilteringAttributes"); + this.SetAttributeValue("filteringattributes", value); + this.OnPropertyChanged("FilteringAttributes"); + } + } + + /// + /// Unique identifier of the user to impersonate context when step is executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] + public Microsoft.Xrm.Sdk.EntityReference ImpersonatingUserId + { + get + { + return this.GetAttributeValue("impersonatinguserid"); + } + set + { + this.OnPropertyChanging("ImpersonatingUserId"); + this.SetAttributeValue("impersonatinguserid", value); + this.OnPropertyChanged("ImpersonatingUserId"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Identifies if a plug-in should be executed from a parent pipeline, a child pipeline, or both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invocationsource")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.OptionSetValue InvocationSource + { + get + { + return this.GetAttributeValue("invocationsource"); + } + set + { + this.OnPropertyChanging("InvocationSource"); + this.SetAttributeValue("invocationsource", value); + this.OnPropertyChanged("InvocationSource"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Run-time mode of execution, for example, synchronous or asynchronous. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mode")] + public Microsoft.Xrm.Sdk.OptionSetValue Mode + { + get + { + return this.GetAttributeValue("mode"); + } + set + { + this.OnPropertyChanging("Mode"); + this.SetAttributeValue("mode", value); + this.OnPropertyChanged("Mode"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of SdkMessage processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the plug-in type associated with the step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + set + { + this.OnPropertyChanging("PluginTypeId"); + this.SetAttributeValue("plugintypeid", value); + this.OnPropertyChanged("PluginTypeId"); + } + } + + /// + /// Processing order within the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// Unique identifier of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageFilterId + { + get + { + return this.GetAttributeValue("sdkmessagefilterid"); + } + set + { + this.OnPropertyChanging("SdkMessageFilterId"); + this.SetAttributeValue("sdkmessagefilterid", value); + this.OnPropertyChanged("SdkMessageFilterId"); + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Unique identifier of the SDK message processing step entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public System.Nullable SdkMessageProcessingStepId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepId"); + this.SetAttributeValue("sdkmessageprocessingstepid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepidunique")] + public System.Nullable SdkMessageProcessingStepIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepidunique"); + } + } + + /// + /// Unique identifier of the Sdk message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageProcessingStepSecureConfigId + { + get + { + return this.GetAttributeValue("sdkmessageprocessingstepsecureconfigid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepSecureConfigId"); + this.SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); + this.OnPropertyChanged("SdkMessageProcessingStepSecureConfigId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Stage in the execution pipeline that the SDK message processing step is in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stage")] + public Microsoft.Xrm.Sdk.OptionSetValue Stage + { + get + { + return this.GetAttributeValue("stage"); + } + set + { + this.OnPropertyChanging("Stage"); + this.SetAttributeValue("stage", value); + this.OnPropertyChanged("Stage"); + } + } + + /// + /// Status of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the SDK message processing step. + /// + [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"); + } + } + + /// + /// Deployment that the SDK message processing step should be executed on; server, client, or both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supporteddeployment")] + public Microsoft.Xrm.Sdk.OptionSetValue SupportedDeployment + { + get + { + return this.GetAttributeValue("supporteddeployment"); + } + set + { + this.OnPropertyChanging("SupportedDeployment"); + this.SetAttributeValue("supporteddeployment", value); + this.OnPropertyChanged("SupportedDeployment"); + } + } + + /// + /// Number that identifies a specific revision of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SdkMessageProcessingStep_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SdkMessageProcessingStep_AsyncOperations")] + public System.Collections.Generic.IEnumerable SdkMessageProcessingStep_AsyncOperations + { + get + { + return this.GetRelatedEntities("SdkMessageProcessingStep_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStep_AsyncOperations"); + this.SetRelatedEntities("SdkMessageProcessingStep_AsyncOperations", null, value); + this.OnPropertyChanged("SdkMessageProcessingStep_AsyncOperations"); + } + } + + /// + /// 1:N sdkmessageprocessingstepid_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstep"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 impersonatinguserid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SystemUser impersonatinguserid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("impersonatinguserid_sdkmessageprocessingstep"); + this.SetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("impersonatinguserid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstep_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstep_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstep_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 organization_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("organization_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 plugintype_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.PluginType plugintype_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("plugintype_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintype_sdkmessageprocessingstep"); + this.SetRelatedEntity("plugintype_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintype_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 plugintypeid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.PluginType plugintypeid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintypeid_sdkmessageprocessingstep"); + this.SetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintypeid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessagefilterid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessageFilter sdkmessagefilterid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessagefilterid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessagefilterid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessageid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessage sdkmessageid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepSecureConfig sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 serviceendpoint_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceendpoint_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.ServiceEndpoint serviceendpoint_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("serviceendpoint_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("serviceendpoint_sdkmessageprocessingstep"); + this.SetRelatedEntity("serviceendpoint_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("serviceendpoint_sdkmessageprocessingstep"); + } + } + } + + /// + /// Copy of an entity's attributes before or after the core system operation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstepimage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageProcessingStepImage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStepImage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstepimage"; + + public const int EntityTypeCode = 4615; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Comma-separated list of attributes that are to be passed into the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributes")] + public string Attributes1 + { + get + { + return this.GetAttributeValue("attributes"); + } + set + { + this.OnPropertyChanging("Attributes1"); + this.SetAttributeValue("attributes", value); + this.OnPropertyChanged("Attributes1"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step image was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstepimage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Key name used to access the pre-image or post-image property bags in a step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityalias")] + public string EntityAlias + { + get + { + return this.GetAttributeValue("entityalias"); + } + set + { + this.OnPropertyChanging("EntityAlias"); + this.SetAttributeValue("entityalias", value); + this.OnPropertyChanged("EntityAlias"); + } + } + + /// + /// Type of image requested. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("imagetype")] + public Microsoft.Xrm.Sdk.OptionSetValue ImageType + { + get + { + return this.GetAttributeValue("imagetype"); + } + set + { + this.OnPropertyChanging("ImageType"); + this.SetAttributeValue("imagetype", value); + this.OnPropertyChanged("ImageType"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Name of the property on the Request message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagepropertyname")] + public string MessagePropertyName + { + get + { + return this.GetAttributeValue("messagepropertyname"); + } + set + { + this.OnPropertyChanging("MessagePropertyName"); + this.SetAttributeValue("messagepropertyname", value); + this.OnPropertyChanged("MessagePropertyName"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepimage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of SdkMessage processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Name of the related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedattributename")] + public string RelatedAttributeName + { + get + { + return this.GetAttributeValue("relatedattributename"); + } + set + { + this.OnPropertyChanging("RelatedAttributeName"); + this.SetAttributeValue("relatedattributename", value); + this.OnPropertyChanged("RelatedAttributeName"); + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageProcessingStepId + { + get + { + return this.GetAttributeValue("sdkmessageprocessingstepid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepId"); + this.SetAttributeValue("sdkmessageprocessingstepid", value); + this.OnPropertyChanged("SdkMessageProcessingStepId"); + } + } + + /// + /// Unique identifier of the SDK message processing step image entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] + public System.Nullable SdkMessageProcessingStepImageId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepimageid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepImageId"); + this.SetAttributeValue("sdkmessageprocessingstepimageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepImageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepImageId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageidunique")] + public System.Nullable SdkMessageProcessingStepImageIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepimageidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Number that identifies a specific revision of the step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepimage"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepimage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepimage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 organization_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("organization_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 sdkmessageprocessingstepid_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStep sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + this.SetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + } + } + } + + /// + /// Non-public custom configuration that is passed to a plug-in's constructor. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstepsecureconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageProcessingStepSecureConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStepSecureConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstepsecureconfig"; + + public const int EntityTypeCode = 4616; + + 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 SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstepsecureconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepsecureconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the SDK message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public System.Nullable SdkMessageProcessingStepSecureConfigId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepsecureconfigid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepSecureConfigId"); + this.SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepSecureConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepSecureConfigId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigidunique")] + public System.Nullable SdkMessageProcessingStepSecureConfigIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepsecureconfigidunique"); + } + } + + /// + /// Secure step-specific configuration for the plug-in type that is passed to the plug-in's constructor at run time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secureconfig")] + public string SecureConfig + { + get + { + return this.GetAttributeValue("secureconfig"); + } + set + { + this.OnPropertyChanging("SecureConfig"); + this.SetAttributeValue("secureconfig", value); + this.OnPropertyChanged("SecureConfig"); + } + } + + /// + /// 1:N sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstepsecureconfig", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstepsecureconfig", null); + } + } + + /// + /// N:1 organization_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("organization_sdkmessageprocessingstepsecureconfig", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagerequest")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageRequest : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageRequest() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagerequest"; + + public const int EntityTypeCode = 4609; + + 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 SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message request 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 sdkmessagerequest. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message request 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 sdkmessagerequest. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message request is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Type of entity with which the SDK request is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + } + + /// + /// Unique identifier of the message pair with which the SDK message request is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessagePairId + { + get + { + return this.GetAttributeValue("sdkmessagepairid"); + } + } + + /// + /// Unique identifier of the SDK message request entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public System.Nullable SdkMessageRequestId + { + get + { + return this.GetAttributeValue>("sdkmessagerequestid"); + } + set + { + this.OnPropertyChanging("SdkMessageRequestId"); + this.SetAttributeValue("sdkmessagerequestid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageRequestId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageRequestId = value; + } + } + + /// + /// Unique identifier of the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestidunique")] + public System.Nullable SdkMessageRequestIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagerequestidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N messagerequest_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable messagerequest_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("messagerequest_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("messagerequest_sdkmessagerequestfield"); + this.SetRelatedEntities("messagerequest_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("messagerequest_sdkmessagerequestfield"); + } + } + + /// + /// 1:N messagerequest_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable messagerequest_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("messagerequest_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("messagerequest_sdkmessageresponse"); + this.SetRelatedEntities("messagerequest_sdkmessageresponse", null, value); + this.OnPropertyChanged("messagerequest_sdkmessageresponse"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequest"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagerequest", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequest"); + } + } + + /// + /// N:1 createdby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagerequest", null); + } + } + + /// + /// N:1 lk_sdkmessagerequest_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequest_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequest_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagerequest_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequest_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequest_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messagepair_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagepair_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SdkMessagePair messagepair_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("messagepair_sdkmessagerequest", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagerequest", null); + } + } + + /// + /// N:1 organization_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("organization_sdkmessagerequest", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagerequestfield")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageRequestField : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageRequestField() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagerequestfield"; + + public const int EntityTypeCode = 4614; + + 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)); + } + } + + /// + /// Common language runtime (CLR)-based parser for the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("clrparser")] + public string ClrParser + { + get + { + return this.GetAttributeValue("clrparser"); + } + set + { + this.OnPropertyChanging("ClrParser"); + this.SetAttributeValue("clrparser", value); + this.OnPropertyChanged("ClrParser"); + } + } + + /// + /// Unique identifier of the user who created the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message request field 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 sdkmessagerequestfield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Indicates how field contents are used during message processing. 1 - Primary entity, 2- Secondary entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldmask")] + public System.Nullable FieldMask + { + get + { + return this.GetAttributeValue>("fieldmask"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message request field 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 sdkmessagerequestfield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Information about whether SDK message request field is optional. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("optional")] + public System.Nullable Optional + { + get + { + return this.GetAttributeValue>("optional"); + } + set + { + this.OnPropertyChanging("Optional"); + this.SetAttributeValue("optional", value); + this.OnPropertyChanged("Optional"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message request field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Parser for the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parser")] + public string Parser + { + get + { + return this.GetAttributeValue("parser"); + } + set + { + this.OnPropertyChanging("Parser"); + this.SetAttributeValue("parser", value); + this.OnPropertyChanged("Parser"); + } + } + + /// + /// Position of the Sdk message request field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("position")] + public System.Nullable Position + { + get + { + return this.GetAttributeValue>("position"); + } + } + + /// + /// Public name of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publicname")] + public string PublicName + { + get + { + return this.GetAttributeValue("publicname"); + } + set + { + this.OnPropertyChanging("PublicName"); + this.SetAttributeValue("publicname", value); + this.OnPropertyChanged("PublicName"); + } + } + + /// + /// Unique identifier of the SDK message request field entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestfieldid")] + public System.Nullable SdkMessageRequestFieldId + { + get + { + return this.GetAttributeValue>("sdkmessagerequestfieldid"); + } + set + { + this.OnPropertyChanging("SdkMessageRequestFieldId"); + this.SetAttributeValue("sdkmessagerequestfieldid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageRequestFieldId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestfieldid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageRequestFieldId = value; + } + } + + /// + /// Entity identifier of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestfieldidunique")] + public System.Nullable SdkMessageRequestFieldIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagerequestfieldidunique"); + } + } + + /// + /// Unique identifier of the message request with which the SDK message request field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageRequestId + { + get + { + return this.GetAttributeValue("sdkmessagerequestid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequestfield"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequestfield"); + } + } + + /// + /// N:1 createdby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagerequestfield", null); + } + } + + /// + /// N:1 lk_sdkmessagerequestfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequestfield_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequestfield_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagerequestfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequestfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequestfield_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messagerequest_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequest messagerequest_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("messagerequest_sdkmessagerequestfield", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagerequestfield", null); + } + } + + /// + /// N:1 organization_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("organization_sdkmessagerequestfield", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageresponse")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageResponse : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageResponse() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageresponse"; + + public const int EntityTypeCode = 4610; + + 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 SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message response 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 sdkmessageresponse. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message response 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 sdkmessageresponse. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message response is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the message request with which the SDK message response is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageRequestId + { + get + { + return this.GetAttributeValue("sdkmessagerequestid"); + } + } + + /// + /// Unique identifier of the SDK message response entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + public System.Nullable SdkMessageResponseId + { + get + { + return this.GetAttributeValue>("sdkmessageresponseid"); + } + set + { + this.OnPropertyChanging("SdkMessageResponseId"); + this.SetAttributeValue("sdkmessageresponseid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageResponseId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageResponseId = value; + } + } + + /// + /// Unique identifier of the SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseidunique")] + public System.Nullable SdkMessageResponseIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageresponseidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N messageresponse_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messageresponse_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable messageresponse_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("messageresponse_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("messageresponse_sdkmessageresponsefield"); + this.SetRelatedEntities("messageresponse_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("messageresponse_sdkmessageresponsefield"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponse"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponse"); + } + } + + /// + /// N:1 createdby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageresponse", null); + } + } + + /// + /// N:1 lk_sdkmessageresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponse_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponse_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messagerequest_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequest messagerequest_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("messagerequest_sdkmessageresponse", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageresponse", null); + } + } + + /// + /// N:1 organization_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("organization_sdkmessageresponse", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageresponsefield")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageResponseField : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageResponseField() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageresponsefield"; + + public const int EntityTypeCode = 4611; + + 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)); + } + } + + /// + /// Common language runtime (CLR)-based formatter of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("clrformatter")] + public string ClrFormatter + { + get + { + return this.GetAttributeValue("clrformatter"); + } + set + { + this.OnPropertyChanging("ClrFormatter"); + this.SetAttributeValue("clrformatter", value); + this.OnPropertyChanged("ClrFormatter"); + } + } + + /// + /// Unique identifier of the user who created the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message response field 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 sdkmessageresponsefield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Formatter for the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formatter")] + public string Formatter + { + get + { + return this.GetAttributeValue("formatter"); + } + set + { + this.OnPropertyChanging("Formatter"); + this.SetAttributeValue("formatter", value); + this.OnPropertyChanged("Formatter"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message response field 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 sdkmessageresponsefield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message response field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Position of the Sdk message response field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("position")] + public System.Nullable Position + { + get + { + return this.GetAttributeValue>("position"); + } + } + + /// + /// Public name of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publicname")] + public string PublicName + { + get + { + return this.GetAttributeValue("publicname"); + } + set + { + this.OnPropertyChanging("PublicName"); + this.SetAttributeValue("publicname", value); + this.OnPropertyChanged("PublicName"); + } + } + + /// + /// Unique identifier of the SDK message response field entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponsefieldid")] + public System.Nullable SdkMessageResponseFieldId + { + get + { + return this.GetAttributeValue>("sdkmessageresponsefieldid"); + } + set + { + this.OnPropertyChanging("SdkMessageResponseFieldId"); + this.SetAttributeValue("sdkmessageresponsefieldid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageResponseFieldId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponsefieldid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageResponseFieldId = value; + } + } + + /// + /// Unique identifier of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponsefieldidunique")] + public System.Nullable SdkMessageResponseFieldIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageresponsefieldidunique"); + } + } + + /// + /// Unique identifier of the message response with which the SDK message response field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageResponseId + { + get + { + return this.GetAttributeValue("sdkmessageresponseid"); + } + } + + /// + /// Actual value of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("value")] + public string Value + { + get + { + return this.GetAttributeValue("value"); + } + set + { + this.OnPropertyChanging("Value"); + this.SetAttributeValue("value", value); + this.OnPropertyChanged("Value"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponsefield"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponsefield"); + } + } + + /// + /// N:1 createdby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageresponsefield", null); + } + } + + /// + /// N:1 lk_sdkmessageresponsefield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponsefield_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponsefield_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageresponsefield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponsefield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponsefield_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messageresponse_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messageresponse_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageResponse messageresponse_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("messageresponse_sdkmessageresponsefield", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageresponsefield", null); + } + } + + /// + /// N:1 organization_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("organization_sdkmessageresponsefield", null); + } + } + } + + /// + /// Calendar representing the semi-annual span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("semiannualfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SemiAnnualFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SemiAnnualFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "semiannualfiscalcalendar"; + + public const int EntityTypeCode = 2001; + + 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 business unit with which the calendar is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the semiannual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the semiannual fiscal calendar 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 semiannualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the semiannual fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the semiannual fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sales quota for the first half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firsthalf")] + public Microsoft.Xrm.Sdk.Money FirstHalf + { + get + { + return this.GetAttributeValue("firsthalf"); + } + set + { + this.OnPropertyChanging("FirstHalf"); + this.SetAttributeValue("firsthalf", value); + this.OnPropertyChanged("FirstHalf"); + } + } + + /// + /// Base currency equivalent for the sales quota for the first half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firsthalf_base")] + public Microsoft.Xrm.Sdk.Money FirstHalf_Base + { + get + { + return this.GetAttributeValue("firsthalf_base"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the semiannual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the semiannual fiscal calendar 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 semiannualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// Sales quota for the second half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondhalf")] + public Microsoft.Xrm.Sdk.Money SecondHalf + { + get + { + return this.GetAttributeValue("secondhalf"); + } + set + { + this.OnPropertyChanging("SecondHalf"); + this.SetAttributeValue("secondhalf", value); + this.OnPropertyChanged("SecondHalf"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondhalf_base")] + public Microsoft.Xrm.Sdk.Money SecondHalf_Base + { + get + { + return this.GetAttributeValue("secondhalf_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"); + } + } + + /// + /// Unique identifier of the currency associated with the semiannual fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier for the user who created the semiannual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N SemiAnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable SemiAnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("SemiAnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SemiAnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("SemiAnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("SemiAnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N SemiAnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SemiAnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SemiAnnualFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SemiAnnualFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("SemiAnnualFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SemiAnnualFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_semiannualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_semiannualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_semiannualfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_semiannualfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_semiannualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_semiannualfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_semiannualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_semiannualfiscalcalendar"); + } + } + } + + /// + /// Activity that represents work done to satisfy a customer's need. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("service")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Service : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Service() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "service"; + + public const int EntityTypeCode = 4001; + + 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)); + } + } + + /// + /// Used in conjunction with granularity to describes when services can be performed in relation to midnight on a given day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("anchoroffset")] + public System.Nullable AnchorOffset + { + get + { + return this.GetAttributeValue>("anchoroffset"); + } + set + { + this.OnPropertyChanging("AnchorOffset"); + this.SetAttributeValue("anchoroffset", value); + this.OnPropertyChanged("AnchorOffset"); + } + } + + /// + /// Unique identifier of the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public System.Nullable CalendarId + { + get + { + return this.GetAttributeValue>("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Unique identifier of the user who created the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the service 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 service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of activity that represents work done to satisfy a customer's need. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Duration of the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// Describes how often the service is performed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("granularity")] + public string Granularity + { + get + { + return this.GetAttributeValue("granularity"); + } + set + { + this.OnPropertyChanging("Granularity"); + this.SetAttributeValue("granularity", value); + this.OnPropertyChanged("Granularity"); + } + } + + /// + /// 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"); + } + } + + /// + /// Initial status reason for the service activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialstatuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue InitialStatusCode + { + get + { + return this.GetAttributeValue("initialstatuscode"); + } + set + { + this.OnPropertyChanging("InitialStatusCode"); + this.SetAttributeValue("initialstatuscode", value); + this.OnPropertyChanged("InitialStatusCode"); + } + } + + /// + /// Information about whether the service can be scheduled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isschedulable")] + public System.Nullable IsSchedulable + { + get + { + return this.GetAttributeValue>("isschedulable"); + } + set + { + this.OnPropertyChanging("IsSchedulable"); + this.SetAttributeValue("isschedulable", value); + this.OnPropertyChanged("IsSchedulable"); + } + } + + /// + /// Information about whether the service is visible to users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + set + { + this.OnPropertyChanging("IsVisible"); + this.SetAttributeValue("isvisible", value); + this.OnPropertyChanged("IsVisible"); + } + } + + /// + /// Unique identifier of the user who last modified the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the service 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 service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the service is associated. + /// + [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"); + } + } + + /// + /// Unique identifier of the resource specification with which the service is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public Microsoft.Xrm.Sdk.EntityReference ResourceSpecId + { + get + { + return this.GetAttributeValue("resourcespecid"); + } + set + { + this.OnPropertyChanging("ResourceSpecId"); + this.SetAttributeValue("resourcespecid", value); + this.OnPropertyChanged("ResourceSpecId"); + } + } + + /// + /// Unique identifier of the associated service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + public System.Nullable ServiceId + { + get + { + return this.GetAttributeValue>("serviceid"); + } + set + { + this.OnPropertyChanging("ServiceId"); + this.SetAttributeValue("serviceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ServiceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ServiceId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showresources")] + public System.Nullable ShowResources + { + get + { + return this.GetAttributeValue>("showresources"); + } + set + { + this.OnPropertyChanging("ShowResources"); + this.SetAttributeValue("showresources", value); + this.OnPropertyChanged("ShowResources"); + } + } + + /// + /// Value that is taken from PluginTypeId in the Plugin Type record for the scheduling strategy. This is the ID of the scheduling strategy plug-in associated with the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("strategyid")] + public Microsoft.Xrm.Sdk.EntityReference StrategyId + { + get + { + return this.GetAttributeValue("strategyid"); + } + set + { + this.OnPropertyChanging("StrategyId"); + this.SetAttributeValue("strategyid", value); + this.OnPropertyChanged("StrategyId"); + } + } + + /// + /// Version number of the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N service_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_accounts")] + public System.Collections.Generic.IEnumerable service_accounts + { + get + { + return this.GetRelatedEntities("service_accounts", null); + } + set + { + this.OnPropertyChanging("service_accounts"); + this.SetRelatedEntities("service_accounts", null, value); + this.OnPropertyChanged("service_accounts"); + } + } + + /// + /// 1:N service_activity_pointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_activity_pointers")] + public System.Collections.Generic.IEnumerable service_activity_pointers + { + get + { + return this.GetRelatedEntities("service_activity_pointers", null); + } + set + { + this.OnPropertyChanging("service_activity_pointers"); + this.SetRelatedEntities("service_activity_pointers", null, value); + this.OnPropertyChanged("service_activity_pointers"); + } + } + + /// + /// 1:N Service_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_Annotation")] + public System.Collections.Generic.IEnumerable Service_Annotation + { + get + { + return this.GetRelatedEntities("Service_Annotation", null); + } + set + { + this.OnPropertyChanging("Service_Annotation"); + this.SetRelatedEntities("Service_Annotation", null, value); + this.OnPropertyChanged("Service_Annotation"); + } + } + + /// + /// 1:N service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_appointments")] + public System.Collections.Generic.IEnumerable service_appointments + { + get + { + return this.GetRelatedEntities("service_appointments", null); + } + set + { + this.OnPropertyChanging("service_appointments"); + this.SetRelatedEntities("service_appointments", null, value); + this.OnPropertyChanged("service_appointments"); + } + } + + /// + /// 1:N Service_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_AsyncOperations")] + public System.Collections.Generic.IEnumerable Service_AsyncOperations + { + get + { + return this.GetRelatedEntities("Service_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Service_AsyncOperations"); + this.SetRelatedEntities("Service_AsyncOperations", null, value); + this.OnPropertyChanged("Service_AsyncOperations"); + } + } + + /// + /// 1:N Service_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Service_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Service_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Service_BulkDeleteFailures"); + this.SetRelatedEntities("Service_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Service_BulkDeleteFailures"); + } + } + + /// + /// 1:N service_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarrules")] + public System.Collections.Generic.IEnumerable CalendarRules + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("calendarrules"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("CalendarRules"); + if ((value == null)) + { + this.SetAttributeValue("calendarrules", value); + } + else + { + this.SetAttributeValue("calendarrules", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("CalendarRules"); + } + } + + /// + /// 1:N service_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_contacts")] + public System.Collections.Generic.IEnumerable service_contacts + { + get + { + return this.GetRelatedEntities("service_contacts", null); + } + set + { + this.OnPropertyChanging("service_contacts"); + this.SetRelatedEntities("service_contacts", null, value); + this.OnPropertyChanged("service_contacts"); + } + } + + /// + /// 1:N Service_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Service_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Service_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Service_DuplicateBaseRecord"); + this.SetRelatedEntities("Service_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Service_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Service_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Service_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Service_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Service_DuplicateMatchingRecord"); + this.SetRelatedEntities("Service_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Service_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N service_emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_emails")] + public System.Collections.Generic.IEnumerable service_emails + { + get + { + return this.GetRelatedEntities("service_emails", null); + } + set + { + this.OnPropertyChanging("service_emails"); + this.SetRelatedEntities("service_emails", null, value); + this.OnPropertyChanged("service_emails"); + } + } + + /// + /// 1:N service_faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_faxes")] + public System.Collections.Generic.IEnumerable service_faxes + { + get + { + return this.GetRelatedEntities("service_faxes", null); + } + set + { + this.OnPropertyChanging("service_faxes"); + this.SetRelatedEntities("service_faxes", null, value); + this.OnPropertyChanged("service_faxes"); + } + } + + /// + /// 1:N service_incidentresolutions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_incidentresolutions")] + public System.Collections.Generic.IEnumerable service_incidentresolutions + { + get + { + return this.GetRelatedEntities("service_incidentresolutions", null); + } + set + { + this.OnPropertyChanging("service_incidentresolutions"); + this.SetRelatedEntities("service_incidentresolutions", null, value); + this.OnPropertyChanged("service_incidentresolutions"); + } + } + + /// + /// 1:N service_letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_letters")] + public System.Collections.Generic.IEnumerable service_letters + { + get + { + return this.GetRelatedEntities("service_letters", null); + } + set + { + this.OnPropertyChanging("service_letters"); + this.SetRelatedEntities("service_letters", null, value); + this.OnPropertyChanged("service_letters"); + } + } + + /// + /// 1:N service_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_opportunityclose")] + public System.Collections.Generic.IEnumerable service_opportunityclose + { + get + { + return this.GetRelatedEntities("service_opportunityclose", null); + } + set + { + this.OnPropertyChanging("service_opportunityclose"); + this.SetRelatedEntities("service_opportunityclose", null, value); + this.OnPropertyChanged("service_opportunityclose"); + } + } + + /// + /// 1:N service_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_orderclose")] + public System.Collections.Generic.IEnumerable service_orderclose + { + get + { + return this.GetRelatedEntities("service_orderclose", null); + } + set + { + this.OnPropertyChanging("service_orderclose"); + this.SetRelatedEntities("service_orderclose", null, value); + this.OnPropertyChanged("service_orderclose"); + } + } + + /// + /// 1:N service_phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_phonecalls")] + public System.Collections.Generic.IEnumerable service_phonecalls + { + get + { + return this.GetRelatedEntities("service_phonecalls", null); + } + set + { + this.OnPropertyChanging("service_phonecalls"); + this.SetRelatedEntities("service_phonecalls", null, value); + this.OnPropertyChanged("service_phonecalls"); + } + } + + /// + /// 1:N Service_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_ProcessSessions")] + public System.Collections.Generic.IEnumerable Service_ProcessSessions + { + get + { + return this.GetRelatedEntities("Service_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Service_ProcessSessions"); + this.SetRelatedEntities("Service_ProcessSessions", null, value); + this.OnPropertyChanged("Service_ProcessSessions"); + } + } + + /// + /// 1:N service_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_quoteclose")] + public System.Collections.Generic.IEnumerable service_quoteclose + { + get + { + return this.GetRelatedEntities("service_quoteclose", null); + } + set + { + this.OnPropertyChanging("service_quoteclose"); + this.SetRelatedEntities("service_quoteclose", null, value); + this.OnPropertyChanged("service_quoteclose"); + } + } + + /// + /// 1:N service_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_recurringappointmentmasters")] + public System.Collections.Generic.IEnumerable service_recurringappointmentmasters + { + get + { + return this.GetRelatedEntities("service_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("service_recurringappointmentmasters"); + this.SetRelatedEntities("service_recurringappointmentmasters", null, value); + this.OnPropertyChanged("service_recurringappointmentmasters"); + } + } + + /// + /// 1:N service_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_service_appointments")] + public System.Collections.Generic.IEnumerable service_service_appointments + { + get + { + return this.GetRelatedEntities("service_service_appointments", null); + } + set + { + this.OnPropertyChanging("service_service_appointments"); + this.SetRelatedEntities("service_service_appointments", null, value); + this.OnPropertyChanged("service_service_appointments"); + } + } + + /// + /// 1:N service_tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_tasks")] + public System.Collections.Generic.IEnumerable service_tasks + { + get + { + return this.GetRelatedEntities("service_tasks", null); + } + set + { + this.OnPropertyChanging("service_tasks"); + this.SetRelatedEntities("service_tasks", null, value); + this.OnPropertyChanged("service_tasks"); + } + } + + /// + /// 1:N userentityinstancedata_service + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_service")] + public System.Collections.Generic.IEnumerable userentityinstancedata_service + { + get + { + return this.GetRelatedEntities("userentityinstancedata_service", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_service"); + this.SetRelatedEntities("userentityinstancedata_service", null, value); + this.OnPropertyChanged("userentityinstancedata_service"); + } + } + + /// + /// N:1 calendar_services + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_services")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_services + { + get + { + return this.GetRelatedEntity("calendar_services", null); + } + set + { + this.OnPropertyChanging("calendar_services"); + this.SetRelatedEntity("calendar_services", null, value); + this.OnPropertyChanged("calendar_services"); + } + } + + /// + /// N:1 lk_service_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_createdby + { + get + { + return this.GetRelatedEntity("lk_service_createdby", null); + } + } + + /// + /// N:1 lk_service_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_service_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_service_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_modifiedby + { + get + { + return this.GetRelatedEntity("lk_service_modifiedby", null); + } + } + + /// + /// N:1 lk_service_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_service_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_services + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_services")] + public Xrm.Framework.CI.Common.Entities.Organization organization_services + { + get + { + return this.GetRelatedEntity("organization_services", null); + } + } + + /// + /// N:1 plugin_type_service + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("strategyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugin_type_service")] + public Xrm.Framework.CI.Common.Entities.PluginType plugin_type_service + { + get + { + return this.GetRelatedEntity("plugin_type_service", null); + } + set + { + this.OnPropertyChanging("plugin_type_service"); + this.SetRelatedEntity("plugin_type_service", null, value); + this.OnPropertyChanged("plugin_type_service"); + } + } + + /// + /// N:1 resource_spec_services + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resource_spec_services")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec resource_spec_services + { + get + { + return this.GetRelatedEntity("resource_spec_services", null); + } + set + { + this.OnPropertyChanging("resource_spec_services"); + this.SetRelatedEntity("resource_spec_services", null, value); + this.OnPropertyChanged("resource_spec_services"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ServiceAppointmentState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// Activity offered by the organization to satisfy its customer's needs. Each service activity includes date, time, duration, and required resources. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("serviceappointment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ServiceAppointment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ServiceAppointment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "serviceappointment"; + + public const int EntityTypeCode = 4214; + + 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 service 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Shows the value selected in the Duration field on the service activity at the time the service activity is closed as completed. The duration is used to report the time spent on the activity. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the service activity. By default, it displays when the activity was closed or canceled. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the service activity. By default, it displays when the activity was created. + /// + [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"); + } + } + + /// + /// Type a category to identify the service activity type, such as routine maintenance or service call, to tie the service activity to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Enter the accounts and contacts for whom the service activity is being performed. + /// + [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"); + } + } + + /// + /// Type additional information to describe the service activity, such as key talking points or objectives. + /// + [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"); + } + } + + /// + /// 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 service activity is an all-day event to make sure the required resources are scheduled for the full day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isalldayevent")] + public System.Nullable IsAllDayEvent + { + get + { + return this.GetAttributeValue>("isalldayevent"); + } + set + { + this.OnPropertyChanging("IsAllDayEvent"); + this.SetAttributeValue("isalldayevent", value); + this.OnPropertyChanged("IsAllDayEvent"); + } + } + + /// + /// Information which specifies whether the service 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 which specifies if the service 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"); + } + } + + /// + /// Type the location where the service activity will take place, such as a conference room, customer office, or other venue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("location")] + public string Location + { + get + { + return this.GetAttributeValue("location"); + } + set + { + this.OnPropertyChanging("Location"); + this.SetAttributeValue("location", value); + this.OnPropertyChanged("Location"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 that owns the service 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 service activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the object with which the service 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"); + } + } + + /// + /// Enter the user, facility, or equipment required to complete the service 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"); + } + } + + /// + /// Shows the expected duration of the service activity, in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + set + { + this.OnPropertyChanging("ScheduledDurationMinutes"); + this.SetAttributeValue("scheduleddurationminutes", value); + this.OnPropertyChanged("ScheduledDurationMinutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Choose the service scheduled to be performed during the service activity. + /// + [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 site or location where the service activity will be performed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Shows whether the service activity is open, completed, or canceled. Completed and canceled service activities are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ServiceAppointmentState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ServiceAppointmentState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the service activity'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"); + } + } + + /// + /// Type a subcategory to identify the service activity type and relate the activity to a specific product, service region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the service 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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 service activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N serviceappointment_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_activity_parties")] + public System.Collections.Generic.IEnumerable serviceappointment_activity_parties + { + get + { + return this.GetRelatedEntities("serviceappointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("serviceappointment_activity_parties"); + this.SetRelatedEntities("serviceappointment_activity_parties", null, value); + this.OnPropertyChanged("serviceappointment_activity_parties"); + } + } + + /// + /// 1:N ServiceAppointment_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_Annotation")] + public System.Collections.Generic.IEnumerable ServiceAppointment_Annotation + { + get + { + return this.GetRelatedEntities("ServiceAppointment_Annotation", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_Annotation"); + this.SetRelatedEntities("ServiceAppointment_Annotation", null, value); + this.OnPropertyChanged("ServiceAppointment_Annotation"); + } + } + + /// + /// 1:N ServiceAppointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_AsyncOperations")] + public System.Collections.Generic.IEnumerable ServiceAppointment_AsyncOperations + { + get + { + return this.GetRelatedEntities("ServiceAppointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_AsyncOperations"); + this.SetRelatedEntities("ServiceAppointment_AsyncOperations", null, value); + this.OnPropertyChanged("ServiceAppointment_AsyncOperations"); + } + } + + /// + /// 1:N ServiceAppointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ServiceAppointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ServiceAppointment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_BulkDeleteFailures"); + this.SetRelatedEntities("ServiceAppointment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ServiceAppointment_BulkDeleteFailures"); + } + } + + /// + /// 1:N serviceappointment_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections1")] + public System.Collections.Generic.IEnumerable serviceappointment_connections1 + { + get + { + return this.GetRelatedEntities("serviceappointment_connections1", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections1"); + this.SetRelatedEntities("serviceappointment_connections1", null, value); + this.OnPropertyChanged("serviceappointment_connections1"); + } + } + + /// + /// 1:N serviceappointment_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections2")] + public System.Collections.Generic.IEnumerable serviceappointment_connections2 + { + get + { + return this.GetRelatedEntities("serviceappointment_connections2", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections2"); + this.SetRelatedEntities("serviceappointment_connections2", null, value); + this.OnPropertyChanged("serviceappointment_connections2"); + } + } + + /// + /// 1:N serviceappointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable serviceappointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("serviceappointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("serviceappointment_principalobjectattributeaccess"); + this.SetRelatedEntities("serviceappointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("serviceappointment_principalobjectattributeaccess"); + } + } + + /// + /// 1:N ServiceAppointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_ProcessSessions")] + public System.Collections.Generic.IEnumerable ServiceAppointment_ProcessSessions + { + get + { + return this.GetRelatedEntities("ServiceAppointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_ProcessSessions"); + this.SetRelatedEntities("ServiceAppointment_ProcessSessions", null, value); + this.OnPropertyChanged("ServiceAppointment_ProcessSessions"); + } + } + + /// + /// 1:N ServiceAppointment_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_QueueItem")] + public System.Collections.Generic.IEnumerable ServiceAppointment_QueueItem + { + get + { + return this.GetRelatedEntities("ServiceAppointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_QueueItem"); + this.SetRelatedEntities("ServiceAppointment_QueueItem", null, value); + this.OnPropertyChanged("ServiceAppointment_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_serviceappointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceappointment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_serviceappointment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_serviceappointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceappointment"); + this.SetRelatedEntities("userentityinstancedata_serviceappointment", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceappointment"); + } + } + + /// + /// N:1 Account_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Account Account_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Account_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Account_ServiceAppointments"); + this.SetRelatedEntity("Account_ServiceAppointments", null, value); + this.OnPropertyChanged("Account_ServiceAppointments"); + } + } + + /// + /// N:1 activity_pointer_service_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_service_appointment")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_service_appointment + { + get + { + return this.GetRelatedEntity("activity_pointer_service_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_service_appointment"); + this.SetRelatedEntity("activity_pointer_service_appointment", null, value); + this.OnPropertyChanged("activity_pointer_service_appointment"); + } + } + + /// + /// N:1 business_unit_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_appointments")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_service_appointments + { + get + { + return this.GetRelatedEntity("business_unit_service_appointments", null); + } + } + + /// + /// N:1 Campaign_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Campaign_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Campaign_ServiceAppointments"); + this.SetRelatedEntity("Campaign_ServiceAppointments", null, value); + this.OnPropertyChanged("Campaign_ServiceAppointments"); + } + } + + /// + /// N:1 Contact_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Contact_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contact_ServiceAppointments"); + this.SetRelatedEntity("Contact_ServiceAppointments", null, value); + this.OnPropertyChanged("Contact_ServiceAppointments"); + } + } + + /// + /// N:1 Contract_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Contract_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contract_ServiceAppointments"); + this.SetRelatedEntity("Contract_ServiceAppointments", null, value); + this.OnPropertyChanged("Contract_ServiceAppointments"); + } + } + + /// + /// N:1 Incident_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Incident_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Incident_ServiceAppointments"); + this.SetRelatedEntity("Incident_ServiceAppointments", null, value); + this.OnPropertyChanged("Incident_ServiceAppointments"); + } + } + + /// + /// N:1 Invoice_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Invoice_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Invoice_ServiceAppointments"); + this.SetRelatedEntity("Invoice_ServiceAppointments", null, value); + this.OnPropertyChanged("Invoice_ServiceAppointments"); + } + } + + /// + /// N:1 Lead_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Lead_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Lead_ServiceAppointments"); + this.SetRelatedEntity("Lead_ServiceAppointments", null, value); + this.OnPropertyChanged("Lead_ServiceAppointments"); + } + } + + /// + /// N:1 lk_serviceappointment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_createdby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_createdby", null); + } + } + + /// + /// N:1 lk_serviceappointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_serviceappointment_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_modifiedby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_modifiedby", null); + } + } + + /// + /// N:1 lk_serviceappointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_ServiceAppointments + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ServiceAppointments"); + this.SetRelatedEntity("msdyn_postalbum_ServiceAppointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_ServiceAppointments"); + } + } + + /// + /// N:1 Opportunity_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Opportunity_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_ServiceAppointments"); + this.SetRelatedEntity("Opportunity_ServiceAppointments", null, value); + this.OnPropertyChanged("Opportunity_ServiceAppointments"); + } + } + + /// + /// N:1 Quote_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Quote_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Quote_ServiceAppointments"); + this.SetRelatedEntity("Quote_ServiceAppointments", null, value); + this.OnPropertyChanged("Quote_ServiceAppointments"); + } + } + + /// + /// N:1 SalesOrder_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_ServiceAppointments + { + get + { + return this.GetRelatedEntity("SalesOrder_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ServiceAppointments"); + this.SetRelatedEntity("SalesOrder_ServiceAppointments", null, value); + this.OnPropertyChanged("SalesOrder_ServiceAppointments"); + } + } + + /// + /// N:1 service_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_service_appointments")] + public Xrm.Framework.CI.Common.Entities.Service service_service_appointments + { + get + { + return this.GetRelatedEntity("service_service_appointments", null); + } + set + { + this.OnPropertyChanging("service_service_appointments"); + this.SetRelatedEntity("service_service_appointments", null, value); + this.OnPropertyChanged("service_service_appointments"); + } + } + + /// + /// N:1 site_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_service_appointments")] + public Xrm.Framework.CI.Common.Entities.Site site_service_appointments + { + get + { + return this.GetRelatedEntity("site_service_appointments", null); + } + set + { + this.OnPropertyChanging("site_service_appointments"); + this.SetRelatedEntity("site_service_appointments", null, value); + this.OnPropertyChanged("site_service_appointments"); + } + } + + /// + /// N:1 system_user_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_appointments")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_service_appointments + { + get + { + return this.GetRelatedEntity("system_user_service_appointments", null); + } + } + + /// + /// N:1 team_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_appointments")] + public Xrm.Framework.CI.Common.Entities.Team team_service_appointments + { + get + { + return this.GetRelatedEntity("team_service_appointments", null); + } + } + + /// + /// N:1 TransactionCurrency_ServiceAppointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ServiceAppointment")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ServiceAppointment + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ServiceAppointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ServiceAppointment"); + this.SetRelatedEntity("TransactionCurrency_ServiceAppointment", null, value); + this.OnPropertyChanged("TransactionCurrency_ServiceAppointment"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("servicecontractcontacts")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ServiceContractContacts : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ServiceContractContacts() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "servicecontractcontacts"; + + public const int EntityTypeCode = 20; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public System.Nullable ContractId + { + get + { + return this.GetAttributeValue>("contractid"); + } + } + + /// + /// Unique identifier of the contact of the service contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicecontractcontactid")] + public System.Nullable ServiceContractContactId + { + get + { + return this.GetAttributeValue>("servicecontractcontactid"); + } + set + { + this.OnPropertyChanging("ServiceContractContactId"); + this.SetAttributeValue("servicecontractcontactid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ServiceContractContactId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicecontractcontactid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ServiceContractContactId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicelevel")] + public System.Nullable ServiceLevel + { + get + { + return this.GetAttributeValue>("servicelevel"); + } + set + { + this.OnPropertyChanging("ServiceLevel"); + this.SetAttributeValue("servicelevel", value); + this.OnPropertyChanged("ServiceLevel"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N servicecontractcontacts_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("servicecontractcontacts_association")] + public System.Collections.Generic.IEnumerable servicecontractcontacts_association + { + get + { + return this.GetRelatedEntities("servicecontractcontacts_association", null); + } + set + { + this.OnPropertyChanging("servicecontractcontacts_association"); + this.SetRelatedEntities("servicecontractcontacts_association", null, value); + this.OnPropertyChanged("servicecontractcontacts_association"); + } + } + } + + /// + /// Service endpoint that can be contacted. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("serviceendpoint")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ServiceEndpoint : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ServiceEndpoint() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "serviceendpoint"; + + public const int EntityTypeCode = 4618; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Connection mode to contact the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionmode")] + public Microsoft.Xrm.Sdk.OptionSetValue ConnectionMode + { + get + { + return this.GetAttributeValue("connectionmode"); + } + set + { + this.OnPropertyChanging("ConnectionMode"); + this.SetAttributeValue("connectionmode", value); + this.OnPropertyChanged("ConnectionMode"); + } + } + + /// + /// Type of the endpoint contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contract")] + public Microsoft.Xrm.Sdk.OptionSetValue Contract + { + get + { + return this.GetAttributeValue("contract"); + } + set + { + this.OnPropertyChanging("Contract"); + this.SetAttributeValue("contract", value); + this.OnPropertyChanged("Contract"); + } + } + + /// + /// Unique identifier of the user who created the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the service endpoint 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 service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the service endpoint was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of Service end point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the service endpoint is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Path to the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("path")] + public string Path + { + get + { + return this.GetAttributeValue("path"); + } + set + { + this.OnPropertyChanging("Path"); + this.SetAttributeValue("path", value); + this.OnPropertyChanged("Path"); + } + } + + /// + /// Unique identifier of the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceendpointid")] + public System.Nullable ServiceEndpointId + { + get + { + return this.GetAttributeValue>("serviceendpointid"); + } + set + { + this.OnPropertyChanging("ServiceEndpointId"); + this.SetAttributeValue("serviceendpointid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ServiceEndpointId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceendpointid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ServiceEndpointId = value; + } + } + + /// + /// Unique identifier of the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceendpointidunique")] + public System.Nullable ServiceEndpointIdUnique + { + get + { + return this.GetAttributeValue>("serviceendpointidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Namespace of the App Fabric solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionnamespace")] + public string SolutionNamespace + { + get + { + return this.GetAttributeValue("solutionnamespace"); + } + set + { + this.OnPropertyChanging("SolutionNamespace"); + this.SetAttributeValue("solutionnamespace", value); + this.OnPropertyChanged("SolutionNamespace"); + } + } + + /// + /// Additional user claim value type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userclaim")] + public Microsoft.Xrm.Sdk.OptionSetValue UserClaim + { + get + { + return this.GetAttributeValue("userclaim"); + } + set + { + this.OnPropertyChanging("UserClaim"); + this.SetAttributeValue("userclaim", value); + this.OnPropertyChanged("UserClaim"); + } + } + + /// + /// 1:N serviceendpoint_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceendpoint_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable serviceendpoint_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("serviceendpoint_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("serviceendpoint_sdkmessageprocessingstep"); + this.SetRelatedEntities("serviceendpoint_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("serviceendpoint_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceendpoint")] + public System.Collections.Generic.IEnumerable userentityinstancedata_serviceendpoint + { + get + { + return this.GetRelatedEntities("userentityinstancedata_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceendpoint"); + this.SetRelatedEntities("userentityinstancedata_serviceendpoint", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceendpoint"); + } + } + + /// + /// N:1 createdby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_serviceendpoint + { + get + { + return this.GetRelatedEntity("createdby_serviceendpoint", null); + } + } + + /// + /// N:1 lk_serviceendpointbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceendpointbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceendpointbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_serviceendpointbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceendpointbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceendpointbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_serviceendpoint + { + get + { + return this.GetRelatedEntity("modifiedby_serviceendpoint", null); + } + } + + /// + /// N:1 organization_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.Organization organization_serviceendpoint + { + get + { + return this.GetRelatedEntity("organization_serviceendpoint", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SharePointDocumentLocationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Document libraries or folders on a SharePoint server from where documents can be managed in Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sharepointdocumentlocation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SharePointDocumentLocation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SharePointDocumentLocation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sharepointdocumentlocation"; + + public const int EntityTypeCode = 9508; + + 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)); + } + } + + /// + /// Absolute URL of the SharePoint document location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("absoluteurl")] + public string AbsoluteURL + { + get + { + return this.GetAttributeValue("absoluteurl"); + } + set + { + this.OnPropertyChanging("AbsoluteURL"); + this.SetAttributeValue("absoluteurl", value); + this.OnPropertyChanged("AbsoluteURL"); + } + } + + /// + /// Unique identifier of the user who created the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SharePoint document location 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 SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Exchange rate between the currency associated with the SharePoint document location record and the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sequence number of the import that created the SharePoint document location 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 last modified the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SharePoint document location record was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SharePoint document location record. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the SharePoint document location record. + /// + [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 SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the parent site or location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsiteorlocation")] + public Microsoft.Xrm.Sdk.EntityReference ParentSiteOrLocation + { + get + { + return this.GetAttributeValue("parentsiteorlocation"); + } + set + { + this.OnPropertyChanging("ParentSiteOrLocation"); + this.SetAttributeValue("parentsiteorlocation", value); + this.OnPropertyChanged("ParentSiteOrLocation"); + } + } + + /// + /// Unique identifier of the object with which the SharePoint document location record 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"); + } + } + + /// + /// Relative URL of the SharePoint document location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relativeurl")] + public string RelativeUrl + { + get + { + return this.GetAttributeValue("relativeurl"); + } + set + { + this.OnPropertyChanging("RelativeUrl"); + this.SetAttributeValue("relativeurl", value); + this.OnPropertyChanged("RelativeUrl"); + } + } + + /// + /// Unique identifier of the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointdocumentlocationid")] + public System.Nullable SharePointDocumentLocationId + { + get + { + return this.GetAttributeValue>("sharepointdocumentlocationid"); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocationId"); + this.SetAttributeValue("sharepointdocumentlocationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SharePointDocumentLocationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointdocumentlocationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SharePointDocumentLocationId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitecollectionid")] + public System.Nullable SiteCollectionId + { + get + { + return this.GetAttributeValue>("sitecollectionid"); + } + } + + /// + /// Status of the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SharePointDocumentLocationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SharePointDocumentLocationState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the SharePoint document location record. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SharePointDocumentLocation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_AsyncOperations")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_AsyncOperations + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_AsyncOperations"); + this.SetRelatedEntities("SharePointDocumentLocation_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_AsyncOperations"); + } + } + + /// + /// 1:N SharePointDocumentLocation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_DuplicateBaseRecord"); + this.SetRelatedEntities("SharePointDocumentLocation_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_DuplicateBaseRecord"); + } + } + + /// + /// 1:N SharePointDocumentLocation_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_DuplicateMatchingRecord"); + this.SetRelatedEntities("SharePointDocumentLocation_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N sharepointdocumentlocation_parent_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsharepointdocumentlocation_parent_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsharepointdocumentlocation_parent_sharepointdocumentlocation"); + this.SetRelatedEntities("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsharepointdocumentlocation_parent_sharepointdocumentlocation"); + } + } + + /// + /// 1:N sharepointdocumentlocation_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable sharepointdocumentlocation_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("sharepointdocumentlocation_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_principalobjectattributeaccess"); + this.SetRelatedEntities("sharepointdocumentlocation_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SharePointDocumentLocation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_ProcessSessions")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_ProcessSessions + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_ProcessSessions"); + this.SetRelatedEntities("SharePointDocumentLocation_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointdocumentlocation"); + this.SetRelatedEntities("userentityinstancedata_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointdocumentlocation"); + } + } + + /// + /// N:1 Account_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Account Account_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Account_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Account_SharepointDocumentLocation"); + this.SetRelatedEntity("Account_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Account_SharepointDocumentLocation"); + } + } + + /// + /// N:1 business_unit_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("business_unit_sharepointdocumentlocation", null); + } + } + + /// + /// N:1 KbArticle_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("KbArticle_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("KbArticle_SharepointDocumentLocation"); + this.SetRelatedEntity("KbArticle_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("KbArticle_SharepointDocumentLocation"); + } + } + + /// + /// N:1 Lead_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Lead_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Lead_SharepointDocumentLocation"); + this.SetRelatedEntity("Lead_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Lead_SharepointDocumentLocation"); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_createdby", null); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_modifiedby", null); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Opportunity_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Opportunity_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Opportunity_SharepointDocumentLocation"); + this.SetRelatedEntity("Opportunity_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Opportunity_SharepointDocumentLocation"); + } + } + + /// + /// N:1 Product_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Product Product_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Product_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Product_SharepointDocumentLocation"); + this.SetRelatedEntity("Product_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Product_SharepointDocumentLocation"); + } + } + + /// + /// N:1 Quote_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Quote_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Quote_SharepointDocumentLocation"); + this.SetRelatedEntity("Quote_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Quote_SharepointDocumentLocation"); + } + } + + /// + /// N:1 SalesLiterature_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("SalesLiterature_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_SharepointDocumentLocation"); + this.SetRelatedEntity("SalesLiterature_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("SalesLiterature_SharepointDocumentLocation"); + } + } + + /// + /// N:1 sharepointdocumentlocation_parent_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsiteorlocation")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation Referencingsharepointdocumentlocation_parent_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingsharepointdocumentlocation_parent_sharepointdocumentlocation"); + this.SetRelatedEntity("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingsharepointdocumentlocation_parent_sharepointdocumentlocation"); + } + } + + /// + /// N:1 sharepointdocumentlocation_parent_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsiteorlocation")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.SharePointSite sharepointdocumentlocation_parent_sharepointsite + { + get + { + return this.GetRelatedEntity("sharepointdocumentlocation_parent_sharepointsite", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_parent_sharepointsite"); + this.SetRelatedEntity("sharepointdocumentlocation_parent_sharepointsite", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_parent_sharepointsite"); + } + } + + /// + /// N:1 team_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.Team team_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("team_sharepointdocumentlocation", null); + } + } + + /// + /// N:1 TransactionCurrency_SharePointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SharePointDocumentLocation + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SharePointDocumentLocation", null); + } + } + + /// + /// N:1 user_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("user_sharepointdocumentlocation", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SharePointSiteState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// SharePoint site from where documents can be managed in Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sharepointsite")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SharePointSite : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SharePointSite() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sharepointsite"; + + public const int EntityTypeCode = 9502; + + 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)); + } + } + + /// + /// Absolute URL of the SharePoint site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("absoluteurl")] + public string AbsoluteURL + { + get + { + return this.GetAttributeValue("absoluteurl"); + } + set + { + this.OnPropertyChanging("AbsoluteURL"); + this.SetAttributeValue("absoluteurl", value); + this.OnPropertyChanged("AbsoluteURL"); + } + } + + /// + /// Unique identifier of the user who created the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SharePoint site 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 SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Exchange rate between the currency associated with the SharePoint site record and the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Entity on which the folder structure for Microsoft Dynamics CRM records will be created in SharePoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("folderstructureentity")] + public string FolderStructureEntity + { + get + { + return this.GetAttributeValue("folderstructureentity"); + } + set + { + this.OnPropertyChanging("FolderStructureEntity"); + this.SetAttributeValue("folderstructureentity", value); + this.OnPropertyChanged("FolderStructureEntity"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indicates whether the SharePoint site is the default site or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Indicates if SharePoint Grid is present or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isgridpresent")] + public System.Nullable IsGridPresent + { + get + { + return this.GetAttributeValue>("isgridpresent"); + } + set + { + this.OnPropertyChanging("IsGridPresent"); + this.SetAttributeValue("isgridpresent", value); + this.OnPropertyChanged("IsGridPresent"); + } + } + + /// + /// Date and time when the SharePoint site URL was last validated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastvalidated")] + public System.Nullable LastValidated + { + get + { + return this.GetAttributeValue>("lastvalidated"); + } + set + { + this.OnPropertyChanging("LastValidated"); + this.SetAttributeValue("lastvalidated", value); + this.OnPropertyChanged("LastValidated"); + } + } + + /// + /// Unique identifier of the user who last modified the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SharePoint site record was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SharePoint site record. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the SharePoint site. + /// + [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 document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team that owns the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the parent SharePoint site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsite")] + public Microsoft.Xrm.Sdk.EntityReference ParentSite + { + get + { + return this.GetAttributeValue("parentsite"); + } + set + { + this.OnPropertyChanging("ParentSite"); + this.SetAttributeValue("parentsite", value); + this.OnPropertyChanged("ParentSite"); + } + } + + /// + /// Relative URL of the SharePoint site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relativeurl")] + public string RelativeUrl + { + get + { + return this.GetAttributeValue("relativeurl"); + } + set + { + this.OnPropertyChanging("RelativeUrl"); + this.SetAttributeValue("relativeurl", value); + this.OnPropertyChanged("RelativeUrl"); + } + } + + /// + /// Unique identifier of the SharePoint site in CRM + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointsiteid")] + public System.Nullable SharePointSiteId + { + get + { + return this.GetAttributeValue>("sharepointsiteid"); + } + set + { + this.OnPropertyChanging("SharePointSiteId"); + this.SetAttributeValue("sharepointsiteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SharePointSiteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointsiteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SharePointSiteId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitecollectionid")] + public System.Nullable SiteCollectionId + { + get + { + return this.GetAttributeValue>("sitecollectionid"); + } + } + + /// + /// Status of the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SharePointSiteState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SharePointSiteState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the SharePoint site record. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// Validation status of the SharePoint site URL. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validationstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue ValidationStatus + { + get + { + return this.GetAttributeValue("validationstatus"); + } + set + { + this.OnPropertyChanging("ValidationStatus"); + this.SetAttributeValue("validationstatus", value); + this.OnPropertyChanged("ValidationStatus"); + } + } + + /// + /// Reason for validation status of the URL + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validationstatuserrorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ValidationStatusErrorCode + { + get + { + return this.GetAttributeValue("validationstatuserrorcode"); + } + set + { + this.OnPropertyChanging("ValidationStatusErrorCode"); + this.SetAttributeValue("validationstatuserrorcode", value); + this.OnPropertyChanged("ValidationStatusErrorCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N sharepointdocumentlocation_parent_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointsite")] + public System.Collections.Generic.IEnumerable sharepointdocumentlocation_parent_sharepointsite + { + get + { + return this.GetRelatedEntities("sharepointdocumentlocation_parent_sharepointsite", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_parent_sharepointsite"); + this.SetRelatedEntities("sharepointdocumentlocation_parent_sharepointsite", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_parent_sharepointsite"); + } + } + + /// + /// 1:N SharePointSite_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_AsyncOperations")] + public System.Collections.Generic.IEnumerable SharePointSite_AsyncOperations + { + get + { + return this.GetRelatedEntities("SharePointSite_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointSite_AsyncOperations"); + this.SetRelatedEntities("SharePointSite_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointSite_AsyncOperations"); + } + } + + /// + /// 1:N SharePointSite_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable SharePointSite_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("SharePointSite_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("SharePointSite_DuplicateBaseRecord"); + this.SetRelatedEntities("SharePointSite_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("SharePointSite_DuplicateBaseRecord"); + } + } + + /// + /// 1:N SharePointSite_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable SharePointSite_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("SharePointSite_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("SharePointSite_DuplicateMatchingRecord"); + this.SetRelatedEntities("SharePointSite_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("SharePointSite_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N sharepointsite_parentsite_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsharepointsite_parentsite_sharepointsite + { + get + { + return this.GetRelatedEntities("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsharepointsite_parentsite_sharepointsite"); + this.SetRelatedEntities("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsharepointsite_parentsite_sharepointsite"); + } + } + + /// + /// 1:N sharepointsite_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable sharepointsite_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("sharepointsite_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointsite_principalobjectattributeaccess"); + this.SetRelatedEntities("sharepointsite_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointsite_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SharePointSite_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_ProcessSessions")] + public System.Collections.Generic.IEnumerable SharePointSite_ProcessSessions + { + get + { + return this.GetRelatedEntities("SharePointSite_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointSite_ProcessSessions"); + this.SetRelatedEntities("SharePointSite_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointSite_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointsite")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sharepointsite + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sharepointsite", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointsite"); + this.SetRelatedEntities("userentityinstancedata_sharepointsite", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointsite"); + } + } + + /// + /// N:1 business_unit_sharepointsites + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointsites")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_sharepointsites + { + get + { + return this.GetRelatedEntity("business_unit_sharepointsites", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_createdby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_createdby", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_modifiedby", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 sharepointsite_parentsite_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsite")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SharePointSite Referencingsharepointsite_parentsite_sharepointsite + { + get + { + return this.GetRelatedEntity("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingsharepointsite_parentsite_sharepointsite"); + this.SetRelatedEntity("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingsharepointsite_parentsite_sharepointsite"); + } + } + + /// + /// N:1 team_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.Team team_sharepointsite + { + get + { + return this.GetRelatedEntity("team_sharepointsite", null); + } + } + + /// + /// N:1 TransactionCurrency_SharePointSite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointSite")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SharePointSite + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SharePointSite", null); + } + } + + /// + /// N:1 user_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_sharepointsite + { + get + { + return this.GetRelatedEntity("user_sharepointsite", null); + } + } + } + + /// + /// Location or branch office where an organization does business. An organization can have multiple sites. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("site")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Site : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Site() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "site"; + + public const int EntityTypeCode = 4009; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the user who created the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the site 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 site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Email address for the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the site 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 site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the site is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Unique identifier of the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public System.Nullable SiteId + { + get + { + return this.GetAttributeValue>("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SiteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SiteId = value; + } + } + + /// + /// Local time zone for the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// Version number of the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Site_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_AsyncOperations")] + public System.Collections.Generic.IEnumerable Site_AsyncOperations + { + get + { + return this.GetRelatedEntities("Site_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Site_AsyncOperations"); + this.SetRelatedEntities("Site_AsyncOperations", null, value); + this.OnPropertyChanged("Site_AsyncOperations"); + } + } + + /// + /// 1:N Site_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Site_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Site_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Site_BulkDeleteFailures"); + this.SetRelatedEntities("Site_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Site_BulkDeleteFailures"); + } + } + + /// + /// 1:N site_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_equipment")] + public System.Collections.Generic.IEnumerable site_equipment + { + get + { + return this.GetRelatedEntities("site_equipment", null); + } + set + { + this.OnPropertyChanging("site_equipment"); + this.SetRelatedEntities("site_equipment", null, value); + this.OnPropertyChanged("site_equipment"); + } + } + + /// + /// 1:N Site_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_ProcessSessions")] + public System.Collections.Generic.IEnumerable Site_ProcessSessions + { + get + { + return this.GetRelatedEntities("Site_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Site_ProcessSessions"); + this.SetRelatedEntities("Site_ProcessSessions", null, value); + this.OnPropertyChanged("Site_ProcessSessions"); + } + } + + /// + /// 1:N site_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_resources")] + public System.Collections.Generic.IEnumerable site_resources + { + get + { + return this.GetRelatedEntities("site_resources", null); + } + set + { + this.OnPropertyChanging("site_resources"); + this.SetRelatedEntities("site_resources", null, value); + this.OnPropertyChanged("site_resources"); + } + } + + /// + /// 1:N site_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_service_appointments")] + public System.Collections.Generic.IEnumerable site_service_appointments + { + get + { + return this.GetRelatedEntities("site_service_appointments", null); + } + set + { + this.OnPropertyChanging("site_service_appointments"); + this.SetRelatedEntities("site_service_appointments", null, value); + this.OnPropertyChanged("site_service_appointments"); + } + } + + /// + /// 1:N site_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_system_users")] + public System.Collections.Generic.IEnumerable site_system_users + { + get + { + return this.GetRelatedEntities("site_system_users", null); + } + set + { + this.OnPropertyChanging("site_system_users"); + this.SetRelatedEntities("site_system_users", null, value); + this.OnPropertyChanged("site_system_users"); + } + } + + /// + /// 1:N userentityinstancedata_site + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_site")] + public System.Collections.Generic.IEnumerable userentityinstancedata_site + { + get + { + return this.GetRelatedEntities("userentityinstancedata_site", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_site"); + this.SetRelatedEntities("userentityinstancedata_site", null, value); + this.OnPropertyChanged("userentityinstancedata_site"); + } + } + + /// + /// N:1 lk_site_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_site_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_site_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_site_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_site_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_site_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_sitebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sitebase_createdby + { + get + { + return this.GetRelatedEntity("lk_sitebase_createdby", null); + } + } + + /// + /// N:1 lk_sitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sitebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_sitebase_modifiedby", null); + } + } + + /// + /// N:1 organization_sites + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sites")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sites + { + get + { + return this.GetRelatedEntity("organization_sites", null); + } + } + } + + /// + /// XML data used to control the application navigation pane. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sitemap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SiteMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SiteMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sitemap"; + + public const int EntityTypeCode = 4709; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapid")] + public System.Nullable SiteMapId + { + get + { + return this.GetAttributeValue>("sitemapid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapidunique")] + public System.Nullable SiteMapIdUnique + { + get + { + return this.GetAttributeValue>("sitemapidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapxml")] + public string SiteMapXml + { + get + { + return this.GetAttributeValue("sitemapxml"); + } + set + { + this.OnPropertyChanging("SiteMapXml"); + this.SetAttributeValue("sitemapxml", value); + this.OnPropertyChanged("SiteMapXml"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sitemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sitemap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sitemap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sitemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sitemap"); + this.SetRelatedEntities("userentityinstancedata_sitemap", null, value); + this.OnPropertyChanged("userentityinstancedata_sitemap"); + } + } + + /// + /// N:1 organization_sitemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sitemap")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sitemap + { + get + { + return this.GetRelatedEntity("organization_sitemap", null); + } + } + } + + /// + /// A solution which contains CRM customizations. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solution")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Solution : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Solution() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "solution"; + + public const int EntityTypeCode = 7100; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// A link to an optional configuration page for this solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] + public Microsoft.Xrm.Sdk.EntityReference ConfigurationPageId + { + get + { + return this.GetAttributeValue("configurationpageid"); + } + set + { + this.OnPropertyChanging("ConfigurationPageId"); + this.SetAttributeValue("configurationpageid", value); + this.OnPropertyChanged("ConfigurationPageId"); + } + } + + /// + /// Unique identifier of the user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the solution was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// User display name for the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// Date and time when the solution was installed/upgraded. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("installedon")] + public System.Nullable InstalledOn + { + get + { + return this.GetAttributeValue>("installedon"); + } + } + + /// + /// Indicates whether the solution is managed or unmanaged. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the solution is visible outside of the platform. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + } + + /// + /// Unique identifier of the user who last modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the solution was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointassetid")] + public string PinpointAssetId + { + get + { + return this.GetAttributeValue("pinpointassetid"); + } + } + + /// + /// Identifier of the publisher of this solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] + public System.Nullable PinpointPublisherId + { + get + { + return this.GetAttributeValue>("pinpointpublisherid"); + } + } + + /// + /// Default locale of the solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutiondefaultlocale")] + public string PinpointSolutionDefaultLocale + { + get + { + return this.GetAttributeValue("pinpointsolutiondefaultlocale"); + } + } + + /// + /// Identifier of the solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutionid")] + public System.Nullable PinpointSolutionId + { + get + { + return this.GetAttributeValue>("pinpointsolutionid"); + } + } + + /// + /// Unique identifier of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public Microsoft.Xrm.Sdk.EntityReference PublisherId + { + get + { + return this.GetAttributeValue("publisherid"); + } + set + { + this.OnPropertyChanging("PublisherId"); + this.SetAttributeValue("publisherid", value); + this.OnPropertyChanged("PublisherId"); + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + set + { + this.OnPropertyChanging("SolutionId"); + this.SetAttributeValue("solutionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SolutionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SolutionId = value; + } + } + + /// + /// The unique name of this solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// Solution version, used to identify a solution for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N solution_solutioncomponent + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] + public System.Collections.Generic.IEnumerable solution_solutioncomponent + { + get + { + return this.GetRelatedEntities("solution_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("solution_solutioncomponent"); + this.SetRelatedEntities("solution_solutioncomponent", null, value); + this.OnPropertyChanged("solution_solutioncomponent"); + } + } + + /// + /// 1:N userentityinstancedata_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solution")] + public System.Collections.Generic.IEnumerable userentityinstancedata_solution + { + get + { + return this.GetRelatedEntities("userentityinstancedata_solution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solution"); + this.SetRelatedEntities("userentityinstancedata_solution", null, value); + this.OnPropertyChanged("userentityinstancedata_solution"); + } + } + + /// + /// N:1 lk_solution_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solution_createdby + { + get + { + return this.GetRelatedEntity("lk_solution_createdby", null); + } + } + + /// + /// N:1 lk_solution_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solution_modifiedby + { + get + { + return this.GetRelatedEntity("lk_solution_modifiedby", null); + } + } + + /// + /// N:1 lk_solutionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_solutionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_solution")] + public Xrm.Framework.CI.Common.Entities.Organization organization_solution + { + get + { + return this.GetRelatedEntity("organization_solution", null); + } + } + + /// + /// N:1 publisher_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] + public Xrm.Framework.CI.Common.Entities.Publisher publisher_solution + { + get + { + return this.GetRelatedEntity("publisher_solution", null); + } + set + { + this.OnPropertyChanging("publisher_solution"); + this.SetRelatedEntity("publisher_solution", null, value); + this.OnPropertyChanged("publisher_solution"); + } + } + + /// + /// N:1 solution_configuration_webresource + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_configuration_webresource")] + public Xrm.Framework.CI.Common.Entities.WebResource solution_configuration_webresource + { + get + { + return this.GetRelatedEntity("solution_configuration_webresource", null); + } + set + { + this.OnPropertyChanging("solution_configuration_webresource"); + this.SetRelatedEntity("solution_configuration_webresource", null, value); + this.OnPropertyChanged("solution_configuration_webresource"); + } + } + } + + /// + /// A component of a CRM solution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solutioncomponent")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SolutionComponent : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SolutionComponent() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "solutioncomponent"; + + public const int EntityTypeCode = 7103; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// The object type code of the component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentType + { + get + { + return this.GetAttributeValue("componenttype"); + } + } + + /// + /// Unique identifier of the user who created the solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the solution was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Indicates whether this component is metadata or data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismetadata")] + public System.Nullable IsMetadata + { + get + { + return this.GetAttributeValue>("ismetadata"); + } + } + + /// + /// Unique identifier of the user who last modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the solution was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the object with which the component is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + } + + /// + /// Unique identifier of the solution component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] + public System.Nullable SolutionComponentId + { + get + { + return this.GetAttributeValue>("solutioncomponentid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public Microsoft.Xrm.Sdk.EntityReference SolutionId + { + get + { + return this.GetAttributeValue("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_solutioncomponent + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solutioncomponent")] + public System.Collections.Generic.IEnumerable userentityinstancedata_solutioncomponent + { + get + { + return this.GetRelatedEntities("userentityinstancedata_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solutioncomponent"); + this.SetRelatedEntities("userentityinstancedata_solutioncomponent", null, value); + this.OnPropertyChanged("userentityinstancedata_solutioncomponent"); + } + } + + /// + /// N:1 lk_solutioncomponentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutioncomponentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_solutioncomponentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutioncomponentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 solution_solutioncomponent + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] + public Xrm.Framework.CI.Common.Entities.Solution solution_solutioncomponent + { + get + { + return this.GetRelatedEntity("solution_solutioncomponent", null); + } + } + } + + /// + /// Information regarding subjects available in the system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("subject")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Subject : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Subject() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "subject"; + + public const int EntityTypeCode = 129; + + 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 subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the subject 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 subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Information that specifies when the subject will be displayed in lists of subjects. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("featuremask")] + public System.Nullable FeatureMask + { + get + { + return this.GetAttributeValue>("featuremask"); + } + set + { + this.OnPropertyChanging("FeatureMask"); + this.SetAttributeValue("featuremask", value); + this.OnPropertyChanged("FeatureMask"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the subject 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 subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier for the organization associated with the subject. + /// + [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"); + } + } + + /// + /// Unique identifier of the parent subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsubject")] + public Microsoft.Xrm.Sdk.EntityReference ParentSubject + { + get + { + return this.GetAttributeValue("parentsubject"); + } + set + { + this.OnPropertyChanging("ParentSubject"); + this.SetAttributeValue("parentsubject", value); + this.OnPropertyChanged("ParentSubject"); + } + } + + /// + /// Unique identifier of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + public System.Nullable SubjectId + { + get + { + return this.GetAttributeValue>("subjectid"); + } + set + { + this.OnPropertyChanging("SubjectId"); + this.SetAttributeValue("subjectid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SubjectId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SubjectId = value; + } + } + + /// + /// Title of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Version number of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Subject_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_AsyncOperations")] + public System.Collections.Generic.IEnumerable Subject_AsyncOperations + { + get + { + return this.GetRelatedEntities("Subject_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Subject_AsyncOperations"); + this.SetRelatedEntities("Subject_AsyncOperations", null, value); + this.OnPropertyChanged("Subject_AsyncOperations"); + } + } + + /// + /// 1:N Subject_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Subject_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Subject_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Subject_BulkDeleteFailures"); + this.SetRelatedEntities("Subject_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Subject_BulkDeleteFailures"); + } + } + + /// + /// 1:N subject_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_incidents")] + public System.Collections.Generic.IEnumerable subject_incidents + { + get + { + return this.GetRelatedEntities("subject_incidents", null); + } + set + { + this.OnPropertyChanging("subject_incidents"); + this.SetRelatedEntities("subject_incidents", null, value); + this.OnPropertyChanged("subject_incidents"); + } + } + + /// + /// 1:N subject_kb_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_kb_articles")] + public System.Collections.Generic.IEnumerable subject_kb_articles + { + get + { + return this.GetRelatedEntities("subject_kb_articles", null); + } + set + { + this.OnPropertyChanging("subject_kb_articles"); + this.SetRelatedEntities("subject_kb_articles", null, value); + this.OnPropertyChanged("subject_kb_articles"); + } + } + + /// + /// 1:N subject_parent_subject + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsubject_parent_subject + { + get + { + return this.GetRelatedEntities("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsubject_parent_subject"); + this.SetRelatedEntities("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsubject_parent_subject"); + } + } + + /// + /// 1:N Subject_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_ProcessSessions")] + public System.Collections.Generic.IEnumerable Subject_ProcessSessions + { + get + { + return this.GetRelatedEntities("Subject_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Subject_ProcessSessions"); + this.SetRelatedEntities("Subject_ProcessSessions", null, value); + this.OnPropertyChanged("Subject_ProcessSessions"); + } + } + + /// + /// 1:N subject_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_products")] + public System.Collections.Generic.IEnumerable subject_products + { + get + { + return this.GetRelatedEntities("subject_products", null); + } + set + { + this.OnPropertyChanging("subject_products"); + this.SetRelatedEntities("subject_products", null, value); + this.OnPropertyChanged("subject_products"); + } + } + + /// + /// 1:N subject_sales_literature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_sales_literature")] + public System.Collections.Generic.IEnumerable subject_sales_literature + { + get + { + return this.GetRelatedEntities("subject_sales_literature", null); + } + set + { + this.OnPropertyChanging("subject_sales_literature"); + this.SetRelatedEntities("subject_sales_literature", null, value); + this.OnPropertyChanged("subject_sales_literature"); + } + } + + /// + /// 1:N userentityinstancedata_subject + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subject")] + public System.Collections.Generic.IEnumerable userentityinstancedata_subject + { + get + { + return this.GetRelatedEntities("userentityinstancedata_subject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subject"); + this.SetRelatedEntities("userentityinstancedata_subject", null, value); + this.OnPropertyChanged("userentityinstancedata_subject"); + } + } + + /// + /// N:1 lk_subject_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subject_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_subject_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_subject_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subject_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_subject_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_subjectbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subjectbase_createdby + { + get + { + return this.GetRelatedEntity("lk_subjectbase_createdby", null); + } + } + + /// + /// N:1 lk_subjectbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subjectbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_subjectbase_modifiedby", null); + } + } + + /// + /// N:1 organization_subjects + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_subjects")] + public Xrm.Framework.CI.Common.Entities.Organization organization_subjects + { + get + { + return this.GetRelatedEntity("organization_subjects", null); + } + } + + /// + /// N:1 subject_parent_subject + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsubject")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Subject Referencingsubject_parent_subject + { + get + { + return this.GetRelatedEntity("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingsubject_parent_subject"); + this.SetRelatedEntity("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingsubject_parent_subject"); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("subscriptionmanuallytrackedobject")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SubscriptionManuallyTrackedObject : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SubscriptionManuallyTrackedObject() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "subscriptionmanuallytrackedobject"; + + public const int EntityTypeCode = 37; + + 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 object with which the subscription is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Type code of the object with which the subscription is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the subscription. + /// + [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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subscriptionmanuallytrackedobjectid")] + public System.Nullable SubscriptionManuallyTrackedObjectId + { + get + { + return this.GetAttributeValue>("subscriptionmanuallytrackedobjectid"); + } + set + { + this.OnPropertyChanging("SubscriptionManuallyTrackedObjectId"); + this.SetAttributeValue("subscriptionmanuallytrackedobjectid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SubscriptionManuallyTrackedObjectId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subscriptionmanuallytrackedobjectid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SubscriptionManuallyTrackedObjectId = value; + } + } + + /// + /// Information that specifies if the object is tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("track")] + public System.Nullable Track + { + get + { + return this.GetAttributeValue>("track"); + } + set + { + this.OnPropertyChanging("Track"); + this.SetAttributeValue("track", value); + this.OnPropertyChanged("Track"); + } + } + + /// + /// 1:N userentityinstancedata_subscriptionmanuallytrackedobject + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subscriptionmanuallytrackedobject")] + public System.Collections.Generic.IEnumerable userentityinstancedata_subscriptionmanuallytrackedobject + { + get + { + return this.GetRelatedEntities("userentityinstancedata_subscriptionmanuallytrackedobject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subscriptionmanuallytrackedobject"); + this.SetRelatedEntities("userentityinstancedata_subscriptionmanuallytrackedobject", null, value); + this.OnPropertyChanged("userentityinstancedata_subscriptionmanuallytrackedobject"); + } + } + } + + /// + /// Organization-owned entity customizations including form layout and dashboards. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemform")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemForm : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemForm() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemform"; + + public const int EntityTypeCode = 1030; + + 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 parent form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ancestorformid")] + public Microsoft.Xrm.Sdk.EntityReference AncestorFormId + { + get + { + return this.GetAttributeValue("ancestorformid"); + } + set + { + this.OnPropertyChanging("AncestorFormId"); + this.SetAttributeValue("ancestorformid", value); + this.OnPropertyChanged("AncestorFormId"); + } + } + + /// + /// Information that specifies whether this component can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty CanBeDeleted + { + get + { + return this.GetAttributeValue("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Description of the form or dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Specifies the state of the form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formactivationstate")] + public Microsoft.Xrm.Sdk.OptionSetValue FormActivationState + { + get + { + return this.GetAttributeValue("formactivationstate"); + } + set + { + this.OnPropertyChanging("FormActivationState"); + this.SetAttributeValue("formactivationstate", value); + this.OnPropertyChanged("FormActivationState"); + } + } + + /// + /// Unique identifier of the record type form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public System.Nullable FormId + { + get + { + return this.GetAttributeValue>("formid"); + } + set + { + this.OnPropertyChanging("FormId"); + this.SetAttributeValue("formid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FormId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FormId = value; + } + } + + /// + /// Unique identifier of the form used when synchronizing customizations for the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formidunique")] + public System.Nullable FormIdUnique + { + get + { + return this.GetAttributeValue>("formidunique"); + } + } + + /// + /// Specifies whether this form is in the updated UI layout in Microsoft Dynamics CRM 2013 or Microsoft Dynamics CRM Online Fall '13. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formpresentation")] + public Microsoft.Xrm.Sdk.OptionSetValue FormPresentation + { + get + { + return this.GetAttributeValue("formpresentation"); + } + set + { + this.OnPropertyChanging("FormPresentation"); + this.SetAttributeValue("formpresentation", value); + this.OnPropertyChanged("FormPresentation"); + } + } + + /// + /// XML representation of the form layout. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formxml")] + public string FormXml + { + get + { + return this.GetAttributeValue("formxml"); + } + set + { + this.OnPropertyChanging("FormXml"); + this.SetAttributeValue("formxml", value); + this.OnPropertyChanged("FormXml"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Specifies whether this form is merged with the updated UI layout in Microsoft Dynamics CRM 2013 or Microsoft Dynamics CRM Online Fall '13. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isairmerged")] + public System.Nullable IsAIRMerged + { + get + { + return this.GetAttributeValue>("isairmerged"); + } + set + { + this.OnPropertyChanging("IsAIRMerged"); + this.SetAttributeValue("isairmerged", value); + this.OnPropertyChanged("IsAIRMerged"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether the form or the dashboard is the system default. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Name of the form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Code that represents the record type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publishedon")] + public System.Nullable PublishedOn + { + get + { + return this.GetAttributeValue>("publishedon"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Type of the form, for example, Dashboard or Preview. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public System.Nullable Version + { + get + { + return this.GetAttributeValue>("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// Represents a version of customizations to be synchronized with the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N form_ancestor_form + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedform_ancestor_form + { + get + { + return this.GetRelatedEntities("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedform_ancestor_form"); + this.SetRelatedEntities("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedform_ancestor_form"); + } + } + + /// + /// 1:N processtrigger_systemform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processtrigger_systemform")] + public System.Collections.Generic.IEnumerable processtrigger_systemform + { + get + { + return this.GetRelatedEntities("processtrigger_systemform", null); + } + set + { + this.OnPropertyChanging("processtrigger_systemform"); + this.SetRelatedEntities("processtrigger_systemform", null, value); + this.OnPropertyChanged("processtrigger_systemform"); + } + } + + /// + /// 1:N SystemForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_AsyncOperations")] + public System.Collections.Generic.IEnumerable SystemForm_AsyncOperations + { + get + { + return this.GetRelatedEntities("SystemForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemForm_AsyncOperations"); + this.SetRelatedEntities("SystemForm_AsyncOperations", null, value); + this.OnPropertyChanged("SystemForm_AsyncOperations"); + } + } + + /// + /// 1:N SystemForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SystemForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SystemForm_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SystemForm_BulkDeleteFailures"); + this.SetRelatedEntities("SystemForm_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SystemForm_BulkDeleteFailures"); + } + } + + /// + /// N:1 form_ancestor_form + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ancestorformid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemForm Referencingform_ancestor_form + { + get + { + return this.GetRelatedEntity("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingform_ancestor_form"); + this.SetRelatedEntity("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingform_ancestor_form"); + } + } + + /// + /// N:1 organization_systemforms + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_systemforms")] + public Xrm.Framework.CI.Common.Entities.Organization organization_systemforms + { + get + { + return this.GetRelatedEntity("organization_systemforms", null); + } + } + } + + /// + /// Person with access to the Microsoft CRM system and who owns objects in the Microsoft CRM database. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuser")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUser : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUser() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuser"; + + public const int EntityTypeCode = 8; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type of user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmode")] + public Microsoft.Xrm.Sdk.OptionSetValue AccessMode + { + get + { + return this.GetAttributeValue("accessmode"); + } + set + { + this.OnPropertyChanging("AccessMode"); + this.SetAttributeValue("accessmode", value); + this.OnPropertyChanged("AccessMode"); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Shows the complete primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] + public string Address1_Composite + { + get + { + return this.GetAttributeValue("address1_composite"); + } + } + + /// + /// Country/region name in address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Shows the complete secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] + public string Address2_Composite + { + get + { + return this.GetAttributeValue("address2_composite"); + } + } + + /// + /// Country/region name in address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the business unit with which the user is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Fiscal calendar associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// License type of user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caltype")] + public Microsoft.Xrm.Sdk.OptionSetValue CALType + { + get + { + return this.GetAttributeValue("caltype"); + } + set + { + this.OnPropertyChanging("CALType"); + this.SetAttributeValue("caltype", value); + this.OnPropertyChanged("CALType"); + } + } + + /// + /// Unique identifier of the user who created the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the user was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Indicates if default outlook filters have been populated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilterspopulated")] + public System.Nullable DefaultFiltersPopulated + { + get + { + return this.GetAttributeValue>("defaultfilterspopulated"); + } + } + + /// + /// Select the mailbox associated with this user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + public Microsoft.Xrm.Sdk.EntityReference DefaultMailbox + { + get + { + return this.GetAttributeValue("defaultmailbox"); + } + } + + /// + /// Reason for disabling the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Whether to display the user in service views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// Active Directory domain of which the user is a member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("domainname")] + public string DomainName + { + get + { + return this.GetAttributeValue("domainname"); + } + set + { + this.OnPropertyChanging("DomainName"); + this.SetAttributeValue("domainname", value); + this.OnPropertyChanged("DomainName"); + } + } + + /// + /// Shows the status of the primary email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailRouterAccessApproval + { + get + { + return this.GetAttributeValue("emailrouteraccessapproval"); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// Employee identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeeid")] + public string EmployeeId + { + get + { + return this.GetAttributeValue("employeeid"); + } + set + { + this.OnPropertyChanging("EmployeeId"); + this.SetAttributeValue("employeeid", value); + this.OnPropertyChanged("EmployeeId"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the systemuser with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// First name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] + public string FirstName + { + get + { + return this.GetAttributeValue("firstname"); + } + set + { + this.OnPropertyChanging("FirstName"); + this.SetAttributeValue("firstname", value); + this.OnPropertyChanged("FirstName"); + } + } + + /// + /// Full name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] + public string FullName + { + get + { + return this.GetAttributeValue("fullname"); + } + } + + /// + /// Government identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("governmentid")] + public string GovernmentId + { + get + { + return this.GetAttributeValue("governmentid"); + } + set + { + this.OnPropertyChanging("GovernmentId"); + this.SetAttributeValue("governmentid", value); + this.OnPropertyChanged("GovernmentId"); + } + } + + /// + /// Home phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homephone")] + public string HomePhone + { + get + { + return this.GetAttributeValue("homephone"); + } + set + { + this.OnPropertyChanging("HomePhone"); + this.SetAttributeValue("homephone", value); + this.OnPropertyChanged("HomePhone"); + } + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Incoming email delivery method for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("incomingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Internal email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("internalemailaddress")] + public string InternalEMailAddress + { + get + { + return this.GetAttributeValue("internalemailaddress"); + } + set + { + this.OnPropertyChanging("InternalEMailAddress"); + this.SetAttributeValue("internalemailaddress", value); + this.OnPropertyChanged("InternalEMailAddress"); + } + } + + /// + /// User invitation status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue InviteStatusCode + { + get + { + return this.GetAttributeValue("invitestatuscode"); + } + set + { + this.OnPropertyChanging("InviteStatusCode"); + this.SetAttributeValue("invitestatuscode", value); + this.OnPropertyChanged("InviteStatusCode"); + } + } + + /// + /// Information about whether the user is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Check if user is an integration user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationuser")] + public System.Nullable IsIntegrationUser + { + get + { + return this.GetAttributeValue>("isintegrationuser"); + } + set + { + this.OnPropertyChanging("IsIntegrationUser"); + this.SetAttributeValue("isintegrationuser", value); + this.OnPropertyChanged("IsIntegrationUser"); + } + } + + /// + /// Information about whether the user is licensed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensed")] + public System.Nullable IsLicensed + { + get + { + return this.GetAttributeValue>("islicensed"); + } + set + { + this.OnPropertyChanging("IsLicensed"); + this.SetAttributeValue("islicensed", value); + this.OnPropertyChanged("IsLicensed"); + } + } + + /// + /// Information about whether the user is synced with the directory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issyncwithdirectory")] + public System.Nullable IsSyncWithDirectory + { + get + { + return this.GetAttributeValue>("issyncwithdirectory"); + } + set + { + this.OnPropertyChanging("IsSyncWithDirectory"); + this.SetAttributeValue("issyncwithdirectory", value); + this.OnPropertyChanged("IsSyncWithDirectory"); + } + } + + /// + /// Job title of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("jobtitle")] + public string JobTitle + { + get + { + return this.GetAttributeValue("jobtitle"); + } + set + { + this.OnPropertyChanging("JobTitle"); + this.SetAttributeValue("jobtitle", value); + this.OnPropertyChanged("JobTitle"); + } + } + + /// + /// Last name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] + public string LastName + { + get + { + return this.GetAttributeValue("lastname"); + } + set + { + this.OnPropertyChanging("LastName"); + this.SetAttributeValue("lastname", value); + this.OnPropertyChanged("LastName"); + } + } + + /// + /// Middle name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("middlename")] + public string MiddleName + { + get + { + return this.GetAttributeValue("middlename"); + } + set + { + this.OnPropertyChanging("MiddleName"); + this.SetAttributeValue("middlename", value); + this.OnPropertyChanged("MiddleName"); + } + } + + /// + /// Mobile alert email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilealertemail")] + public string MobileAlertEMail + { + get + { + return this.GetAttributeValue("mobilealertemail"); + } + set + { + this.OnPropertyChanging("MobileAlertEMail"); + this.SetAttributeValue("mobilealertemail", value); + this.OnPropertyChanged("MobileAlertEMail"); + } + } + + /// + /// Mobile phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilephone")] + public string MobilePhone + { + get + { + return this.GetAttributeValue("mobilephone"); + } + set + { + this.OnPropertyChanging("MobilePhone"); + this.SetAttributeValue("mobilephone", value); + this.OnPropertyChanged("MobilePhone"); + } + } + + /// + /// Unique identifier of the user who last modified the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the user was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Nickname of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nickname")] + public string NickName + { + get + { + return this.GetAttributeValue("nickname"); + } + set + { + this.OnPropertyChanging("NickName"); + this.SetAttributeValue("nickname", value); + this.OnPropertyChanged("NickName"); + } + } + + /// + /// Unique identifier of the organization associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Outgoing email delivery method for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("outgoingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Unique identifier of the manager of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference ParentSystemUserId + { + get + { + return this.GetAttributeValue("parentsystemuserid"); + } + set + { + this.OnPropertyChanging("ParentSystemUserId"); + this.SetAttributeValue("parentsystemuserid", value); + this.OnPropertyChanged("ParentSystemUserId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passporthi")] + public System.Nullable PassportHi + { + get + { + return this.GetAttributeValue>("passporthi"); + } + set + { + this.OnPropertyChanging("PassportHi"); + this.SetAttributeValue("passporthi", value); + this.OnPropertyChanged("PassportHi"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passportlo")] + public System.Nullable PassportLo + { + get + { + return this.GetAttributeValue>("passportlo"); + } + set + { + this.OnPropertyChanging("PassportLo"); + this.SetAttributeValue("passportlo", value); + this.OnPropertyChanged("PassportLo"); + } + } + + /// + /// Personal email address of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalemailaddress")] + public string PersonalEMailAddress + { + get + { + return this.GetAttributeValue("personalemailaddress"); + } + set + { + this.OnPropertyChanging("PersonalEMailAddress"); + this.SetAttributeValue("personalemailaddress", value); + this.OnPropertyChanged("PersonalEMailAddress"); + } + } + + /// + /// URL for the Website on which a photo of the user is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("photourl")] + public string PhotoUrl + { + get + { + return this.GetAttributeValue("photourl"); + } + set + { + this.OnPropertyChanging("PhotoUrl"); + this.SetAttributeValue("photourl", value); + this.OnPropertyChanged("PhotoUrl"); + } + } + + /// + /// Preferred address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredAddressCode + { + get + { + return this.GetAttributeValue("preferredaddresscode"); + } + set + { + this.OnPropertyChanging("PreferredAddressCode"); + this.SetAttributeValue("preferredaddresscode", value); + this.OnPropertyChanged("PreferredAddressCode"); + } + } + + /// + /// Preferred email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredEmailCode + { + get + { + return this.GetAttributeValue("preferredemailcode"); + } + set + { + this.OnPropertyChanging("PreferredEmailCode"); + this.SetAttributeValue("preferredemailcode", value); + this.OnPropertyChanged("PreferredEmailCode"); + } + } + + /// + /// Preferred phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredPhoneCode + { + get + { + return this.GetAttributeValue("preferredphonecode"); + } + set + { + this.OnPropertyChanging("PreferredPhoneCode"); + this.SetAttributeValue("preferredphonecode", value); + this.OnPropertyChanged("PreferredPhoneCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the default queue for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Salutation for correspondence with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salutation")] + public string Salutation + { + get + { + return this.GetAttributeValue("salutation"); + } + set + { + this.OnPropertyChanging("Salutation"); + this.SetAttributeValue("salutation", value); + this.OnPropertyChanged("Salutation"); + } + } + + /// + /// Check if user is a setup user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupuser")] + public System.Nullable SetupUser + { + get + { + return this.GetAttributeValue>("setupuser"); + } + set + { + this.OnPropertyChanging("SetupUser"); + this.SetAttributeValue("setupuser", value); + this.OnPropertyChanged("SetupUser"); + } + } + + /// + /// Site at which the user is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Skill set of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] + public string Skills + { + get + { + return this.GetAttributeValue("skills"); + } + set + { + this.OnPropertyChanging("Skills"); + this.SetAttributeValue("skills", value); + this.OnPropertyChanged("Skills"); + } + } + + /// + /// Shows the ID of the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Unique identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserId = value; + } + } + + /// + /// Unique identifier of the territory to which the user is assigned. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public Microsoft.Xrm.Sdk.EntityReference TerritoryId + { + get + { + return this.GetAttributeValue("territoryid"); + } + set + { + this.OnPropertyChanging("TerritoryId"); + this.SetAttributeValue("territoryid", value); + this.OnPropertyChanged("TerritoryId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Title of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Unique identifier of the currency associated with the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Shows the type of user license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userlicensetype")] + public System.Nullable UserLicenseType + { + get + { + return this.GetAttributeValue>("userlicensetype"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version number of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Windows Live ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("windowsliveid")] + public string WindowsLiveID + { + get + { + return this.GetAttributeValue("windowsliveid"); + } + set + { + this.OnPropertyChanging("WindowsLiveID"); + this.SetAttributeValue("windowsliveid", value); + this.OnPropertyChanged("WindowsLiveID"); + } + } + + /// + /// User's Yammer login email address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeremailaddress")] + public string YammerEmailAddress + { + get + { + return this.GetAttributeValue("yammeremailaddress"); + } + set + { + this.OnPropertyChanging("YammerEmailAddress"); + this.SetAttributeValue("yammeremailaddress", value); + this.OnPropertyChanged("YammerEmailAddress"); + } + } + + /// + /// User's Yammer ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeruserid")] + public string YammerUserId + { + get + { + return this.GetAttributeValue("yammeruserid"); + } + set + { + this.OnPropertyChanging("YammerUserId"); + this.SetAttributeValue("yammeruserid", value); + this.OnPropertyChanged("YammerUserId"); + } + } + + /// + /// Pronunciation of the first name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Pronunciation of the full name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifullname")] + public string YomiFullName + { + get + { + return this.GetAttributeValue("yomifullname"); + } + } + + /// + /// Pronunciation of the last name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] + public string YomiLastName + { + get + { + return this.GetAttributeValue("yomilastname"); + } + set + { + this.OnPropertyChanging("YomiLastName"); + this.SetAttributeValue("yomilastname", value); + this.OnPropertyChanged("YomiLastName"); + } + } + + /// + /// Pronunciation of the middle name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] + public string YomiMiddleName + { + get + { + return this.GetAttributeValue("yomimiddlename"); + } + set + { + this.OnPropertyChanging("YomiMiddleName"); + this.SetAttributeValue("yomimiddlename", value); + this.OnPropertyChanged("YomiMiddleName"); + } + } + + /// + /// 1:N annotation_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("annotation_owning_user")] + public System.Collections.Generic.IEnumerable annotation_owning_user + { + get + { + return this.GetRelatedEntities("annotation_owning_user", null); + } + set + { + this.OnPropertyChanging("annotation_owning_user"); + this.SetRelatedEntities("annotation_owning_user", null, value); + this.OnPropertyChanged("annotation_owning_user"); + } + } + + /// + /// 1:N constraintbasedgroup_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_systemuser")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_systemuser + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_systemuser", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_systemuser"); + this.SetRelatedEntities("constraintbasedgroup_systemuser", null, value); + this.OnPropertyChanged("constraintbasedgroup_systemuser"); + } + } + + /// + /// 1:N contact_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_owning_user")] + public System.Collections.Generic.IEnumerable contact_owning_user + { + get + { + return this.GetRelatedEntities("contact_owning_user", null); + } + set + { + this.OnPropertyChanging("contact_owning_user"); + this.SetRelatedEntities("contact_owning_user", null, value); + this.OnPropertyChanged("contact_owning_user"); + } + } + + /// + /// 1:N createdby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_attributemap")] + public System.Collections.Generic.IEnumerable createdby_attributemap + { + get + { + return this.GetRelatedEntities("createdby_attributemap", null); + } + set + { + this.OnPropertyChanging("createdby_attributemap"); + this.SetRelatedEntities("createdby_attributemap", null, value); + this.OnPropertyChanged("createdby_attributemap"); + } + } + + /// + /// 1:N createdby_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection")] + public System.Collections.Generic.IEnumerable createdby_connection + { + get + { + return this.GetRelatedEntities("createdby_connection", null); + } + set + { + this.OnPropertyChanging("createdby_connection"); + this.SetRelatedEntities("createdby_connection", null, value); + this.OnPropertyChanged("createdby_connection"); + } + } + + /// + /// 1:N createdby_connection_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection_role")] + public System.Collections.Generic.IEnumerable createdby_connection_role + { + get + { + return this.GetRelatedEntities("createdby_connection_role", null); + } + set + { + this.OnPropertyChanging("createdby_connection_role"); + this.SetRelatedEntities("createdby_connection_role", null, value); + this.OnPropertyChanged("createdby_connection_role"); + } + } + + /// + /// 1:N createdby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_customer_relationship")] + public System.Collections.Generic.IEnumerable createdby_customer_relationship + { + get + { + return this.GetRelatedEntities("createdby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("createdby_customer_relationship"); + this.SetRelatedEntities("createdby_customer_relationship", null, value); + this.OnPropertyChanged("createdby_customer_relationship"); + } + } + + /// + /// 1:N createdby_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_entitymap")] + public System.Collections.Generic.IEnumerable createdby_entitymap + { + get + { + return this.GetRelatedEntities("createdby_entitymap", null); + } + set + { + this.OnPropertyChanging("createdby_entitymap"); + this.SetRelatedEntities("createdby_entitymap", null, value); + this.OnPropertyChanged("createdby_entitymap"); + } + } + + /// + /// 1:N createdby_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] + public System.Collections.Generic.IEnumerable createdby_pluginassembly + { + get + { + return this.GetRelatedEntities("createdby_pluginassembly", null); + } + set + { + this.OnPropertyChanging("createdby_pluginassembly"); + this.SetRelatedEntities("createdby_pluginassembly", null, value); + this.OnPropertyChanged("createdby_pluginassembly"); + } + } + + /// + /// 1:N createdby_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] + public System.Collections.Generic.IEnumerable createdby_plugintype + { + get + { + return this.GetRelatedEntities("createdby_plugintype", null); + } + set + { + this.OnPropertyChanging("createdby_plugintype"); + this.SetRelatedEntities("createdby_plugintype", null, value); + this.OnPropertyChanged("createdby_plugintype"); + } + } + + /// + /// 1:N createdby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintypestatistic")] + public System.Collections.Generic.IEnumerable createdby_plugintypestatistic + { + get + { + return this.GetRelatedEntities("createdby_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("createdby_plugintypestatistic"); + this.SetRelatedEntities("createdby_plugintypestatistic", null, value); + this.OnPropertyChanged("createdby_plugintypestatistic"); + } + } + + /// + /// 1:N createdby_relationship_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role")] + public System.Collections.Generic.IEnumerable createdby_relationship_role + { + get + { + return this.GetRelatedEntities("createdby_relationship_role", null); + } + set + { + this.OnPropertyChanging("createdby_relationship_role"); + this.SetRelatedEntities("createdby_relationship_role", null, value); + this.OnPropertyChanged("createdby_relationship_role"); + } + } + + /// + /// 1:N createdby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role_map")] + public System.Collections.Generic.IEnumerable createdby_relationship_role_map + { + get + { + return this.GetRelatedEntities("createdby_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("createdby_relationship_role_map"); + this.SetRelatedEntities("createdby_relationship_role_map", null, value); + this.OnPropertyChanged("createdby_relationship_role_map"); + } + } + + /// + /// 1:N createdby_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] + public System.Collections.Generic.IEnumerable createdby_sdkmessage + { + get + { + return this.GetRelatedEntities("createdby_sdkmessage", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessage"); + this.SetRelatedEntities("createdby_sdkmessage", null, value); + this.OnPropertyChanged("createdby_sdkmessage"); + } + } + + /// + /// 1:N createdby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagefilter"); + this.SetRelatedEntities("createdby_sdkmessagefilter", null, value); + this.OnPropertyChanged("createdby_sdkmessagefilter"); + } + } + + /// + /// 1:N createdby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagepair")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagepair + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagepair"); + this.SetRelatedEntities("createdby_sdkmessagepair", null, value); + this.OnPropertyChanged("createdby_sdkmessagepair"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstep"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// 1:N createdby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagerequest"); + this.SetRelatedEntities("createdby_sdkmessagerequest", null, value); + this.OnPropertyChanged("createdby_sdkmessagerequest"); + } + } + + /// + /// 1:N createdby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagerequestfield"); + this.SetRelatedEntities("createdby_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("createdby_sdkmessagerequestfield"); + } + } + + /// + /// 1:N createdby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageresponse"); + this.SetRelatedEntities("createdby_sdkmessageresponse", null, value); + this.OnPropertyChanged("createdby_sdkmessageresponse"); + } + } + + /// + /// 1:N createdby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageresponsefield"); + this.SetRelatedEntities("createdby_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("createdby_sdkmessageresponsefield"); + } + } + + /// + /// 1:N createdby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_serviceendpoint")] + public System.Collections.Generic.IEnumerable createdby_serviceendpoint + { + get + { + return this.GetRelatedEntities("createdby_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("createdby_serviceendpoint"); + this.SetRelatedEntities("createdby_serviceendpoint", null, value); + this.OnPropertyChanged("createdby_serviceendpoint"); + } + } + + /// + /// 1:N createdonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_attributemap")] + public System.Collections.Generic.IEnumerable createdonbehalfby_attributemap + { + get + { + return this.GetRelatedEntities("createdonbehalfby_attributemap", null); + } + set + { + this.OnPropertyChanging("createdonbehalfby_attributemap"); + this.SetRelatedEntities("createdonbehalfby_attributemap", null, value); + this.OnPropertyChanged("createdonbehalfby_attributemap"); + } + } + + /// + /// 1:N createdonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_customer_relationship")] + public System.Collections.Generic.IEnumerable createdonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntities("createdonbehalfby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("createdonbehalfby_customer_relationship"); + this.SetRelatedEntities("createdonbehalfby_customer_relationship", null, value); + this.OnPropertyChanged("createdonbehalfby_customer_relationship"); + } + } + + /// + /// 1:N equipment_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_systemuser")] + public System.Collections.Generic.IEnumerable equipment_systemuser + { + get + { + return this.GetRelatedEntities("equipment_systemuser", null); + } + set + { + this.OnPropertyChanging("equipment_systemuser"); + this.SetRelatedEntities("equipment_systemuser", null, value); + this.OnPropertyChanged("equipment_systemuser"); + } + } + + /// + /// 1:N impersonatinguserid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable impersonatinguserid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("impersonatinguserid_sdkmessageprocessingstep"); + this.SetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("impersonatinguserid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N ImportFile_SystemUser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_SystemUser")] + public System.Collections.Generic.IEnumerable ImportFile_SystemUser + { + get + { + return this.GetRelatedEntities("ImportFile_SystemUser", null); + } + set + { + this.OnPropertyChanging("ImportFile_SystemUser"); + this.SetRelatedEntities("ImportFile_SystemUser", null, value); + this.OnPropertyChanged("ImportFile_SystemUser"); + } + } + + /// + /// 1:N lead_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_user")] + public System.Collections.Generic.IEnumerable lead_owning_user + { + get + { + return this.GetRelatedEntities("lead_owning_user", null); + } + set + { + this.OnPropertyChanging("lead_owning_user"); + this.SetRelatedEntities("lead_owning_user", null, value); + this.OnPropertyChanged("lead_owning_user"); + } + } + + /// + /// 1:N lk_accountbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdby")] + public System.Collections.Generic.IEnumerable lk_accountbase_createdby + { + get + { + return this.GetRelatedEntities("lk_accountbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_createdby"); + this.SetRelatedEntities("lk_accountbase_createdby", null, value); + this.OnPropertyChanged("lk_accountbase_createdby"); + } + } + + /// + /// 1:N lk_accountbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_accountbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_accountbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_createdonbehalfby"); + this.SetRelatedEntities("lk_accountbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_accountbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_accountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_accountbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_accountbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_modifiedby"); + this.SetRelatedEntities("lk_accountbase_modifiedby", null, value); + this.OnPropertyChanged("lk_accountbase_modifiedby"); + } + } + + /// + /// 1:N lk_accountbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_accountbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_accountbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_accountbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_accountbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_activitypointer_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_createdby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_createdby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_createdby"); + this.SetRelatedEntities("lk_activitypointer_createdby", null, value); + this.OnPropertyChanged("lk_activitypointer_createdby"); + } + } + + /// + /// 1:N lk_activitypointer_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_createdonbehalfby"); + this.SetRelatedEntities("lk_activitypointer_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_activitypointer_createdonbehalfby"); + } + } + + /// + /// 1:N lk_activitypointer_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_modifiedby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_modifiedby"); + this.SetRelatedEntities("lk_activitypointer_modifiedby", null, value); + this.OnPropertyChanged("lk_activitypointer_modifiedby"); + } + } + + /// + /// 1:N lk_activitypointer_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_modifiedonbehalfby"); + this.SetRelatedEntities("lk_activitypointer_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_activitypointer_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_annotationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_createdby"); + this.SetRelatedEntities("lk_annotationbase_createdby", null, value); + this.OnPropertyChanged("lk_annotationbase_createdby"); + } + } + + /// + /// 1:N lk_annotationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_annotationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_annotationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_annotationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_modifiedby"); + this.SetRelatedEntities("lk_annotationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_annotationbase_modifiedby"); + } + } + + /// + /// 1:N lk_annotationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_annotationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_annotationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_annualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_appointment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdby")] + public System.Collections.Generic.IEnumerable lk_appointment_createdby + { + get + { + return this.GetRelatedEntities("lk_appointment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_createdby"); + this.SetRelatedEntities("lk_appointment_createdby", null, value); + this.OnPropertyChanged("lk_appointment_createdby"); + } + } + + /// + /// 1:N lk_appointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_appointment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_appointment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_createdonbehalfby"); + this.SetRelatedEntities("lk_appointment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_appointment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_appointment_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedby")] + public System.Collections.Generic.IEnumerable lk_appointment_modifiedby + { + get + { + return this.GetRelatedEntities("lk_appointment_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_modifiedby"); + this.SetRelatedEntities("lk_appointment_modifiedby", null, value); + this.OnPropertyChanged("lk_appointment_modifiedby"); + } + } + + /// + /// 1:N lk_appointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_appointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_appointment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_appointment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_appointment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_asyncoperation_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_createdby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_createdby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_createdby"); + this.SetRelatedEntities("lk_asyncoperation_createdby", null, value); + this.OnPropertyChanged("lk_asyncoperation_createdby"); + } + } + + /// + /// 1:N lk_asyncoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_createdonbehalfby"); + this.SetRelatedEntities("lk_asyncoperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_asyncoperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_asyncoperation_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_modifiedby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_modifiedby"); + this.SetRelatedEntities("lk_asyncoperation_modifiedby", null, value); + this.OnPropertyChanged("lk_asyncoperation_modifiedby"); + } + } + + /// + /// 1:N lk_asyncoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_asyncoperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_asyncoperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_audit_callinguserid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_callinguserid")] + public System.Collections.Generic.IEnumerable lk_audit_callinguserid + { + get + { + return this.GetRelatedEntities("lk_audit_callinguserid", null); + } + set + { + this.OnPropertyChanging("lk_audit_callinguserid"); + this.SetRelatedEntities("lk_audit_callinguserid", null, value); + this.OnPropertyChanged("lk_audit_callinguserid"); + } + } + + /// + /// 1:N lk_audit_userid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_userid")] + public System.Collections.Generic.IEnumerable lk_audit_userid + { + get + { + return this.GetRelatedEntities("lk_audit_userid", null); + } + set + { + this.OnPropertyChanging("lk_audit_userid"); + this.SetRelatedEntities("lk_audit_userid", null, value); + this.OnPropertyChanged("lk_audit_userid"); + } + } + + /// + /// 1:N lk_bulkdeleteoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperation_createdonbehalfby"); + this.SetRelatedEntities("lk_bulkdeleteoperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_bulkdeleteoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_bulkdeleteoperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_bulkdeleteoperationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperationbase_createdby"); + this.SetRelatedEntities("lk_bulkdeleteoperationbase_createdby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperationbase_createdby"); + } + } + + /// + /// 1:N lk_bulkdeleteoperationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperationbase_modifiedby"); + this.SetRelatedEntities("lk_bulkdeleteoperationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperationbase_modifiedby"); + } + } + + /// + /// 1:N lk_BulkOperation_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_createdby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_createdby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_createdby"); + this.SetRelatedEntities("lk_BulkOperation_createdby", null, value); + this.OnPropertyChanged("lk_BulkOperation_createdby"); + } + } + + /// + /// 1:N lk_BulkOperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_createdonbehalfby"); + this.SetRelatedEntities("lk_BulkOperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_BulkOperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_BulkOperation_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_modifiedby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_modifiedby"); + this.SetRelatedEntities("lk_BulkOperation_modifiedby", null, value); + this.OnPropertyChanged("lk_BulkOperation_modifiedby"); + } + } + + /// + /// 1:N lk_BulkOperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_BulkOperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_BulkOperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_businessunit_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunit_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunit_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunit_createdonbehalfby"); + this.SetRelatedEntities("lk_businessunit_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunit_createdonbehalfby"); + } + } + + /// + /// 1:N lk_businessunit_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunit_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunit_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunit_modifiedonbehalfby"); + this.SetRelatedEntities("lk_businessunit_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunit_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_businessunitbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_createdby")] + public System.Collections.Generic.IEnumerable lk_businessunitbase_createdby + { + get + { + return this.GetRelatedEntities("lk_businessunitbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitbase_createdby"); + this.SetRelatedEntities("lk_businessunitbase_createdby", null, value); + this.OnPropertyChanged("lk_businessunitbase_createdby"); + } + } + + /// + /// 1:N lk_businessunitbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_businessunitbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_businessunitbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitbase_modifiedby"); + this.SetRelatedEntities("lk_businessunitbase_modifiedby", null, value); + this.OnPropertyChanged("lk_businessunitbase_modifiedby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticle_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticle_createdonbehalfby"); + this.SetRelatedEntities("lk_businessunitnewsarticle_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticle_createdonbehalfby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticle_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticle_modifiedonbehalfby"); + this.SetRelatedEntities("lk_businessunitnewsarticle_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticle_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_createdby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticlebase_createdby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticlebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticlebase_createdby"); + this.SetRelatedEntities("lk_businessunitnewsarticlebase_createdby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticlebase_createdby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticlebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticlebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticlebase_modifiedby"); + this.SetRelatedEntities("lk_businessunitnewsarticlebase_modifiedby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticlebase_modifiedby"); + } + } + + /// + /// 1:N lk_calendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdby")] + public System.Collections.Generic.IEnumerable lk_calendar_createdby + { + get + { + return this.GetRelatedEntities("lk_calendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_createdby"); + this.SetRelatedEntities("lk_calendar_createdby", null, value); + this.OnPropertyChanged("lk_calendar_createdby"); + } + } + + /// + /// 1:N lk_calendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_calendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_calendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_createdonbehalfby"); + this.SetRelatedEntities("lk_calendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_calendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_calendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_calendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_calendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_modifiedby"); + this.SetRelatedEntities("lk_calendar_modifiedby", null, value); + this.OnPropertyChanged("lk_calendar_modifiedby"); + } + } + + /// + /// 1:N lk_calendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_calendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_calendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_calendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_calendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_campaign_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdby")] + public System.Collections.Generic.IEnumerable lk_campaign_createdby + { + get + { + return this.GetRelatedEntities("lk_campaign_createdby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_createdby"); + this.SetRelatedEntities("lk_campaign_createdby", null, value); + this.OnPropertyChanged("lk_campaign_createdby"); + } + } + + /// + /// 1:N lk_campaign_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaign_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaign_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_createdonbehalfby"); + this.SetRelatedEntities("lk_campaign_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_campaign_createdonbehalfby"); + } + } + + /// + /// 1:N lk_campaign_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedby")] + public System.Collections.Generic.IEnumerable lk_campaign_modifiedby + { + get + { + return this.GetRelatedEntities("lk_campaign_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_modifiedby"); + this.SetRelatedEntities("lk_campaign_modifiedby", null, value); + this.OnPropertyChanged("lk_campaign_modifiedby"); + } + } + + /// + /// 1:N lk_campaign_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaign_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaign_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_modifiedonbehalfby"); + this.SetRelatedEntities("lk_campaign_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_campaign_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_campaignactivity_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_createdby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_createdby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_createdby"); + this.SetRelatedEntities("lk_campaignactivity_createdby", null, value); + this.OnPropertyChanged("lk_campaignactivity_createdby"); + } + } + + /// + /// 1:N lk_campaignactivity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_createdonbehalfby"); + this.SetRelatedEntities("lk_campaignactivity_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignactivity_createdonbehalfby"); + } + } + + /// + /// 1:N lk_campaignactivity_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_modifiedby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_modifiedby"); + this.SetRelatedEntities("lk_campaignactivity_modifiedby", null, value); + this.OnPropertyChanged("lk_campaignactivity_modifiedby"); + } + } + + /// + /// 1:N lk_campaignactivity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_modifiedonbehalfby"); + this.SetRelatedEntities("lk_campaignactivity_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignactivity_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_campaignresponse_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_createdby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_createdby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_createdby"); + this.SetRelatedEntities("lk_campaignresponse_createdby", null, value); + this.OnPropertyChanged("lk_campaignresponse_createdby"); + } + } + + /// + /// 1:N lk_campaignresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_createdonbehalfby"); + this.SetRelatedEntities("lk_campaignresponse_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignresponse_createdonbehalfby"); + } + } + + /// + /// 1:N lk_campaignresponse_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_modifiedby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_modifiedby"); + this.SetRelatedEntities("lk_campaignresponse_modifiedby", null, value); + this.OnPropertyChanged("lk_campaignresponse_modifiedby"); + } + } + + /// + /// 1:N lk_campaignresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_modifiedonbehalfby"); + this.SetRelatedEntities("lk_campaignresponse_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignresponse_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_columnmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_createdby"); + this.SetRelatedEntities("lk_columnmapping_createdby", null, value); + this.OnPropertyChanged("lk_columnmapping_createdby"); + } + } + + /// + /// 1:N lk_columnmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_columnmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_columnmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_columnmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_modifiedby"); + this.SetRelatedEntities("lk_columnmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_columnmapping_modifiedby"); + } + } + + /// + /// 1:N lk_columnmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_columnmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_columnmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_competitor_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_competitor_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_competitor_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_competitor_createdonbehalfby"); + this.SetRelatedEntities("lk_competitor_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_competitor_createdonbehalfby"); + } + } + + /// + /// 1:N lk_competitor_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_competitor_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_competitor_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_competitor_modifiedonbehalfby"); + this.SetRelatedEntities("lk_competitor_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_competitor_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_competitorbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_createdby")] + public System.Collections.Generic.IEnumerable lk_competitorbase_createdby + { + get + { + return this.GetRelatedEntities("lk_competitorbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_competitorbase_createdby"); + this.SetRelatedEntities("lk_competitorbase_createdby", null, value); + this.OnPropertyChanged("lk_competitorbase_createdby"); + } + } + + /// + /// 1:N lk_competitorbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_competitorbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_competitorbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_competitorbase_modifiedby"); + this.SetRelatedEntities("lk_competitorbase_modifiedby", null, value); + this.OnPropertyChanged("lk_competitorbase_modifiedby"); + } + } + + /// + /// 1:N lk_connectionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_connectionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_connectionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_connectionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_connectionrolebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionrolebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionrolebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionrolebase_createdonbehalfby"); + this.SetRelatedEntities("lk_connectionrolebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionrolebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_connectionrolebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionrolebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionrolebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionrolebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_connectionrolebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionrolebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_createdby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_createdby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_createdby"); + this.SetRelatedEntities("lk_constraintbasedgroup_createdby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_createdby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_createdonbehalfby"); + this.SetRelatedEntities("lk_constraintbasedgroup_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_createdonbehalfby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_modifiedby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_modifiedby"); + this.SetRelatedEntities("lk_constraintbasedgroup_modifiedby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_modifiedby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_modifiedonbehalfby"); + this.SetRelatedEntities("lk_constraintbasedgroup_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contact_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contact_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contact_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contact_createdonbehalfby"); + this.SetRelatedEntities("lk_contact_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contact_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contact_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contact_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contact_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contact_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contact_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contact_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contactbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_createdby")] + public System.Collections.Generic.IEnumerable lk_contactbase_createdby + { + get + { + return this.GetRelatedEntities("lk_contactbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contactbase_createdby"); + this.SetRelatedEntities("lk_contactbase_createdby", null, value); + this.OnPropertyChanged("lk_contactbase_createdby"); + } + } + + /// + /// 1:N lk_contactbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contactbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contactbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contactbase_modifiedby"); + this.SetRelatedEntities("lk_contactbase_modifiedby", null, value); + this.OnPropertyChanged("lk_contactbase_modifiedby"); + } + } + + /// + /// 1:N lk_contract_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contract_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contract_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contract_createdonbehalfby"); + this.SetRelatedEntities("lk_contract_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contract_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contract_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contract_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contract_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contract_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contract_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contract_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contractbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_createdby")] + public System.Collections.Generic.IEnumerable lk_contractbase_createdby + { + get + { + return this.GetRelatedEntities("lk_contractbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contractbase_createdby"); + this.SetRelatedEntities("lk_contractbase_createdby", null, value); + this.OnPropertyChanged("lk_contractbase_createdby"); + } + } + + /// + /// 1:N lk_contractbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contractbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contractbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contractbase_modifiedby"); + this.SetRelatedEntities("lk_contractbase_modifiedby", null, value); + this.OnPropertyChanged("lk_contractbase_modifiedby"); + } + } + + /// + /// 1:N lk_contractdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contractdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contractdetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetail_createdonbehalfby"); + this.SetRelatedEntities("lk_contractdetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contractdetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contractdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contractdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contractdetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contractdetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contractdetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contractdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_contractdetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_contractdetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetailbase_createdby"); + this.SetRelatedEntities("lk_contractdetailbase_createdby", null, value); + this.OnPropertyChanged("lk_contractdetailbase_createdby"); + } + } + + /// + /// 1:N lk_contractdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contractdetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contractdetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetailbase_modifiedby"); + this.SetRelatedEntities("lk_contractdetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_contractdetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_contracttemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contracttemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contracttemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_contracttemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contracttemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contracttemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contracttemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contracttemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contracttemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contracttemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contracttemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_contracttemplatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_contracttemplatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplatebase_createdby"); + this.SetRelatedEntities("lk_contracttemplatebase_createdby", null, value); + this.OnPropertyChanged("lk_contracttemplatebase_createdby"); + } + } + + /// + /// 1:N lk_contracttemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contracttemplatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contracttemplatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplatebase_modifiedby"); + this.SetRelatedEntities("lk_contracttemplatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_contracttemplatebase_modifiedby"); + } + } + + /// + /// 1:N lk_customeraddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeraddress_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeraddress_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddress_createdonbehalfby"); + this.SetRelatedEntities("lk_customeraddress_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_customeraddress_createdonbehalfby"); + } + } + + /// + /// 1:N lk_customeraddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeraddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeraddress_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddress_modifiedonbehalfby"); + this.SetRelatedEntities("lk_customeraddress_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_customeraddress_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_customeraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_createdby")] + public System.Collections.Generic.IEnumerable lk_customeraddressbase_createdby + { + get + { + return this.GetRelatedEntities("lk_customeraddressbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddressbase_createdby"); + this.SetRelatedEntities("lk_customeraddressbase_createdby", null, value); + this.OnPropertyChanged("lk_customeraddressbase_createdby"); + } + } + + /// + /// 1:N lk_customeraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_customeraddressbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_customeraddressbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddressbase_modifiedby"); + this.SetRelatedEntities("lk_customeraddressbase_modifiedby", null, value); + this.OnPropertyChanged("lk_customeraddressbase_modifiedby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_createdby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_createdby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_createdby"); + this.SetRelatedEntities("lk_customeropportunityrole_createdby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_createdby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_createdonbehalfby"); + this.SetRelatedEntities("lk_customeropportunityrole_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_createdonbehalfby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_modifiedby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_modifiedby"); + this.SetRelatedEntities("lk_customeropportunityrole_modifiedby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_modifiedby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_modifiedonbehalfby"); + this.SetRelatedEntities("lk_customeropportunityrole_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_discount_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discount_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discount_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discount_createdonbehalfby"); + this.SetRelatedEntities("lk_discount_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_discount_createdonbehalfby"); + } + } + + /// + /// 1:N lk_discount_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discount_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discount_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discount_modifiedonbehalfby"); + this.SetRelatedEntities("lk_discount_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_discount_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_discountbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_createdby")] + public System.Collections.Generic.IEnumerable lk_discountbase_createdby + { + get + { + return this.GetRelatedEntities("lk_discountbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_discountbase_createdby"); + this.SetRelatedEntities("lk_discountbase_createdby", null, value); + this.OnPropertyChanged("lk_discountbase_createdby"); + } + } + + /// + /// 1:N lk_discountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_discountbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_discountbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_discountbase_modifiedby"); + this.SetRelatedEntities("lk_discountbase_modifiedby", null, value); + this.OnPropertyChanged("lk_discountbase_modifiedby"); + } + } + + /// + /// 1:N lk_discounttype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discounttype_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discounttype_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discounttype_createdonbehalfby"); + this.SetRelatedEntities("lk_discounttype_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_discounttype_createdonbehalfby"); + } + } + + /// + /// 1:N lk_discounttype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discounttype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discounttype_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discounttype_modifiedonbehalfby"); + this.SetRelatedEntities("lk_discounttype_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_discounttype_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_discounttypebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_createdby")] + public System.Collections.Generic.IEnumerable lk_discounttypebase_createdby + { + get + { + return this.GetRelatedEntities("lk_discounttypebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_discounttypebase_createdby"); + this.SetRelatedEntities("lk_discounttypebase_createdby", null, value); + this.OnPropertyChanged("lk_discounttypebase_createdby"); + } + } + + /// + /// 1:N lk_discounttypebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_discounttypebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_discounttypebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_discounttypebase_modifiedby"); + this.SetRelatedEntities("lk_discounttypebase_modifiedby", null, value); + this.OnPropertyChanged("lk_discounttypebase_modifiedby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_createdby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_createdby"); + this.SetRelatedEntities("lk_DisplayStringbase_createdby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_createdby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_createdonbehalfby"); + this.SetRelatedEntities("lk_DisplayStringbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_modifiedby"); + this.SetRelatedEntities("lk_DisplayStringbase_modifiedby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_modifiedby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_DisplayStringbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterule_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterule_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterule_createdonbehalfby"); + this.SetRelatedEntities("lk_duplicaterule_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterule_createdonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterule_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterule_modifiedonbehalfby"); + this.SetRelatedEntities("lk_duplicaterule_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterule_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterulebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_createdby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulebase_createdby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulebase_createdby"); + this.SetRelatedEntities("lk_duplicaterulebase_createdby", null, value); + this.OnPropertyChanged("lk_duplicaterulebase_createdby"); + } + } + + /// + /// 1:N lk_duplicaterulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulebase_modifiedby"); + this.SetRelatedEntities("lk_duplicaterulebase_modifiedby", null, value); + this.OnPropertyChanged("lk_duplicaterulebase_modifiedby"); + } + } + + /// + /// 1:N lk_duplicaterulecondition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulecondition_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulecondition_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulecondition_createdonbehalfby"); + this.SetRelatedEntities("lk_duplicaterulecondition_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterulecondition_createdonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterulecondition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulecondition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulecondition_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulecondition_modifiedonbehalfby"); + this.SetRelatedEntities("lk_duplicaterulecondition_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterulecondition_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_duplicateruleconditionbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_createdby")] + public System.Collections.Generic.IEnumerable lk_duplicateruleconditionbase_createdby + { + get + { + return this.GetRelatedEntities("lk_duplicateruleconditionbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_duplicateruleconditionbase_createdby"); + this.SetRelatedEntities("lk_duplicateruleconditionbase_createdby", null, value); + this.OnPropertyChanged("lk_duplicateruleconditionbase_createdby"); + } + } + + /// + /// 1:N lk_duplicateruleconditionbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_duplicateruleconditionbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_duplicateruleconditionbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_duplicateruleconditionbase_modifiedby"); + this.SetRelatedEntities("lk_duplicateruleconditionbase_modifiedby", null, value); + this.OnPropertyChanged("lk_duplicateruleconditionbase_modifiedby"); + } + } + + /// + /// 1:N lk_email_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdby")] + public System.Collections.Generic.IEnumerable lk_email_createdby + { + get + { + return this.GetRelatedEntities("lk_email_createdby", null); + } + set + { + this.OnPropertyChanging("lk_email_createdby"); + this.SetRelatedEntities("lk_email_createdby", null, value); + this.OnPropertyChanged("lk_email_createdby"); + } + } + + /// + /// 1:N lk_email_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_email_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_email_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_email_createdonbehalfby"); + this.SetRelatedEntities("lk_email_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_email_createdonbehalfby"); + } + } + + /// + /// 1:N lk_email_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedby")] + public System.Collections.Generic.IEnumerable lk_email_modifiedby + { + get + { + return this.GetRelatedEntities("lk_email_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_email_modifiedby"); + this.SetRelatedEntities("lk_email_modifiedby", null, value); + this.OnPropertyChanged("lk_email_modifiedby"); + } + } + + /// + /// 1:N lk_email_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_email_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_email_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_email_modifiedonbehalfby"); + this.SetRelatedEntities("lk_email_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_email_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_emailserverprofile_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_createdby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_createdby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_createdby"); + this.SetRelatedEntities("lk_emailserverprofile_createdby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_createdby"); + } + } + + /// + /// 1:N lk_emailserverprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_createdonbehalfby"); + this.SetRelatedEntities("lk_emailserverprofile_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_createdonbehalfby"); + } + } + + /// + /// 1:N lk_emailserverprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_modifiedby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_modifiedby"); + this.SetRelatedEntities("lk_emailserverprofile_modifiedby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_modifiedby"); + } + } + + /// + /// 1:N lk_emailserverprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_modifiedonbehalfby"); + this.SetRelatedEntities("lk_emailserverprofile_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_entitymap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_entitymap_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_entitymap_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_entitymap_createdonbehalfby"); + this.SetRelatedEntities("lk_entitymap_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_entitymap_createdonbehalfby"); + } + } + + /// + /// 1:N lk_entitymap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_entitymap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_entitymap_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_entitymap_modifiedonbehalfby"); + this.SetRelatedEntities("lk_entitymap_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_entitymap_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_equipment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdby")] + public System.Collections.Generic.IEnumerable lk_equipment_createdby + { + get + { + return this.GetRelatedEntities("lk_equipment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_createdby"); + this.SetRelatedEntities("lk_equipment_createdby", null, value); + this.OnPropertyChanged("lk_equipment_createdby"); + } + } + + /// + /// 1:N lk_equipment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_equipment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_equipment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_createdonbehalfby"); + this.SetRelatedEntities("lk_equipment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_equipment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_equipment_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedby")] + public System.Collections.Generic.IEnumerable lk_equipment_modifiedby + { + get + { + return this.GetRelatedEntities("lk_equipment_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_modifiedby"); + this.SetRelatedEntities("lk_equipment_modifiedby", null, value); + this.OnPropertyChanged("lk_equipment_modifiedby"); + } + } + + /// + /// 1:N lk_equipment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_equipment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_equipment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_equipment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_equipment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fax_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdby")] + public System.Collections.Generic.IEnumerable lk_fax_createdby + { + get + { + return this.GetRelatedEntities("lk_fax_createdby", null); + } + set + { + this.OnPropertyChanging("lk_fax_createdby"); + this.SetRelatedEntities("lk_fax_createdby", null, value); + this.OnPropertyChanged("lk_fax_createdby"); + } + } + + /// + /// 1:N lk_fax_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fax_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fax_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fax_createdonbehalfby"); + this.SetRelatedEntities("lk_fax_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_fax_createdonbehalfby"); + } + } + + /// + /// 1:N lk_fax_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedby")] + public System.Collections.Generic.IEnumerable lk_fax_modifiedby + { + get + { + return this.GetRelatedEntities("lk_fax_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_fax_modifiedby"); + this.SetRelatedEntities("lk_fax_modifiedby", null, value); + this.OnPropertyChanged("lk_fax_modifiedby"); + } + } + + /// + /// 1:N lk_fax_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fax_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fax_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fax_modifiedonbehalfby"); + this.SetRelatedEntities("lk_fax_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_fax_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_createdby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_createdby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_createdby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_createdby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_createdby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_createdonbehalfby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_createdonbehalfby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_modifiedby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_modifiedby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_modifiedby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_modifiedby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_modifiedonbehalfby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_goal_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdby")] + public System.Collections.Generic.IEnumerable lk_goal_createdby + { + get + { + return this.GetRelatedEntities("lk_goal_createdby", null); + } + set + { + this.OnPropertyChanging("lk_goal_createdby"); + this.SetRelatedEntities("lk_goal_createdby", null, value); + this.OnPropertyChanged("lk_goal_createdby"); + } + } + + /// + /// 1:N lk_goal_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goal_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goal_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goal_createdonbehalfby"); + this.SetRelatedEntities("lk_goal_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_goal_createdonbehalfby"); + } + } + + /// + /// 1:N lk_goal_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedby")] + public System.Collections.Generic.IEnumerable lk_goal_modifiedby + { + get + { + return this.GetRelatedEntities("lk_goal_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_goal_modifiedby"); + this.SetRelatedEntities("lk_goal_modifiedby", null, value); + this.OnPropertyChanged("lk_goal_modifiedby"); + } + } + + /// + /// 1:N lk_goal_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goal_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goal_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goal_modifiedonbehalfby"); + this.SetRelatedEntities("lk_goal_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_goal_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_goalrollupquery_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_createdby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_createdby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_createdby"); + this.SetRelatedEntities("lk_goalrollupquery_createdby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_createdby"); + } + } + + /// + /// 1:N lk_goalrollupquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_createdonbehalfby"); + this.SetRelatedEntities("lk_goalrollupquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_goalrollupquery_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_modifiedby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_modifiedby"); + this.SetRelatedEntities("lk_goalrollupquery_modifiedby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_modifiedby"); + } + } + + /// + /// 1:N lk_goalrollupquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_goalrollupquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_import_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_import_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_import_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_import_createdonbehalfby"); + this.SetRelatedEntities("lk_import_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_import_createdonbehalfby"); + } + } + + /// + /// 1:N lk_import_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_import_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_import_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_import_modifiedonbehalfby"); + this.SetRelatedEntities("lk_import_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_import_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importbase_createdby"); + this.SetRelatedEntities("lk_importbase_createdby", null, value); + this.OnPropertyChanged("lk_importbase_createdby"); + } + } + + /// + /// 1:N lk_importbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importbase_modifiedby"); + this.SetRelatedEntities("lk_importbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importbase_modifiedby"); + } + } + + /// + /// 1:N lk_importentitymapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_createdby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_createdby"); + this.SetRelatedEntities("lk_importentitymapping_createdby", null, value); + this.OnPropertyChanged("lk_importentitymapping_createdby"); + } + } + + /// + /// 1:N lk_importentitymapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_createdonbehalfby"); + this.SetRelatedEntities("lk_importentitymapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importentitymapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importentitymapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_modifiedby"); + this.SetRelatedEntities("lk_importentitymapping_modifiedby", null, value); + this.OnPropertyChanged("lk_importentitymapping_modifiedby"); + } + } + + /// + /// 1:N lk_importentitymapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importentitymapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importentitymapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importfilebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_createdby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_createdby"); + this.SetRelatedEntities("lk_importfilebase_createdby", null, value); + this.OnPropertyChanged("lk_importfilebase_createdby"); + } + } + + /// + /// 1:N lk_importfilebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_createdonbehalfby"); + this.SetRelatedEntities("lk_importfilebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importfilebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importfilebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_modifiedby"); + this.SetRelatedEntities("lk_importfilebase_modifiedby", null, value); + this.OnPropertyChanged("lk_importfilebase_modifiedby"); + } + } + + /// + /// 1:N lk_importfilebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importfilebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importfilebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importjobbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_createdby"); + this.SetRelatedEntities("lk_importjobbase_createdby", null, value); + this.OnPropertyChanged("lk_importjobbase_createdby"); + } + } + + /// + /// 1:N lk_importjobbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_createdonbehalfby"); + this.SetRelatedEntities("lk_importjobbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importjobbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importjobbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_modifiedby"); + this.SetRelatedEntities("lk_importjobbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importjobbase_modifiedby"); + } + } + + /// + /// 1:N lk_importjobbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importjobbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importjobbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importlog_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importlog_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importlog_createdonbehalfby"); + this.SetRelatedEntities("lk_importlog_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importlog_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importlog_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importlog_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importlog_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importlog_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importlogbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importlogbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importlogbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importlogbase_createdby"); + this.SetRelatedEntities("lk_importlogbase_createdby", null, value); + this.OnPropertyChanged("lk_importlogbase_createdby"); + } + } + + /// + /// 1:N lk_importlogbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importlogbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importlogbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importlogbase_modifiedby"); + this.SetRelatedEntities("lk_importlogbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importlogbase_modifiedby"); + } + } + + /// + /// 1:N lk_importmap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importmap_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importmap_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importmap_createdonbehalfby"); + this.SetRelatedEntities("lk_importmap_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importmap_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importmap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importmap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importmap_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importmap_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importmap_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importmap_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importmapbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importmapbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importmapbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importmapbase_createdby"); + this.SetRelatedEntities("lk_importmapbase_createdby", null, value); + this.OnPropertyChanged("lk_importmapbase_createdby"); + } + } + + /// + /// 1:N lk_importmapbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importmapbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importmapbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importmapbase_modifiedby"); + this.SetRelatedEntities("lk_importmapbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importmapbase_modifiedby"); + } + } + + /// + /// 1:N lk_incidentbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_createdby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_createdby"); + this.SetRelatedEntities("lk_incidentbase_createdby", null, value); + this.OnPropertyChanged("lk_incidentbase_createdby"); + } + } + + /// + /// 1:N lk_incidentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_createdonbehalfby"); + this.SetRelatedEntities("lk_incidentbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_incidentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_modifiedby"); + this.SetRelatedEntities("lk_incidentbase_modifiedby", null, value); + this.OnPropertyChanged("lk_incidentbase_modifiedby"); + } + } + + /// + /// 1:N lk_incidentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_incidentbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_incidentresolution_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_createdby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_createdby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_createdby"); + this.SetRelatedEntities("lk_incidentresolution_createdby", null, value); + this.OnPropertyChanged("lk_incidentresolution_createdby"); + } + } + + /// + /// 1:N lk_incidentresolution_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_createdonbehalfby"); + this.SetRelatedEntities("lk_incidentresolution_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentresolution_createdonbehalfby"); + } + } + + /// + /// 1:N lk_incidentresolution_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_modifiedby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_modifiedby"); + this.SetRelatedEntities("lk_incidentresolution_modifiedby", null, value); + this.OnPropertyChanged("lk_incidentresolution_modifiedby"); + } + } + + /// + /// 1:N lk_incidentresolution_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_modifiedonbehalfby"); + this.SetRelatedEntities("lk_incidentresolution_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentresolution_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_invoice_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoice_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoice_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoice_createdonbehalfby"); + this.SetRelatedEntities("lk_invoice_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_invoice_createdonbehalfby"); + } + } + + /// + /// 1:N lk_invoice_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoice_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoice_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoice_modifiedonbehalfby"); + this.SetRelatedEntities("lk_invoice_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_invoice_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_invoicebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_createdby")] + public System.Collections.Generic.IEnumerable lk_invoicebase_createdby + { + get + { + return this.GetRelatedEntities("lk_invoicebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_invoicebase_createdby"); + this.SetRelatedEntities("lk_invoicebase_createdby", null, value); + this.OnPropertyChanged("lk_invoicebase_createdby"); + } + } + + /// + /// 1:N lk_invoicebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_invoicebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_invoicebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_invoicebase_modifiedby"); + this.SetRelatedEntities("lk_invoicebase_modifiedby", null, value); + this.OnPropertyChanged("lk_invoicebase_modifiedby"); + } + } + + /// + /// 1:N lk_invoicedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoicedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoicedetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetail_createdonbehalfby"); + this.SetRelatedEntities("lk_invoicedetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_invoicedetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_invoicedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoicedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoicedetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_invoicedetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_invoicedetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_invoicedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_invoicedetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_invoicedetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetailbase_createdby"); + this.SetRelatedEntities("lk_invoicedetailbase_createdby", null, value); + this.OnPropertyChanged("lk_invoicedetailbase_createdby"); + } + } + + /// + /// 1:N lk_invoicedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_invoicedetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_invoicedetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetailbase_modifiedby"); + this.SetRelatedEntities("lk_invoicedetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_invoicedetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_isvconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_isvconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_isvconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_isvconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_isvconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_isvconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_isvconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_isvconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_isvconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_isvconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_isvconfigbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_createdby")] + public System.Collections.Generic.IEnumerable lk_isvconfigbase_createdby + { + get + { + return this.GetRelatedEntities("lk_isvconfigbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfigbase_createdby"); + this.SetRelatedEntities("lk_isvconfigbase_createdby", null, value); + this.OnPropertyChanged("lk_isvconfigbase_createdby"); + } + } + + /// + /// 1:N lk_isvconfigbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_isvconfigbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_isvconfigbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfigbase_modifiedby"); + this.SetRelatedEntities("lk_isvconfigbase_modifiedby", null, value); + this.OnPropertyChanged("lk_isvconfigbase_modifiedby"); + } + } + + /// + /// 1:N lk_kbarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticle_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticle_createdonbehalfby"); + this.SetRelatedEntities("lk_kbarticle_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticle_createdonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticle_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticle_modifiedonbehalfby"); + this.SetRelatedEntities("lk_kbarticle_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticle_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_createdby")] + public System.Collections.Generic.IEnumerable lk_kbarticlebase_createdby + { + get + { + return this.GetRelatedEntities("lk_kbarticlebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlebase_createdby"); + this.SetRelatedEntities("lk_kbarticlebase_createdby", null, value); + this.OnPropertyChanged("lk_kbarticlebase_createdby"); + } + } + + /// + /// 1:N lk_kbarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_kbarticlebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_kbarticlebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlebase_modifiedby"); + this.SetRelatedEntities("lk_kbarticlebase_modifiedby", null, value); + this.OnPropertyChanged("lk_kbarticlebase_modifiedby"); + } + } + + /// + /// 1:N lk_kbarticlecomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecomment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecomment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecomment_createdonbehalfby"); + this.SetRelatedEntities("lk_kbarticlecomment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticlecomment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticlecomment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecomment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecomment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecomment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_kbarticlecomment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticlecomment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticlecommentbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_createdby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecommentbase_createdby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecommentbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecommentbase_createdby"); + this.SetRelatedEntities("lk_kbarticlecommentbase_createdby", null, value); + this.OnPropertyChanged("lk_kbarticlecommentbase_createdby"); + } + } + + /// + /// 1:N lk_kbarticlecommentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecommentbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecommentbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecommentbase_modifiedby"); + this.SetRelatedEntities("lk_kbarticlecommentbase_modifiedby", null, value); + this.OnPropertyChanged("lk_kbarticlecommentbase_modifiedby"); + } + } + + /// + /// 1:N lk_kbarticletemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_kbarticletemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticletemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticletemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_kbarticletemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticletemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticletemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplatebase_createdby"); + this.SetRelatedEntities("lk_kbarticletemplatebase_createdby", null, value); + this.OnPropertyChanged("lk_kbarticletemplatebase_createdby"); + } + } + + /// + /// 1:N lk_kbarticletemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplatebase_modifiedby"); + this.SetRelatedEntities("lk_kbarticletemplatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_kbarticletemplatebase_modifiedby"); + } + } + + /// + /// 1:N lk_lead_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lead_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lead_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lead_createdonbehalfby"); + this.SetRelatedEntities("lk_lead_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_lead_createdonbehalfby"); + } + } + + /// + /// 1:N lk_lead_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lead_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lead_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lead_modifiedonbehalfby"); + this.SetRelatedEntities("lk_lead_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_lead_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_leadaddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_leadaddress_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_leadaddress_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddress_createdonbehalfby"); + this.SetRelatedEntities("lk_leadaddress_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_leadaddress_createdonbehalfby"); + } + } + + /// + /// 1:N lk_leadaddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_leadaddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_leadaddress_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddress_modifiedonbehalfby"); + this.SetRelatedEntities("lk_leadaddress_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_leadaddress_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_leadaddressbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_createdby")] + public System.Collections.Generic.IEnumerable lk_leadaddressbase_createdby + { + get + { + return this.GetRelatedEntities("lk_leadaddressbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddressbase_createdby"); + this.SetRelatedEntities("lk_leadaddressbase_createdby", null, value); + this.OnPropertyChanged("lk_leadaddressbase_createdby"); + } + } + + /// + /// 1:N lk_leadaddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_leadaddressbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_leadaddressbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddressbase_modifiedby"); + this.SetRelatedEntities("lk_leadaddressbase_modifiedby", null, value); + this.OnPropertyChanged("lk_leadaddressbase_modifiedby"); + } + } + + /// + /// 1:N lk_leadbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_createdby")] + public System.Collections.Generic.IEnumerable lk_leadbase_createdby + { + get + { + return this.GetRelatedEntities("lk_leadbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_leadbase_createdby"); + this.SetRelatedEntities("lk_leadbase_createdby", null, value); + this.OnPropertyChanged("lk_leadbase_createdby"); + } + } + + /// + /// 1:N lk_leadbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_leadbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_leadbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_leadbase_modifiedby"); + this.SetRelatedEntities("lk_leadbase_modifiedby", null, value); + this.OnPropertyChanged("lk_leadbase_modifiedby"); + } + } + + /// + /// 1:N lk_letter_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdby")] + public System.Collections.Generic.IEnumerable lk_letter_createdby + { + get + { + return this.GetRelatedEntities("lk_letter_createdby", null); + } + set + { + this.OnPropertyChanging("lk_letter_createdby"); + this.SetRelatedEntities("lk_letter_createdby", null, value); + this.OnPropertyChanged("lk_letter_createdby"); + } + } + + /// + /// 1:N lk_letter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_letter_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_letter_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_letter_createdonbehalfby"); + this.SetRelatedEntities("lk_letter_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_letter_createdonbehalfby"); + } + } + + /// + /// 1:N lk_letter_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedby")] + public System.Collections.Generic.IEnumerable lk_letter_modifiedby + { + get + { + return this.GetRelatedEntities("lk_letter_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_letter_modifiedby"); + this.SetRelatedEntities("lk_letter_modifiedby", null, value); + this.OnPropertyChanged("lk_letter_modifiedby"); + } + } + + /// + /// 1:N lk_letter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_letter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_letter_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_letter_modifiedonbehalfby"); + this.SetRelatedEntities("lk_letter_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_letter_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_list_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdby")] + public System.Collections.Generic.IEnumerable lk_list_createdby + { + get + { + return this.GetRelatedEntities("lk_list_createdby", null); + } + set + { + this.OnPropertyChanging("lk_list_createdby"); + this.SetRelatedEntities("lk_list_createdby", null, value); + this.OnPropertyChanged("lk_list_createdby"); + } + } + + /// + /// 1:N lk_list_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_list_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_list_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_list_createdonbehalfby"); + this.SetRelatedEntities("lk_list_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_list_createdonbehalfby"); + } + } + + /// + /// 1:N lk_list_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedby")] + public System.Collections.Generic.IEnumerable lk_list_modifiedby + { + get + { + return this.GetRelatedEntities("lk_list_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_list_modifiedby"); + this.SetRelatedEntities("lk_list_modifiedby", null, value); + this.OnPropertyChanged("lk_list_modifiedby"); + } + } + + /// + /// 1:N lk_list_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_list_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_list_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_list_modifiedonbehalfby"); + this.SetRelatedEntities("lk_list_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_list_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_listmember_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdby")] + public System.Collections.Generic.IEnumerable lk_listmember_createdby + { + get + { + return this.GetRelatedEntities("lk_listmember_createdby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_createdby"); + this.SetRelatedEntities("lk_listmember_createdby", null, value); + this.OnPropertyChanged("lk_listmember_createdby"); + } + } + + /// + /// 1:N lk_listmember_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_listmember_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_listmember_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_createdonbehalfby"); + this.SetRelatedEntities("lk_listmember_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_listmember_createdonbehalfby"); + } + } + + /// + /// 1:N lk_listmember_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedby")] + public System.Collections.Generic.IEnumerable lk_listmember_modifiedby + { + get + { + return this.GetRelatedEntities("lk_listmember_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_modifiedby"); + this.SetRelatedEntities("lk_listmember_modifiedby", null, value); + this.OnPropertyChanged("lk_listmember_modifiedby"); + } + } + + /// + /// 1:N lk_listmember_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_listmember_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_listmember_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_modifiedonbehalfby"); + this.SetRelatedEntities("lk_listmember_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_listmember_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_lookupmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_createdby"); + this.SetRelatedEntities("lk_lookupmapping_createdby", null, value); + this.OnPropertyChanged("lk_lookupmapping_createdby"); + } + } + + /// + /// 1:N lk_lookupmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_lookupmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_lookupmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_lookupmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_modifiedby"); + this.SetRelatedEntities("lk_lookupmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_lookupmapping_modifiedby"); + } + } + + /// + /// 1:N lk_lookupmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_lookupmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_lookupmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_mailbox_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdby")] + public System.Collections.Generic.IEnumerable lk_mailbox_createdby + { + get + { + return this.GetRelatedEntities("lk_mailbox_createdby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_createdby"); + this.SetRelatedEntities("lk_mailbox_createdby", null, value); + this.OnPropertyChanged("lk_mailbox_createdby"); + } + } + + /// + /// 1:N lk_mailbox_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailbox_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailbox_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_createdonbehalfby"); + this.SetRelatedEntities("lk_mailbox_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_mailbox_createdonbehalfby"); + } + } + + /// + /// 1:N lk_mailbox_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedby")] + public System.Collections.Generic.IEnumerable lk_mailbox_modifiedby + { + get + { + return this.GetRelatedEntities("lk_mailbox_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_modifiedby"); + this.SetRelatedEntities("lk_mailbox_modifiedby", null, value); + this.OnPropertyChanged("lk_mailbox_modifiedby"); + } + } + + /// + /// 1:N lk_mailbox_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailbox_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailbox_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_modifiedonbehalfby"); + this.SetRelatedEntities("lk_mailbox_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_mailbox_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_mailmergetemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_mailmergetemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_mailmergetemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_mailmergetemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_mailmergetemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_mailmergetemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_mailmergetemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplatebase_createdby"); + this.SetRelatedEntities("lk_mailmergetemplatebase_createdby", null, value); + this.OnPropertyChanged("lk_mailmergetemplatebase_createdby"); + } + } + + /// + /// 1:N lk_mailmergetemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplatebase_modifiedby"); + this.SetRelatedEntities("lk_mailmergetemplatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_mailmergetemplatebase_modifiedby"); + } + } + + /// + /// 1:N lk_metric_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdby")] + public System.Collections.Generic.IEnumerable lk_metric_createdby + { + get + { + return this.GetRelatedEntities("lk_metric_createdby", null); + } + set + { + this.OnPropertyChanging("lk_metric_createdby"); + this.SetRelatedEntities("lk_metric_createdby", null, value); + this.OnPropertyChanged("lk_metric_createdby"); + } + } + + /// + /// 1:N lk_metric_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_metric_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_metric_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_metric_createdonbehalfby"); + this.SetRelatedEntities("lk_metric_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_metric_createdonbehalfby"); + } + } + + /// + /// 1:N lk_metric_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedby")] + public System.Collections.Generic.IEnumerable lk_metric_modifiedby + { + get + { + return this.GetRelatedEntities("lk_metric_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_metric_modifiedby"); + this.SetRelatedEntities("lk_metric_modifiedby", null, value); + this.OnPropertyChanged("lk_metric_modifiedby"); + } + } + + /// + /// 1:N lk_metric_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_metric_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_metric_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_metric_modifiedonbehalfby"); + this.SetRelatedEntities("lk_metric_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_metric_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_createdby"); + this.SetRelatedEntities("lk_msdyn_postalbum_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_createdby"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postalbum_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_modifiedby"); + this.SetRelatedEntities("lk_msdyn_postalbum_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postalbum_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_createdby"); + this.SetRelatedEntities("lk_msdyn_postconfig_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_createdby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_modifiedby"); + this.SetRelatedEntities("lk_msdyn_postconfig_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_createdby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_createdby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_modifiedby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_createdby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_createdby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_modifiedby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_createdby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_createdby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_modifiedby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunity_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunity_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunity_createdonbehalfby"); + this.SetRelatedEntities("lk_opportunity_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunity_createdonbehalfby"); + } + } + + /// + /// 1:N lk_opportunity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunity_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunity_modifiedonbehalfby"); + this.SetRelatedEntities("lk_opportunity_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunity_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunitybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_createdby")] + public System.Collections.Generic.IEnumerable lk_opportunitybase_createdby + { + get + { + return this.GetRelatedEntities("lk_opportunitybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_opportunitybase_createdby"); + this.SetRelatedEntities("lk_opportunitybase_createdby", null, value); + this.OnPropertyChanged("lk_opportunitybase_createdby"); + } + } + + /// + /// 1:N lk_opportunitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_opportunitybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_opportunitybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_opportunitybase_modifiedby"); + this.SetRelatedEntities("lk_opportunitybase_modifiedby", null, value); + this.OnPropertyChanged("lk_opportunitybase_modifiedby"); + } + } + + /// + /// 1:N lk_opportunityclose_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_createdby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_createdby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_createdby"); + this.SetRelatedEntities("lk_opportunityclose_createdby", null, value); + this.OnPropertyChanged("lk_opportunityclose_createdby"); + } + } + + /// + /// 1:N lk_opportunityclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_createdonbehalfby"); + this.SetRelatedEntities("lk_opportunityclose_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityclose_createdonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityclose_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_modifiedby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_modifiedby"); + this.SetRelatedEntities("lk_opportunityclose_modifiedby", null, value); + this.OnPropertyChanged("lk_opportunityclose_modifiedby"); + } + } + + /// + /// 1:N lk_opportunityclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_modifiedonbehalfby"); + this.SetRelatedEntities("lk_opportunityclose_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityclose_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityproduct_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityproduct_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityproduct_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproduct_createdonbehalfby"); + this.SetRelatedEntities("lk_opportunityproduct_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityproduct_createdonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityproduct_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityproduct_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityproduct_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproduct_modifiedonbehalfby"); + this.SetRelatedEntities("lk_opportunityproduct_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityproduct_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityproductbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_createdby")] + public System.Collections.Generic.IEnumerable lk_opportunityproductbase_createdby + { + get + { + return this.GetRelatedEntities("lk_opportunityproductbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproductbase_createdby"); + this.SetRelatedEntities("lk_opportunityproductbase_createdby", null, value); + this.OnPropertyChanged("lk_opportunityproductbase_createdby"); + } + } + + /// + /// 1:N lk_opportunityproductbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_opportunityproductbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_opportunityproductbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproductbase_modifiedby"); + this.SetRelatedEntities("lk_opportunityproductbase_modifiedby", null, value); + this.OnPropertyChanged("lk_opportunityproductbase_modifiedby"); + } + } + + /// + /// 1:N lk_orderclose_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdby")] + public System.Collections.Generic.IEnumerable lk_orderclose_createdby + { + get + { + return this.GetRelatedEntities("lk_orderclose_createdby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_createdby"); + this.SetRelatedEntities("lk_orderclose_createdby", null, value); + this.OnPropertyChanged("lk_orderclose_createdby"); + } + } + + /// + /// 1:N lk_orderclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_orderclose_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_orderclose_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_createdonbehalfby"); + this.SetRelatedEntities("lk_orderclose_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_orderclose_createdonbehalfby"); + } + } + + /// + /// 1:N lk_orderclose_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedby")] + public System.Collections.Generic.IEnumerable lk_orderclose_modifiedby + { + get + { + return this.GetRelatedEntities("lk_orderclose_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_modifiedby"); + this.SetRelatedEntities("lk_orderclose_modifiedby", null, value); + this.OnPropertyChanged("lk_orderclose_modifiedby"); + } + } + + /// + /// 1:N lk_orderclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_orderclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_orderclose_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_modifiedonbehalfby"); + this.SetRelatedEntities("lk_orderclose_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_orderclose_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_organization_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_organization_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_organization_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_organization_createdonbehalfby"); + this.SetRelatedEntities("lk_organization_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_organization_createdonbehalfby"); + } + } + + /// + /// 1:N lk_organization_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_organization_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_organization_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_organization_modifiedonbehalfby"); + this.SetRelatedEntities("lk_organization_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_organization_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_organizationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_organizationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_organizationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_organizationbase_createdby"); + this.SetRelatedEntities("lk_organizationbase_createdby", null, value); + this.OnPropertyChanged("lk_organizationbase_createdby"); + } + } + + /// + /// 1:N lk_organizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_organizationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_organizationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_organizationbase_modifiedby"); + this.SetRelatedEntities("lk_organizationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_organizationbase_modifiedby"); + } + } + + /// + /// 1:N lk_ownermapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_createdby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_createdby"); + this.SetRelatedEntities("lk_ownermapping_createdby", null, value); + this.OnPropertyChanged("lk_ownermapping_createdby"); + } + } + + /// + /// 1:N lk_ownermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_createdonbehalfby"); + this.SetRelatedEntities("lk_ownermapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_ownermapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_ownermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_modifiedby"); + this.SetRelatedEntities("lk_ownermapping_modifiedby", null, value); + this.OnPropertyChanged("lk_ownermapping_modifiedby"); + } + } + + /// + /// 1:N lk_ownermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_ownermapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_ownermapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_phonecall_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdby")] + public System.Collections.Generic.IEnumerable lk_phonecall_createdby + { + get + { + return this.GetRelatedEntities("lk_phonecall_createdby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_createdby"); + this.SetRelatedEntities("lk_phonecall_createdby", null, value); + this.OnPropertyChanged("lk_phonecall_createdby"); + } + } + + /// + /// 1:N lk_phonecall_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_phonecall_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_phonecall_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_createdonbehalfby"); + this.SetRelatedEntities("lk_phonecall_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_phonecall_createdonbehalfby"); + } + } + + /// + /// 1:N lk_phonecall_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedby")] + public System.Collections.Generic.IEnumerable lk_phonecall_modifiedby + { + get + { + return this.GetRelatedEntities("lk_phonecall_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_modifiedby"); + this.SetRelatedEntities("lk_phonecall_modifiedby", null, value); + this.OnPropertyChanged("lk_phonecall_modifiedby"); + } + } + + /// + /// 1:N lk_phonecall_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_phonecall_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_phonecall_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_modifiedonbehalfby"); + this.SetRelatedEntities("lk_phonecall_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_phonecall_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_picklistmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_createdby"); + this.SetRelatedEntities("lk_picklistmapping_createdby", null, value); + this.OnPropertyChanged("lk_picklistmapping_createdby"); + } + } + + /// + /// 1:N lk_picklistmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_picklistmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_picklistmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_picklistmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_modifiedby"); + this.SetRelatedEntities("lk_picklistmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_picklistmapping_modifiedby"); + } + } + + /// + /// 1:N lk_picklistmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_picklistmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_picklistmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_pluginassembly_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginassembly_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginassembly_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginassembly_createdonbehalfby"); + this.SetRelatedEntities("lk_pluginassembly_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginassembly_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pluginassembly_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginassembly_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginassembly_modifiedonbehalfby"); + this.SetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginassembly_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_plugintype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintype_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintype_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintype_createdonbehalfby"); + this.SetRelatedEntities("lk_plugintype_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintype_createdonbehalfby"); + } + } + + /// + /// 1:N lk_plugintype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintype_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintype_modifiedonbehalfby"); + this.SetRelatedEntities("lk_plugintype_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintype_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_plugintypestatisticbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintypestatisticbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintypestatisticbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintypestatisticbase_createdonbehalfby"); + this.SetRelatedEntities("lk_plugintypestatisticbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintypestatisticbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_plugintypestatisticbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintypestatisticbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintypestatisticbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintypestatisticbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_plugintypestatisticbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintypestatisticbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_post_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdby")] + public System.Collections.Generic.IEnumerable lk_post_createdby + { + get + { + return this.GetRelatedEntities("lk_post_createdby", null); + } + set + { + this.OnPropertyChanging("lk_post_createdby"); + this.SetRelatedEntities("lk_post_createdby", null, value); + this.OnPropertyChanged("lk_post_createdby"); + } + } + + /// + /// 1:N lk_post_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_post_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_post_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_post_createdonbehalfby"); + this.SetRelatedEntities("lk_post_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_post_createdonbehalfby"); + } + } + + /// + /// 1:N lk_post_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedby")] + public System.Collections.Generic.IEnumerable lk_post_modifiedby + { + get + { + return this.GetRelatedEntities("lk_post_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_post_modifiedby"); + this.SetRelatedEntities("lk_post_modifiedby", null, value); + this.OnPropertyChanged("lk_post_modifiedby"); + } + } + + /// + /// 1:N lk_post_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_post_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_post_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_post_modifiedonbehalfby"); + this.SetRelatedEntities("lk_post_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_post_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_postcomment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdby")] + public System.Collections.Generic.IEnumerable lk_postcomment_createdby + { + get + { + return this.GetRelatedEntities("lk_postcomment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_postcomment_createdby"); + this.SetRelatedEntities("lk_postcomment_createdby", null, value); + this.OnPropertyChanged("lk_postcomment_createdby"); + } + } + + /// + /// 1:N lk_postcomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_postcomment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_postcomment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_postcomment_createdonbehalfby"); + this.SetRelatedEntities("lk_postcomment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_postcomment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_PostFollow_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_PostFollow_createdby")] + public System.Collections.Generic.IEnumerable lk_PostFollow_createdby + { + get + { + return this.GetRelatedEntities("lk_PostFollow_createdby", null); + } + set + { + this.OnPropertyChanging("lk_PostFollow_createdby"); + this.SetRelatedEntities("lk_PostFollow_createdby", null, value); + this.OnPropertyChanged("lk_PostFollow_createdby"); + } + } + + /// + /// 1:N lk_postfollow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postfollow_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_postfollow_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_postfollow_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_postfollow_createdonbehalfby"); + this.SetRelatedEntities("lk_postfollow_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_postfollow_createdonbehalfby"); + } + } + + /// + /// 1:N lk_postlike_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdby")] + public System.Collections.Generic.IEnumerable lk_postlike_createdby + { + get + { + return this.GetRelatedEntities("lk_postlike_createdby", null); + } + set + { + this.OnPropertyChanging("lk_postlike_createdby"); + this.SetRelatedEntities("lk_postlike_createdby", null, value); + this.OnPropertyChanged("lk_postlike_createdby"); + } + } + + /// + /// 1:N lk_postlike_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_postlike_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_postlike_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_postlike_createdonbehalfby"); + this.SetRelatedEntities("lk_postlike_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_postlike_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pricelevel_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevel_createdonbehalfby"); + this.SetRelatedEntities("lk_pricelevel_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_pricelevel_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pricelevel_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevel_modifiedonbehalfby"); + this.SetRelatedEntities("lk_pricelevel_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_pricelevel_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_pricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_createdby")] + public System.Collections.Generic.IEnumerable lk_pricelevelbase_createdby + { + get + { + return this.GetRelatedEntities("lk_pricelevelbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevelbase_createdby"); + this.SetRelatedEntities("lk_pricelevelbase_createdby", null, value); + this.OnPropertyChanged("lk_pricelevelbase_createdby"); + } + } + + /// + /// 1:N lk_pricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_pricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_pricelevelbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevelbase_modifiedby"); + this.SetRelatedEntities("lk_pricelevelbase_modifiedby", null, value); + this.OnPropertyChanged("lk_pricelevelbase_modifiedby"); + } + } + + /// + /// 1:N lk_processsession_canceledby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_canceledby")] + public System.Collections.Generic.IEnumerable lk_processsession_canceledby + { + get + { + return this.GetRelatedEntities("lk_processsession_canceledby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_canceledby"); + this.SetRelatedEntities("lk_processsession_canceledby", null, value); + this.OnPropertyChanged("lk_processsession_canceledby"); + } + } + + /// + /// 1:N lk_processsession_completedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_completedby")] + public System.Collections.Generic.IEnumerable lk_processsession_completedby + { + get + { + return this.GetRelatedEntities("lk_processsession_completedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_completedby"); + this.SetRelatedEntities("lk_processsession_completedby", null, value); + this.OnPropertyChanged("lk_processsession_completedby"); + } + } + + /// + /// 1:N lk_processsession_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_createdby")] + public System.Collections.Generic.IEnumerable lk_processsession_createdby + { + get + { + return this.GetRelatedEntities("lk_processsession_createdby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_createdby"); + this.SetRelatedEntities("lk_processsession_createdby", null, value); + this.OnPropertyChanged("lk_processsession_createdby"); + } + } + + /// + /// 1:N lk_processsession_executedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_executedby")] + public System.Collections.Generic.IEnumerable lk_processsession_executedby + { + get + { + return this.GetRelatedEntities("lk_processsession_executedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_executedby"); + this.SetRelatedEntities("lk_processsession_executedby", null, value); + this.OnPropertyChanged("lk_processsession_executedby"); + } + } + + /// + /// 1:N lk_processsession_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_modifiedby")] + public System.Collections.Generic.IEnumerable lk_processsession_modifiedby + { + get + { + return this.GetRelatedEntities("lk_processsession_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_modifiedby"); + this.SetRelatedEntities("lk_processsession_modifiedby", null, value); + this.OnPropertyChanged("lk_processsession_modifiedby"); + } + } + + /// + /// 1:N lk_processsession_startedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_startedby")] + public System.Collections.Generic.IEnumerable lk_processsession_startedby + { + get + { + return this.GetRelatedEntities("lk_processsession_startedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_startedby"); + this.SetRelatedEntities("lk_processsession_startedby", null, value); + this.OnPropertyChanged("lk_processsession_startedby"); + } + } + + /// + /// 1:N lk_processsessionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processsessionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processsessionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processsessionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_processsessionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_processsessionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_processsessionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processsessionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processsessionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processsessionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_processsessionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_processsessionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_processtriggerbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_createdby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_createdby"); + this.SetRelatedEntities("lk_processtriggerbase_createdby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_createdby"); + } + } + + /// + /// 1:N lk_processtriggerbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_createdonbehalfby"); + this.SetRelatedEntities("lk_processtriggerbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_processtriggerbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_modifiedby"); + this.SetRelatedEntities("lk_processtriggerbase_modifiedby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_modifiedby"); + } + } + + /// + /// 1:N lk_processtriggerbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_processtriggerbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_product_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_product_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_product_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_product_createdonbehalfby"); + this.SetRelatedEntities("lk_product_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_product_createdonbehalfby"); + } + } + + /// + /// 1:N lk_product_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_product_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_product_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_product_modifiedonbehalfby"); + this.SetRelatedEntities("lk_product_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_product_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_productbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_createdby")] + public System.Collections.Generic.IEnumerable lk_productbase_createdby + { + get + { + return this.GetRelatedEntities("lk_productbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_productbase_createdby"); + this.SetRelatedEntities("lk_productbase_createdby", null, value); + this.OnPropertyChanged("lk_productbase_createdby"); + } + } + + /// + /// 1:N lk_productbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_productbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_productbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_productbase_modifiedby"); + this.SetRelatedEntities("lk_productbase_modifiedby", null, value); + this.OnPropertyChanged("lk_productbase_modifiedby"); + } + } + + /// + /// 1:N lk_productpricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_productpricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_productpricelevel_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevel_createdonbehalfby"); + this.SetRelatedEntities("lk_productpricelevel_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_productpricelevel_createdonbehalfby"); + } + } + + /// + /// 1:N lk_productpricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_productpricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_productpricelevel_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevel_modifiedonbehalfby"); + this.SetRelatedEntities("lk_productpricelevel_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_productpricelevel_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_productpricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_createdby")] + public System.Collections.Generic.IEnumerable lk_productpricelevelbase_createdby + { + get + { + return this.GetRelatedEntities("lk_productpricelevelbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevelbase_createdby"); + this.SetRelatedEntities("lk_productpricelevelbase_createdby", null, value); + this.OnPropertyChanged("lk_productpricelevelbase_createdby"); + } + } + + /// + /// 1:N lk_productpricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_productpricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_productpricelevelbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevelbase_modifiedby"); + this.SetRelatedEntities("lk_productpricelevelbase_modifiedby", null, value); + this.OnPropertyChanged("lk_productpricelevelbase_modifiedby"); + } + } + + /// + /// 1:N lk_publisher_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] + public System.Collections.Generic.IEnumerable lk_publisher_createdby + { + get + { + return this.GetRelatedEntities("lk_publisher_createdby", null); + } + set + { + this.OnPropertyChanging("lk_publisher_createdby"); + this.SetRelatedEntities("lk_publisher_createdby", null, value); + this.OnPropertyChanged("lk_publisher_createdby"); + } + } + + /// + /// 1:N lk_publisher_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] + public System.Collections.Generic.IEnumerable lk_publisher_modifiedby + { + get + { + return this.GetRelatedEntities("lk_publisher_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_publisher_modifiedby"); + this.SetRelatedEntities("lk_publisher_modifiedby", null, value); + this.OnPropertyChanged("lk_publisher_modifiedby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_createdby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_createdby"); + this.SetRelatedEntities("lk_publisheraddressbase_createdby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_createdby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_createdonbehalfby"); + this.SetRelatedEntities("lk_publisheraddressbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_modifiedby"); + this.SetRelatedEntities("lk_publisheraddressbase_modifiedby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_modifiedby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_publisheraddressbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_publisherbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisherbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisherbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisherbase_createdonbehalfby"); + this.SetRelatedEntities("lk_publisherbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_publisherbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_publisherbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisherbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisherbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_publisherbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_queue_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queue_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queue_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queue_createdonbehalfby"); + this.SetRelatedEntities("lk_queue_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_queue_createdonbehalfby"); + } + } + + /// + /// 1:N lk_queue_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queue_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queue_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queue_modifiedonbehalfby"); + this.SetRelatedEntities("lk_queue_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_queue_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_queuebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_createdby")] + public System.Collections.Generic.IEnumerable lk_queuebase_createdby + { + get + { + return this.GetRelatedEntities("lk_queuebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_queuebase_createdby"); + this.SetRelatedEntities("lk_queuebase_createdby", null, value); + this.OnPropertyChanged("lk_queuebase_createdby"); + } + } + + /// + /// 1:N lk_queuebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_queuebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_queuebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_queuebase_modifiedby"); + this.SetRelatedEntities("lk_queuebase_modifiedby", null, value); + this.OnPropertyChanged("lk_queuebase_modifiedby"); + } + } + + /// + /// 1:N lk_queueitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queueitem_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queueitem_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queueitem_createdonbehalfby"); + this.SetRelatedEntities("lk_queueitem_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_queueitem_createdonbehalfby"); + } + } + + /// + /// 1:N lk_queueitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queueitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queueitem_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queueitem_modifiedonbehalfby"); + this.SetRelatedEntities("lk_queueitem_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_queueitem_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_queueitembase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_createdby")] + public System.Collections.Generic.IEnumerable lk_queueitembase_createdby + { + get + { + return this.GetRelatedEntities("lk_queueitembase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_createdby"); + this.SetRelatedEntities("lk_queueitembase_createdby", null, value); + this.OnPropertyChanged("lk_queueitembase_createdby"); + } + } + + /// + /// 1:N lk_queueitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_queueitembase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_queueitembase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_modifiedby"); + this.SetRelatedEntities("lk_queueitembase_modifiedby", null, value); + this.OnPropertyChanged("lk_queueitembase_modifiedby"); + } + } + + /// + /// 1:N lk_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_workerid")] + public System.Collections.Generic.IEnumerable lk_queueitembase_workerid + { + get + { + return this.GetRelatedEntities("lk_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_workerid"); + this.SetRelatedEntities("lk_queueitembase_workerid", null, value); + this.OnPropertyChanged("lk_queueitembase_workerid"); + } + } + + /// + /// 1:N lk_quote_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quote_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quote_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quote_createdonbehalfby"); + this.SetRelatedEntities("lk_quote_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quote_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quote_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quote_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quote_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quote_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quote_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quote_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quotebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_createdby")] + public System.Collections.Generic.IEnumerable lk_quotebase_createdby + { + get + { + return this.GetRelatedEntities("lk_quotebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quotebase_createdby"); + this.SetRelatedEntities("lk_quotebase_createdby", null, value); + this.OnPropertyChanged("lk_quotebase_createdby"); + } + } + + /// + /// 1:N lk_quotebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quotebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quotebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quotebase_modifiedby"); + this.SetRelatedEntities("lk_quotebase_modifiedby", null, value); + this.OnPropertyChanged("lk_quotebase_modifiedby"); + } + } + + /// + /// 1:N lk_quoteclose_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_createdby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_createdby"); + this.SetRelatedEntities("lk_quoteclose_createdby", null, value); + this.OnPropertyChanged("lk_quoteclose_createdby"); + } + } + + /// + /// 1:N lk_quoteclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_createdonbehalfby"); + this.SetRelatedEntities("lk_quoteclose_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quoteclose_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quoteclose_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_modifiedby"); + this.SetRelatedEntities("lk_quoteclose_modifiedby", null, value); + this.OnPropertyChanged("lk_quoteclose_modifiedby"); + } + } + + /// + /// 1:N lk_quoteclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quoteclose_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quoteclose_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quotedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quotedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quotedetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetail_createdonbehalfby"); + this.SetRelatedEntities("lk_quotedetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quotedetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quotedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quotedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quotedetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quotedetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quotedetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quotedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_quotedetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_quotedetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetailbase_createdby"); + this.SetRelatedEntities("lk_quotedetailbase_createdby", null, value); + this.OnPropertyChanged("lk_quotedetailbase_createdby"); + } + } + + /// + /// 1:N lk_quotedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quotedetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quotedetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetailbase_modifiedby"); + this.SetRelatedEntities("lk_quotedetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_quotedetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_recurrencerule_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_createdby")] + public System.Collections.Generic.IEnumerable lk_recurrencerule_createdby + { + get + { + return this.GetRelatedEntities("lk_recurrencerule_createdby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerule_createdby"); + this.SetRelatedEntities("lk_recurrencerule_createdby", null, value); + this.OnPropertyChanged("lk_recurrencerule_createdby"); + } + } + + /// + /// 1:N lk_recurrencerule_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_modifiedby")] + public System.Collections.Generic.IEnumerable lk_recurrencerule_modifiedby + { + get + { + return this.GetRelatedEntities("lk_recurrencerule_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerule_modifiedby"); + this.SetRelatedEntities("lk_recurrencerule_modifiedby", null, value); + this.OnPropertyChanged("lk_recurrencerule_modifiedby"); + } + } + + /// + /// 1:N lk_recurrencerulebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurrencerulebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurrencerulebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerulebase_createdonbehalfby"); + this.SetRelatedEntities("lk_recurrencerulebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_recurrencerulebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_recurrencerulebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurrencerulebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurrencerulebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerulebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_recurrencerulebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_recurrencerulebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_createdby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_createdby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_createdby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_createdby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_createdby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_createdonbehalfby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_createdonbehalfby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_modifiedby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_modifiedby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_modifiedby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_modifiedby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_modifiedonbehalfby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprole_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprole_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprole_createdonbehalfby"); + this.SetRelatedEntities("lk_relationshiprole_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprole_createdonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprole_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprole_modifiedonbehalfby"); + this.SetRelatedEntities("lk_relationshiprole_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprole_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprolemap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprolemap_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprolemap_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprolemap_createdonbehalfby"); + this.SetRelatedEntities("lk_relationshiprolemap_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprolemap_createdonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprolemap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprolemap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprolemap_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprolemap_modifiedonbehalfby"); + this.SetRelatedEntities("lk_relationshiprolemap_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprolemap_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_report_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_report_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_report_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_report_createdonbehalfby"); + this.SetRelatedEntities("lk_report_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_report_createdonbehalfby"); + } + } + + /// + /// 1:N lk_report_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_report_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_report_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_report_modifiedonbehalfby"); + this.SetRelatedEntities("lk_report_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_report_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportbase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportbase_createdby"); + this.SetRelatedEntities("lk_reportbase_createdby", null, value); + this.OnPropertyChanged("lk_reportbase_createdby"); + } + } + + /// + /// 1:N lk_reportbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportbase_modifiedby"); + this.SetRelatedEntities("lk_reportbase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportbase_modifiedby"); + } + } + + /// + /// 1:N lk_reportcategory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportcategory_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportcategory_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategory_createdonbehalfby"); + this.SetRelatedEntities("lk_reportcategory_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportcategory_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportcategory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportcategory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportcategory_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategory_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportcategory_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportcategory_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportcategorybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportcategorybase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportcategorybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategorybase_createdby"); + this.SetRelatedEntities("lk_reportcategorybase_createdby", null, value); + this.OnPropertyChanged("lk_reportcategorybase_createdby"); + } + } + + /// + /// 1:N lk_reportcategorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportcategorybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportcategorybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategorybase_modifiedby"); + this.SetRelatedEntities("lk_reportcategorybase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportcategorybase_modifiedby"); + } + } + + /// + /// 1:N lk_reportentity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportentity_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportentity_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportentity_createdonbehalfby"); + this.SetRelatedEntities("lk_reportentity_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportentity_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportentity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportentity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportentity_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportentity_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportentity_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportentity_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportentitybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportentitybase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportentitybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportentitybase_createdby"); + this.SetRelatedEntities("lk_reportentitybase_createdby", null, value); + this.OnPropertyChanged("lk_reportentitybase_createdby"); + } + } + + /// + /// 1:N lk_reportentitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportentitybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportentitybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportentitybase_modifiedby"); + this.SetRelatedEntities("lk_reportentitybase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportentitybase_modifiedby"); + } + } + + /// + /// 1:N lk_reportlink_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportlink_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportlink_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportlink_createdonbehalfby"); + this.SetRelatedEntities("lk_reportlink_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportlink_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportlink_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportlink_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportlink_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportlink_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportlink_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportlink_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportlinkbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportlinkbase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportlinkbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportlinkbase_createdby"); + this.SetRelatedEntities("lk_reportlinkbase_createdby", null, value); + this.OnPropertyChanged("lk_reportlinkbase_createdby"); + } + } + + /// + /// 1:N lk_reportlinkbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportlinkbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportlinkbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportlinkbase_modifiedby"); + this.SetRelatedEntities("lk_reportlinkbase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportlinkbase_modifiedby"); + } + } + + /// + /// 1:N lk_reportvisibility_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportvisibility_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportvisibility_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibility_createdonbehalfby"); + this.SetRelatedEntities("lk_reportvisibility_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportvisibility_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportvisibility_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportvisibility_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportvisibility_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibility_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportvisibility_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportvisibility_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportvisibilitybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportvisibilitybase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportvisibilitybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibilitybase_createdby"); + this.SetRelatedEntities("lk_reportvisibilitybase_createdby", null, value); + this.OnPropertyChanged("lk_reportvisibilitybase_createdby"); + } + } + + /// + /// 1:N lk_reportvisibilitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportvisibilitybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportvisibilitybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibilitybase_modifiedby"); + this.SetRelatedEntities("lk_reportvisibilitybase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportvisibilitybase_modifiedby"); + } + } + + /// + /// 1:N lk_resourcespec_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_createdby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_createdby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_createdby"); + this.SetRelatedEntities("lk_resourcespec_createdby", null, value); + this.OnPropertyChanged("lk_resourcespec_createdby"); + } + } + + /// + /// 1:N lk_resourcespec_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_createdonbehalfby"); + this.SetRelatedEntities("lk_resourcespec_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_resourcespec_createdonbehalfby"); + } + } + + /// + /// 1:N lk_resourcespec_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_modifiedby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_modifiedby"); + this.SetRelatedEntities("lk_resourcespec_modifiedby", null, value); + this.OnPropertyChanged("lk_resourcespec_modifiedby"); + } + } + + /// + /// 1:N lk_resourcespec_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_modifiedonbehalfby"); + this.SetRelatedEntities("lk_resourcespec_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_resourcespec_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_role_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_role_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_role_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_role_createdonbehalfby"); + this.SetRelatedEntities("lk_role_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_role_createdonbehalfby"); + } + } + + /// + /// 1:N lk_role_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_role_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_role_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_role_modifiedonbehalfby"); + this.SetRelatedEntities("lk_role_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_role_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_rolebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_createdby")] + public System.Collections.Generic.IEnumerable lk_rolebase_createdby + { + get + { + return this.GetRelatedEntities("lk_rolebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_rolebase_createdby"); + this.SetRelatedEntities("lk_rolebase_createdby", null, value); + this.OnPropertyChanged("lk_rolebase_createdby"); + } + } + + /// + /// 1:N lk_rolebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_rolebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_rolebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_rolebase_modifiedby"); + this.SetRelatedEntities("lk_rolebase_modifiedby", null, value); + this.OnPropertyChanged("lk_rolebase_modifiedby"); + } + } + + /// + /// 1:N lk_rollupfield_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_createdby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_createdby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_createdby"); + this.SetRelatedEntities("lk_rollupfield_createdby", null, value); + this.OnPropertyChanged("lk_rollupfield_createdby"); + } + } + + /// + /// 1:N lk_rollupfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_createdonbehalfby"); + this.SetRelatedEntities("lk_rollupfield_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_rollupfield_createdonbehalfby"); + } + } + + /// + /// 1:N lk_rollupfield_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_modifiedby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_modifiedby"); + this.SetRelatedEntities("lk_rollupfield_modifiedby", null, value); + this.OnPropertyChanged("lk_rollupfield_modifiedby"); + } + } + + /// + /// 1:N lk_rollupfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_modifiedonbehalfby"); + this.SetRelatedEntities("lk_rollupfield_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_rollupfield_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesliterature_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliterature_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliterature_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliterature_createdonbehalfby"); + this.SetRelatedEntities("lk_salesliterature_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliterature_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesliterature_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliterature_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliterature_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliterature_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesliterature_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliterature_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesliteraturebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesliteraturebase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesliteraturebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteraturebase_createdby"); + this.SetRelatedEntities("lk_salesliteraturebase_createdby", null, value); + this.OnPropertyChanged("lk_salesliteraturebase_createdby"); + } + } + + /// + /// 1:N lk_salesliteraturebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesliteraturebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesliteraturebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteraturebase_modifiedby"); + this.SetRelatedEntities("lk_salesliteraturebase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesliteraturebase_modifiedby"); + } + } + + /// + /// 1:N lk_salesliteratureitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitem_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitem_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitem_createdonbehalfby"); + this.SetRelatedEntities("lk_salesliteratureitem_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliteratureitem_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesliteratureitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitem_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitem_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesliteratureitem_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliteratureitem_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesliteratureitembase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitembase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitembase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitembase_createdby"); + this.SetRelatedEntities("lk_salesliteratureitembase_createdby", null, value); + this.OnPropertyChanged("lk_salesliteratureitembase_createdby"); + } + } + + /// + /// 1:N lk_salesliteratureitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitembase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitembase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitembase_modifiedby"); + this.SetRelatedEntities("lk_salesliteratureitembase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesliteratureitembase_modifiedby"); + } + } + + /// + /// 1:N lk_salesorder_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorder_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorder_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorder_createdonbehalfby"); + this.SetRelatedEntities("lk_salesorder_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorder_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesorder_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorder_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorder_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorder_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesorder_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorder_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesorderbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesorderbase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesorderbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderbase_createdby"); + this.SetRelatedEntities("lk_salesorderbase_createdby", null, value); + this.OnPropertyChanged("lk_salesorderbase_createdby"); + } + } + + /// + /// 1:N lk_salesorderbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesorderbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesorderbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderbase_modifiedby"); + this.SetRelatedEntities("lk_salesorderbase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesorderbase_modifiedby"); + } + } + + /// + /// 1:N lk_salesorderdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetail_createdonbehalfby"); + this.SetRelatedEntities("lk_salesorderdetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorderdetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesorderdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesorderdetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorderdetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesorderdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetailbase_createdby"); + this.SetRelatedEntities("lk_salesorderdetailbase_createdby", null, value); + this.OnPropertyChanged("lk_salesorderdetailbase_createdby"); + } + } + + /// + /// 1:N lk_salesorderdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetailbase_modifiedby"); + this.SetRelatedEntities("lk_salesorderdetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesorderdetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_savedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedquery_createdonbehalfby"); + this.SetRelatedEntities("lk_savedquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_savedquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_savedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_savedquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_savedquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_savedquerybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_createdby")] + public System.Collections.Generic.IEnumerable lk_savedquerybase_createdby + { + get + { + return this.GetRelatedEntities("lk_savedquerybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_savedquerybase_createdby"); + this.SetRelatedEntities("lk_savedquerybase_createdby", null, value); + this.OnPropertyChanged("lk_savedquerybase_createdby"); + } + } + + /// + /// 1:N lk_savedquerybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_savedquerybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_savedquerybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_savedquerybase_modifiedby"); + this.SetRelatedEntities("lk_savedquerybase_modifiedby", null, value); + this.OnPropertyChanged("lk_savedquerybase_modifiedby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_createdby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_createdby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_createdby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_modifiedby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_modifiedby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessage_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagefilter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagefilter_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagefilter_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagefilter_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagefilter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagefilter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagefilter_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagefilter_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagepair_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagepair_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagepair_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagepair_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagepair_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagepair_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagepair_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagepair_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagepair_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagepair_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagepair_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagepair_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstep_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstep_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstep_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstep_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstep_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstep_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstep_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepimage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepimage_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepimage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepimage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepimage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepimage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequest_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequest_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequest_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequest_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequest_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequest_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequest_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequest_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequest_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequest_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequest_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequest_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequestfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequestfield_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequestfield_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequestfield_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequestfield_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequestfield_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequestfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequestfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequestfield_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequestfield_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequestfield_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequestfield_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponse_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponse_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponse_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponse_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponse_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponse_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponse_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponse_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponsefield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponsefield_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponsefield_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponsefield_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponsefield_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponsefield_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponsefield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponsefield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponsefield_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponsefield_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponsefield_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponsefield_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_service_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdby")] + public System.Collections.Generic.IEnumerable lk_service_createdby + { + get + { + return this.GetRelatedEntities("lk_service_createdby", null); + } + set + { + this.OnPropertyChanging("lk_service_createdby"); + this.SetRelatedEntities("lk_service_createdby", null, value); + this.OnPropertyChanged("lk_service_createdby"); + } + } + + /// + /// 1:N lk_service_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_service_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_service_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_service_createdonbehalfby"); + this.SetRelatedEntities("lk_service_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_service_createdonbehalfby"); + } + } + + /// + /// 1:N lk_service_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedby")] + public System.Collections.Generic.IEnumerable lk_service_modifiedby + { + get + { + return this.GetRelatedEntities("lk_service_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_service_modifiedby"); + this.SetRelatedEntities("lk_service_modifiedby", null, value); + this.OnPropertyChanged("lk_service_modifiedby"); + } + } + + /// + /// 1:N lk_service_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_service_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_service_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_service_modifiedonbehalfby"); + this.SetRelatedEntities("lk_service_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_service_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_serviceappointment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_createdby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_createdby"); + this.SetRelatedEntities("lk_serviceappointment_createdby", null, value); + this.OnPropertyChanged("lk_serviceappointment_createdby"); + } + } + + /// + /// 1:N lk_serviceappointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_createdonbehalfby"); + this.SetRelatedEntities("lk_serviceappointment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceappointment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_serviceappointment_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_modifiedby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_modifiedby"); + this.SetRelatedEntities("lk_serviceappointment_modifiedby", null, value); + this.OnPropertyChanged("lk_serviceappointment_modifiedby"); + } + } + + /// + /// 1:N lk_serviceappointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_serviceappointment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceappointment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_serviceendpointbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceendpointbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceendpointbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceendpointbase_createdonbehalfby"); + this.SetRelatedEntities("lk_serviceendpointbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceendpointbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_serviceendpointbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceendpointbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceendpointbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceendpointbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_serviceendpointbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceendpointbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_createdby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_createdby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_createdby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_modifiedby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_modifiedby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_createdby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_createdby"); + this.SetRelatedEntities("lk_sharepointsitebase_createdby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_createdby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_createdonbehalfby"); + this.SetRelatedEntities("lk_sharepointsitebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_modifiedby"); + this.SetRelatedEntities("lk_sharepointsitebase_modifiedby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_modifiedby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sharepointsitebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_site_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_site_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_site_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_site_createdonbehalfby"); + this.SetRelatedEntities("lk_site_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_site_createdonbehalfby"); + } + } + + /// + /// 1:N lk_site_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_site_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_site_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_site_modifiedonbehalfby"); + this.SetRelatedEntities("lk_site_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_site_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sitebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_createdby")] + public System.Collections.Generic.IEnumerable lk_sitebase_createdby + { + get + { + return this.GetRelatedEntities("lk_sitebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_sitebase_createdby"); + this.SetRelatedEntities("lk_sitebase_createdby", null, value); + this.OnPropertyChanged("lk_sitebase_createdby"); + } + } + + /// + /// 1:N lk_sitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_sitebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_sitebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_sitebase_modifiedby"); + this.SetRelatedEntities("lk_sitebase_modifiedby", null, value); + this.OnPropertyChanged("lk_sitebase_modifiedby"); + } + } + + /// + /// 1:N lk_solution_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] + public System.Collections.Generic.IEnumerable lk_solution_createdby + { + get + { + return this.GetRelatedEntities("lk_solution_createdby", null); + } + set + { + this.OnPropertyChanging("lk_solution_createdby"); + this.SetRelatedEntities("lk_solution_createdby", null, value); + this.OnPropertyChanged("lk_solution_createdby"); + } + } + + /// + /// 1:N lk_solution_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] + public System.Collections.Generic.IEnumerable lk_solution_modifiedby + { + get + { + return this.GetRelatedEntities("lk_solution_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_solution_modifiedby"); + this.SetRelatedEntities("lk_solution_modifiedby", null, value); + this.OnPropertyChanged("lk_solution_modifiedby"); + } + } + + /// + /// 1:N lk_solutionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_solutionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_solutionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_solutionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_solutionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_solutioncomponentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutioncomponentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutioncomponentbase_createdonbehalfby"); + this.SetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_solutioncomponentbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_solutioncomponentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutioncomponentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutioncomponentbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_solutioncomponentbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_subject_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_subject_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_subject_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_subject_createdonbehalfby"); + this.SetRelatedEntities("lk_subject_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_subject_createdonbehalfby"); + } + } + + /// + /// 1:N lk_subject_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_subject_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_subject_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_subject_modifiedonbehalfby"); + this.SetRelatedEntities("lk_subject_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_subject_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_subjectbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_createdby")] + public System.Collections.Generic.IEnumerable lk_subjectbase_createdby + { + get + { + return this.GetRelatedEntities("lk_subjectbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_subjectbase_createdby"); + this.SetRelatedEntities("lk_subjectbase_createdby", null, value); + this.OnPropertyChanged("lk_subjectbase_createdby"); + } + } + + /// + /// 1:N lk_subjectbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_subjectbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_subjectbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_subjectbase_modifiedby"); + this.SetRelatedEntities("lk_subjectbase_modifiedby", null, value); + this.OnPropertyChanged("lk_subjectbase_modifiedby"); + } + } + + /// + /// 1:N lk_systemuser_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuser_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuser_createdonbehalfby"); + this.SetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuser_createdonbehalfby"); + } + } + + /// + /// 1:N lk_systemuser_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuser_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuser_modifiedonbehalfby"); + this.SetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuser_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_systemuserbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuserbase_createdby + { + get + { + return this.GetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuserbase_createdby"); + this.SetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuserbase_createdby"); + } + } + + /// + /// 1:N lk_systemuserbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuserbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuserbase_modifiedby"); + this.SetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuserbase_modifiedby"); + } + } + + /// + /// 1:N lk_task_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdby")] + public System.Collections.Generic.IEnumerable lk_task_createdby + { + get + { + return this.GetRelatedEntities("lk_task_createdby", null); + } + set + { + this.OnPropertyChanging("lk_task_createdby"); + this.SetRelatedEntities("lk_task_createdby", null, value); + this.OnPropertyChanged("lk_task_createdby"); + } + } + + /// + /// 1:N lk_task_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_task_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_task_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_task_createdonbehalfby"); + this.SetRelatedEntities("lk_task_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_task_createdonbehalfby"); + } + } + + /// + /// 1:N lk_task_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedby")] + public System.Collections.Generic.IEnumerable lk_task_modifiedby + { + get + { + return this.GetRelatedEntities("lk_task_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_task_modifiedby"); + this.SetRelatedEntities("lk_task_modifiedby", null, value); + this.OnPropertyChanged("lk_task_modifiedby"); + } + } + + /// + /// 1:N lk_task_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_task_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_task_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_task_modifiedonbehalfby"); + this.SetRelatedEntities("lk_task_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_task_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_team_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_team_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_team_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_team_createdonbehalfby"); + this.SetRelatedEntities("lk_team_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_team_createdonbehalfby"); + } + } + + /// + /// 1:N lk_team_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_team_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_team_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_team_modifiedonbehalfby"); + this.SetRelatedEntities("lk_team_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_team_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_teambase_administratorid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_administratorid")] + public System.Collections.Generic.IEnumerable lk_teambase_administratorid + { + get + { + return this.GetRelatedEntities("lk_teambase_administratorid", null); + } + set + { + this.OnPropertyChanging("lk_teambase_administratorid"); + this.SetRelatedEntities("lk_teambase_administratorid", null, value); + this.OnPropertyChanged("lk_teambase_administratorid"); + } + } + + /// + /// 1:N lk_teambase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_createdby")] + public System.Collections.Generic.IEnumerable lk_teambase_createdby + { + get + { + return this.GetRelatedEntities("lk_teambase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_teambase_createdby"); + this.SetRelatedEntities("lk_teambase_createdby", null, value); + this.OnPropertyChanged("lk_teambase_createdby"); + } + } + + /// + /// 1:N lk_teambase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_teambase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_teambase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_teambase_modifiedby"); + this.SetRelatedEntities("lk_teambase_modifiedby", null, value); + this.OnPropertyChanged("lk_teambase_modifiedby"); + } + } + + /// + /// 1:N lk_teamtemplate_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_createdby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_createdby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_createdby"); + this.SetRelatedEntities("lk_teamtemplate_createdby", null, value); + this.OnPropertyChanged("lk_teamtemplate_createdby"); + } + } + + /// + /// 1:N lk_teamtemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_teamtemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_teamtemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_teamtemplate_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_modifiedby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_modifiedby"); + this.SetRelatedEntities("lk_teamtemplate_modifiedby", null, value); + this.OnPropertyChanged("lk_teamtemplate_modifiedby"); + } + } + + /// + /// 1:N lk_teamtemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_teamtemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_teamtemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_templatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_templatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_templatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_createdby"); + this.SetRelatedEntities("lk_templatebase_createdby", null, value); + this.OnPropertyChanged("lk_templatebase_createdby"); + } + } + + /// + /// 1:N lk_templatebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_templatebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_templatebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_createdonbehalfby"); + this.SetRelatedEntities("lk_templatebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_templatebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_templatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_templatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_templatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_modifiedby"); + this.SetRelatedEntities("lk_templatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_templatebase_modifiedby"); + } + } + + /// + /// 1:N lk_templatebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_templatebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_templatebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_templatebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_templatebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_territory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_territory_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_territory_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_territory_createdonbehalfby"); + this.SetRelatedEntities("lk_territory_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_territory_createdonbehalfby"); + } + } + + /// + /// 1:N lk_territory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_territory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_territory_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_territory_modifiedonbehalfby"); + this.SetRelatedEntities("lk_territory_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_territory_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_territorybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_createdby")] + public System.Collections.Generic.IEnumerable lk_territorybase_createdby + { + get + { + return this.GetRelatedEntities("lk_territorybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_territorybase_createdby"); + this.SetRelatedEntities("lk_territorybase_createdby", null, value); + this.OnPropertyChanged("lk_territorybase_createdby"); + } + } + + /// + /// 1:N lk_territorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_territorybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_territorybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_territorybase_modifiedby"); + this.SetRelatedEntities("lk_territorybase_modifiedby", null, value); + this.OnPropertyChanged("lk_territorybase_modifiedby"); + } + } + + /// + /// 1:N lk_timezonedefinition_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_createdby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_createdby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_createdby"); + this.SetRelatedEntities("lk_timezonedefinition_createdby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_createdby"); + } + } + + /// + /// 1:N lk_timezonedefinition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_createdonbehalfby"); + this.SetRelatedEntities("lk_timezonedefinition_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_createdonbehalfby"); + } + } + + /// + /// 1:N lk_timezonedefinition_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_modifiedby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_modifiedby"); + this.SetRelatedEntities("lk_timezonedefinition_modifiedby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_modifiedby"); + } + } + + /// + /// 1:N lk_timezonedefinition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_modifiedonbehalfby"); + this.SetRelatedEntities("lk_timezonedefinition_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_createdby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_createdby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_createdby"); + this.SetRelatedEntities("lk_timezonelocalizedname_createdby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_createdby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_createdonbehalfby"); + this.SetRelatedEntities("lk_timezonelocalizedname_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_createdonbehalfby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_modifiedby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_modifiedby"); + this.SetRelatedEntities("lk_timezonelocalizedname_modifiedby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_modifiedby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_modifiedonbehalfby"); + this.SetRelatedEntities("lk_timezonelocalizedname_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_timezonerule_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_createdby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_createdby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_createdby"); + this.SetRelatedEntities("lk_timezonerule_createdby", null, value); + this.OnPropertyChanged("lk_timezonerule_createdby"); + } + } + + /// + /// 1:N lk_timezonerule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_createdonbehalfby"); + this.SetRelatedEntities("lk_timezonerule_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonerule_createdonbehalfby"); + } + } + + /// + /// 1:N lk_timezonerule_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_modifiedby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_modifiedby"); + this.SetRelatedEntities("lk_timezonerule_modifiedby", null, value); + this.OnPropertyChanged("lk_timezonerule_modifiedby"); + } + } + + /// + /// 1:N lk_timezonerule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_modifiedonbehalfby"); + this.SetRelatedEntities("lk_timezonerule_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonerule_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_tracelog_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdby")] + public System.Collections.Generic.IEnumerable lk_tracelog_createdby + { + get + { + return this.GetRelatedEntities("lk_tracelog_createdby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_createdby"); + this.SetRelatedEntities("lk_tracelog_createdby", null, value); + this.OnPropertyChanged("lk_tracelog_createdby"); + } + } + + /// + /// 1:N lk_tracelog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_tracelog_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_tracelog_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_createdonbehalfby"); + this.SetRelatedEntities("lk_tracelog_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_tracelog_createdonbehalfby"); + } + } + + /// + /// 1:N lk_tracelog_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedby")] + public System.Collections.Generic.IEnumerable lk_tracelog_modifiedby + { + get + { + return this.GetRelatedEntities("lk_tracelog_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_modifiedby"); + this.SetRelatedEntities("lk_tracelog_modifiedby", null, value); + this.OnPropertyChanged("lk_tracelog_modifiedby"); + } + } + + /// + /// 1:N lk_tracelog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_tracelog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_tracelog_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_modifiedonbehalfby"); + this.SetRelatedEntities("lk_tracelog_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_tracelog_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_transactioncurrency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrency_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrency_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrency_createdonbehalfby"); + this.SetRelatedEntities("lk_transactioncurrency_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_transactioncurrency_createdonbehalfby"); + } + } + + /// + /// 1:N lk_transactioncurrency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrency_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrency_modifiedonbehalfby"); + this.SetRelatedEntities("lk_transactioncurrency_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_transactioncurrency_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_transactioncurrencybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_createdby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrencybase_createdby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrencybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrencybase_createdby"); + this.SetRelatedEntities("lk_transactioncurrencybase_createdby", null, value); + this.OnPropertyChanged("lk_transactioncurrencybase_createdby"); + } + } + + /// + /// 1:N lk_transactioncurrencybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrencybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrencybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrencybase_modifiedby"); + this.SetRelatedEntities("lk_transactioncurrencybase_modifiedby", null, value); + this.OnPropertyChanged("lk_transactioncurrencybase_modifiedby"); + } + } + + /// + /// 1:N lk_transformationmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_createdby"); + this.SetRelatedEntities("lk_transformationmapping_createdby", null, value); + this.OnPropertyChanged("lk_transformationmapping_createdby"); + } + } + + /// + /// 1:N lk_transformationmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_transformationmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_transformationmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_modifiedby"); + this.SetRelatedEntities("lk_transformationmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_transformationmapping_modifiedby"); + } + } + + /// + /// 1:N lk_transformationmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_transformationmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_createdby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_createdby"); + this.SetRelatedEntities("lk_transformationparametermapping_createdby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_createdby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_createdonbehalfby"); + this.SetRelatedEntities("lk_transformationparametermapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_modifiedby"); + this.SetRelatedEntities("lk_transformationparametermapping_modifiedby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_modifiedby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_transformationparametermapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_uom_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uom_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uom_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uom_createdonbehalfby"); + this.SetRelatedEntities("lk_uom_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_uom_createdonbehalfby"); + } + } + + /// + /// 1:N lk_uom_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uom_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uom_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uom_modifiedonbehalfby"); + this.SetRelatedEntities("lk_uom_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_uom_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_uombase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_createdby")] + public System.Collections.Generic.IEnumerable lk_uombase_createdby + { + get + { + return this.GetRelatedEntities("lk_uombase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_uombase_createdby"); + this.SetRelatedEntities("lk_uombase_createdby", null, value); + this.OnPropertyChanged("lk_uombase_createdby"); + } + } + + /// + /// 1:N lk_uombase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_uombase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_uombase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_uombase_modifiedby"); + this.SetRelatedEntities("lk_uombase_modifiedby", null, value); + this.OnPropertyChanged("lk_uombase_modifiedby"); + } + } + + /// + /// 1:N lk_uomschedule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uomschedule_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uomschedule_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedule_createdonbehalfby"); + this.SetRelatedEntities("lk_uomschedule_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_uomschedule_createdonbehalfby"); + } + } + + /// + /// 1:N lk_uomschedule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uomschedule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uomschedule_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedule_modifiedonbehalfby"); + this.SetRelatedEntities("lk_uomschedule_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_uomschedule_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_uomschedulebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_createdby")] + public System.Collections.Generic.IEnumerable lk_uomschedulebase_createdby + { + get + { + return this.GetRelatedEntities("lk_uomschedulebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedulebase_createdby"); + this.SetRelatedEntities("lk_uomschedulebase_createdby", null, value); + this.OnPropertyChanged("lk_uomschedulebase_createdby"); + } + } + + /// + /// 1:N lk_uomschedulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_uomschedulebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_uomschedulebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedulebase_modifiedby"); + this.SetRelatedEntities("lk_uomschedulebase_modifiedby", null, value); + this.OnPropertyChanged("lk_uomschedulebase_modifiedby"); + } + } + + /// + /// 1:N lk_userform_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_createdby")] + public System.Collections.Generic.IEnumerable lk_userform_createdby + { + get + { + return this.GetRelatedEntities("lk_userform_createdby", null); + } + set + { + this.OnPropertyChanging("lk_userform_createdby"); + this.SetRelatedEntities("lk_userform_createdby", null, value); + this.OnPropertyChanged("lk_userform_createdby"); + } + } + + /// + /// 1:N lk_userform_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_modifiedby")] + public System.Collections.Generic.IEnumerable lk_userform_modifiedby + { + get + { + return this.GetRelatedEntities("lk_userform_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_userform_modifiedby"); + this.SetRelatedEntities("lk_userform_modifiedby", null, value); + this.OnPropertyChanged("lk_userform_modifiedby"); + } + } + + /// + /// 1:N lk_userformbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userformbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userformbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userformbase_createdonbehalfby"); + this.SetRelatedEntities("lk_userformbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_userformbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_userformbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userformbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userformbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userformbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_userformbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_userformbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_userquery_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdby")] + public System.Collections.Generic.IEnumerable lk_userquery_createdby + { + get + { + return this.GetRelatedEntities("lk_userquery_createdby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_createdby"); + this.SetRelatedEntities("lk_userquery_createdby", null, value); + this.OnPropertyChanged("lk_userquery_createdby"); + } + } + + /// + /// 1:N lk_userquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_createdonbehalfby"); + this.SetRelatedEntities("lk_userquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_userquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_userquery_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedby")] + public System.Collections.Generic.IEnumerable lk_userquery_modifiedby + { + get + { + return this.GetRelatedEntities("lk_userquery_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_modifiedby"); + this.SetRelatedEntities("lk_userquery_modifiedby", null, value); + this.OnPropertyChanged("lk_userquery_modifiedby"); + } + } + + /// + /// 1:N lk_userquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_userquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_userquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_userqueryvisualization_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_createdby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualization_createdby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualization_createdby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualization_createdby"); + this.SetRelatedEntities("lk_userqueryvisualization_createdby", null, value); + this.OnPropertyChanged("lk_userqueryvisualization_createdby"); + } + } + + /// + /// 1:N lk_userqueryvisualization_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_modifiedby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualization_modifiedby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualization_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualization_modifiedby"); + this.SetRelatedEntities("lk_userqueryvisualization_modifiedby", null, value); + this.OnPropertyChanged("lk_userqueryvisualization_modifiedby"); + } + } + + /// + /// 1:N lk_userqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualizationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualizationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_userqueryvisualizationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_userqueryvisualizationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_userqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualizationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualizationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_userqueryvisualizationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_userqueryvisualizationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_usersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_usersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_usersettings_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_usersettings_createdonbehalfby"); + this.SetRelatedEntities("lk_usersettings_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_usersettings_createdonbehalfby"); + } + } + + /// + /// 1:N lk_usersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_usersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_usersettings_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_usersettings_modifiedonbehalfby"); + this.SetRelatedEntities("lk_usersettings_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_usersettings_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_usersettingsbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_createdby")] + public System.Collections.Generic.IEnumerable lk_usersettingsbase_createdby + { + get + { + return this.GetRelatedEntities("lk_usersettingsbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_usersettingsbase_createdby"); + this.SetRelatedEntities("lk_usersettingsbase_createdby", null, value); + this.OnPropertyChanged("lk_usersettingsbase_createdby"); + } + } + + /// + /// 1:N lk_usersettingsbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_usersettingsbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_usersettingsbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_usersettingsbase_modifiedby"); + this.SetRelatedEntities("lk_usersettingsbase_modifiedby", null, value); + this.OnPropertyChanged("lk_usersettingsbase_modifiedby"); + } + } + + /// + /// 1:N lk_webresourcebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_webresourcebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_webresourcebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_webresourcebase_createdonbehalfby"); + this.SetRelatedEntities("lk_webresourcebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_webresourcebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_webresourcebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_webresourcebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_webresourcebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_webresourcebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_workflowlog_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_createdby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_createdby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_createdby"); + this.SetRelatedEntities("lk_workflowlog_createdby", null, value); + this.OnPropertyChanged("lk_workflowlog_createdby"); + } + } + + /// + /// 1:N lk_workflowlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_createdonbehalfby"); + this.SetRelatedEntities("lk_workflowlog_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_workflowlog_createdonbehalfby"); + } + } + + /// + /// 1:N lk_workflowlog_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_modifiedby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_modifiedby"); + this.SetRelatedEntities("lk_workflowlog_modifiedby", null, value); + this.OnPropertyChanged("lk_workflowlog_modifiedby"); + } + } + + /// + /// 1:N lk_workflowlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_modifiedonbehalfby"); + this.SetRelatedEntities("lk_workflowlog_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_workflowlog_modifiedonbehalfby"); + } + } + + /// + /// 1:N mailbox_regarding_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_systemuser")] + public System.Collections.Generic.IEnumerable mailbox_regarding_systemuser + { + get + { + return this.GetRelatedEntities("mailbox_regarding_systemuser", null); + } + set + { + this.OnPropertyChanging("mailbox_regarding_systemuser"); + this.SetRelatedEntities("mailbox_regarding_systemuser", null, value); + this.OnPropertyChanged("mailbox_regarding_systemuser"); + } + } + + /// + /// 1:N modifiedby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_attributemap")] + public System.Collections.Generic.IEnumerable modifiedby_attributemap + { + get + { + return this.GetRelatedEntities("modifiedby_attributemap", null); + } + set + { + this.OnPropertyChanging("modifiedby_attributemap"); + this.SetRelatedEntities("modifiedby_attributemap", null, value); + this.OnPropertyChanged("modifiedby_attributemap"); + } + } + + /// + /// 1:N modifiedby_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection")] + public System.Collections.Generic.IEnumerable modifiedby_connection + { + get + { + return this.GetRelatedEntities("modifiedby_connection", null); + } + set + { + this.OnPropertyChanging("modifiedby_connection"); + this.SetRelatedEntities("modifiedby_connection", null, value); + this.OnPropertyChanged("modifiedby_connection"); + } + } + + /// + /// 1:N modifiedby_connection_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection_role")] + public System.Collections.Generic.IEnumerable modifiedby_connection_role + { + get + { + return this.GetRelatedEntities("modifiedby_connection_role", null); + } + set + { + this.OnPropertyChanging("modifiedby_connection_role"); + this.SetRelatedEntities("modifiedby_connection_role", null, value); + this.OnPropertyChanged("modifiedby_connection_role"); + } + } + + /// + /// 1:N modifiedby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_customer_relationship")] + public System.Collections.Generic.IEnumerable modifiedby_customer_relationship + { + get + { + return this.GetRelatedEntities("modifiedby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("modifiedby_customer_relationship"); + this.SetRelatedEntities("modifiedby_customer_relationship", null, value); + this.OnPropertyChanged("modifiedby_customer_relationship"); + } + } + + /// + /// 1:N modifiedby_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_entitymap")] + public System.Collections.Generic.IEnumerable modifiedby_entitymap + { + get + { + return this.GetRelatedEntities("modifiedby_entitymap", null); + } + set + { + this.OnPropertyChanging("modifiedby_entitymap"); + this.SetRelatedEntities("modifiedby_entitymap", null, value); + this.OnPropertyChanged("modifiedby_entitymap"); + } + } + + /// + /// 1:N modifiedby_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] + public System.Collections.Generic.IEnumerable modifiedby_pluginassembly + { + get + { + return this.GetRelatedEntities("modifiedby_pluginassembly", null); + } + set + { + this.OnPropertyChanging("modifiedby_pluginassembly"); + this.SetRelatedEntities("modifiedby_pluginassembly", null, value); + this.OnPropertyChanged("modifiedby_pluginassembly"); + } + } + + /// + /// 1:N modifiedby_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] + public System.Collections.Generic.IEnumerable modifiedby_plugintype + { + get + { + return this.GetRelatedEntities("modifiedby_plugintype", null); + } + set + { + this.OnPropertyChanging("modifiedby_plugintype"); + this.SetRelatedEntities("modifiedby_plugintype", null, value); + this.OnPropertyChanged("modifiedby_plugintype"); + } + } + + /// + /// 1:N modifiedby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintypestatistic")] + public System.Collections.Generic.IEnumerable modifiedby_plugintypestatistic + { + get + { + return this.GetRelatedEntities("modifiedby_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("modifiedby_plugintypestatistic"); + this.SetRelatedEntities("modifiedby_plugintypestatistic", null, value); + this.OnPropertyChanged("modifiedby_plugintypestatistic"); + } + } + + /// + /// 1:N modifiedby_relationship_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role")] + public System.Collections.Generic.IEnumerable modifiedby_relationship_role + { + get + { + return this.GetRelatedEntities("modifiedby_relationship_role", null); + } + set + { + this.OnPropertyChanging("modifiedby_relationship_role"); + this.SetRelatedEntities("modifiedby_relationship_role", null, value); + this.OnPropertyChanged("modifiedby_relationship_role"); + } + } + + /// + /// 1:N modifiedby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role_map")] + public System.Collections.Generic.IEnumerable modifiedby_relationship_role_map + { + get + { + return this.GetRelatedEntities("modifiedby_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("modifiedby_relationship_role_map"); + this.SetRelatedEntities("modifiedby_relationship_role_map", null, value); + this.OnPropertyChanged("modifiedby_relationship_role_map"); + } + } + + /// + /// 1:N modifiedby_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessage + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessage", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessage"); + this.SetRelatedEntities("modifiedby_sdkmessage", null, value); + this.OnPropertyChanged("modifiedby_sdkmessage"); + } + } + + /// + /// 1:N modifiedby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagefilter"); + this.SetRelatedEntities("modifiedby_sdkmessagefilter", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagefilter"); + } + } + + /// + /// 1:N modifiedby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagepair")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagepair + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagepair"); + this.SetRelatedEntities("modifiedby_sdkmessagepair", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagepair"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstep"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// 1:N modifiedby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagerequest"); + this.SetRelatedEntities("modifiedby_sdkmessagerequest", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagerequest"); + } + } + + /// + /// 1:N modifiedby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagerequestfield"); + this.SetRelatedEntities("modifiedby_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagerequestfield"); + } + } + + /// + /// 1:N modifiedby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageresponse"); + this.SetRelatedEntities("modifiedby_sdkmessageresponse", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageresponse"); + } + } + + /// + /// 1:N modifiedby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageresponsefield"); + this.SetRelatedEntities("modifiedby_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageresponsefield"); + } + } + + /// + /// 1:N modifiedby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_serviceendpoint")] + public System.Collections.Generic.IEnumerable modifiedby_serviceendpoint + { + get + { + return this.GetRelatedEntities("modifiedby_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("modifiedby_serviceendpoint"); + this.SetRelatedEntities("modifiedby_serviceendpoint", null, value); + this.OnPropertyChanged("modifiedby_serviceendpoint"); + } + } + + /// + /// 1:N modifiedonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_attributemap")] + public System.Collections.Generic.IEnumerable modifiedonbehalfby_attributemap + { + get + { + return this.GetRelatedEntities("modifiedonbehalfby_attributemap", null); + } + set + { + this.OnPropertyChanging("modifiedonbehalfby_attributemap"); + this.SetRelatedEntities("modifiedonbehalfby_attributemap", null, value); + this.OnPropertyChanged("modifiedonbehalfby_attributemap"); + } + } + + /// + /// 1:N modifiedonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_customer_relationship")] + public System.Collections.Generic.IEnumerable modifiedonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntities("modifiedonbehalfby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("modifiedonbehalfby_customer_relationship"); + this.SetRelatedEntities("modifiedonbehalfby_customer_relationship", null, value); + this.OnPropertyChanged("modifiedonbehalfby_customer_relationship"); + } + } + + /// + /// 1:N msdyn_systemuser_wallsavedqueryusersettings_userid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_systemuser_wallsavedqueryusersettings_userid")] + public System.Collections.Generic.IEnumerable msdyn_systemuser_wallsavedqueryusersettings_userid + { + get + { + return this.GetRelatedEntities("msdyn_systemuser_wallsavedqueryusersettings_userid", null); + } + set + { + this.OnPropertyChanging("msdyn_systemuser_wallsavedqueryusersettings_userid"); + this.SetRelatedEntities("msdyn_systemuser_wallsavedqueryusersettings_userid", null, value); + this.OnPropertyChanged("msdyn_systemuser_wallsavedqueryusersettings_userid"); + } + } + + /// + /// 1:N opportunity_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_owning_user")] + public System.Collections.Generic.IEnumerable opportunity_owning_user + { + get + { + return this.GetRelatedEntities("opportunity_owning_user", null); + } + set + { + this.OnPropertyChanging("opportunity_owning_user"); + this.SetRelatedEntities("opportunity_owning_user", null, value); + this.OnPropertyChanged("opportunity_owning_user"); + } + } + + /// + /// 1:N OwnerMapping_SystemUser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_SystemUser")] + public System.Collections.Generic.IEnumerable OwnerMapping_SystemUser + { + get + { + return this.GetRelatedEntities("OwnerMapping_SystemUser", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_SystemUser"); + this.SetRelatedEntities("OwnerMapping_SystemUser", null, value); + this.OnPropertyChanged("OwnerMapping_SystemUser"); + } + } + + /// + /// 1:N queue_primary_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_primary_user")] + public System.Collections.Generic.IEnumerable queue_primary_user + { + get + { + return this.GetRelatedEntities("queue_primary_user", null); + } + set + { + this.OnPropertyChanging("queue_primary_user"); + this.SetRelatedEntities("queue_primary_user", null, value); + this.OnPropertyChanged("queue_primary_user"); + } + } + + /// + /// 1:N system_user_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_accounts")] + public System.Collections.Generic.IEnumerable system_user_accounts + { + get + { + return this.GetRelatedEntities("system_user_accounts", null); + } + set + { + this.OnPropertyChanging("system_user_accounts"); + this.SetRelatedEntities("system_user_accounts", null, value); + this.OnPropertyChanged("system_user_accounts"); + } + } + + /// + /// 1:N system_user_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_activity_parties")] + public System.Collections.Generic.IEnumerable system_user_activity_parties + { + get + { + return this.GetRelatedEntities("system_user_activity_parties", null); + } + set + { + this.OnPropertyChanging("system_user_activity_parties"); + this.SetRelatedEntities("system_user_activity_parties", null, value); + this.OnPropertyChanged("system_user_activity_parties"); + } + } + + /// + /// 1:N system_user_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_asyncoperation")] + public System.Collections.Generic.IEnumerable system_user_asyncoperation + { + get + { + return this.GetRelatedEntities("system_user_asyncoperation", null); + } + set + { + this.OnPropertyChanging("system_user_asyncoperation"); + this.SetRelatedEntities("system_user_asyncoperation", null, value); + this.OnPropertyChanged("system_user_asyncoperation"); + } + } + + /// + /// 1:N system_user_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_contacts")] + public System.Collections.Generic.IEnumerable system_user_contacts + { + get + { + return this.GetRelatedEntities("system_user_contacts", null); + } + set + { + this.OnPropertyChanging("system_user_contacts"); + this.SetRelatedEntities("system_user_contacts", null, value); + this.OnPropertyChanged("system_user_contacts"); + } + } + + /// + /// 1:N system_user_email_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_email_templates")] + public System.Collections.Generic.IEnumerable system_user_email_templates + { + get + { + return this.GetRelatedEntities("system_user_email_templates", null); + } + set + { + this.OnPropertyChanging("system_user_email_templates"); + this.SetRelatedEntities("system_user_email_templates", null, value); + this.OnPropertyChanged("system_user_email_templates"); + } + } + + /// + /// 1:N system_user_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_incidents")] + public System.Collections.Generic.IEnumerable system_user_incidents + { + get + { + return this.GetRelatedEntities("system_user_incidents", null); + } + set + { + this.OnPropertyChanging("system_user_incidents"); + this.SetRelatedEntities("system_user_incidents", null, value); + this.OnPropertyChanged("system_user_incidents"); + } + } + + /// + /// 1:N system_user_invoicedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoicedetail")] + public System.Collections.Generic.IEnumerable system_user_invoicedetail + { + get + { + return this.GetRelatedEntities("system_user_invoicedetail", null); + } + set + { + this.OnPropertyChanging("system_user_invoicedetail"); + this.SetRelatedEntities("system_user_invoicedetail", null, value); + this.OnPropertyChanged("system_user_invoicedetail"); + } + } + + /// + /// 1:N system_user_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoices")] + public System.Collections.Generic.IEnumerable system_user_invoices + { + get + { + return this.GetRelatedEntities("system_user_invoices", null); + } + set + { + this.OnPropertyChanging("system_user_invoices"); + this.SetRelatedEntities("system_user_invoices", null, value); + this.OnPropertyChanged("system_user_invoices"); + } + } + + /// + /// 1:N system_user_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_orders")] + public System.Collections.Generic.IEnumerable system_user_orders + { + get + { + return this.GetRelatedEntities("system_user_orders", null); + } + set + { + this.OnPropertyChanging("system_user_orders"); + this.SetRelatedEntities("system_user_orders", null, value); + this.OnPropertyChanged("system_user_orders"); + } + } + + /// + /// 1:N system_user_quotedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotedetail")] + public System.Collections.Generic.IEnumerable system_user_quotedetail + { + get + { + return this.GetRelatedEntities("system_user_quotedetail", null); + } + set + { + this.OnPropertyChanging("system_user_quotedetail"); + this.SetRelatedEntities("system_user_quotedetail", null, value); + this.OnPropertyChanged("system_user_quotedetail"); + } + } + + /// + /// 1:N system_user_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotes")] + public System.Collections.Generic.IEnumerable system_user_quotes + { + get + { + return this.GetRelatedEntities("system_user_quotes", null); + } + set + { + this.OnPropertyChanging("system_user_quotes"); + this.SetRelatedEntities("system_user_quotes", null, value); + this.OnPropertyChanged("system_user_quotes"); + } + } + + /// + /// 1:N system_user_sales_literature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_sales_literature")] + public System.Collections.Generic.IEnumerable system_user_sales_literature + { + get + { + return this.GetRelatedEntities("system_user_sales_literature", null); + } + set + { + this.OnPropertyChanging("system_user_sales_literature"); + this.SetRelatedEntities("system_user_sales_literature", null, value); + this.OnPropertyChanged("system_user_sales_literature"); + } + } + + /// + /// 1:N system_user_salesorderdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_salesorderdetail")] + public System.Collections.Generic.IEnumerable system_user_salesorderdetail + { + get + { + return this.GetRelatedEntities("system_user_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("system_user_salesorderdetail"); + this.SetRelatedEntities("system_user_salesorderdetail", null, value); + this.OnPropertyChanged("system_user_salesorderdetail"); + } + } + + /// + /// 1:N system_user_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_appointments")] + public System.Collections.Generic.IEnumerable system_user_service_appointments + { + get + { + return this.GetRelatedEntities("system_user_service_appointments", null); + } + set + { + this.OnPropertyChanging("system_user_service_appointments"); + this.SetRelatedEntities("system_user_service_appointments", null, value); + this.OnPropertyChanged("system_user_service_appointments"); + } + } + + /// + /// 1:N system_user_service_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_contracts")] + public System.Collections.Generic.IEnumerable system_user_service_contracts + { + get + { + return this.GetRelatedEntities("system_user_service_contracts", null); + } + set + { + this.OnPropertyChanging("system_user_service_contracts"); + this.SetRelatedEntities("system_user_service_contracts", null, value); + this.OnPropertyChanged("system_user_service_contracts"); + } + } + + /// + /// 1:N system_user_territories + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_territories")] + public System.Collections.Generic.IEnumerable system_user_territories + { + get + { + return this.GetRelatedEntities("system_user_territories", null); + } + set + { + this.OnPropertyChanging("system_user_territories"); + this.SetRelatedEntities("system_user_territories", null, value); + this.OnPropertyChanged("system_user_territories"); + } + } + + /// + /// 1:N system_user_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_workflow")] + public System.Collections.Generic.IEnumerable system_user_workflow + { + get + { + return this.GetRelatedEntities("system_user_workflow", null); + } + set + { + this.OnPropertyChanging("system_user_workflow"); + this.SetRelatedEntities("system_user_workflow", null, value); + this.OnPropertyChanged("system_user_workflow"); + } + } + + /// + /// 1:N SystemUser_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_AsyncOperations")] + public System.Collections.Generic.IEnumerable SystemUser_AsyncOperations + { + get + { + return this.GetRelatedEntities("SystemUser_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemUser_AsyncOperations"); + this.SetRelatedEntities("SystemUser_AsyncOperations", null, value); + this.OnPropertyChanged("SystemUser_AsyncOperations"); + } + } + + /// + /// 1:N SystemUser_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SystemUser_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SystemUser_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SystemUser_BulkDeleteFailures"); + this.SetRelatedEntities("SystemUser_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SystemUser_BulkDeleteFailures"); + } + } + + /// + /// 1:N SystemUser_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Campaigns")] + public System.Collections.Generic.IEnumerable SystemUser_Campaigns + { + get + { + return this.GetRelatedEntities("SystemUser_Campaigns", null); + } + set + { + this.OnPropertyChanging("SystemUser_Campaigns"); + this.SetRelatedEntities("SystemUser_Campaigns", null, value); + this.OnPropertyChanged("SystemUser_Campaigns"); + } + } + + /// + /// 1:N systemuser_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections1")] + public System.Collections.Generic.IEnumerable systemuser_connections1 + { + get + { + return this.GetRelatedEntities("systemuser_connections1", null); + } + set + { + this.OnPropertyChanging("systemuser_connections1"); + this.SetRelatedEntities("systemuser_connections1", null, value); + this.OnPropertyChanged("systemuser_connections1"); + } + } + + /// + /// 1:N systemuser_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections2")] + public System.Collections.Generic.IEnumerable systemuser_connections2 + { + get + { + return this.GetRelatedEntities("systemuser_connections2", null); + } + set + { + this.OnPropertyChanging("systemuser_connections2"); + this.SetRelatedEntities("systemuser_connections2", null, value); + this.OnPropertyChanged("systemuser_connections2"); + } + } + + /// + /// 1:N SystemUser_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable SystemUser_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("SystemUser_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("SystemUser_DuplicateBaseRecord"); + this.SetRelatedEntities("SystemUser_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("SystemUser_DuplicateBaseRecord"); + } + } + + /// + /// 1:N SystemUser_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable SystemUser_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("SystemUser_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("SystemUser_DuplicateMatchingRecord"); + this.SetRelatedEntities("SystemUser_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("SystemUser_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N SystemUser_DuplicateRules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateRules")] + public System.Collections.Generic.IEnumerable SystemUser_DuplicateRules + { + get + { + return this.GetRelatedEntities("SystemUser_DuplicateRules", null); + } + set + { + this.OnPropertyChanging("SystemUser_DuplicateRules"); + this.SetRelatedEntities("SystemUser_DuplicateRules", null, value); + this.OnPropertyChanged("SystemUser_DuplicateRules"); + } + } + + /// + /// 1:N SystemUser_ImportFiles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportFiles")] + public System.Collections.Generic.IEnumerable SystemUser_ImportFiles + { + get + { + return this.GetRelatedEntities("SystemUser_ImportFiles", null); + } + set + { + this.OnPropertyChanging("SystemUser_ImportFiles"); + this.SetRelatedEntities("SystemUser_ImportFiles", null, value); + this.OnPropertyChanged("SystemUser_ImportFiles"); + } + } + + /// + /// 1:N SystemUser_ImportLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportLogs")] + public System.Collections.Generic.IEnumerable SystemUser_ImportLogs + { + get + { + return this.GetRelatedEntities("SystemUser_ImportLogs", null); + } + set + { + this.OnPropertyChanging("SystemUser_ImportLogs"); + this.SetRelatedEntities("SystemUser_ImportLogs", null, value); + this.OnPropertyChanged("SystemUser_ImportLogs"); + } + } + + /// + /// 1:N SystemUser_ImportMaps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportMaps")] + public System.Collections.Generic.IEnumerable SystemUser_ImportMaps + { + get + { + return this.GetRelatedEntities("SystemUser_ImportMaps", null); + } + set + { + this.OnPropertyChanging("SystemUser_ImportMaps"); + this.SetRelatedEntities("SystemUser_ImportMaps", null, value); + this.OnPropertyChanged("SystemUser_ImportMaps"); + } + } + + /// + /// 1:N SystemUser_Imports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Imports")] + public System.Collections.Generic.IEnumerable SystemUser_Imports + { + get + { + return this.GetRelatedEntities("SystemUser_Imports", null); + } + set + { + this.OnPropertyChanging("SystemUser_Imports"); + this.SetRelatedEntities("SystemUser_Imports", null, value); + this.OnPropertyChanged("SystemUser_Imports"); + } + } + + /// + /// 1:N systemuser_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_PostFollows")] + public System.Collections.Generic.IEnumerable systemuser_PostFollows + { + get + { + return this.GetRelatedEntities("systemuser_PostFollows", null); + } + set + { + this.OnPropertyChanging("systemuser_PostFollows"); + this.SetRelatedEntities("systemuser_PostFollows", null, value); + this.OnPropertyChanged("systemuser_PostFollows"); + } + } + + /// + /// 1:N systemuser_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable systemuser_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("systemuser_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess"); + this.SetRelatedEntities("systemuser_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess"); + } + } + + /// + /// 1:N systemuser_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess_principalid")] + public System.Collections.Generic.IEnumerable systemuser_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntities("systemuser_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess_principalid"); + this.SetRelatedEntities("systemuser_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess_principalid"); + } + } + + /// + /// 1:N SystemUser_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ProcessSessions")] + public System.Collections.Generic.IEnumerable SystemUser_ProcessSessions + { + get + { + return this.GetRelatedEntities("SystemUser_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SystemUser_ProcessSessions"); + this.SetRelatedEntities("SystemUser_ProcessSessions", null, value); + this.OnPropertyChanged("SystemUser_ProcessSessions"); + } + } + + /// + /// 1:N systemuser_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_resources")] + public System.Collections.Generic.IEnumerable systemuser_resources + { + get + { + return this.GetRelatedEntities("systemuser_resources", null); + } + set + { + this.OnPropertyChanging("systemuser_resources"); + this.SetRelatedEntities("systemuser_resources", null, value); + this.OnPropertyChanged("systemuser_resources"); + } + } + + /// + /// 1:N user_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_accounts")] + public System.Collections.Generic.IEnumerable user_accounts + { + get + { + return this.GetRelatedEntities("user_accounts", null); + } + set + { + this.OnPropertyChanging("user_accounts"); + this.SetRelatedEntities("user_accounts", null, value); + this.OnPropertyChanged("user_accounts"); + } + } + + /// + /// 1:N user_activity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_activity")] + public System.Collections.Generic.IEnumerable user_activity + { + get + { + return this.GetRelatedEntities("user_activity", null); + } + set + { + this.OnPropertyChanging("user_activity"); + this.SetRelatedEntities("user_activity", null, value); + this.OnPropertyChanged("user_activity"); + } + } + + /// + /// 1:N user_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_appointment")] + public System.Collections.Generic.IEnumerable user_appointment + { + get + { + return this.GetRelatedEntities("user_appointment", null); + } + set + { + this.OnPropertyChanging("user_appointment"); + this.SetRelatedEntities("user_appointment", null, value); + this.OnPropertyChanged("user_appointment"); + } + } + + /// + /// 1:N user_BulkOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_BulkOperation")] + public System.Collections.Generic.IEnumerable user_BulkOperation + { + get + { + return this.GetRelatedEntities("user_BulkOperation", null); + } + set + { + this.OnPropertyChanging("user_BulkOperation"); + this.SetRelatedEntities("user_BulkOperation", null, value); + this.OnPropertyChanged("user_BulkOperation"); + } + } + + /// + /// 1:N user_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignactivity")] + public System.Collections.Generic.IEnumerable user_campaignactivity + { + get + { + return this.GetRelatedEntities("user_campaignactivity", null); + } + set + { + this.OnPropertyChanging("user_campaignactivity"); + this.SetRelatedEntities("user_campaignactivity", null, value); + this.OnPropertyChanged("user_campaignactivity"); + } + } + + /// + /// 1:N user_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignresponse")] + public System.Collections.Generic.IEnumerable user_campaignresponse + { + get + { + return this.GetRelatedEntities("user_campaignresponse", null); + } + set + { + this.OnPropertyChanging("user_campaignresponse"); + this.SetRelatedEntities("user_campaignresponse", null, value); + this.OnPropertyChanged("user_campaignresponse"); + } + } + + /// + /// 1:N user_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable user_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("user_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("user_customer_opportunity_roles"); + this.SetRelatedEntities("user_customer_opportunity_roles", null, value); + this.OnPropertyChanged("user_customer_opportunity_roles"); + } + } + + /// + /// 1:N user_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_relationship")] + public System.Collections.Generic.IEnumerable user_customer_relationship + { + get + { + return this.GetRelatedEntities("user_customer_relationship", null); + } + set + { + this.OnPropertyChanging("user_customer_relationship"); + this.SetRelatedEntities("user_customer_relationship", null, value); + this.OnPropertyChanged("user_customer_relationship"); + } + } + + /// + /// 1:N user_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_email")] + public System.Collections.Generic.IEnumerable user_email + { + get + { + return this.GetRelatedEntities("user_email", null); + } + set + { + this.OnPropertyChanging("user_email"); + this.SetRelatedEntities("user_email", null, value); + this.OnPropertyChanged("user_email"); + } + } + + /// + /// 1:N user_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_exchangesyncidmapping")] + public System.Collections.Generic.IEnumerable user_exchangesyncidmapping + { + get + { + return this.GetRelatedEntities("user_exchangesyncidmapping", null); + } + set + { + this.OnPropertyChanging("user_exchangesyncidmapping"); + this.SetRelatedEntities("user_exchangesyncidmapping", null, value); + this.OnPropertyChanged("user_exchangesyncidmapping"); + } + } + + /// + /// 1:N user_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_fax")] + public System.Collections.Generic.IEnumerable user_fax + { + get + { + return this.GetRelatedEntities("user_fax", null); + } + set + { + this.OnPropertyChanging("user_fax"); + this.SetRelatedEntities("user_fax", null, value); + this.OnPropertyChanged("user_fax"); + } + } + + /// + /// 1:N user_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal")] + public System.Collections.Generic.IEnumerable user_goal + { + get + { + return this.GetRelatedEntities("user_goal", null); + } + set + { + this.OnPropertyChanging("user_goal"); + this.SetRelatedEntities("user_goal", null, value); + this.OnPropertyChanged("user_goal"); + } + } + + /// + /// 1:N user_goal_goalowner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal_goalowner")] + public System.Collections.Generic.IEnumerable user_goal_goalowner + { + get + { + return this.GetRelatedEntities("user_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("user_goal_goalowner"); + this.SetRelatedEntities("user_goal_goalowner", null, value); + this.OnPropertyChanged("user_goal_goalowner"); + } + } + + /// + /// 1:N user_incidentresolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_incidentresolution")] + public System.Collections.Generic.IEnumerable user_incidentresolution + { + get + { + return this.GetRelatedEntities("user_incidentresolution", null); + } + set + { + this.OnPropertyChanging("user_incidentresolution"); + this.SetRelatedEntities("user_incidentresolution", null, value); + this.OnPropertyChanged("user_incidentresolution"); + } + } + + /// + /// 1:N user_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_letter")] + public System.Collections.Generic.IEnumerable user_letter + { + get + { + return this.GetRelatedEntities("user_letter", null); + } + set + { + this.OnPropertyChanging("user_letter"); + this.SetRelatedEntities("user_letter", null, value); + this.OnPropertyChanged("user_letter"); + } + } + + /// + /// 1:N user_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_list")] + public System.Collections.Generic.IEnumerable user_list + { + get + { + return this.GetRelatedEntities("user_list", null); + } + set + { + this.OnPropertyChanging("user_list"); + this.SetRelatedEntities("user_list", null, value); + this.OnPropertyChanged("user_list"); + } + } + + /// + /// 1:N user_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_mailbox")] + public System.Collections.Generic.IEnumerable user_mailbox + { + get + { + return this.GetRelatedEntities("user_mailbox", null); + } + set + { + this.OnPropertyChanging("user_mailbox"); + this.SetRelatedEntities("user_mailbox", null, value); + this.OnPropertyChanged("user_mailbox"); + } + } + + /// + /// 1:N user_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_postalbum")] + public System.Collections.Generic.IEnumerable user_msdyn_postalbum + { + get + { + return this.GetRelatedEntities("user_msdyn_postalbum", null); + } + set + { + this.OnPropertyChanging("user_msdyn_postalbum"); + this.SetRelatedEntities("user_msdyn_postalbum", null, value); + this.OnPropertyChanged("user_msdyn_postalbum"); + } + } + + /// + /// 1:N user_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable user_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("user_msdyn_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("user_msdyn_wallsavedqueryusersettings"); + this.SetRelatedEntities("user_msdyn_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("user_msdyn_wallsavedqueryusersettings"); + } + } + + /// + /// 1:N user_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_opportunityclose")] + public System.Collections.Generic.IEnumerable user_opportunityclose + { + get + { + return this.GetRelatedEntities("user_opportunityclose", null); + } + set + { + this.OnPropertyChanging("user_opportunityclose"); + this.SetRelatedEntities("user_opportunityclose", null, value); + this.OnPropertyChanged("user_opportunityclose"); + } + } + + /// + /// 1:N user_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_orderclose")] + public System.Collections.Generic.IEnumerable user_orderclose + { + get + { + return this.GetRelatedEntities("user_orderclose", null); + } + set + { + this.OnPropertyChanging("user_orderclose"); + this.SetRelatedEntities("user_orderclose", null, value); + this.OnPropertyChanged("user_orderclose"); + } + } + + /// + /// 1:N user_owner_postfollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_owner_postfollows")] + public System.Collections.Generic.IEnumerable user_owner_postfollows + { + get + { + return this.GetRelatedEntities("user_owner_postfollows", null); + } + set + { + this.OnPropertyChanging("user_owner_postfollows"); + this.SetRelatedEntities("user_owner_postfollows", null, value); + this.OnPropertyChanged("user_owner_postfollows"); + } + } + + /// + /// 1:N user_parent_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referenceduser_parent_user + { + get + { + return this.GetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referenceduser_parent_user"); + this.SetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referenceduser_parent_user"); + } + } + + /// + /// 1:N user_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_phonecall")] + public System.Collections.Generic.IEnumerable user_phonecall + { + get + { + return this.GetRelatedEntities("user_phonecall", null); + } + set + { + this.OnPropertyChanging("user_phonecall"); + this.SetRelatedEntities("user_phonecall", null, value); + this.OnPropertyChanged("user_phonecall"); + } + } + + /// + /// 1:N user_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_quoteclose")] + public System.Collections.Generic.IEnumerable user_quoteclose + { + get + { + return this.GetRelatedEntities("user_quoteclose", null); + } + set + { + this.OnPropertyChanging("user_quoteclose"); + this.SetRelatedEntities("user_quoteclose", null, value); + this.OnPropertyChanged("user_quoteclose"); + } + } + + /// + /// 1:N user_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable user_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("user_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("user_recurringappointmentmaster"); + this.SetRelatedEntities("user_recurringappointmentmaster", null, value); + this.OnPropertyChanged("user_recurringappointmentmaster"); + } + } + + /// + /// 1:N user_settings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_settings")] + public System.Collections.Generic.IEnumerable user_settings + { + get + { + return this.GetRelatedEntities("user_settings", null); + } + set + { + this.OnPropertyChanging("user_settings"); + this.SetRelatedEntities("user_settings", null, value); + this.OnPropertyChanged("user_settings"); + } + } + + /// + /// 1:N user_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable user_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("user_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("user_sharepointdocumentlocation"); + this.SetRelatedEntities("user_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("user_sharepointdocumentlocation"); + } + } + + /// + /// 1:N user_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointsite")] + public System.Collections.Generic.IEnumerable user_sharepointsite + { + get + { + return this.GetRelatedEntities("user_sharepointsite", null); + } + set + { + this.OnPropertyChanging("user_sharepointsite"); + this.SetRelatedEntities("user_sharepointsite", null, value); + this.OnPropertyChanged("user_sharepointsite"); + } + } + + /// + /// 1:N user_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_task")] + public System.Collections.Generic.IEnumerable user_task + { + get + { + return this.GetRelatedEntities("user_task", null); + } + set + { + this.OnPropertyChanging("user_task"); + this.SetRelatedEntities("user_task", null, value); + this.OnPropertyChanged("user_task"); + } + } + + /// + /// 1:N user_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userform")] + public System.Collections.Generic.IEnumerable user_userform + { + get + { + return this.GetRelatedEntities("user_userform", null); + } + set + { + this.OnPropertyChanging("user_userform"); + this.SetRelatedEntities("user_userform", null, value); + this.OnPropertyChanged("user_userform"); + } + } + + /// + /// 1:N user_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userquery")] + public System.Collections.Generic.IEnumerable user_userquery + { + get + { + return this.GetRelatedEntities("user_userquery", null); + } + set + { + this.OnPropertyChanging("user_userquery"); + this.SetRelatedEntities("user_userquery", null, value); + this.OnPropertyChanged("user_userquery"); + } + } + + /// + /// 1:N user_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable user_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("user_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("user_userqueryvisualizations"); + this.SetRelatedEntities("user_userqueryvisualizations", null, value); + this.OnPropertyChanged("user_userqueryvisualizations"); + } + } + + /// + /// 1:N userentityinstancedata_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_owning_user")] + public System.Collections.Generic.IEnumerable userentityinstancedata_owning_user + { + get + { + return this.GetRelatedEntities("userentityinstancedata_owning_user", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_owning_user"); + this.SetRelatedEntities("userentityinstancedata_owning_user", null, value); + this.OnPropertyChanged("userentityinstancedata_owning_user"); + } + } + + /// + /// 1:N userentityinstancedata_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_systemuser")] + public System.Collections.Generic.IEnumerable userentityinstancedata_systemuser + { + get + { + return this.GetRelatedEntities("userentityinstancedata_systemuser", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_systemuser"); + this.SetRelatedEntities("userentityinstancedata_systemuser", null, value); + this.OnPropertyChanged("userentityinstancedata_systemuser"); + } + } + + /// + /// 1:N userentityuisettings_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_owning_user")] + public System.Collections.Generic.IEnumerable userentityuisettings_owning_user + { + get + { + return this.GetRelatedEntities("userentityuisettings_owning_user", null); + } + set + { + this.OnPropertyChanging("userentityuisettings_owning_user"); + this.SetRelatedEntities("userentityuisettings_owning_user", null, value); + this.OnPropertyChanged("userentityuisettings_owning_user"); + } + } + + /// + /// 1:N webresource_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_createdby")] + public System.Collections.Generic.IEnumerable webresource_createdby + { + get + { + return this.GetRelatedEntities("webresource_createdby", null); + } + set + { + this.OnPropertyChanging("webresource_createdby"); + this.SetRelatedEntities("webresource_createdby", null, value); + this.OnPropertyChanged("webresource_createdby"); + } + } + + /// + /// 1:N webresource_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_modifiedby")] + public System.Collections.Generic.IEnumerable webresource_modifiedby + { + get + { + return this.GetRelatedEntities("webresource_modifiedby", null); + } + set + { + this.OnPropertyChanging("webresource_modifiedby"); + this.SetRelatedEntities("webresource_modifiedby", null, value); + this.OnPropertyChanged("webresource_modifiedby"); + } + } + + /// + /// 1:N workflow_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdby")] + public System.Collections.Generic.IEnumerable workflow_createdby + { + get + { + return this.GetRelatedEntities("workflow_createdby", null); + } + set + { + this.OnPropertyChanging("workflow_createdby"); + this.SetRelatedEntities("workflow_createdby", null, value); + this.OnPropertyChanged("workflow_createdby"); + } + } + + /// + /// 1:N workflow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_createdonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_createdonbehalfby"); + this.SetRelatedEntities("workflow_createdonbehalfby", null, value); + this.OnPropertyChanged("workflow_createdonbehalfby"); + } + } + + /// + /// 1:N workflow_dependency_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdby")] + public System.Collections.Generic.IEnumerable workflow_dependency_createdby + { + get + { + return this.GetRelatedEntities("workflow_dependency_createdby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_createdby"); + this.SetRelatedEntities("workflow_dependency_createdby", null, value); + this.OnPropertyChanged("workflow_dependency_createdby"); + } + } + + /// + /// 1:N workflow_dependency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_dependency_createdonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_dependency_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_createdonbehalfby"); + this.SetRelatedEntities("workflow_dependency_createdonbehalfby", null, value); + this.OnPropertyChanged("workflow_dependency_createdonbehalfby"); + } + } + + /// + /// 1:N workflow_dependency_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedby")] + public System.Collections.Generic.IEnumerable workflow_dependency_modifiedby + { + get + { + return this.GetRelatedEntities("workflow_dependency_modifiedby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_modifiedby"); + this.SetRelatedEntities("workflow_dependency_modifiedby", null, value); + this.OnPropertyChanged("workflow_dependency_modifiedby"); + } + } + + /// + /// 1:N workflow_dependency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_dependency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_dependency_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_modifiedonbehalfby"); + this.SetRelatedEntities("workflow_dependency_modifiedonbehalfby", null, value); + this.OnPropertyChanged("workflow_dependency_modifiedonbehalfby"); + } + } + + /// + /// 1:N workflow_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedby")] + public System.Collections.Generic.IEnumerable workflow_modifiedby + { + get + { + return this.GetRelatedEntities("workflow_modifiedby", null); + } + set + { + this.OnPropertyChanging("workflow_modifiedby"); + this.SetRelatedEntities("workflow_modifiedby", null, value); + this.OnPropertyChanged("workflow_modifiedby"); + } + } + + /// + /// 1:N workflow_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_modifiedonbehalfby"); + this.SetRelatedEntities("workflow_modifiedonbehalfby", null, value); + this.OnPropertyChanged("workflow_modifiedonbehalfby"); + } + } + + /// + /// N:N systemuserprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserprofiles_association")] + public System.Collections.Generic.IEnumerable systemuserprofiles_association + { + get + { + return this.GetRelatedEntities("systemuserprofiles_association", null); + } + set + { + this.OnPropertyChanging("systemuserprofiles_association"); + this.SetRelatedEntities("systemuserprofiles_association", null, value); + this.OnPropertyChanged("systemuserprofiles_association"); + } + } + + /// + /// N:N systemuserroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserroles_association")] + public System.Collections.Generic.IEnumerable systemuserroles_association + { + get + { + return this.GetRelatedEntities("systemuserroles_association", null); + } + set + { + this.OnPropertyChanging("systemuserroles_association"); + this.SetRelatedEntities("systemuserroles_association", null, value); + this.OnPropertyChanged("systemuserroles_association"); + } + } + + /// + /// N:N teammembership_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] + public System.Collections.Generic.IEnumerable teammembership_association + { + get + { + return this.GetRelatedEntities("teammembership_association", null); + } + set + { + this.OnPropertyChanging("teammembership_association"); + this.SetRelatedEntities("teammembership_association", null, value); + this.OnPropertyChanged("teammembership_association"); + } + } + + /// + /// N:1 business_unit_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_system_users")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_system_users + { + get + { + return this.GetRelatedEntity("business_unit_system_users", null); + } + set + { + this.OnPropertyChanging("business_unit_system_users"); + this.SetRelatedEntity("business_unit_system_users", null, value); + this.OnPropertyChanged("business_unit_system_users"); + } + } + + /// + /// N:1 calendar_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_system_users")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_system_users + { + get + { + return this.GetRelatedEntity("calendar_system_users", null); + } + set + { + this.OnPropertyChanging("calendar_system_users"); + this.SetRelatedEntity("calendar_system_users", null, value); + this.OnPropertyChanged("calendar_system_users"); + } + } + + /// + /// N:1 lk_systemuser_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuser_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuser_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuser_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuserbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuserbase_createdby + { + get + { + return this.GetRelatedEntity("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuserbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuserbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 organization_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_system_users")] + public Xrm.Framework.CI.Common.Entities.Organization organization_system_users + { + get + { + return this.GetRelatedEntity("organization_system_users", null); + } + } + + /// + /// N:1 processstage_systemusers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_systemusers")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_systemusers + { + get + { + return this.GetRelatedEntity("processstage_systemusers", null); + } + set + { + this.OnPropertyChanging("processstage_systemusers"); + this.SetRelatedEntity("processstage_systemusers", null, value); + this.OnPropertyChanged("processstage_systemusers"); + } + } + + /// + /// N:1 queue_system_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_system_user")] + public Xrm.Framework.CI.Common.Entities.Queue queue_system_user + { + get + { + return this.GetRelatedEntity("queue_system_user", null); + } + set + { + this.OnPropertyChanging("queue_system_user"); + this.SetRelatedEntity("queue_system_user", null, value); + this.OnPropertyChanged("queue_system_user"); + } + } + + /// + /// N:1 site_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_system_users")] + public Xrm.Framework.CI.Common.Entities.Site site_system_users + { + get + { + return this.GetRelatedEntity("site_system_users", null); + } + set + { + this.OnPropertyChanging("site_system_users"); + this.SetRelatedEntity("site_system_users", null, value); + this.OnPropertyChanged("site_system_users"); + } + } + + /// + /// N:1 systemuser_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_defaultmailbox_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox systemuser_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntity("systemuser_defaultmailbox_mailbox", null); + } + } + + /// + /// N:1 territory_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_system_users")] + public Xrm.Framework.CI.Common.Entities.Territory territory_system_users + { + get + { + return this.GetRelatedEntity("territory_system_users", null); + } + set + { + this.OnPropertyChanging("territory_system_users"); + this.SetRelatedEntity("territory_system_users", null, value); + this.OnPropertyChanged("territory_system_users"); + } + } + + /// + /// N:1 TransactionCurrency_SystemUser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SystemUser")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SystemUser + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SystemUser", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SystemUser"); + this.SetRelatedEntity("TransactionCurrency_SystemUser", null, value); + this.OnPropertyChanged("TransactionCurrency_SystemUser"); + } + } + + /// + /// N:1 user_parent_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinguser_parent_user + { + get + { + return this.GetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinguser_parent_user"); + this.SetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinguser_parent_user"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuserlicenses")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUserLicenses : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUserLicenses() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuserlicenses"; + + public const int EntityTypeCode = 13; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licenseid")] + public System.Nullable LicenseId + { + get + { + return this.GetAttributeValue>("licenseid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// Unique identifier of the user licenses. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserlicenseid")] + public System.Nullable SystemUserLicenseId + { + get + { + return this.GetAttributeValue>("systemuserlicenseid"); + } + set + { + this.OnPropertyChanging("SystemUserLicenseId"); + this.SetAttributeValue("systemuserlicenseid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserLicenseId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserlicenseid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserLicenseId = value; + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuserprofiles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUserProfiles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUserProfiles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuserprofiles"; + + public const int EntityTypeCode = 1202; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public System.Nullable FieldSecurityProfileId + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserprofileid")] + public System.Nullable SystemUserProfileId + { + get + { + return this.GetAttributeValue>("systemuserprofileid"); + } + set + { + this.OnPropertyChanging("SystemUserProfileId"); + this.SetAttributeValue("systemuserprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserProfileId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N systemuserprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserprofiles_association")] + public System.Collections.Generic.IEnumerable systemuserprofiles_association + { + get + { + return this.GetRelatedEntities("systemuserprofiles_association", null); + } + set + { + this.OnPropertyChanging("systemuserprofiles_association"); + this.SetRelatedEntities("systemuserprofiles_association", null, value); + this.OnPropertyChanged("systemuserprofiles_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuserroles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUserRoles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUserRoles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuserroles"; + + public const int EntityTypeCode = 15; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserroleid")] + public System.Nullable SystemUserRoleId + { + get + { + return this.GetAttributeValue>("systemuserroleid"); + } + set + { + this.OnPropertyChanging("SystemUserRoleId"); + this.SetAttributeValue("systemuserroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserRoleId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N systemuserroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserroles_association")] + public System.Collections.Generic.IEnumerable systemuserroles_association + { + get + { + return this.GetRelatedEntities("systemuserroles_association", null); + } + set + { + this.OnPropertyChanging("systemuserroles_association"); + this.SetRelatedEntities("systemuserroles_association", null, value); + this.OnPropertyChanged("systemuserroles_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum TaskState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Generic activity representing work needed to be done. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("task")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Task : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Task() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "task"; + + public const int EntityTypeCode = 4212; + + 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 task. + /// + [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"); + } + } + + /// + /// Type the number of minutes spent on the task. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the task. By default, it displays when the activity was completed or canceled. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the task. By default, it displays when the task was created. + /// + [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"); + } + } + + /// + /// Type a category to identify the task type, such as lead gathering or customer follow up, to tie the task to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the task. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information which specifies whether the task 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"); + } + } + + /// + /// 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 which specifies if the task 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the record owner's business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team that owns the task. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user that owns the task. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the percentage complete value for the task to track tasks to completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentcomplete")] + public System.Nullable PercentComplete + { + get + { + return this.GetAttributeValue>("percentcomplete"); + } + set + { + this.OnPropertyChanging("PercentComplete"); + this.SetAttributeValue("percentcomplete", value); + this.OnPropertyChanged("PercentComplete"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the task 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"); + } + } + + /// + /// Scheduled duration of the task, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Choose the service that is associated with this activity. + /// + [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"); + } + } + + /// + /// 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 task is open, completed, or canceled. Completed and canceled tasks are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.TaskState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.TaskState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the task'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"); + } + } + + /// + /// Type a subcategory to identify the task type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the task. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 task. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N task_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_activity_parties")] + public System.Collections.Generic.IEnumerable task_activity_parties + { + get + { + return this.GetRelatedEntities("task_activity_parties", null); + } + set + { + this.OnPropertyChanging("task_activity_parties"); + this.SetRelatedEntities("task_activity_parties", null, value); + this.OnPropertyChanged("task_activity_parties"); + } + } + + /// + /// 1:N Task_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_Annotation")] + public System.Collections.Generic.IEnumerable Task_Annotation + { + get + { + return this.GetRelatedEntities("Task_Annotation", null); + } + set + { + this.OnPropertyChanging("Task_Annotation"); + this.SetRelatedEntities("Task_Annotation", null, value); + this.OnPropertyChanged("Task_Annotation"); + } + } + + /// + /// 1:N Task_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_AsyncOperations")] + public System.Collections.Generic.IEnumerable Task_AsyncOperations + { + get + { + return this.GetRelatedEntities("Task_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Task_AsyncOperations"); + this.SetRelatedEntities("Task_AsyncOperations", null, value); + this.OnPropertyChanged("Task_AsyncOperations"); + } + } + + /// + /// 1:N Task_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Task_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Task_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Task_BulkDeleteFailures"); + this.SetRelatedEntities("Task_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Task_BulkDeleteFailures"); + } + } + + /// + /// 1:N task_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections1")] + public System.Collections.Generic.IEnumerable task_connections1 + { + get + { + return this.GetRelatedEntities("task_connections1", null); + } + set + { + this.OnPropertyChanging("task_connections1"); + this.SetRelatedEntities("task_connections1", null, value); + this.OnPropertyChanged("task_connections1"); + } + } + + /// + /// 1:N task_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections2")] + public System.Collections.Generic.IEnumerable task_connections2 + { + get + { + return this.GetRelatedEntities("task_connections2", null); + } + set + { + this.OnPropertyChanging("task_connections2"); + this.SetRelatedEntities("task_connections2", null, value); + this.OnPropertyChanged("task_connections2"); + } + } + + /// + /// 1:N Task_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Task_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Task_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Task_DuplicateBaseRecord"); + this.SetRelatedEntities("Task_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Task_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Task_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Task_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Task_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Task_DuplicateMatchingRecord"); + this.SetRelatedEntities("Task_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Task_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N task_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_PostFollows")] + public System.Collections.Generic.IEnumerable task_PostFollows + { + get + { + return this.GetRelatedEntities("task_PostFollows", null); + } + set + { + this.OnPropertyChanging("task_PostFollows"); + this.SetRelatedEntities("task_PostFollows", null, value); + this.OnPropertyChanged("task_PostFollows"); + } + } + + /// + /// 1:N task_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable task_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("task_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("task_principalobjectattributeaccess"); + this.SetRelatedEntities("task_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("task_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Task_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_ProcessSessions")] + public System.Collections.Generic.IEnumerable Task_ProcessSessions + { + get + { + return this.GetRelatedEntities("Task_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Task_ProcessSessions"); + this.SetRelatedEntities("Task_ProcessSessions", null, value); + this.OnPropertyChanged("Task_ProcessSessions"); + } + } + + /// + /// 1:N Task_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_QueueItem")] + public System.Collections.Generic.IEnumerable Task_QueueItem + { + get + { + return this.GetRelatedEntities("Task_QueueItem", null); + } + set + { + this.OnPropertyChanging("Task_QueueItem"); + this.SetRelatedEntities("Task_QueueItem", null, value); + this.OnPropertyChanged("Task_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_task")] + public System.Collections.Generic.IEnumerable userentityinstancedata_task + { + get + { + return this.GetRelatedEntities("userentityinstancedata_task", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_task"); + this.SetRelatedEntities("userentityinstancedata_task", null, value); + this.OnPropertyChanged("userentityinstancedata_task"); + } + } + + /// + /// N:1 Account_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Tasks")] + public Xrm.Framework.CI.Common.Entities.Account Account_Tasks + { + get + { + return this.GetRelatedEntity("Account_Tasks", null); + } + set + { + this.OnPropertyChanging("Account_Tasks"); + this.SetRelatedEntity("Account_Tasks", null, value); + this.OnPropertyChanged("Account_Tasks"); + } + } + + /// + /// N:1 activity_pointer_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_task")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_task + { + get + { + return this.GetRelatedEntity("activity_pointer_task", null); + } + set + { + this.OnPropertyChanging("activity_pointer_task"); + this.SetRelatedEntity("activity_pointer_task", null, value); + this.OnPropertyChanged("activity_pointer_task"); + } + } + + /// + /// N:1 business_unit_task_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_task_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_task_activities + { + get + { + return this.GetRelatedEntity("business_unit_task_activities", null); + } + } + + /// + /// N:1 Campaign_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Tasks")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Tasks + { + get + { + return this.GetRelatedEntity("Campaign_Tasks", null); + } + set + { + this.OnPropertyChanging("Campaign_Tasks"); + this.SetRelatedEntity("Campaign_Tasks", null, value); + this.OnPropertyChanged("Campaign_Tasks"); + } + } + + /// + /// N:1 CampaignActivity_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Tasks")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Tasks + { + get + { + return this.GetRelatedEntity("CampaignActivity_Tasks", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Tasks"); + this.SetRelatedEntity("CampaignActivity_Tasks", null, value); + this.OnPropertyChanged("CampaignActivity_Tasks"); + } + } + + /// + /// N:1 Contact_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Tasks")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Tasks + { + get + { + return this.GetRelatedEntity("Contact_Tasks", null); + } + set + { + this.OnPropertyChanging("Contact_Tasks"); + this.SetRelatedEntity("Contact_Tasks", null, value); + this.OnPropertyChanged("Contact_Tasks"); + } + } + + /// + /// N:1 Contract_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Tasks")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Tasks + { + get + { + return this.GetRelatedEntity("Contract_Tasks", null); + } + set + { + this.OnPropertyChanging("Contract_Tasks"); + this.SetRelatedEntity("Contract_Tasks", null, value); + this.OnPropertyChanged("Contract_Tasks"); + } + } + + /// + /// N:1 Incident_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Tasks")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Tasks + { + get + { + return this.GetRelatedEntity("Incident_Tasks", null); + } + set + { + this.OnPropertyChanging("Incident_Tasks"); + this.SetRelatedEntity("Incident_Tasks", null, value); + this.OnPropertyChanged("Incident_Tasks"); + } + } + + /// + /// N:1 Invoice_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Tasks")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Tasks + { + get + { + return this.GetRelatedEntity("Invoice_Tasks", null); + } + set + { + this.OnPropertyChanging("Invoice_Tasks"); + this.SetRelatedEntity("Invoice_Tasks", null, value); + this.OnPropertyChanged("Invoice_Tasks"); + } + } + + /// + /// N:1 Lead_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Tasks")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Tasks + { + get + { + return this.GetRelatedEntity("Lead_Tasks", null); + } + set + { + this.OnPropertyChanging("Lead_Tasks"); + this.SetRelatedEntity("Lead_Tasks", null, value); + this.OnPropertyChanged("Lead_Tasks"); + } + } + + /// + /// N:1 lk_task_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_createdby + { + get + { + return this.GetRelatedEntity("lk_task_createdby", null); + } + } + + /// + /// N:1 lk_task_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_task_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_task_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_modifiedby + { + get + { + return this.GetRelatedEntity("lk_task_modifiedby", null); + } + } + + /// + /// N:1 lk_task_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_task_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Tasks")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Tasks + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Tasks", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Tasks"); + this.SetRelatedEntity("msdyn_postalbum_Tasks", null, value); + this.OnPropertyChanged("msdyn_postalbum_Tasks"); + } + } + + /// + /// N:1 Opportunity_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Tasks")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Tasks + { + get + { + return this.GetRelatedEntity("Opportunity_Tasks", null); + } + set + { + this.OnPropertyChanging("Opportunity_Tasks"); + this.SetRelatedEntity("Opportunity_Tasks", null, value); + this.OnPropertyChanged("Opportunity_Tasks"); + } + } + + /// + /// N:1 processstage_tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_tasks")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_tasks + { + get + { + return this.GetRelatedEntity("processstage_tasks", null); + } + set + { + this.OnPropertyChanging("processstage_tasks"); + this.SetRelatedEntity("processstage_tasks", null, value); + this.OnPropertyChanged("processstage_tasks"); + } + } + + /// + /// N:1 Quote_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Tasks")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Tasks + { + get + { + return this.GetRelatedEntity("Quote_Tasks", null); + } + set + { + this.OnPropertyChanging("Quote_Tasks"); + this.SetRelatedEntity("Quote_Tasks", null, value); + this.OnPropertyChanged("Quote_Tasks"); + } + } + + /// + /// N:1 SalesOrder_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Tasks")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Tasks + { + get + { + return this.GetRelatedEntity("SalesOrder_Tasks", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Tasks"); + this.SetRelatedEntity("SalesOrder_Tasks", null, value); + this.OnPropertyChanged("SalesOrder_Tasks"); + } + } + + /// + /// N:1 service_tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_tasks")] + public Xrm.Framework.CI.Common.Entities.Service service_tasks + { + get + { + return this.GetRelatedEntity("service_tasks", null); + } + set + { + this.OnPropertyChanging("service_tasks"); + this.SetRelatedEntity("service_tasks", null, value); + this.OnPropertyChanged("service_tasks"); + } + } + + /// + /// N:1 team_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_task")] + public Xrm.Framework.CI.Common.Entities.Team team_task + { + get + { + return this.GetRelatedEntity("team_task", null); + } + } + + /// + /// N:1 TransactionCurrency_Task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Task")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Task + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Task", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Task"); + this.SetRelatedEntity("TransactionCurrency_Task", null, value); + this.OnPropertyChanged("TransactionCurrency_Task"); + } + } + + /// + /// N:1 user_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_task")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_task + { + get + { + return this.GetRelatedEntity("user_task", null); + } + } + } + + /// + /// Collection of system users that routinely collaborate. Teams can be used to simplify record sharing and provide team members with common access to organization data when team members belong to different Business Units. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("team")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Team : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Team() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "team"; + + public const int EntityTypeCode = 9; + + 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 primary responsible for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("administratorid")] + public Microsoft.Xrm.Sdk.EntityReference AdministratorId + { + get + { + return this.GetAttributeValue("administratorid"); + } + set + { + this.OnPropertyChanging("AdministratorId"); + this.SetAttributeValue("administratorid", value); + this.OnPropertyChanged("AdministratorId"); + } + } + + /// + /// Unique identifier of the business unit with which the team is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the user who created the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the team 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 team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Exchange rate for the currency associated with the team with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the team is a default business unit team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + } + + /// + /// Unique identifier of the user who last modified the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the team 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 team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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 ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the default queue for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Choose the record that the team relates to. + /// + [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 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"); + } + } + + /// + /// Select whether the team will be managed by the system. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemmanaged")] + public System.Nullable SystemManaged + { + get + { + return this.GetAttributeValue>("systemmanaged"); + } + } + + /// + /// Unique identifier for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + set + { + this.OnPropertyChanging("TeamId"); + this.SetAttributeValue("teamid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamId = value; + } + } + + /// + /// Shows the team template that is associated with the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + public Microsoft.Xrm.Sdk.EntityReference TeamTemplateId + { + get + { + return this.GetAttributeValue("teamtemplateid"); + } + set + { + this.OnPropertyChanging("TeamTemplateId"); + this.SetAttributeValue("teamtemplateid", value); + this.OnPropertyChanged("TeamTemplateId"); + } + } + + /// + /// Select the team type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtype")] + public Microsoft.Xrm.Sdk.OptionSetValue TeamType + { + get + { + return this.GetAttributeValue("teamtype"); + } + set + { + this.OnPropertyChanging("TeamType"); + this.SetAttributeValue("teamtype", value); + this.OnPropertyChanged("TeamType"); + } + } + + /// + /// Unique identifier of the currency associated with the team. + /// + [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"); + } + } + + /// + /// Version number of the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Pronunciation of the full name of the team, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yominame")] + public string YomiName + { + get + { + return this.GetAttributeValue("yominame"); + } + set + { + this.OnPropertyChanging("YomiName"); + this.SetAttributeValue("yominame", value); + this.OnPropertyChanged("YomiName"); + } + } + + /// + /// 1:N ImportFile_Team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_Team")] + public System.Collections.Generic.IEnumerable ImportFile_Team + { + get + { + return this.GetRelatedEntities("ImportFile_Team", null); + } + set + { + this.OnPropertyChanging("ImportFile_Team"); + this.SetRelatedEntities("ImportFile_Team", null, value); + this.OnPropertyChanged("ImportFile_Team"); + } + } + + /// + /// 1:N lead_owning_team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_team")] + public System.Collections.Generic.IEnumerable lead_owning_team + { + get + { + return this.GetRelatedEntities("lead_owning_team", null); + } + set + { + this.OnPropertyChanging("lead_owning_team"); + this.SetRelatedEntities("lead_owning_team", null, value); + this.OnPropertyChanged("lead_owning_team"); + } + } + + /// + /// 1:N OwningTeam_postfollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwningTeam_postfollows")] + public System.Collections.Generic.IEnumerable OwningTeam_postfollows + { + get + { + return this.GetRelatedEntities("OwningTeam_postfollows", null); + } + set + { + this.OnPropertyChanging("OwningTeam_postfollows"); + this.SetRelatedEntities("OwningTeam_postfollows", null, value); + this.OnPropertyChanged("OwningTeam_postfollows"); + } + } + + /// + /// 1:N team_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_accounts")] + public System.Collections.Generic.IEnumerable team_accounts + { + get + { + return this.GetRelatedEntities("team_accounts", null); + } + set + { + this.OnPropertyChanging("team_accounts"); + this.SetRelatedEntities("team_accounts", null, value); + this.OnPropertyChanged("team_accounts"); + } + } + + /// + /// 1:N team_activity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_activity")] + public System.Collections.Generic.IEnumerable team_activity + { + get + { + return this.GetRelatedEntities("team_activity", null); + } + set + { + this.OnPropertyChanging("team_activity"); + this.SetRelatedEntities("team_activity", null, value); + this.OnPropertyChanged("team_activity"); + } + } + + /// + /// 1:N team_annotations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_annotations")] + public System.Collections.Generic.IEnumerable team_annotations + { + get + { + return this.GetRelatedEntities("team_annotations", null); + } + set + { + this.OnPropertyChanging("team_annotations"); + this.SetRelatedEntities("team_annotations", null, value); + this.OnPropertyChanged("team_annotations"); + } + } + + /// + /// 1:N team_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_appointment")] + public System.Collections.Generic.IEnumerable team_appointment + { + get + { + return this.GetRelatedEntities("team_appointment", null); + } + set + { + this.OnPropertyChanging("team_appointment"); + this.SetRelatedEntities("team_appointment", null, value); + this.OnPropertyChanged("team_appointment"); + } + } + + /// + /// 1:N team_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_asyncoperation")] + public System.Collections.Generic.IEnumerable team_asyncoperation + { + get + { + return this.GetRelatedEntities("team_asyncoperation", null); + } + set + { + this.OnPropertyChanging("team_asyncoperation"); + this.SetRelatedEntities("team_asyncoperation", null, value); + this.OnPropertyChanged("team_asyncoperation"); + } + } + + /// + /// 1:N Team_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_AsyncOperations")] + public System.Collections.Generic.IEnumerable Team_AsyncOperations + { + get + { + return this.GetRelatedEntities("Team_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Team_AsyncOperations"); + this.SetRelatedEntities("Team_AsyncOperations", null, value); + this.OnPropertyChanged("Team_AsyncOperations"); + } + } + + /// + /// 1:N Team_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Team_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Team_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Team_BulkDeleteFailures"); + this.SetRelatedEntities("Team_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Team_BulkDeleteFailures"); + } + } + + /// + /// 1:N team_BulkOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_BulkOperation")] + public System.Collections.Generic.IEnumerable team_BulkOperation + { + get + { + return this.GetRelatedEntities("team_BulkOperation", null); + } + set + { + this.OnPropertyChanging("team_BulkOperation"); + this.SetRelatedEntities("team_BulkOperation", null, value); + this.OnPropertyChanged("team_BulkOperation"); + } + } + + /// + /// 1:N team_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignactivity")] + public System.Collections.Generic.IEnumerable team_campaignactivity + { + get + { + return this.GetRelatedEntities("team_campaignactivity", null); + } + set + { + this.OnPropertyChanging("team_campaignactivity"); + this.SetRelatedEntities("team_campaignactivity", null, value); + this.OnPropertyChanged("team_campaignactivity"); + } + } + + /// + /// 1:N team_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignresponse")] + public System.Collections.Generic.IEnumerable team_campaignresponse + { + get + { + return this.GetRelatedEntities("team_campaignresponse", null); + } + set + { + this.OnPropertyChanging("team_campaignresponse"); + this.SetRelatedEntities("team_campaignresponse", null, value); + this.OnPropertyChanged("team_campaignresponse"); + } + } + + /// + /// 1:N team_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Campaigns")] + public System.Collections.Generic.IEnumerable team_Campaigns + { + get + { + return this.GetRelatedEntities("team_Campaigns", null); + } + set + { + this.OnPropertyChanging("team_Campaigns"); + this.SetRelatedEntities("team_Campaigns", null, value); + this.OnPropertyChanged("team_Campaigns"); + } + } + + /// + /// 1:N team_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections1")] + public System.Collections.Generic.IEnumerable team_connections1 + { + get + { + return this.GetRelatedEntities("team_connections1", null); + } + set + { + this.OnPropertyChanging("team_connections1"); + this.SetRelatedEntities("team_connections1", null, value); + this.OnPropertyChanged("team_connections1"); + } + } + + /// + /// 1:N team_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections2")] + public System.Collections.Generic.IEnumerable team_connections2 + { + get + { + return this.GetRelatedEntities("team_connections2", null); + } + set + { + this.OnPropertyChanging("team_connections2"); + this.SetRelatedEntities("team_connections2", null, value); + this.OnPropertyChanged("team_connections2"); + } + } + + /// + /// 1:N team_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_contacts")] + public System.Collections.Generic.IEnumerable team_contacts + { + get + { + return this.GetRelatedEntities("team_contacts", null); + } + set + { + this.OnPropertyChanging("team_contacts"); + this.SetRelatedEntities("team_contacts", null, value); + this.OnPropertyChanged("team_contacts"); + } + } + + /// + /// 1:N team_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable team_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("team_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("team_customer_opportunity_roles"); + this.SetRelatedEntities("team_customer_opportunity_roles", null, value); + this.OnPropertyChanged("team_customer_opportunity_roles"); + } + } + + /// + /// 1:N team_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_relationship")] + public System.Collections.Generic.IEnumerable team_customer_relationship + { + get + { + return this.GetRelatedEntities("team_customer_relationship", null); + } + set + { + this.OnPropertyChanging("team_customer_relationship"); + this.SetRelatedEntities("team_customer_relationship", null, value); + this.OnPropertyChanged("team_customer_relationship"); + } + } + + /// + /// 1:N Team_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Team_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Team_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Team_DuplicateBaseRecord"); + this.SetRelatedEntities("Team_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Team_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Team_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Team_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Team_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Team_DuplicateMatchingRecord"); + this.SetRelatedEntities("Team_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Team_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N team_DuplicateRules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_DuplicateRules")] + public System.Collections.Generic.IEnumerable team_DuplicateRules + { + get + { + return this.GetRelatedEntities("team_DuplicateRules", null); + } + set + { + this.OnPropertyChanging("team_DuplicateRules"); + this.SetRelatedEntities("team_DuplicateRules", null, value); + this.OnPropertyChanged("team_DuplicateRules"); + } + } + + /// + /// 1:N team_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email")] + public System.Collections.Generic.IEnumerable team_email + { + get + { + return this.GetRelatedEntities("team_email", null); + } + set + { + this.OnPropertyChanging("team_email"); + this.SetRelatedEntities("team_email", null, value); + this.OnPropertyChanged("team_email"); + } + } + + /// + /// 1:N team_email_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email_templates")] + public System.Collections.Generic.IEnumerable team_email_templates + { + get + { + return this.GetRelatedEntities("team_email_templates", null); + } + set + { + this.OnPropertyChanging("team_email_templates"); + this.SetRelatedEntities("team_email_templates", null, value); + this.OnPropertyChanged("team_email_templates"); + } + } + + /// + /// 1:N team_emailserverprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_emailserverprofile")] + public System.Collections.Generic.IEnumerable team_emailserverprofile + { + get + { + return this.GetRelatedEntities("team_emailserverprofile", null); + } + set + { + this.OnPropertyChanging("team_emailserverprofile"); + this.SetRelatedEntities("team_emailserverprofile", null, value); + this.OnPropertyChanged("team_emailserverprofile"); + } + } + + /// + /// 1:N team_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_exchangesyncidmapping")] + public System.Collections.Generic.IEnumerable team_exchangesyncidmapping + { + get + { + return this.GetRelatedEntities("team_exchangesyncidmapping", null); + } + set + { + this.OnPropertyChanging("team_exchangesyncidmapping"); + this.SetRelatedEntities("team_exchangesyncidmapping", null, value); + this.OnPropertyChanged("team_exchangesyncidmapping"); + } + } + + /// + /// 1:N team_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_fax")] + public System.Collections.Generic.IEnumerable team_fax + { + get + { + return this.GetRelatedEntities("team_fax", null); + } + set + { + this.OnPropertyChanging("team_fax"); + this.SetRelatedEntities("team_fax", null, value); + this.OnPropertyChanged("team_fax"); + } + } + + /// + /// 1:N team_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal")] + public System.Collections.Generic.IEnumerable team_goal + { + get + { + return this.GetRelatedEntities("team_goal", null); + } + set + { + this.OnPropertyChanging("team_goal"); + this.SetRelatedEntities("team_goal", null, value); + this.OnPropertyChanged("team_goal"); + } + } + + /// + /// 1:N team_goal_goalowner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal_goalowner")] + public System.Collections.Generic.IEnumerable team_goal_goalowner + { + get + { + return this.GetRelatedEntities("team_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("team_goal_goalowner"); + this.SetRelatedEntities("team_goal_goalowner", null, value); + this.OnPropertyChanged("team_goal_goalowner"); + } + } + + /// + /// 1:N team_goalrollupquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goalrollupquery")] + public System.Collections.Generic.IEnumerable team_goalrollupquery + { + get + { + return this.GetRelatedEntities("team_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("team_goalrollupquery"); + this.SetRelatedEntities("team_goalrollupquery", null, value); + this.OnPropertyChanged("team_goalrollupquery"); + } + } + + /// + /// 1:N team_ImportFiles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportFiles")] + public System.Collections.Generic.IEnumerable team_ImportFiles + { + get + { + return this.GetRelatedEntities("team_ImportFiles", null); + } + set + { + this.OnPropertyChanging("team_ImportFiles"); + this.SetRelatedEntities("team_ImportFiles", null, value); + this.OnPropertyChanged("team_ImportFiles"); + } + } + + /// + /// 1:N team_ImportLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportLogs")] + public System.Collections.Generic.IEnumerable team_ImportLogs + { + get + { + return this.GetRelatedEntities("team_ImportLogs", null); + } + set + { + this.OnPropertyChanging("team_ImportLogs"); + this.SetRelatedEntities("team_ImportLogs", null, value); + this.OnPropertyChanged("team_ImportLogs"); + } + } + + /// + /// 1:N team_ImportMaps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportMaps")] + public System.Collections.Generic.IEnumerable team_ImportMaps + { + get + { + return this.GetRelatedEntities("team_ImportMaps", null); + } + set + { + this.OnPropertyChanging("team_ImportMaps"); + this.SetRelatedEntities("team_ImportMaps", null, value); + this.OnPropertyChanged("team_ImportMaps"); + } + } + + /// + /// 1:N team_Imports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Imports")] + public System.Collections.Generic.IEnumerable team_Imports + { + get + { + return this.GetRelatedEntities("team_Imports", null); + } + set + { + this.OnPropertyChanging("team_Imports"); + this.SetRelatedEntities("team_Imports", null, value); + this.OnPropertyChanged("team_Imports"); + } + } + + /// + /// 1:N team_incidentresolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidentresolution")] + public System.Collections.Generic.IEnumerable team_incidentresolution + { + get + { + return this.GetRelatedEntities("team_incidentresolution", null); + } + set + { + this.OnPropertyChanging("team_incidentresolution"); + this.SetRelatedEntities("team_incidentresolution", null, value); + this.OnPropertyChanged("team_incidentresolution"); + } + } + + /// + /// 1:N team_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidents")] + public System.Collections.Generic.IEnumerable team_incidents + { + get + { + return this.GetRelatedEntities("team_incidents", null); + } + set + { + this.OnPropertyChanging("team_incidents"); + this.SetRelatedEntities("team_incidents", null, value); + this.OnPropertyChanged("team_incidents"); + } + } + + /// + /// 1:N team_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_invoices")] + public System.Collections.Generic.IEnumerable team_invoices + { + get + { + return this.GetRelatedEntities("team_invoices", null); + } + set + { + this.OnPropertyChanging("team_invoices"); + this.SetRelatedEntities("team_invoices", null, value); + this.OnPropertyChanged("team_invoices"); + } + } + + /// + /// 1:N team_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_letter")] + public System.Collections.Generic.IEnumerable team_letter + { + get + { + return this.GetRelatedEntities("team_letter", null); + } + set + { + this.OnPropertyChanging("team_letter"); + this.SetRelatedEntities("team_letter", null, value); + this.OnPropertyChanged("team_letter"); + } + } + + /// + /// 1:N team_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_list")] + public System.Collections.Generic.IEnumerable team_list + { + get + { + return this.GetRelatedEntities("team_list", null); + } + set + { + this.OnPropertyChanging("team_list"); + this.SetRelatedEntities("team_list", null, value); + this.OnPropertyChanged("team_list"); + } + } + + /// + /// 1:N team_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_mailbox")] + public System.Collections.Generic.IEnumerable team_mailbox + { + get + { + return this.GetRelatedEntities("team_mailbox", null); + } + set + { + this.OnPropertyChanging("team_mailbox"); + this.SetRelatedEntities("team_mailbox", null, value); + this.OnPropertyChanged("team_mailbox"); + } + } + + /// + /// 1:N team_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_postalbum")] + public System.Collections.Generic.IEnumerable team_msdyn_postalbum + { + get + { + return this.GetRelatedEntities("team_msdyn_postalbum", null); + } + set + { + this.OnPropertyChanging("team_msdyn_postalbum"); + this.SetRelatedEntities("team_msdyn_postalbum", null, value); + this.OnPropertyChanged("team_msdyn_postalbum"); + } + } + + /// + /// 1:N team_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable team_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("team_msdyn_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("team_msdyn_wallsavedqueryusersettings"); + this.SetRelatedEntities("team_msdyn_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("team_msdyn_wallsavedqueryusersettings"); + } + } + + /// + /// 1:N team_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunities")] + public System.Collections.Generic.IEnumerable team_opportunities + { + get + { + return this.GetRelatedEntities("team_opportunities", null); + } + set + { + this.OnPropertyChanging("team_opportunities"); + this.SetRelatedEntities("team_opportunities", null, value); + this.OnPropertyChanged("team_opportunities"); + } + } + + /// + /// 1:N team_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunityclose")] + public System.Collections.Generic.IEnumerable team_opportunityclose + { + get + { + return this.GetRelatedEntities("team_opportunityclose", null); + } + set + { + this.OnPropertyChanging("team_opportunityclose"); + this.SetRelatedEntities("team_opportunityclose", null, value); + this.OnPropertyChanged("team_opportunityclose"); + } + } + + /// + /// 1:N team_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orderclose")] + public System.Collections.Generic.IEnumerable team_orderclose + { + get + { + return this.GetRelatedEntities("team_orderclose", null); + } + set + { + this.OnPropertyChanging("team_orderclose"); + this.SetRelatedEntities("team_orderclose", null, value); + this.OnPropertyChanged("team_orderclose"); + } + } + + /// + /// 1:N team_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orders")] + public System.Collections.Generic.IEnumerable team_orders + { + get + { + return this.GetRelatedEntities("team_orders", null); + } + set + { + this.OnPropertyChanging("team_orders"); + this.SetRelatedEntities("team_orders", null, value); + this.OnPropertyChanged("team_orders"); + } + } + + /// + /// 1:N team_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_phonecall")] + public System.Collections.Generic.IEnumerable team_phonecall + { + get + { + return this.GetRelatedEntities("team_phonecall", null); + } + set + { + this.OnPropertyChanging("team_phonecall"); + this.SetRelatedEntities("team_phonecall", null, value); + this.OnPropertyChanged("team_phonecall"); + } + } + + /// + /// 1:N team_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable team_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("team_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess"); + this.SetRelatedEntities("team_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess"); + } + } + + /// + /// 1:N team_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess_principalid")] + public System.Collections.Generic.IEnumerable team_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntities("team_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess_principalid"); + this.SetRelatedEntities("team_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess_principalid"); + } + } + + /// + /// 1:N team_processsession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_processsession")] + public System.Collections.Generic.IEnumerable team_processsession + { + get + { + return this.GetRelatedEntities("team_processsession", null); + } + set + { + this.OnPropertyChanging("team_processsession"); + this.SetRelatedEntities("team_processsession", null, value); + this.OnPropertyChanged("team_processsession"); + } + } + + /// + /// 1:N Team_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_ProcessSessions")] + public System.Collections.Generic.IEnumerable Team_ProcessSessions + { + get + { + return this.GetRelatedEntities("Team_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Team_ProcessSessions"); + this.SetRelatedEntities("Team_ProcessSessions", null, value); + this.OnPropertyChanged("Team_ProcessSessions"); + } + } + + /// + /// 1:N team_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_queueitembase_workerid")] + public System.Collections.Generic.IEnumerable team_queueitembase_workerid + { + get + { + return this.GetRelatedEntities("team_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("team_queueitembase_workerid"); + this.SetRelatedEntities("team_queueitembase_workerid", null, value); + this.OnPropertyChanged("team_queueitembase_workerid"); + } + } + + /// + /// 1:N team_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quoteclose")] + public System.Collections.Generic.IEnumerable team_quoteclose + { + get + { + return this.GetRelatedEntities("team_quoteclose", null); + } + set + { + this.OnPropertyChanging("team_quoteclose"); + this.SetRelatedEntities("team_quoteclose", null, value); + this.OnPropertyChanged("team_quoteclose"); + } + } + + /// + /// 1:N team_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quotes")] + public System.Collections.Generic.IEnumerable team_quotes + { + get + { + return this.GetRelatedEntities("team_quotes", null); + } + set + { + this.OnPropertyChanging("team_quotes"); + this.SetRelatedEntities("team_quotes", null, value); + this.OnPropertyChanged("team_quotes"); + } + } + + /// + /// 1:N team_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable team_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("team_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("team_recurringappointmentmaster"); + this.SetRelatedEntities("team_recurringappointmentmaster", null, value); + this.OnPropertyChanged("team_recurringappointmentmaster"); + } + } + + /// + /// 1:N team_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_groups")] + public System.Collections.Generic.IEnumerable team_resource_groups + { + get + { + return this.GetRelatedEntities("team_resource_groups", null); + } + set + { + this.OnPropertyChanging("team_resource_groups"); + this.SetRelatedEntities("team_resource_groups", null, value); + this.OnPropertyChanged("team_resource_groups"); + } + } + + /// + /// 1:N team_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_specs")] + public System.Collections.Generic.IEnumerable team_resource_specs + { + get + { + return this.GetRelatedEntities("team_resource_specs", null); + } + set + { + this.OnPropertyChanging("team_resource_specs"); + this.SetRelatedEntities("team_resource_specs", null, value); + this.OnPropertyChanged("team_resource_specs"); + } + } + + /// + /// 1:N team_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_appointments")] + public System.Collections.Generic.IEnumerable team_service_appointments + { + get + { + return this.GetRelatedEntities("team_service_appointments", null); + } + set + { + this.OnPropertyChanging("team_service_appointments"); + this.SetRelatedEntities("team_service_appointments", null, value); + this.OnPropertyChanged("team_service_appointments"); + } + } + + /// + /// 1:N team_service_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_contracts")] + public System.Collections.Generic.IEnumerable team_service_contracts + { + get + { + return this.GetRelatedEntities("team_service_contracts", null); + } + set + { + this.OnPropertyChanging("team_service_contracts"); + this.SetRelatedEntities("team_service_contracts", null, value); + this.OnPropertyChanged("team_service_contracts"); + } + } + + /// + /// 1:N team_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable team_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("team_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("team_sharepointdocumentlocation"); + this.SetRelatedEntities("team_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("team_sharepointdocumentlocation"); + } + } + + /// + /// 1:N team_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointsite")] + public System.Collections.Generic.IEnumerable team_sharepointsite + { + get + { + return this.GetRelatedEntities("team_sharepointsite", null); + } + set + { + this.OnPropertyChanging("team_sharepointsite"); + this.SetRelatedEntities("team_sharepointsite", null, value); + this.OnPropertyChanged("team_sharepointsite"); + } + } + + /// + /// 1:N team_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_task")] + public System.Collections.Generic.IEnumerable team_task + { + get + { + return this.GetRelatedEntities("team_task", null); + } + set + { + this.OnPropertyChanging("team_task"); + this.SetRelatedEntities("team_task", null, value); + this.OnPropertyChanged("team_task"); + } + } + + /// + /// 1:N team_userentityinstancedata + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityinstancedata")] + public System.Collections.Generic.IEnumerable team_userentityinstancedata + { + get + { + return this.GetRelatedEntities("team_userentityinstancedata", null); + } + set + { + this.OnPropertyChanging("team_userentityinstancedata"); + this.SetRelatedEntities("team_userentityinstancedata", null, value); + this.OnPropertyChanged("team_userentityinstancedata"); + } + } + + /// + /// 1:N team_userentityuisettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityuisettings")] + public System.Collections.Generic.IEnumerable team_userentityuisettings + { + get + { + return this.GetRelatedEntities("team_userentityuisettings", null); + } + set + { + this.OnPropertyChanging("team_userentityuisettings"); + this.SetRelatedEntities("team_userentityuisettings", null, value); + this.OnPropertyChanged("team_userentityuisettings"); + } + } + + /// + /// 1:N team_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userform")] + public System.Collections.Generic.IEnumerable team_userform + { + get + { + return this.GetRelatedEntities("team_userform", null); + } + set + { + this.OnPropertyChanging("team_userform"); + this.SetRelatedEntities("team_userform", null, value); + this.OnPropertyChanged("team_userform"); + } + } + + /// + /// 1:N team_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userquery")] + public System.Collections.Generic.IEnumerable team_userquery + { + get + { + return this.GetRelatedEntities("team_userquery", null); + } + set + { + this.OnPropertyChanging("team_userquery"); + this.SetRelatedEntities("team_userquery", null, value); + this.OnPropertyChanged("team_userquery"); + } + } + + /// + /// 1:N team_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable team_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("team_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("team_userqueryvisualizations"); + this.SetRelatedEntities("team_userqueryvisualizations", null, value); + this.OnPropertyChanged("team_userqueryvisualizations"); + } + } + + /// + /// 1:N team_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflow")] + public System.Collections.Generic.IEnumerable team_workflow + { + get + { + return this.GetRelatedEntities("team_workflow", null); + } + set + { + this.OnPropertyChanging("team_workflow"); + this.SetRelatedEntities("team_workflow", null, value); + this.OnPropertyChanged("team_workflow"); + } + } + + /// + /// 1:N team_workflowlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflowlog")] + public System.Collections.Generic.IEnumerable team_workflowlog + { + get + { + return this.GetRelatedEntities("team_workflowlog", null); + } + set + { + this.OnPropertyChanging("team_workflowlog"); + this.SetRelatedEntities("team_workflowlog", null, value); + this.OnPropertyChanged("team_workflowlog"); + } + } + + /// + /// 1:N userentityinstancedata_team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_team")] + public System.Collections.Generic.IEnumerable userentityinstancedata_team + { + get + { + return this.GetRelatedEntities("userentityinstancedata_team", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_team"); + this.SetRelatedEntities("userentityinstancedata_team", null, value); + this.OnPropertyChanged("userentityinstancedata_team"); + } + } + + /// + /// N:N teammembership_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] + public System.Collections.Generic.IEnumerable teammembership_association + { + get + { + return this.GetRelatedEntities("teammembership_association", null); + } + set + { + this.OnPropertyChanging("teammembership_association"); + this.SetRelatedEntities("teammembership_association", null, value); + this.OnPropertyChanged("teammembership_association"); + } + } + + /// + /// N:N teamprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamprofiles_association")] + public System.Collections.Generic.IEnumerable teamprofiles_association + { + get + { + return this.GetRelatedEntities("teamprofiles_association", null); + } + set + { + this.OnPropertyChanging("teamprofiles_association"); + this.SetRelatedEntities("teamprofiles_association", null, value); + this.OnPropertyChanged("teamprofiles_association"); + } + } + + /// + /// N:N teamroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamroles_association")] + public System.Collections.Generic.IEnumerable teamroles_association + { + get + { + return this.GetRelatedEntities("teamroles_association", null); + } + set + { + this.OnPropertyChanging("teamroles_association"); + this.SetRelatedEntities("teamroles_association", null, value); + this.OnPropertyChanged("teamroles_association"); + } + } + + /// + /// N:1 business_unit_teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_teams")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_teams + { + get + { + return this.GetRelatedEntity("business_unit_teams", null); + } + set + { + this.OnPropertyChanging("business_unit_teams"); + this.SetRelatedEntity("business_unit_teams", null, value); + this.OnPropertyChanged("business_unit_teams"); + } + } + + /// + /// N:1 lk_team_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_team_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_team_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_team_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_team_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_team_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_teambase_administratorid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("administratorid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_administratorid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teambase_administratorid + { + get + { + return this.GetRelatedEntity("lk_teambase_administratorid", null); + } + set + { + this.OnPropertyChanging("lk_teambase_administratorid"); + this.SetRelatedEntity("lk_teambase_administratorid", null, value); + this.OnPropertyChanged("lk_teambase_administratorid"); + } + } + + /// + /// N:1 lk_teambase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teambase_createdby + { + get + { + return this.GetRelatedEntity("lk_teambase_createdby", null); + } + } + + /// + /// N:1 lk_teambase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teambase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_teambase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_Teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_Teams")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_Teams + { + get + { + return this.GetRelatedEntity("opportunity_Teams", null); + } + set + { + this.OnPropertyChanging("opportunity_Teams"); + this.SetRelatedEntity("opportunity_Teams", null, value); + this.OnPropertyChanged("opportunity_Teams"); + } + } + + /// + /// N:1 organization_teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_teams")] + public Xrm.Framework.CI.Common.Entities.Organization organization_teams + { + get + { + return this.GetRelatedEntity("organization_teams", null); + } + } + + /// + /// N:1 processstage_teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_teams")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_teams + { + get + { + return this.GetRelatedEntity("processstage_teams", null); + } + set + { + this.OnPropertyChanging("processstage_teams"); + this.SetRelatedEntity("processstage_teams", null, value); + this.OnPropertyChanged("processstage_teams"); + } + } + + /// + /// N:1 queue_team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_team")] + public Xrm.Framework.CI.Common.Entities.Queue queue_team + { + get + { + return this.GetRelatedEntity("queue_team", null); + } + set + { + this.OnPropertyChanging("queue_team"); + this.SetRelatedEntity("queue_team", null, value); + this.OnPropertyChanged("queue_team"); + } + } + + /// + /// N:1 teamtemplate_Teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamtemplate_Teams")] + public Xrm.Framework.CI.Common.Entities.TeamTemplate teamtemplate_Teams + { + get + { + return this.GetRelatedEntity("teamtemplate_Teams", null); + } + set + { + this.OnPropertyChanging("teamtemplate_Teams"); + this.SetRelatedEntity("teamtemplate_Teams", null, value); + this.OnPropertyChanged("teamtemplate_Teams"); + } + } + + /// + /// N:1 TransactionCurrency_Team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Team")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Team + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Team", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Team"); + this.SetRelatedEntity("TransactionCurrency_Team", null, value); + this.OnPropertyChanged("TransactionCurrency_Team"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teammembership")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamMembership : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamMembership() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teammembership"; + + public const int EntityTypeCode = 23; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + } + + /// + /// Unique identifier of the team membership. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teammembershipid")] + public System.Nullable TeamMembershipId + { + get + { + return this.GetAttributeValue>("teammembershipid"); + } + set + { + this.OnPropertyChanging("TeamMembershipId"); + this.SetAttributeValue("teammembershipid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamMembershipId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teammembershipid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamMembershipId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_teammembership + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_teammembership")] + public System.Collections.Generic.IEnumerable userentityinstancedata_teammembership + { + get + { + return this.GetRelatedEntities("userentityinstancedata_teammembership", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_teammembership"); + this.SetRelatedEntities("userentityinstancedata_teammembership", null, value); + this.OnPropertyChanged("userentityinstancedata_teammembership"); + } + } + + /// + /// N:N teammembership_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] + public System.Collections.Generic.IEnumerable teammembership_association + { + get + { + return this.GetRelatedEntities("teammembership_association", null); + } + set + { + this.OnPropertyChanging("teammembership_association"); + this.SetRelatedEntities("teammembership_association", null, value); + this.OnPropertyChanged("teammembership_association"); + } + } + } + + /// + /// Team Profiles + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teamprofiles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamProfiles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamProfiles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teamprofiles"; + + public const int EntityTypeCode = 1203; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public System.Nullable FieldSecurityProfileId + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamprofileid")] + public System.Nullable TeamProfileId + { + get + { + return this.GetAttributeValue>("teamprofileid"); + } + set + { + this.OnPropertyChanging("TeamProfileId"); + this.SetAttributeValue("teamprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamProfileId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N teamprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamprofiles_association")] + public System.Collections.Generic.IEnumerable teamprofiles_association + { + get + { + return this.GetRelatedEntities("teamprofiles_association", null); + } + set + { + this.OnPropertyChanging("teamprofiles_association"); + this.SetRelatedEntities("teamprofiles_association", null, value); + this.OnPropertyChanged("teamprofiles_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teamroles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamRoles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamRoles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teamroles"; + + public const int EntityTypeCode = 40; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamroleid")] + public System.Nullable TeamRoleId + { + get + { + return this.GetAttributeValue>("teamroleid"); + } + set + { + this.OnPropertyChanging("TeamRoleId"); + this.SetAttributeValue("teamroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamRoleId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N teamroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamroles_association")] + public System.Collections.Generic.IEnumerable teamroles_association + { + get + { + return this.GetRelatedEntities("teamroles_association", null); + } + set + { + this.OnPropertyChanging("teamroles_association"); + this.SetRelatedEntities("teamroles_association", null, value); + this.OnPropertyChanged("teamroles_association"); + } + } + } + + /// + /// Team template for an entity enabled for automatically created access teams. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teamtemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teamtemplate"; + + public const int EntityTypeCode = 92; + + 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 team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the team template 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 team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default access rights mask for the access teams associated with entity instances. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultaccessrightsmask")] + public System.Nullable DefaultAccessRightsMask + { + get + { + return this.GetAttributeValue>("defaultaccessrightsmask"); + } + set + { + this.OnPropertyChanging("DefaultAccessRightsMask"); + this.SetAttributeValue("defaultaccessrightsmask", value); + this.OnPropertyChanged("DefaultAccessRightsMask"); + } + } + + /// + /// Type additional information that describes the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Information about whether this team template is user-defined or system-defined. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issystem")] + public System.Nullable IsSystem + { + get + { + return this.GetAttributeValue>("issystem"); + } + } + + /// + /// Unique identifier of the user who last modified the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the team template was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Object type code of entity which is enabled for access teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + public System.Nullable TeamTemplateId + { + get + { + return this.GetAttributeValue>("teamtemplateid"); + } + set + { + this.OnPropertyChanging("TeamTemplateId"); + this.SetAttributeValue("teamtemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamTemplateId = value; + } + } + + /// + /// Type the name of the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplatename")] + public string TeamTemplateName + { + get + { + return this.GetAttributeValue("teamtemplatename"); + } + set + { + this.OnPropertyChanging("TeamTemplateName"); + this.SetAttributeValue("teamtemplatename", value); + this.OnPropertyChanged("TeamTemplateName"); + } + } + + /// + /// 1:N teamtemplate_Teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamtemplate_Teams")] + public System.Collections.Generic.IEnumerable teamtemplate_Teams + { + get + { + return this.GetRelatedEntities("teamtemplate_Teams", null); + } + set + { + this.OnPropertyChanging("teamtemplate_Teams"); + this.SetRelatedEntities("teamtemplate_Teams", null, value); + this.OnPropertyChanged("teamtemplate_Teams"); + } + } + + /// + /// N:1 lk_teamtemplate_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_createdby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_createdby", null); + } + } + + /// + /// N:1 lk_teamtemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_teamtemplate_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_modifiedby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_modifiedby", null); + } + } + + /// + /// N:1 lk_teamtemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_modifiedonbehalfby", null); + } + } + } + + /// + /// Template for an email message that contains the standard attributes of an email message. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("template")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Template : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Template() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "template"; + + public const int EntityTypeCode = 2010; + + 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)); + } + } + + /// + /// Body text of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("body")] + public string Body + { + get + { + return this.GetAttributeValue("body"); + } + set + { + this.OnPropertyChanging("Body"); + this.SetAttributeValue("body", value); + this.OnPropertyChanged("Body"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the email template 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 template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generationtypecode")] + public System.Nullable GenerationTypeCode + { + get + { + return this.GetAttributeValue>("generationtypecode"); + } + set + { + this.OnPropertyChanging("GenerationTypeCode"); + this.SetAttributeValue("generationtypecode", value); + this.OnPropertyChanged("GenerationTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether the template is personal or is available to all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispersonal")] + public System.Nullable IsPersonal + { + get + { + return this.GetAttributeValue>("ispersonal"); + } + set + { + this.OnPropertyChanging("IsPersonal"); + this.SetAttributeValue("ispersonal", value); + this.OnPropertyChanged("IsPersonal"); + } + } + + /// + /// Language of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// MIME type of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the email template 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 template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the template for the email 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 template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// XML data for the body of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentationxml")] + public string PresentationXml + { + get + { + return this.GetAttributeValue("presentationxml"); + } + set + { + this.OnPropertyChanging("PresentationXml"); + this.SetAttributeValue("presentationxml", value); + this.OnPropertyChanged("PresentationXml"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Subject associated with the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// XML data for the subject of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectpresentationxml")] + public string SubjectPresentationXml + { + get + { + return this.GetAttributeValue("subjectpresentationxml"); + } + set + { + this.OnPropertyChanging("SubjectPresentationXml"); + this.SetAttributeValue("subjectpresentationxml", value); + this.OnPropertyChanged("SubjectPresentationXml"); + } + } + + /// + /// Unique identifier of the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templateid")] + public System.Nullable TemplateId + { + get + { + return this.GetAttributeValue>("templateid"); + } + set + { + this.OnPropertyChanging("TemplateId"); + this.SetAttributeValue("templateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templateidunique")] + public System.Nullable TemplateIdUnique + { + get + { + return this.GetAttributeValue>("templateidunique"); + } + } + + /// + /// Type of email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatetypecode")] + public string TemplateTypeCode + { + get + { + return this.GetAttributeValue("templatetypecode"); + } + set + { + this.OnPropertyChanging("TemplateTypeCode"); + this.SetAttributeValue("templatetypecode", value); + this.OnPropertyChanged("TemplateTypeCode"); + } + } + + /// + /// Title of the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Version number of the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N template_activity_mime_attachments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("template_activity_mime_attachments")] + public System.Collections.Generic.IEnumerable template_activity_mime_attachments + { + get + { + return this.GetRelatedEntities("template_activity_mime_attachments", null); + } + set + { + this.OnPropertyChanging("template_activity_mime_attachments"); + this.SetRelatedEntities("template_activity_mime_attachments", null, value); + this.OnPropertyChanged("template_activity_mime_attachments"); + } + } + + /// + /// 1:N Template_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_AsyncOperations")] + public System.Collections.Generic.IEnumerable Template_AsyncOperations + { + get + { + return this.GetRelatedEntities("Template_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Template_AsyncOperations"); + this.SetRelatedEntities("Template_AsyncOperations", null, value); + this.OnPropertyChanged("Template_AsyncOperations"); + } + } + + /// + /// 1:N Template_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Template_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Template_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Template_BulkDeleteFailures"); + this.SetRelatedEntities("Template_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Template_BulkDeleteFailures"); + } + } + + /// + /// 1:N Template_Organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_Organization")] + public System.Collections.Generic.IEnumerable Template_Organization + { + get + { + return this.GetRelatedEntities("Template_Organization", null); + } + set + { + this.OnPropertyChanging("Template_Organization"); + this.SetRelatedEntities("Template_Organization", null, value); + this.OnPropertyChanged("Template_Organization"); + } + } + + /// + /// 1:N Template_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_ProcessSessions")] + public System.Collections.Generic.IEnumerable Template_ProcessSessions + { + get + { + return this.GetRelatedEntities("Template_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Template_ProcessSessions"); + this.SetRelatedEntities("Template_ProcessSessions", null, value); + this.OnPropertyChanged("Template_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_template + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_template")] + public System.Collections.Generic.IEnumerable userentityinstancedata_template + { + get + { + return this.GetRelatedEntities("userentityinstancedata_template", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_template"); + this.SetRelatedEntities("userentityinstancedata_template", null, value); + this.OnPropertyChanged("userentityinstancedata_template"); + } + } + + /// + /// N:1 business_unit_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_templates")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_templates + { + get + { + return this.GetRelatedEntity("business_unit_templates", null); + } + } + + /// + /// N:1 lk_templatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_templatebase_createdby", null); + } + } + + /// + /// N:1 lk_templatebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_templatebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_templatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_templatebase_modifiedby", null); + } + } + + /// + /// N:1 lk_templatebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_templatebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 system_user_email_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_email_templates")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_email_templates + { + get + { + return this.GetRelatedEntity("system_user_email_templates", null); + } + } + + /// + /// N:1 team_email_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email_templates")] + public Xrm.Framework.CI.Common.Entities.Team team_email_templates + { + get + { + return this.GetRelatedEntity("team_email_templates", null); + } + } + } + + /// + /// Territory represents sales regions. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("territory")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Territory : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Territory() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "territory"; + + public const int EntityTypeCode = 2013; + + 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 territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the territory 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 territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the territory. + /// + [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 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the territory with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the manager of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managerid")] + public Microsoft.Xrm.Sdk.EntityReference ManagerId + { + get + { + return this.GetAttributeValue("managerid"); + } + set + { + this.OnPropertyChanging("ManagerId"); + this.SetAttributeValue("managerid", value); + this.OnPropertyChanged("ManagerId"); + } + } + + /// + /// Unique identifier of the user who last modified the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the territory 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 territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the territory. + /// + [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"); + } + } + + /// + /// Unique identifier of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public System.Nullable TerritoryId + { + get + { + return this.GetAttributeValue>("territoryid"); + } + set + { + this.OnPropertyChanging("TerritoryId"); + this.SetAttributeValue("territoryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TerritoryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TerritoryId = value; + } + } + + /// + /// Unique identifier of the currency associated with the territory. + /// + [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"); + } + } + + /// + /// Version number of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N territory_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_accounts")] + public System.Collections.Generic.IEnumerable territory_accounts + { + get + { + return this.GetRelatedEntities("territory_accounts", null); + } + set + { + this.OnPropertyChanging("territory_accounts"); + this.SetRelatedEntities("territory_accounts", null, value); + this.OnPropertyChanged("territory_accounts"); + } + } + + /// + /// 1:N Territory_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_AsyncOperations")] + public System.Collections.Generic.IEnumerable Territory_AsyncOperations + { + get + { + return this.GetRelatedEntities("Territory_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Territory_AsyncOperations"); + this.SetRelatedEntities("Territory_AsyncOperations", null, value); + this.OnPropertyChanged("Territory_AsyncOperations"); + } + } + + /// + /// 1:N Territory_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Territory_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Territory_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Territory_BulkDeleteFailures"); + this.SetRelatedEntities("Territory_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Territory_BulkDeleteFailures"); + } + } + + /// + /// 1:N Territory_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Territory_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Territory_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Territory_DuplicateBaseRecord"); + this.SetRelatedEntities("Territory_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Territory_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Territory_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Territory_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Territory_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Territory_DuplicateMatchingRecord"); + this.SetRelatedEntities("Territory_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Territory_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N territory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable territory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("territory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("territory_principalobjectattributeaccess"); + this.SetRelatedEntities("territory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("territory_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Territory_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_ProcessSessions")] + public System.Collections.Generic.IEnumerable Territory_ProcessSessions + { + get + { + return this.GetRelatedEntities("Territory_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Territory_ProcessSessions"); + this.SetRelatedEntities("Territory_ProcessSessions", null, value); + this.OnPropertyChanged("Territory_ProcessSessions"); + } + } + + /// + /// 1:N territory_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_system_users")] + public System.Collections.Generic.IEnumerable territory_system_users + { + get + { + return this.GetRelatedEntities("territory_system_users", null); + } + set + { + this.OnPropertyChanging("territory_system_users"); + this.SetRelatedEntities("territory_system_users", null, value); + this.OnPropertyChanged("territory_system_users"); + } + } + + /// + /// 1:N userentityinstancedata_territory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_territory")] + public System.Collections.Generic.IEnumerable userentityinstancedata_territory + { + get + { + return this.GetRelatedEntities("userentityinstancedata_territory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_territory"); + this.SetRelatedEntities("userentityinstancedata_territory", null, value); + this.OnPropertyChanged("userentityinstancedata_territory"); + } + } + + /// + /// N:1 lk_territory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territory_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_territory_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_territory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_territory_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_territorybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territorybase_createdby + { + get + { + return this.GetRelatedEntity("lk_territorybase_createdby", null); + } + } + + /// + /// N:1 lk_territorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territorybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_territorybase_modifiedby", null); + } + } + + /// + /// N:1 organization_territories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_territories")] + public Xrm.Framework.CI.Common.Entities.Organization organization_territories + { + get + { + return this.GetRelatedEntity("organization_territories", null); + } + } + + /// + /// N:1 system_user_territories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_territories")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_territories + { + get + { + return this.GetRelatedEntity("system_user_territories", null); + } + set + { + this.OnPropertyChanging("system_user_territories"); + this.SetRelatedEntity("system_user_territories", null, value); + this.OnPropertyChanged("system_user_territories"); + } + } + + /// + /// N:1 TransactionCurrency_Territory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Territory")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Territory + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Territory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Territory"); + this.SetRelatedEntity("TransactionCurrency_Territory", null, value); + this.OnPropertyChanged("TransactionCurrency_Territory"); + } + } + } + + /// + /// Time zone definition, including name and time zone code. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("timezonedefinition")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TimeZoneDefinition : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TimeZoneDefinition() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "timezonedefinition"; + + public const int EntityTypeCode = 4810; + + 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)); + } + } + + /// + /// Base time bias of the time zone. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bias")] + public System.Nullable Bias + { + get + { + return this.GetAttributeValue>("bias"); + } + set + { + this.OnPropertyChanging("Bias"); + this.SetAttributeValue("bias", value); + this.OnPropertyChanged("Bias"); + } + } + + /// + /// Unique identifier of the user who created the time zone record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the time zone 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 timezonedefinition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Time zone name for the daylight time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightname")] + public string DaylightName + { + get + { + return this.GetAttributeValue("daylightname"); + } + set + { + this.OnPropertyChanging("DaylightName"); + this.SetAttributeValue("daylightname", value); + this.OnPropertyChanged("DaylightName"); + } + } + + /// + /// Unique identifier of the user who last modified the time zone record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the time zone 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 timezonedefinition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the time zone definition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Order an entry for a time zone definition is retired. 0 for the latest entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retiredorder")] + public System.Nullable RetiredOrder + { + get + { + return this.GetAttributeValue>("retiredorder"); + } + set + { + this.OnPropertyChanging("RetiredOrder"); + this.SetAttributeValue("retiredorder", value); + this.OnPropertyChanged("RetiredOrder"); + } + } + + /// + /// Time zone name for the standard time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardname")] + public string StandardName + { + get + { + return this.GetAttributeValue("standardname"); + } + set + { + this.OnPropertyChanging("StandardName"); + this.SetAttributeValue("standardname", value); + this.OnPropertyChanged("StandardName"); + } + } + + /// + /// Time zone identification code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// Unique identifier of the time zone record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public System.Nullable TimeZoneDefinitionId + { + get + { + return this.GetAttributeValue>("timezonedefinitionid"); + } + set + { + this.OnPropertyChanging("TimeZoneDefinitionId"); + this.SetAttributeValue("timezonedefinitionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TimeZoneDefinitionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TimeZoneDefinitionId = value; + } + } + + /// + /// Display name for the time zone in the Microsoft Windows registry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userinterfacename")] + public string UserInterfaceName + { + get + { + return this.GetAttributeValue("userinterfacename"); + } + set + { + this.OnPropertyChanging("UserInterfaceName"); + this.SetAttributeValue("userinterfacename", value); + this.OnPropertyChanged("UserInterfaceName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_timezonedefinitionid")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_timezonedefinitionid + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_timezonedefinitionid"); + this.SetRelatedEntities("lk_timezonelocalizedname_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_timezonedefinitionid"); + } + } + + /// + /// 1:N lk_timezonerule_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_timezonedefinitionid")] + public System.Collections.Generic.IEnumerable lk_timezonerule_timezonedefinitionid + { + get + { + return this.GetRelatedEntities("lk_timezonerule_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_timezonedefinitionid"); + this.SetRelatedEntities("lk_timezonerule_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonerule_timezonedefinitionid"); + } + } + + /// + /// 1:N userentityinstancedata_timezonedefinition + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonedefinition")] + public System.Collections.Generic.IEnumerable userentityinstancedata_timezonedefinition + { + get + { + return this.GetRelatedEntities("userentityinstancedata_timezonedefinition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonedefinition"); + this.SetRelatedEntities("userentityinstancedata_timezonedefinition", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonedefinition"); + } + } + + /// + /// N:1 lk_timezonedefinition_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_createdby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_createdby", null); + } + } + + /// + /// N:1 lk_timezonedefinition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonedefinition_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_modifiedby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_modifiedby", null); + } + } + + /// + /// N:1 lk_timezonedefinition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_modifiedonbehalfby", null); + } + } + } + + /// + /// Localized name of the time zone. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("timezonelocalizedname")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TimeZoneLocalizedName : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TimeZoneLocalizedName() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "timezonelocalizedname"; + + public const int EntityTypeCode = 4812; + + 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 timezonelocalizedname. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the culture that the UI names are encoded in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cultureid")] + public System.Nullable CultureId + { + get + { + return this.GetAttributeValue>("cultureid"); + } + set + { + this.OnPropertyChanging("CultureId"); + this.SetAttributeValue("cultureid", value); + this.OnPropertyChanged("CultureId"); + } + } + + /// + /// Name of the time zone for the daylight time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightname")] + public string DaylightName + { + get + { + return this.GetAttributeValue("daylightname"); + } + set + { + this.OnPropertyChanging("DaylightName"); + this.SetAttributeValue("daylightname", value); + this.OnPropertyChanged("DaylightName"); + } + } + + /// + /// Unique identifier of the user who last modified the time zone localized name. + /// + [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 last modified the timezonelocalizedname. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the time zone localized name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Name of the time zone for the standard time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardname")] + public string StandardName + { + get + { + return this.GetAttributeValue("standardname"); + } + set + { + this.OnPropertyChanging("StandardName"); + this.SetAttributeValue("standardname", value); + this.OnPropertyChanged("StandardName"); + } + } + + /// + /// Unique identifier of time zone definition entity instances. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public Microsoft.Xrm.Sdk.EntityReference TimeZoneDefinitionId + { + get + { + return this.GetAttributeValue("timezonedefinitionid"); + } + set + { + this.OnPropertyChanging("TimeZoneDefinitionId"); + this.SetAttributeValue("timezonedefinitionid", value); + this.OnPropertyChanged("TimeZoneDefinitionId"); + } + } + + /// + /// Unique identifier of entity instances. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonelocalizednameid")] + public System.Nullable TimeZoneLocalizedNameId + { + get + { + return this.GetAttributeValue>("timezonelocalizednameid"); + } + set + { + this.OnPropertyChanging("TimeZoneLocalizedNameId"); + this.SetAttributeValue("timezonelocalizednameid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TimeZoneLocalizedNameId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonelocalizednameid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TimeZoneLocalizedNameId = value; + } + } + + /// + /// Unique display name for the time zone in the Microsoft Windows registry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userinterfacename")] + public string UserInterfaceName + { + get + { + return this.GetAttributeValue("userinterfacename"); + } + set + { + this.OnPropertyChanging("UserInterfaceName"); + this.SetAttributeValue("userinterfacename", value); + this.OnPropertyChanged("UserInterfaceName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_timezonelocalizedname + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonelocalizedname")] + public System.Collections.Generic.IEnumerable userentityinstancedata_timezonelocalizedname + { + get + { + return this.GetRelatedEntities("userentityinstancedata_timezonelocalizedname", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonelocalizedname"); + this.SetRelatedEntities("userentityinstancedata_timezonelocalizedname", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonelocalizedname"); + } + } + + /// + /// N:1 lk_timezonelocalizedname_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_createdby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_createdby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_modifiedby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_modifiedby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_timezonedefinitionid")] + public Xrm.Framework.CI.Common.Entities.TimeZoneDefinition lk_timezonelocalizedname_timezonedefinitionid + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_timezonedefinitionid"); + this.SetRelatedEntity("lk_timezonelocalizedname_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_timezonedefinitionid"); + } + } + } + + /// + /// Definition for time conversion between local time and Coordinated Universal Time (UTC) for a particular time zone at a particular time period. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("timezonerule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TimeZoneRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TimeZoneRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "timezonerule"; + + public const int EntityTypeCode = 4811; + + 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)); + } + } + + /// + /// Base time bias of the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bias")] + public System.Nullable Bias + { + get + { + return this.GetAttributeValue>("bias"); + } + set + { + this.OnPropertyChanging("Bias"); + this.SetAttributeValue("bias", value); + this.OnPropertyChanged("Bias"); + } + } + + /// + /// Unique identifier of the user who created the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the time zone rule 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 timezonerule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Time bias in addition to the base bias for daylight savings time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightbias")] + public System.Nullable DaylightBias + { + get + { + return this.GetAttributeValue>("daylightbias"); + } + set + { + this.OnPropertyChanging("DaylightBias"); + this.SetAttributeValue("daylightbias", value); + this.OnPropertyChanged("DaylightBias"); + } + } + + /// + /// Day of the month when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightday")] + public System.Nullable DaylightDay + { + get + { + return this.GetAttributeValue>("daylightday"); + } + set + { + this.OnPropertyChanging("DaylightDay"); + this.SetAttributeValue("daylightday", value); + this.OnPropertyChanged("DaylightDay"); + } + } + + /// + /// Day of the week when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightdayofweek")] + public System.Nullable DaylightDayOfWeek + { + get + { + return this.GetAttributeValue>("daylightdayofweek"); + } + set + { + this.OnPropertyChanging("DaylightDayOfWeek"); + this.SetAttributeValue("daylightdayofweek", value); + this.OnPropertyChanged("DaylightDayOfWeek"); + } + } + + /// + /// Hour of the day when daylight savings time starts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylighthour")] + public System.Nullable DaylightHour + { + get + { + return this.GetAttributeValue>("daylighthour"); + } + set + { + this.OnPropertyChanging("DaylightHour"); + this.SetAttributeValue("daylighthour", value); + this.OnPropertyChanged("DaylightHour"); + } + } + + /// + /// Minute of the hour when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightminute")] + public System.Nullable DaylightMinute + { + get + { + return this.GetAttributeValue>("daylightminute"); + } + set + { + this.OnPropertyChanging("DaylightMinute"); + this.SetAttributeValue("daylightminute", value); + this.OnPropertyChanged("DaylightMinute"); + } + } + + /// + /// Month when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightmonth")] + public System.Nullable DaylightMonth + { + get + { + return this.GetAttributeValue>("daylightmonth"); + } + set + { + this.OnPropertyChanging("DaylightMonth"); + this.SetAttributeValue("daylightmonth", value); + this.OnPropertyChanged("DaylightMonth"); + } + } + + /// + /// Second of the minute when daylight savings time starts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightsecond")] + public System.Nullable DaylightSecond + { + get + { + return this.GetAttributeValue>("daylightsecond"); + } + set + { + this.OnPropertyChanging("DaylightSecond"); + this.SetAttributeValue("daylightsecond", value); + this.OnPropertyChanged("DaylightSecond"); + } + } + + /// + /// Year when daylight savings times starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightyear")] + public System.Nullable DaylightYear + { + get + { + return this.GetAttributeValue>("daylightyear"); + } + set + { + this.OnPropertyChanging("DaylightYear"); + this.SetAttributeValue("daylightyear", value); + this.OnPropertyChanged("DaylightYear"); + } + } + + /// + /// Time that this rule takes effect, in local time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivedatetime")] + public System.Nullable EffectiveDateTime + { + get + { + return this.GetAttributeValue>("effectivedatetime"); + } + set + { + this.OnPropertyChanging("EffectiveDateTime"); + this.SetAttributeValue("effectivedatetime", value); + this.OnPropertyChanged("EffectiveDateTime"); + } + } + + /// + /// Unique identifier of the user who last modified the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the time zone rule 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 timezonerule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Time bias in addition to the base bias for standard time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardbias")] + public System.Nullable StandardBias + { + get + { + return this.GetAttributeValue>("standardbias"); + } + set + { + this.OnPropertyChanging("StandardBias"); + this.SetAttributeValue("standardbias", value); + this.OnPropertyChanged("StandardBias"); + } + } + + /// + /// Day of the month when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardday")] + public System.Nullable StandardDay + { + get + { + return this.GetAttributeValue>("standardday"); + } + set + { + this.OnPropertyChanging("StandardDay"); + this.SetAttributeValue("standardday", value); + this.OnPropertyChanged("StandardDay"); + } + } + + /// + /// Day of the week when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standarddayofweek")] + public System.Nullable StandardDayOfWeek + { + get + { + return this.GetAttributeValue>("standarddayofweek"); + } + set + { + this.OnPropertyChanging("StandardDayOfWeek"); + this.SetAttributeValue("standarddayofweek", value); + this.OnPropertyChanged("StandardDayOfWeek"); + } + } + + /// + /// Hour of the day when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardhour")] + public System.Nullable StandardHour + { + get + { + return this.GetAttributeValue>("standardhour"); + } + set + { + this.OnPropertyChanging("StandardHour"); + this.SetAttributeValue("standardhour", value); + this.OnPropertyChanged("StandardHour"); + } + } + + /// + /// Minute of the hour when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardminute")] + public System.Nullable StandardMinute + { + get + { + return this.GetAttributeValue>("standardminute"); + } + set + { + this.OnPropertyChanging("StandardMinute"); + this.SetAttributeValue("standardminute", value); + this.OnPropertyChanged("StandardMinute"); + } + } + + /// + /// Month when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardmonth")] + public System.Nullable StandardMonth + { + get + { + return this.GetAttributeValue>("standardmonth"); + } + set + { + this.OnPropertyChanging("StandardMonth"); + this.SetAttributeValue("standardmonth", value); + this.OnPropertyChanged("StandardMonth"); + } + } + + /// + /// Second of the Minute when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardsecond")] + public System.Nullable StandardSecond + { + get + { + return this.GetAttributeValue>("standardsecond"); + } + set + { + this.OnPropertyChanging("StandardSecond"); + this.SetAttributeValue("standardsecond", value); + this.OnPropertyChanged("StandardSecond"); + } + } + + /// + /// Year when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardyear")] + public System.Nullable StandardYear + { + get + { + return this.GetAttributeValue>("standardyear"); + } + set + { + this.OnPropertyChanging("StandardYear"); + this.SetAttributeValue("standardyear", value); + this.OnPropertyChanged("StandardYear"); + } + } + + /// + /// Unique identifier of the time zone definition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public Microsoft.Xrm.Sdk.EntityReference TimeZoneDefinitionId + { + get + { + return this.GetAttributeValue("timezonedefinitionid"); + } + set + { + this.OnPropertyChanging("TimeZoneDefinitionId"); + this.SetAttributeValue("timezonedefinitionid", value); + this.OnPropertyChanged("TimeZoneDefinitionId"); + } + } + + /// + /// Unique identifier of the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleid")] + public System.Nullable TimeZoneRuleId + { + get + { + return this.GetAttributeValue>("timezoneruleid"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleId"); + this.SetAttributeValue("timezoneruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TimeZoneRuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TimeZoneRuleId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_timezonerule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonerule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_timezonerule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_timezonerule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonerule"); + this.SetRelatedEntities("userentityinstancedata_timezonerule", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonerule"); + } + } + + /// + /// N:1 lk_timezonerule_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_createdby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_createdby", null); + } + } + + /// + /// N:1 lk_timezonerule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonerule_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_modifiedby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_modifiedby", null); + } + } + + /// + /// N:1 lk_timezonerule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonerule_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_timezonedefinitionid")] + public Xrm.Framework.CI.Common.Entities.TimeZoneDefinition lk_timezonerule_timezonedefinitionid + { + get + { + return this.GetRelatedEntity("lk_timezonerule_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_timezonedefinitionid"); + this.SetRelatedEntity("lk_timezonerule_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonerule_timezonedefinitionid"); + } + } + } + + /// + /// A trace log. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("tracelog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TraceLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TraceLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "tracelog"; + + public const int EntityTypeCode = 8050; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Indicates if this trace log can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public System.Nullable CanBeDeleted + { + get + { + return this.GetAttributeValue>("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// Indicates the collation level + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("collationlevel")] + public System.Nullable CollationLevel + { + get + { + return this.GetAttributeValue>("collationlevel"); + } + set + { + this.OnPropertyChanging("CollationLevel"); + this.SetAttributeValue("collationlevel", value); + this.OnPropertyChanged("CollationLevel"); + } + } + + /// + /// Unique identifier of the user who created the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the trace 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 trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Tells if this traceLog is created uniquely(only one) for the associated entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isunique")] + public System.Nullable IsUnique + { + get + { + return this.GetAttributeValue>("isunique"); + } + set + { + this.OnPropertyChanging("IsUnique"); + this.SetAttributeValue("isunique", value); + this.OnPropertyChanged("IsUnique"); + } + } + + /// + /// Information about the trace level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("level")] + public Microsoft.Xrm.Sdk.OptionSetValue Level + { + get + { + return this.GetAttributeValue("level"); + } + set + { + this.OnPropertyChanging("Level"); + this.SetAttributeValue("level", value); + this.OnPropertyChanged("Level"); + } + } + + /// + /// Unique identifier of the user who modified the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the trace 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 trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Indicates the parent ID of the trace log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parenttracelogid")] + public Microsoft.Xrm.Sdk.EntityReference ParentTraceLogId + { + get + { + return this.GetAttributeValue("parenttracelogid"); + } + set + { + this.OnPropertyChanging("ParentTraceLogId"); + this.SetAttributeValue("parenttracelogid", value); + this.OnPropertyChanged("ParentTraceLogId"); + } + } + + /// + /// Unique identifier of the object the trace is regarding. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the user or team who owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectownerid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwnerId + { + get + { + return this.GetAttributeValue("regardingobjectownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectowningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwningBusinessUnit + { + get + { + return this.GetAttributeValue("regardingobjectowningbusinessunit"); + } + } + + /// + /// Text of the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("text")] + public string Text + { + get + { + return this.GetAttributeValue("text"); + } + set + { + this.OnPropertyChanging("Text"); + this.SetAttributeValue("text", value); + this.OnPropertyChanged("Text"); + } + } + + /// + /// 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"); + } + } + + /// + /// XML representation of the trace actions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traceactionxml")] + public string TraceActionXml + { + get + { + return this.GetAttributeValue("traceactionxml"); + } + set + { + this.OnPropertyChanging("TraceActionXml"); + this.SetAttributeValue("traceactionxml", value); + this.OnPropertyChanged("TraceActionXml"); + } + } + + /// + /// Trace code for the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracecode")] + public System.Nullable TraceCode + { + get + { + return this.GetAttributeValue>("tracecode"); + } + set + { + this.OnPropertyChanging("TraceCode"); + this.SetAttributeValue("tracecode", value); + this.OnPropertyChanged("TraceCode"); + } + } + + /// + /// XML representation of the trace details. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracedetailxml")] + public string TraceDetailXml + { + get + { + return this.GetAttributeValue("tracedetailxml"); + } + set + { + this.OnPropertyChanging("TraceDetailXml"); + this.SetAttributeValue("tracedetailxml", value); + this.OnPropertyChanged("TraceDetailXml"); + } + } + + /// + /// Unique identifier of the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracelogid")] + public System.Nullable TraceLogId + { + get + { + return this.GetAttributeValue>("tracelogid"); + } + set + { + this.OnPropertyChanging("TraceLogId"); + this.SetAttributeValue("tracelogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TraceLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracelogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TraceLogId = value; + } + } + + /// + /// Stores the hash of the entity object associated with this tracelog. Hash is computed using the object type code and its id. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traceparameterhash")] + public System.Nullable TraceParameterHash + { + get + { + return this.GetAttributeValue>("traceparameterhash"); + } + } + + /// + /// XML representation of the trace parameters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traceparameterxml")] + public string TraceParameterXml + { + get + { + return this.GetAttributeValue("traceparameterxml"); + } + set + { + this.OnPropertyChanging("TraceParameterXml"); + this.SetAttributeValue("traceparameterxml", value); + this.OnPropertyChanged("TraceParameterXml"); + } + } + + /// + /// Time zone code that was in use when the trace 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"); + } + } + + /// + /// 1:N tracelog_parent_tracelog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedtracelog_parent_tracelog + { + get + { + return this.GetRelatedEntities("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedtracelog_parent_tracelog"); + this.SetRelatedEntities("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedtracelog_parent_tracelog"); + } + } + + /// + /// N:1 lk_tracelog_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_createdby + { + get + { + return this.GetRelatedEntity("lk_tracelog_createdby", null); + } + } + + /// + /// N:1 lk_tracelog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_tracelog_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_tracelog_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_modifiedby + { + get + { + return this.GetRelatedEntity("lk_tracelog_modifiedby", null); + } + } + + /// + /// N:1 lk_tracelog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_tracelog_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_tracelog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_tracelog")] + public Xrm.Framework.CI.Common.Entities.Organization organization_tracelog + { + get + { + return this.GetRelatedEntity("organization_tracelog", null); + } + } + + /// + /// N:1 tracelog_EmailServerProfile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_EmailServerProfile")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile tracelog_EmailServerProfile + { + get + { + return this.GetRelatedEntity("tracelog_EmailServerProfile", null); + } + set + { + this.OnPropertyChanging("tracelog_EmailServerProfile"); + this.SetRelatedEntity("tracelog_EmailServerProfile", null, value); + this.OnPropertyChanged("tracelog_EmailServerProfile"); + } + } + + /// + /// N:1 tracelog_Mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_Mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox tracelog_Mailbox + { + get + { + return this.GetRelatedEntity("tracelog_Mailbox", null); + } + set + { + this.OnPropertyChanging("tracelog_Mailbox"); + this.SetRelatedEntity("tracelog_Mailbox", null, value); + this.OnPropertyChanged("tracelog_Mailbox"); + } + } + + /// + /// N:1 tracelog_parent_tracelog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parenttracelogid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.TraceLog Referencingtracelog_parent_tracelog + { + get + { + return this.GetRelatedEntity("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingtracelog_parent_tracelog"); + this.SetRelatedEntity("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingtracelog_parent_tracelog"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum TransactionCurrencyState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Currency in which a financial transaction is carried out. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("transactioncurrency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TransactionCurrency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TransactionCurrency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "transactioncurrency"; + + public const int EntityTypeCode = 9105; + + 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 transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the transaction currency 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 transactioncurrency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Name of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyname")] + public string CurrencyName + { + get + { + return this.GetAttributeValue("currencyname"); + } + set + { + this.OnPropertyChanging("CurrencyName"); + this.SetAttributeValue("currencyname", value); + this.OnPropertyChanged("CurrencyName"); + } + } + + /// + /// Number of decimal places that can be used for currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyprecision")] + public System.Nullable CurrencyPrecision + { + get + { + return this.GetAttributeValue>("currencyprecision"); + } + set + { + this.OnPropertyChanging("CurrencyPrecision"); + this.SetAttributeValue("currencyprecision", value); + this.OnPropertyChanged("CurrencyPrecision"); + } + } + + /// + /// Symbol for the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencysymbol")] + public string CurrencySymbol + { + get + { + return this.GetAttributeValue("currencysymbol"); + } + set + { + this.OnPropertyChanging("CurrencySymbol"); + this.SetAttributeValue("currencysymbol", value); + this.OnPropertyChanged("CurrencySymbol"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate between the transaction currency and the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + set + { + this.OnPropertyChanging("ExchangeRate"); + this.SetAttributeValue("exchangerate", value); + this.OnPropertyChanged("ExchangeRate"); + } + } + + /// + /// 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"); + } + } + + /// + /// ISO currency code for the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isocurrencycode")] + public string ISOCurrencyCode + { + get + { + return this.GetAttributeValue("isocurrencycode"); + } + set + { + this.OnPropertyChanging("ISOCurrencyCode"); + this.SetAttributeValue("isocurrencycode", value); + this.OnPropertyChanged("ISOCurrencyCode"); + } + } + + /// + /// Unique identifier of the user who last modified the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the transaction currency 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 transactioncurrency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the transaction currency. + /// + [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"); + } + } + + /// + /// Status of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.TransactionCurrencyState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.TransactionCurrencyState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the transaction currency. + /// + [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"); + } + } + + /// + /// Unique identifier of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public System.Nullable TransactionCurrencyId + { + get + { + return this.GetAttributeValue>("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TransactionCurrencyId = value; + } + } + + /// + /// Version number of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N basecurrency_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("basecurrency_organization")] + public System.Collections.Generic.IEnumerable basecurrency_organization + { + get + { + return this.GetRelatedEntities("basecurrency_organization", null); + } + set + { + this.OnPropertyChanging("basecurrency_organization"); + this.SetRelatedEntities("basecurrency_organization", null, value); + this.OnPropertyChanged("basecurrency_organization"); + } + } + + /// + /// 1:N transactioncurrency_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_account")] + public System.Collections.Generic.IEnumerable transactioncurrency_account + { + get + { + return this.GetRelatedEntities("transactioncurrency_account", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_account"); + this.SetRelatedEntities("transactioncurrency_account", null, value); + this.OnPropertyChanged("transactioncurrency_account"); + } + } + + /// + /// 1:N TransactionCurrency_ActivityPointer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ActivityPointer")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ActivityPointer + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ActivityPointer", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ActivityPointer"); + this.SetRelatedEntities("TransactionCurrency_ActivityPointer", null, value); + this.OnPropertyChanged("TransactionCurrency_ActivityPointer"); + } + } + + /// + /// 1:N transactioncurrency_annualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_annualfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_annualfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_annualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_annualfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_annualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_annualfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_Appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Appointment")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Appointment + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Appointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Appointment"); + this.SetRelatedEntities("TransactionCurrency_Appointment", null, value); + this.OnPropertyChanged("TransactionCurrency_Appointment"); + } + } + + /// + /// 1:N TransactionCurrency_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_AsyncOperations")] + public System.Collections.Generic.IEnumerable TransactionCurrency_AsyncOperations + { + get + { + return this.GetRelatedEntities("TransactionCurrency_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_AsyncOperations"); + this.SetRelatedEntities("TransactionCurrency_AsyncOperations", null, value); + this.OnPropertyChanged("TransactionCurrency_AsyncOperations"); + } + } + + /// + /// 1:N TransactionCurrency_BusinessUnit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_BusinessUnit")] + public System.Collections.Generic.IEnumerable TransactionCurrency_BusinessUnit + { + get + { + return this.GetRelatedEntities("TransactionCurrency_BusinessUnit", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_BusinessUnit"); + this.SetRelatedEntities("TransactionCurrency_BusinessUnit", null, value); + this.OnPropertyChanged("TransactionCurrency_BusinessUnit"); + } + } + + /// + /// 1:N transactioncurrency_campaign + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaign")] + public System.Collections.Generic.IEnumerable transactioncurrency_campaign + { + get + { + return this.GetRelatedEntities("transactioncurrency_campaign", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_campaign"); + this.SetRelatedEntities("transactioncurrency_campaign", null, value); + this.OnPropertyChanged("transactioncurrency_campaign"); + } + } + + /// + /// 1:N transactioncurrency_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaignactivity")] + public System.Collections.Generic.IEnumerable transactioncurrency_campaignactivity + { + get + { + return this.GetRelatedEntities("transactioncurrency_campaignactivity", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_campaignactivity"); + this.SetRelatedEntities("transactioncurrency_campaignactivity", null, value); + this.OnPropertyChanged("transactioncurrency_campaignactivity"); + } + } + + /// + /// 1:N TransactionCurrency_CampaignResponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CampaignResponse")] + public System.Collections.Generic.IEnumerable TransactionCurrency_CampaignResponse + { + get + { + return this.GetRelatedEntities("TransactionCurrency_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CampaignResponse"); + this.SetRelatedEntities("TransactionCurrency_CampaignResponse", null, value); + this.OnPropertyChanged("TransactionCurrency_CampaignResponse"); + } + } + + /// + /// 1:N transactioncurrency_competitor + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_competitor")] + public System.Collections.Generic.IEnumerable transactioncurrency_competitor + { + get + { + return this.GetRelatedEntities("transactioncurrency_competitor", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_competitor"); + this.SetRelatedEntities("transactioncurrency_competitor", null, value); + this.OnPropertyChanged("transactioncurrency_competitor"); + } + } + + /// + /// 1:N TransactionCurrency_Connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Connection")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Connection + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Connection", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Connection"); + this.SetRelatedEntities("TransactionCurrency_Connection", null, value); + this.OnPropertyChanged("TransactionCurrency_Connection"); + } + } + + /// + /// 1:N transactioncurrency_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contact")] + public System.Collections.Generic.IEnumerable transactioncurrency_contact + { + get + { + return this.GetRelatedEntities("transactioncurrency_contact", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contact"); + this.SetRelatedEntities("transactioncurrency_contact", null, value); + this.OnPropertyChanged("transactioncurrency_contact"); + } + } + + /// + /// 1:N transactioncurrency_contract + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contract")] + public System.Collections.Generic.IEnumerable transactioncurrency_contract + { + get + { + return this.GetRelatedEntities("transactioncurrency_contract", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contract"); + this.SetRelatedEntities("transactioncurrency_contract", null, value); + this.OnPropertyChanged("transactioncurrency_contract"); + } + } + + /// + /// 1:N transactioncurrency_contractdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contractdetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_contractdetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_contractdetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contractdetail"); + this.SetRelatedEntities("transactioncurrency_contractdetail", null, value); + this.OnPropertyChanged("transactioncurrency_contractdetail"); + } + } + + /// + /// 1:N TransactionCurrency_CustomerAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CustomerAddress")] + public System.Collections.Generic.IEnumerable TransactionCurrency_CustomerAddress + { + get + { + return this.GetRelatedEntities("TransactionCurrency_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CustomerAddress"); + this.SetRelatedEntities("TransactionCurrency_CustomerAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_CustomerAddress"); + } + } + + /// + /// 1:N transactioncurrency_discount + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discount")] + public System.Collections.Generic.IEnumerable transactioncurrency_discount + { + get + { + return this.GetRelatedEntities("transactioncurrency_discount", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_discount"); + this.SetRelatedEntities("transactioncurrency_discount", null, value); + this.OnPropertyChanged("transactioncurrency_discount"); + } + } + + /// + /// 1:N transactioncurrency_discounttype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discounttype")] + public System.Collections.Generic.IEnumerable transactioncurrency_discounttype + { + get + { + return this.GetRelatedEntities("transactioncurrency_discounttype", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_discounttype"); + this.SetRelatedEntities("transactioncurrency_discounttype", null, value); + this.OnPropertyChanged("transactioncurrency_discounttype"); + } + } + + /// + /// 1:N TransactionCurrency_Email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Email")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Email + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Email", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Email"); + this.SetRelatedEntities("TransactionCurrency_Email", null, value); + this.OnPropertyChanged("TransactionCurrency_Email"); + } + } + + /// + /// 1:N TransactionCurrency_Equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Equipment")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Equipment + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Equipment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Equipment"); + this.SetRelatedEntities("TransactionCurrency_Equipment", null, value); + this.OnPropertyChanged("TransactionCurrency_Equipment"); + } + } + + /// + /// 1:N TransactionCurrency_Fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Fax")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Fax + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Fax", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Fax"); + this.SetRelatedEntities("TransactionCurrency_Fax", null, value); + this.OnPropertyChanged("TransactionCurrency_Fax"); + } + } + + /// + /// 1:N transactioncurrency_fixedmonthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_fixedmonthlyfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_fixedmonthlyfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_fixedmonthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_fixedmonthlyfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_fixedmonthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_fixedmonthlyfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_Goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Goal")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Goal + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Goal", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Goal"); + this.SetRelatedEntities("TransactionCurrency_Goal", null, value); + this.OnPropertyChanged("TransactionCurrency_Goal"); + } + } + + /// + /// 1:N TransactionCurrency_Incident + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Incident")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Incident + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Incident", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Incident"); + this.SetRelatedEntities("TransactionCurrency_Incident", null, value); + this.OnPropertyChanged("TransactionCurrency_Incident"); + } + } + + /// + /// 1:N transactioncurrency_invoice + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoice")] + public System.Collections.Generic.IEnumerable transactioncurrency_invoice + { + get + { + return this.GetRelatedEntities("transactioncurrency_invoice", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_invoice"); + this.SetRelatedEntities("transactioncurrency_invoice", null, value); + this.OnPropertyChanged("transactioncurrency_invoice"); + } + } + + /// + /// 1:N transactioncurrency_invoicedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoicedetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_invoicedetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_invoicedetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_invoicedetail"); + this.SetRelatedEntities("transactioncurrency_invoicedetail", null, value); + this.OnPropertyChanged("transactioncurrency_invoicedetail"); + } + } + + /// + /// 1:N TransactionCurrency_KbArticle + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_KbArticle")] + public System.Collections.Generic.IEnumerable TransactionCurrency_KbArticle + { + get + { + return this.GetRelatedEntities("TransactionCurrency_KbArticle", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_KbArticle"); + this.SetRelatedEntities("TransactionCurrency_KbArticle", null, value); + this.OnPropertyChanged("TransactionCurrency_KbArticle"); + } + } + + /// + /// 1:N transactioncurrency_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_lead")] + public System.Collections.Generic.IEnumerable transactioncurrency_lead + { + get + { + return this.GetRelatedEntities("transactioncurrency_lead", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_lead"); + this.SetRelatedEntities("transactioncurrency_lead", null, value); + this.OnPropertyChanged("transactioncurrency_lead"); + } + } + + /// + /// 1:N TransactionCurrency_LeadAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_LeadAddress")] + public System.Collections.Generic.IEnumerable TransactionCurrency_LeadAddress + { + get + { + return this.GetRelatedEntities("TransactionCurrency_LeadAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_LeadAddress"); + this.SetRelatedEntities("TransactionCurrency_LeadAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_LeadAddress"); + } + } + + /// + /// 1:N TransactionCurrency_Letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Letter")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Letter + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Letter", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Letter"); + this.SetRelatedEntities("TransactionCurrency_Letter", null, value); + this.OnPropertyChanged("TransactionCurrency_Letter"); + } + } + + /// + /// 1:N transactioncurrency_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_list")] + public System.Collections.Generic.IEnumerable transactioncurrency_list + { + get + { + return this.GetRelatedEntities("transactioncurrency_list", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_list"); + this.SetRelatedEntities("transactioncurrency_list", null, value); + this.OnPropertyChanged("transactioncurrency_list"); + } + } + + /// + /// 1:N TransactionCurrency_MailMergeTemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_MailMergeTemplate")] + public System.Collections.Generic.IEnumerable TransactionCurrency_MailMergeTemplate + { + get + { + return this.GetRelatedEntities("TransactionCurrency_MailMergeTemplate", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_MailMergeTemplate"); + this.SetRelatedEntities("TransactionCurrency_MailMergeTemplate", null, value); + this.OnPropertyChanged("TransactionCurrency_MailMergeTemplate"); + } + } + + /// + /// 1:N transactioncurrency_monthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_monthlyfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_monthlyfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_monthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_monthlyfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_monthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_monthlyfiscalcalendar"); + } + } + + /// + /// 1:N transactioncurrency_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunity")] + public System.Collections.Generic.IEnumerable transactioncurrency_opportunity + { + get + { + return this.GetRelatedEntities("transactioncurrency_opportunity", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunity"); + this.SetRelatedEntities("transactioncurrency_opportunity", null, value); + this.OnPropertyChanged("transactioncurrency_opportunity"); + } + } + + /// + /// 1:N transactioncurrency_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityclose")] + public System.Collections.Generic.IEnumerable transactioncurrency_opportunityclose + { + get + { + return this.GetRelatedEntities("transactioncurrency_opportunityclose", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunityclose"); + this.SetRelatedEntities("transactioncurrency_opportunityclose", null, value); + this.OnPropertyChanged("transactioncurrency_opportunityclose"); + } + } + + /// + /// 1:N transactioncurrency_opportunityproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityproduct")] + public System.Collections.Generic.IEnumerable transactioncurrency_opportunityproduct + { + get + { + return this.GetRelatedEntities("transactioncurrency_opportunityproduct", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunityproduct"); + this.SetRelatedEntities("transactioncurrency_opportunityproduct", null, value); + this.OnPropertyChanged("transactioncurrency_opportunityproduct"); + } + } + + /// + /// 1:N TransactionCurrency_PhoneCall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_PhoneCall")] + public System.Collections.Generic.IEnumerable TransactionCurrency_PhoneCall + { + get + { + return this.GetRelatedEntities("TransactionCurrency_PhoneCall", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_PhoneCall"); + this.SetRelatedEntities("TransactionCurrency_PhoneCall", null, value); + this.OnPropertyChanged("TransactionCurrency_PhoneCall"); + } + } + + /// + /// 1:N transactioncurrency_pricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_pricelevel")] + public System.Collections.Generic.IEnumerable transactioncurrency_pricelevel + { + get + { + return this.GetRelatedEntities("transactioncurrency_pricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_pricelevel"); + this.SetRelatedEntities("transactioncurrency_pricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_pricelevel"); + } + } + + /// + /// 1:N TransactionCurrency_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ProcessSessions")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ProcessSessions + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ProcessSessions"); + this.SetRelatedEntities("TransactionCurrency_ProcessSessions", null, value); + this.OnPropertyChanged("TransactionCurrency_ProcessSessions"); + } + } + + /// + /// 1:N transactioncurrency_product + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_product")] + public System.Collections.Generic.IEnumerable transactioncurrency_product + { + get + { + return this.GetRelatedEntities("transactioncurrency_product", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_product"); + this.SetRelatedEntities("transactioncurrency_product", null, value); + this.OnPropertyChanged("transactioncurrency_product"); + } + } + + /// + /// 1:N transactioncurrency_productpricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_productpricelevel")] + public System.Collections.Generic.IEnumerable transactioncurrency_productpricelevel + { + get + { + return this.GetRelatedEntities("transactioncurrency_productpricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_productpricelevel"); + this.SetRelatedEntities("transactioncurrency_productpricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_productpricelevel"); + } + } + + /// + /// 1:N transactioncurrency_quarterlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quarterlyfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_quarterlyfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_quarterlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quarterlyfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_quarterlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_quarterlyfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_Queue + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Queue")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Queue + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Queue", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Queue"); + this.SetRelatedEntities("TransactionCurrency_Queue", null, value); + this.OnPropertyChanged("TransactionCurrency_Queue"); + } + } + + /// + /// 1:N TransactionCurrency_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_QueueItem")] + public System.Collections.Generic.IEnumerable TransactionCurrency_QueueItem + { + get + { + return this.GetRelatedEntities("TransactionCurrency_QueueItem", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_QueueItem"); + this.SetRelatedEntities("TransactionCurrency_QueueItem", null, value); + this.OnPropertyChanged("TransactionCurrency_QueueItem"); + } + } + + /// + /// 1:N transactioncurrency_quote + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quote")] + public System.Collections.Generic.IEnumerable transactioncurrency_quote + { + get + { + return this.GetRelatedEntities("transactioncurrency_quote", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quote"); + this.SetRelatedEntities("transactioncurrency_quote", null, value); + this.OnPropertyChanged("transactioncurrency_quote"); + } + } + + /// + /// 1:N transactioncurrency_quotedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quotedetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_quotedetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_quotedetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quotedetail"); + this.SetRelatedEntities("transactioncurrency_quotedetail", null, value); + this.OnPropertyChanged("transactioncurrency_quotedetail"); + } + } + + /// + /// 1:N TransactionCurrency_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_RecurringAppointmentMaster")] + public System.Collections.Generic.IEnumerable TransactionCurrency_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntities("TransactionCurrency_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_RecurringAppointmentMaster"); + this.SetRelatedEntities("TransactionCurrency_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("TransactionCurrency_RecurringAppointmentMaster"); + } + } + + /// + /// 1:N TransactionCurrency_ReportCategory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ReportCategory")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ReportCategory + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ReportCategory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ReportCategory"); + this.SetRelatedEntities("TransactionCurrency_ReportCategory", null, value); + this.OnPropertyChanged("TransactionCurrency_ReportCategory"); + } + } + + /// + /// 1:N TransactionCurrency_SalesLiterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SalesLiterature")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SalesLiterature + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SalesLiterature", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SalesLiterature"); + this.SetRelatedEntities("TransactionCurrency_SalesLiterature", null, value); + this.OnPropertyChanged("TransactionCurrency_SalesLiterature"); + } + } + + /// + /// 1:N transactioncurrency_salesorder + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorder")] + public System.Collections.Generic.IEnumerable transactioncurrency_salesorder + { + get + { + return this.GetRelatedEntities("transactioncurrency_salesorder", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_salesorder"); + this.SetRelatedEntities("transactioncurrency_salesorder", null, value); + this.OnPropertyChanged("transactioncurrency_salesorder"); + } + } + + /// + /// 1:N transactioncurrency_salesorderdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorderdetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_salesorderdetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_salesorderdetail"); + this.SetRelatedEntities("transactioncurrency_salesorderdetail", null, value); + this.OnPropertyChanged("transactioncurrency_salesorderdetail"); + } + } + + /// + /// 1:N transactioncurrency_semiannualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_semiannualfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_semiannualfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_semiannualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_semiannualfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_semiannualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_semiannualfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_ServiceAppointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ServiceAppointment")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ServiceAppointment + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ServiceAppointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ServiceAppointment"); + this.SetRelatedEntities("TransactionCurrency_ServiceAppointment", null, value); + this.OnPropertyChanged("TransactionCurrency_ServiceAppointment"); + } + } + + /// + /// 1:N TransactionCurrency_SharePointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointDocumentLocation")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SharePointDocumentLocation + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SharePointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SharePointDocumentLocation"); + this.SetRelatedEntities("TransactionCurrency_SharePointDocumentLocation", null, value); + this.OnPropertyChanged("TransactionCurrency_SharePointDocumentLocation"); + } + } + + /// + /// 1:N TransactionCurrency_SharePointSite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointSite")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SharePointSite + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SharePointSite", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SharePointSite"); + this.SetRelatedEntities("TransactionCurrency_SharePointSite", null, value); + this.OnPropertyChanged("TransactionCurrency_SharePointSite"); + } + } + + /// + /// 1:N TransactionCurrency_SystemUser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SystemUser")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SystemUser + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SystemUser", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SystemUser"); + this.SetRelatedEntities("TransactionCurrency_SystemUser", null, value); + this.OnPropertyChanged("TransactionCurrency_SystemUser"); + } + } + + /// + /// 1:N TransactionCurrency_Task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Task")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Task + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Task", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Task"); + this.SetRelatedEntities("TransactionCurrency_Task", null, value); + this.OnPropertyChanged("TransactionCurrency_Task"); + } + } + + /// + /// 1:N TransactionCurrency_Team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Team")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Team + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Team", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Team"); + this.SetRelatedEntities("TransactionCurrency_Team", null, value); + this.OnPropertyChanged("TransactionCurrency_Team"); + } + } + + /// + /// 1:N TransactionCurrency_Territory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Territory")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Territory + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Territory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Territory"); + this.SetRelatedEntities("TransactionCurrency_Territory", null, value); + this.OnPropertyChanged("TransactionCurrency_Territory"); + } + } + + /// + /// 1:N transactioncurrency_usersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_usersettings")] + public System.Collections.Generic.IEnumerable transactioncurrency_usersettings + { + get + { + return this.GetRelatedEntities("transactioncurrency_usersettings", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_usersettings"); + this.SetRelatedEntities("transactioncurrency_usersettings", null, value); + this.OnPropertyChanged("transactioncurrency_usersettings"); + } + } + + /// + /// 1:N userentityinstancedata_transactioncurrency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transactioncurrency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_transactioncurrency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_transactioncurrency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transactioncurrency"); + this.SetRelatedEntities("userentityinstancedata_transactioncurrency", null, value); + this.OnPropertyChanged("userentityinstancedata_transactioncurrency"); + } + } + + /// + /// N:1 lk_transactioncurrency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrency_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrency_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_transactioncurrency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrency_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_transactioncurrencybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrencybase_createdby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrencybase_createdby", null); + } + } + + /// + /// N:1 lk_transactioncurrencybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrencybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrencybase_modifiedby", null); + } + } + + /// + /// N:1 organization_transactioncurrencies + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_transactioncurrencies")] + public Xrm.Framework.CI.Common.Entities.Organization organization_transactioncurrencies + { + get + { + return this.GetRelatedEntity("organization_transactioncurrencies", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum TransformationMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps the transformation of source attributes to Microsoft Dynamics CRM attributes. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("transformationmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TransformationMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TransformationMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "transformationmapping"; + + public const int EntityTypeCode = 4426; + + 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 transformation mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the transformation mapping 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 transformationmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the associated data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the transformation mapping 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 transformationmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the transformation mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Name of the source entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Status of the transformation mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.TransformationMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.TransformationMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the transformation mapping. + /// + [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"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// Unique identifier of the transformation mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + public System.Nullable TransformationMappingId + { + get + { + return this.GetAttributeValue>("transformationmappingid"); + } + set + { + this.OnPropertyChanging("TransformationMappingId"); + this.SetAttributeValue("transformationmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TransformationMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TransformationMappingId = value; + } + } + + /// + /// Type of transformation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationtypename")] + public string TransformationTypeName + { + get + { + return this.GetAttributeValue("transformationtypename"); + } + set + { + this.OnPropertyChanging("TransformationTypeName"); + this.SetAttributeValue("transformationtypename", value); + this.OnPropertyChanged("TransformationTypeName"); + } + } + + /// + /// 1:N TransformationParameterMapping_TransformationMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationParameterMapping_TransformationMapping")] + public System.Collections.Generic.IEnumerable TransformationParameterMapping_TransformationMapping + { + get + { + return this.GetRelatedEntities("TransformationParameterMapping_TransformationMapping", null); + } + set + { + this.OnPropertyChanging("TransformationParameterMapping_TransformationMapping"); + this.SetRelatedEntities("TransformationParameterMapping_TransformationMapping", null, value); + this.OnPropertyChanged("TransformationParameterMapping_TransformationMapping"); + } + } + + /// + /// 1:N userentityinstancedata_transformationmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_transformationmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_transformationmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationmapping"); + this.SetRelatedEntities("userentityinstancedata_transformationmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationmapping"); + } + } + + /// + /// N:1 lk_transformationmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_createdby", null); + } + } + + /// + /// N:1 lk_transformationmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_transformationmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_transformationmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 TransformationMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap TransformationMapping_ImportMap + { + get + { + return this.GetRelatedEntity("TransformationMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("TransformationMapping_ImportMap"); + this.SetRelatedEntity("TransformationMapping_ImportMap", null, value); + this.OnPropertyChanged("TransformationMapping_ImportMap"); + } + } + } + + /// + /// In a data map, defines parameters for a transformation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("transformationparametermapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TransformationParameterMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TransformationParameterMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "transformationparametermapping"; + + public const int EntityTypeCode = 4427; + + 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 parameter mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the transformation parameter mapping 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 transformationparametermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Transformation data for transformation parameter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// Data type of the transformation parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datatypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue DataTypeCode + { + get + { + return this.GetAttributeValue("datatypecode"); + } + set + { + this.OnPropertyChanging("DataTypeCode"); + this.SetAttributeValue("datatypecode", value); + this.OnPropertyChanged("DataTypeCode"); + } + } + + /// + /// Unique identifier of the user who last modified the transformation parameter mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the transformation parameter mapping 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 transformationparametermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Index of the array if the input parameter is an array. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parameterarrayindex")] + public System.Nullable ParameterArrayIndex + { + get + { + return this.GetAttributeValue>("parameterarrayindex"); + } + set + { + this.OnPropertyChanging("ParameterArrayIndex"); + this.SetAttributeValue("parameterarrayindex", value); + this.OnPropertyChanged("ParameterArrayIndex"); + } + } + + /// + /// Parameter sequence number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametersequence")] + public System.Nullable ParameterSequence + { + get + { + return this.GetAttributeValue>("parametersequence"); + } + set + { + this.OnPropertyChanging("ParameterSequence"); + this.SetAttributeValue("parametersequence", value); + this.OnPropertyChanged("ParameterSequence"); + } + } + + /// + /// Type of transformation parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametertypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ParameterTypeCode + { + get + { + return this.GetAttributeValue("parametertypecode"); + } + set + { + this.OnPropertyChanging("ParameterTypeCode"); + this.SetAttributeValue("parametertypecode", value); + this.OnPropertyChanged("ParameterTypeCode"); + } + } + + /// + /// Unique identifier of the transformation with which the parameter is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + public Microsoft.Xrm.Sdk.EntityReference TransformationMappingId + { + get + { + return this.GetAttributeValue("transformationmappingid"); + } + set + { + this.OnPropertyChanging("TransformationMappingId"); + this.SetAttributeValue("transformationmappingid", value); + this.OnPropertyChanged("TransformationMappingId"); + } + } + + /// + /// Unique identifier of the transformation parameter mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + public System.Nullable TransformationParameterMappingId + { + get + { + return this.GetAttributeValue>("transformationparametermappingid"); + } + set + { + this.OnPropertyChanging("TransformationParameterMappingId"); + this.SetAttributeValue("transformationparametermappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TransformationParameterMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TransformationParameterMappingId = value; + } + } + + /// + /// 1:N LookUpMapping_TransformationParameterMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_TransformationParameterMapping")] + public System.Collections.Generic.IEnumerable LookUpMapping_TransformationParameterMapping + { + get + { + return this.GetRelatedEntities("LookUpMapping_TransformationParameterMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_TransformationParameterMapping"); + this.SetRelatedEntities("LookUpMapping_TransformationParameterMapping", null, value); + this.OnPropertyChanged("LookUpMapping_TransformationParameterMapping"); + } + } + + /// + /// 1:N userentityinstancedata_transformationparametermapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationparametermapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_transformationparametermapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_transformationparametermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationparametermapping"); + this.SetRelatedEntities("userentityinstancedata_transformationparametermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationparametermapping"); + } + } + + /// + /// N:1 lk_transformationparametermapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_createdby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_createdby", null); + } + } + + /// + /// N:1 lk_transformationparametermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_transformationparametermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_modifiedby", null); + } + } + + /// + /// N:1 lk_transformationparametermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 TransformationParameterMapping_TransformationMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationParameterMapping_TransformationMapping")] + public Xrm.Framework.CI.Common.Entities.TransformationMapping TransformationParameterMapping_TransformationMapping + { + get + { + return this.GetRelatedEntity("TransformationParameterMapping_TransformationMapping", null); + } + set + { + this.OnPropertyChanging("TransformationParameterMapping_TransformationMapping"); + this.SetRelatedEntity("TransformationParameterMapping_TransformationMapping", null, value); + this.OnPropertyChanged("TransformationParameterMapping_TransformationMapping"); + } + } + } + + /// + /// Unit of measure. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("uom")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UoM : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UoM() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "uom"; + + public const int EntityTypeCode = 1055; + + 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)); + } + } + + /// + /// Choose the base or primary unit on which the unit is based. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseuom")] + public Microsoft.Xrm.Sdk.EntityReference BaseUoM + { + get + { + return this.GetAttributeValue("baseuom"); + } + set + { + this.OnPropertyChanging("BaseUoM"); + this.SetAttributeValue("baseuom", value); + this.OnPropertyChanged("BaseUoM"); + } + } + + /// + /// Unique identifier of the user who created the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the unit 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 uom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Tells whether the unit is the base unit for the associated unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isschedulebaseuom")] + public System.Nullable IsScheduleBaseUoM + { + get + { + return this.GetAttributeValue>("isschedulebaseuom"); + } + } + + /// + /// Unique identifier of the user who last modified the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the unit 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 uom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Type a descriptive title or name for the unit of measure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the unit of measure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Unit quantity for the product. + /// + [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"); + } + } + + /// + /// Unique identifier of the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + public System.Nullable UoMId + { + get + { + return this.GetAttributeValue>("uomid"); + } + set + { + this.OnPropertyChanging("UoMId"); + this.SetAttributeValue("uomid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UoMId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UoMId = value; + } + } + + /// + /// Choose the ID of the unit group that the unit is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference UoMScheduleId + { + get + { + return this.GetAttributeValue("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + this.OnPropertyChanged("UoMScheduleId"); + } + } + + /// + /// Version number of the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N unit_of_measurement_base_unit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedunit_of_measurement_base_unit + { + get + { + return this.GetRelatedEntities("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedunit_of_measurement_base_unit"); + this.SetRelatedEntities("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedunit_of_measurement_base_unit"); + } + } + + /// + /// 1:N unit_of_measurement_contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_contract_line_items")] + public System.Collections.Generic.IEnumerable unit_of_measurement_contract_line_items + { + get + { + return this.GetRelatedEntities("unit_of_measurement_contract_line_items", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_contract_line_items"); + this.SetRelatedEntities("unit_of_measurement_contract_line_items", null, value); + this.OnPropertyChanged("unit_of_measurement_contract_line_items"); + } + } + + /// + /// 1:N unit_of_measurement_invoice_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_invoice_details")] + public System.Collections.Generic.IEnumerable unit_of_measurement_invoice_details + { + get + { + return this.GetRelatedEntities("unit_of_measurement_invoice_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_invoice_details"); + this.SetRelatedEntities("unit_of_measurement_invoice_details", null, value); + this.OnPropertyChanged("unit_of_measurement_invoice_details"); + } + } + + /// + /// 1:N unit_of_measurement_opportunity_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_opportunity_products")] + public System.Collections.Generic.IEnumerable unit_of_measurement_opportunity_products + { + get + { + return this.GetRelatedEntities("unit_of_measurement_opportunity_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_opportunity_products"); + this.SetRelatedEntities("unit_of_measurement_opportunity_products", null, value); + this.OnPropertyChanged("unit_of_measurement_opportunity_products"); + } + } + + /// + /// 1:N unit_of_measurement_order_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_order_details")] + public System.Collections.Generic.IEnumerable unit_of_measurement_order_details + { + get + { + return this.GetRelatedEntities("unit_of_measurement_order_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_order_details"); + this.SetRelatedEntities("unit_of_measurement_order_details", null, value); + this.OnPropertyChanged("unit_of_measurement_order_details"); + } + } + + /// + /// 1:N unit_of_measurement_product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_product_price_levels")] + public System.Collections.Generic.IEnumerable unit_of_measurement_product_price_levels + { + get + { + return this.GetRelatedEntities("unit_of_measurement_product_price_levels", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_product_price_levels"); + this.SetRelatedEntities("unit_of_measurement_product_price_levels", null, value); + this.OnPropertyChanged("unit_of_measurement_product_price_levels"); + } + } + + /// + /// 1:N unit_of_measurement_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_products")] + public System.Collections.Generic.IEnumerable unit_of_measurement_products + { + get + { + return this.GetRelatedEntities("unit_of_measurement_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_products"); + this.SetRelatedEntities("unit_of_measurement_products", null, value); + this.OnPropertyChanged("unit_of_measurement_products"); + } + } + + /// + /// 1:N unit_of_measurement_quote_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_quote_details")] + public System.Collections.Generic.IEnumerable unit_of_measurement_quote_details + { + get + { + return this.GetRelatedEntities("unit_of_measurement_quote_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_quote_details"); + this.SetRelatedEntities("unit_of_measurement_quote_details", null, value); + this.OnPropertyChanged("unit_of_measurement_quote_details"); + } + } + + /// + /// 1:N UoM_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_AsyncOperations")] + public System.Collections.Generic.IEnumerable UoM_AsyncOperations + { + get + { + return this.GetRelatedEntities("UoM_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoM_AsyncOperations"); + this.SetRelatedEntities("UoM_AsyncOperations", null, value); + this.OnPropertyChanged("UoM_AsyncOperations"); + } + } + + /// + /// 1:N UoM_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UoM_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UoM_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UoM_BulkDeleteFailures"); + this.SetRelatedEntities("UoM_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UoM_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_uom + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uom")] + public System.Collections.Generic.IEnumerable userentityinstancedata_uom + { + get + { + return this.GetRelatedEntities("userentityinstancedata_uom", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uom"); + this.SetRelatedEntities("userentityinstancedata_uom", null, value); + this.OnPropertyChanged("userentityinstancedata_uom"); + } + } + + /// + /// N:1 lk_uom_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uom_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uom_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_uom_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uom_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uom_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_uombase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uombase_createdby + { + get + { + return this.GetRelatedEntity("lk_uombase_createdby", null); + } + } + + /// + /// N:1 lk_uombase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uombase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_uombase_modifiedby", null); + } + } + + /// + /// N:1 unit_of_measure_schedule_conversions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_conversions")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule unit_of_measure_schedule_conversions + { + get + { + return this.GetRelatedEntity("unit_of_measure_schedule_conversions", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_conversions"); + this.SetRelatedEntity("unit_of_measure_schedule_conversions", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_conversions"); + } + } + + /// + /// N:1 unit_of_measurement_base_unit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseuom")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.UoM Referencingunit_of_measurement_base_unit + { + get + { + return this.GetRelatedEntity("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingunit_of_measurement_base_unit"); + this.SetRelatedEntity("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingunit_of_measurement_base_unit"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum UoMScheduleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Grouping of units. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("uomschedule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UoMSchedule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UoMSchedule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "uomschedule"; + + public const int EntityTypeCode = 1056; + + 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)); + } + } + + /// + /// Name of the base unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseuomname")] + public string BaseUoMName + { + get + { + return this.GetAttributeValue("baseuomname"); + } + set + { + this.OnPropertyChanging("BaseUoMName"); + this.SetAttributeValue("baseuomname", value); + this.OnPropertyChanged("BaseUoMName"); + } + } + + /// + /// Unique identifier of the user who created the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the unit group 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 uomschedule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the unit group 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 uomschedule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the unit group. + /// + [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"); + } + } + + /// + /// Status of the Unit Group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.UoMScheduleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.UoMScheduleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Unit Group. + /// + [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"); + } + } + + /// + /// Unique identifier for the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public System.Nullable UoMScheduleId + { + get + { + return this.GetAttributeValue>("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UoMScheduleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UoMScheduleId = value; + } + } + + /// + /// Version number of the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_detail_unit_of_measure_schedule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_unit_of_measure_schedule")] + public System.Collections.Generic.IEnumerable contract_detail_unit_of_measure_schedule + { + get + { + return this.GetRelatedEntities("contract_detail_unit_of_measure_schedule", null); + } + set + { + this.OnPropertyChanging("contract_detail_unit_of_measure_schedule"); + this.SetRelatedEntities("contract_detail_unit_of_measure_schedule", null, value); + this.OnPropertyChanged("contract_detail_unit_of_measure_schedule"); + } + } + + /// + /// 1:N unit_of_measure_schedule_conversions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_conversions")] + public System.Collections.Generic.IEnumerable unit_of_measure_schedule_conversions + { + get + { + return this.GetRelatedEntities("unit_of_measure_schedule_conversions", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_conversions"); + this.SetRelatedEntities("unit_of_measure_schedule_conversions", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_conversions"); + } + } + + /// + /// 1:N unit_of_measure_schedule_product_price_level + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_product_price_level")] + public System.Collections.Generic.IEnumerable unit_of_measure_schedule_product_price_level + { + get + { + return this.GetRelatedEntities("unit_of_measure_schedule_product_price_level", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_product_price_level"); + this.SetRelatedEntities("unit_of_measure_schedule_product_price_level", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_product_price_level"); + } + } + + /// + /// 1:N unit_of_measurement_schedule_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_schedule_products")] + public System.Collections.Generic.IEnumerable unit_of_measurement_schedule_products + { + get + { + return this.GetRelatedEntities("unit_of_measurement_schedule_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_schedule_products"); + this.SetRelatedEntities("unit_of_measurement_schedule_products", null, value); + this.OnPropertyChanged("unit_of_measurement_schedule_products"); + } + } + + /// + /// 1:N UoMSchedule_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_AsyncOperations")] + public System.Collections.Generic.IEnumerable UoMSchedule_AsyncOperations + { + get + { + return this.GetRelatedEntities("UoMSchedule_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoMSchedule_AsyncOperations"); + this.SetRelatedEntities("UoMSchedule_AsyncOperations", null, value); + this.OnPropertyChanged("UoMSchedule_AsyncOperations"); + } + } + + /// + /// 1:N UoMSchedule_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UoMSchedule_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UoMSchedule_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UoMSchedule_BulkDeleteFailures"); + this.SetRelatedEntities("UoMSchedule_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UoMSchedule_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_uomschedule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uomschedule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_uomschedule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_uomschedule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uomschedule"); + this.SetRelatedEntities("userentityinstancedata_uomschedule", null, value); + this.OnPropertyChanged("userentityinstancedata_uomschedule"); + } + } + + /// + /// N:1 lk_uomschedule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uomschedule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_uomschedule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uomschedule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_uomschedulebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedulebase_createdby + { + get + { + return this.GetRelatedEntity("lk_uomschedulebase_createdby", null); + } + } + + /// + /// N:1 lk_uomschedulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedulebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_uomschedulebase_modifiedby", null); + } + } + + /// + /// N:1 organization_uof_schedules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_uof_schedules")] + public Xrm.Framework.CI.Common.Entities.Organization organization_uof_schedules + { + get + { + return this.GetRelatedEntity("organization_uof_schedules", null); + } + } + } + + /// + /// Per User item instance data + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userentityinstancedata")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserEntityInstanceData : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserEntityInstanceData() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userentityinstancedata"; + + public const int EntityTypeCode = 2501; + + 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)); + } + } + + /// + /// Common end date + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("commonend")] + public System.Nullable CommonEnd + { + get + { + return this.GetAttributeValue>("commonend"); + } + set + { + this.OnPropertyChanging("CommonEnd"); + this.SetAttributeValue("commonend", value); + this.OnPropertyChanged("CommonEnd"); + } + } + + /// + /// Common start date + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("commonstart")] + public System.Nullable CommonStart + { + get + { + return this.GetAttributeValue>("commonstart"); + } + set + { + this.OnPropertyChanging("CommonStart"); + this.SetAttributeValue("commonstart", value); + this.OnPropertyChanged("CommonStart"); + } + } + + /// + /// Due Date + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duedate")] + public System.Nullable DueDate + { + get + { + return this.GetAttributeValue>("duedate"); + } + set + { + this.OnPropertyChanging("DueDate"); + this.SetAttributeValue("duedate", value); + this.OnPropertyChanged("DueDate"); + } + } + + /// + /// Flag due by + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("flagdueby")] + public System.Nullable FlagDueBy + { + get + { + return this.GetAttributeValue>("flagdueby"); + } + set + { + this.OnPropertyChanging("FlagDueBy"); + this.SetAttributeValue("flagdueby", value); + this.OnPropertyChanged("FlagDueBy"); + } + } + + /// + /// Flag request + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("flagrequest")] + public string FlagRequest + { + get + { + return this.GetAttributeValue("flagrequest"); + } + set + { + this.OnPropertyChanging("FlagRequest"); + this.SetAttributeValue("flagrequest", value); + this.OnPropertyChanged("FlagRequest"); + } + } + + /// + /// Flag status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("flagstatus")] + public System.Nullable FlagStatus + { + get + { + return this.GetAttributeValue>("flagstatus"); + } + set + { + this.OnPropertyChanging("FlagStatus"); + this.SetAttributeValue("flagstatus", value); + this.OnPropertyChanged("FlagStatus"); + } + } + + /// + /// Unique identifier of the source record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Object Type Code + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user or team who owns the user entity instance data. + /// + [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 this. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Personal categories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalcategories")] + public string PersonalCategories + { + get + { + return this.GetAttributeValue("personalcategories"); + } + set + { + this.OnPropertyChanging("PersonalCategories"); + this.SetAttributeValue("personalcategories", value); + this.OnPropertyChanged("PersonalCategories"); + } + } + + /// + /// Indicates whether a reminder is set on this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reminderset")] + public System.Nullable ReminderSet + { + get + { + return this.GetAttributeValue>("reminderset"); + } + set + { + this.OnPropertyChanging("ReminderSet"); + this.SetAttributeValue("reminderset", value); + this.OnPropertyChanged("ReminderSet"); + } + } + + /// + /// Reminder time + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("remindertime")] + public System.Nullable ReminderTime + { + get + { + return this.GetAttributeValue>("remindertime"); + } + set + { + this.OnPropertyChanging("ReminderTime"); + this.SetAttributeValue("remindertime", value); + this.OnPropertyChanged("ReminderTime"); + } + } + + /// + /// Start Time + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// To Do item flags. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todoitemflags")] + public System.Nullable ToDoItemFlags + { + get + { + return this.GetAttributeValue>("todoitemflags"); + } + set + { + this.OnPropertyChanging("ToDoItemFlags"); + this.SetAttributeValue("todoitemflags", value); + this.OnPropertyChanged("ToDoItemFlags"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todoordinaldate")] + public System.Nullable ToDoOrdinalDate + { + get + { + return this.GetAttributeValue>("todoordinaldate"); + } + set + { + this.OnPropertyChanging("ToDoOrdinalDate"); + this.SetAttributeValue("todoordinaldate", value); + this.OnPropertyChanged("ToDoOrdinalDate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todosubordinal")] + public string ToDoSubOrdinal + { + get + { + return this.GetAttributeValue("todosubordinal"); + } + set + { + this.OnPropertyChanging("ToDoSubOrdinal"); + this.SetAttributeValue("todosubordinal", value); + this.OnPropertyChanged("ToDoSubOrdinal"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todotitle")] + public string ToDoTitle + { + get + { + return this.GetAttributeValue("todotitle"); + } + set + { + this.OnPropertyChanging("ToDoTitle"); + this.SetAttributeValue("todotitle", value); + this.OnPropertyChanged("ToDoTitle"); + } + } + + /// + /// Unique identifier user entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityinstancedataid")] + public System.Nullable UserEntityInstanceDataId + { + get + { + return this.GetAttributeValue>("userentityinstancedataid"); + } + set + { + this.OnPropertyChanging("UserEntityInstanceDataId"); + this.SetAttributeValue("userentityinstancedataid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserEntityInstanceDataId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityinstancedataid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserEntityInstanceDataId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 mailbox_userentityinstancedatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_userentityinstancedatas")] + public Xrm.Framework.CI.Common.Entities.Mailbox mailbox_userentityinstancedatas + { + get + { + return this.GetRelatedEntity("mailbox_userentityinstancedatas", null); + } + set + { + this.OnPropertyChanging("mailbox_userentityinstancedatas"); + this.SetRelatedEntity("mailbox_userentityinstancedatas", null, value); + this.OnPropertyChanged("mailbox_userentityinstancedatas"); + } + } + + /// + /// N:1 msdyn_postalbum_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_postalbum_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postalbum_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_postconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_postconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postconfig_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_postruleconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_postruleconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_wallsavedquery_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 team_userentityinstancedata + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityinstancedata")] + public Xrm.Framework.CI.Common.Entities.Team team_userentityinstancedata + { + get + { + return this.GetRelatedEntity("team_userentityinstancedata", null); + } + } + + /// + /// N:1 userentityinstancedata_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_account")] + public Xrm.Framework.CI.Common.Entities.Account userentityinstancedata_account + { + get + { + return this.GetRelatedEntity("userentityinstancedata_account", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_account"); + this.SetRelatedEntity("userentityinstancedata_account", null, value); + this.OnPropertyChanged("userentityinstancedata_account"); + } + } + + /// + /// N:1 userentityinstancedata_activitymimeattachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activitymimeattachment")] + public Xrm.Framework.CI.Common.Entities.ActivityMimeAttachment userentityinstancedata_activitymimeattachment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_activitymimeattachment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activitymimeattachment"); + this.SetRelatedEntity("userentityinstancedata_activitymimeattachment", null, value); + this.OnPropertyChanged("userentityinstancedata_activitymimeattachment"); + } + } + + /// + /// N:1 userentityinstancedata_activityparty + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activityparty")] + public Xrm.Framework.CI.Common.Entities.ActivityParty userentityinstancedata_activityparty + { + get + { + return this.GetRelatedEntity("userentityinstancedata_activityparty", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activityparty"); + this.SetRelatedEntity("userentityinstancedata_activityparty", null, value); + this.OnPropertyChanged("userentityinstancedata_activityparty"); + } + } + + /// + /// N:1 userentityinstancedata_annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_annotation")] + public Xrm.Framework.CI.Common.Entities.Annotation userentityinstancedata_annotation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_annotation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_annotation"); + this.SetRelatedEntity("userentityinstancedata_annotation", null, value); + this.OnPropertyChanged("userentityinstancedata_annotation"); + } + } + + /// + /// N:1 userentityinstancedata_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_appointment")] + public Xrm.Framework.CI.Common.Entities.Appointment userentityinstancedata_appointment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_appointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_appointment"); + this.SetRelatedEntity("userentityinstancedata_appointment", null, value); + this.OnPropertyChanged("userentityinstancedata_appointment"); + } + } + + /// + /// N:1 userentityinstancedata_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation userentityinstancedata_asyncoperation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_asyncoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_asyncoperation"); + this.SetRelatedEntity("userentityinstancedata_asyncoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_asyncoperation"); + } + } + + /// + /// N:1 userentityinstancedata_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_attributemap")] + public Xrm.Framework.CI.Common.Entities.AttributeMap userentityinstancedata_attributemap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_attributemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_attributemap"); + this.SetRelatedEntity("userentityinstancedata_attributemap", null, value); + this.OnPropertyChanged("userentityinstancedata_attributemap"); + } + } + + /// + /// N:1 userentityinstancedata_audit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_audit")] + public Xrm.Framework.CI.Common.Entities.Audit userentityinstancedata_audit + { + get + { + return this.GetRelatedEntity("userentityinstancedata_audit", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_audit"); + this.SetRelatedEntity("userentityinstancedata_audit", null, value); + this.OnPropertyChanged("userentityinstancedata_audit"); + } + } + + /// + /// N:1 userentityinstancedata_bulkdeletefailure + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeletefailure")] + public Xrm.Framework.CI.Common.Entities.BulkDeleteFailure userentityinstancedata_bulkdeletefailure + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkdeletefailure", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeletefailure"); + this.SetRelatedEntity("userentityinstancedata_bulkdeletefailure", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeletefailure"); + } + } + + /// + /// N:1 userentityinstancedata_bulkdeleteoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeleteoperation")] + public Xrm.Framework.CI.Common.Entities.BulkDeleteOperation userentityinstancedata_bulkdeleteoperation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkdeleteoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeleteoperation"); + this.SetRelatedEntity("userentityinstancedata_bulkdeleteoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeleteoperation"); + } + } + + /// + /// N:1 userentityinstancedata_bulkoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperation")] + public Xrm.Framework.CI.Common.Entities.BulkOperation userentityinstancedata_bulkoperation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperation"); + this.SetRelatedEntity("userentityinstancedata_bulkoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperation"); + } + } + + /// + /// N:1 userentityinstancedata_bulkoperationlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperationlog")] + public Xrm.Framework.CI.Common.Entities.BulkOperationLog userentityinstancedata_bulkoperationlog + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkoperationlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperationlog"); + this.SetRelatedEntity("userentityinstancedata_bulkoperationlog", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperationlog"); + } + } + + /// + /// N:1 userentityinstancedata_businessunit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunit")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit userentityinstancedata_businessunit + { + get + { + return this.GetRelatedEntity("userentityinstancedata_businessunit", null); + } + } + + /// + /// N:1 userentityinstancedata_businessunitnewsarticle + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunitnewsarticle")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle userentityinstancedata_businessunitnewsarticle + { + get + { + return this.GetRelatedEntity("userentityinstancedata_businessunitnewsarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_businessunitnewsarticle"); + this.SetRelatedEntity("userentityinstancedata_businessunitnewsarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_businessunitnewsarticle"); + } + } + + /// + /// N:1 userentityinstancedata_calendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_calendar")] + public Xrm.Framework.CI.Common.Entities.Calendar userentityinstancedata_calendar + { + get + { + return this.GetRelatedEntity("userentityinstancedata_calendar", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_calendar"); + this.SetRelatedEntity("userentityinstancedata_calendar", null, value); + this.OnPropertyChanged("userentityinstancedata_calendar"); + } + } + + /// + /// N:1 userentityinstancedata_campaign + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaign")] + public Xrm.Framework.CI.Common.Entities.Campaign userentityinstancedata_campaign + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaign", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaign"); + this.SetRelatedEntity("userentityinstancedata_campaign", null, value); + this.OnPropertyChanged("userentityinstancedata_campaign"); + } + } + + /// + /// N:1 userentityinstancedata_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity userentityinstancedata_campaignactivity + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignactivity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivity"); + this.SetRelatedEntity("userentityinstancedata_campaignactivity", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivity"); + } + } + + /// + /// N:1 userentityinstancedata_campaignactivityitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivityitem")] + public Xrm.Framework.CI.Common.Entities.CampaignActivityItem userentityinstancedata_campaignactivityitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignactivityitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivityitem"); + this.SetRelatedEntity("userentityinstancedata_campaignactivityitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivityitem"); + } + } + + /// + /// N:1 userentityinstancedata_campaignitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignitem")] + public Xrm.Framework.CI.Common.Entities.CampaignItem userentityinstancedata_campaignitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignitem"); + this.SetRelatedEntity("userentityinstancedata_campaignitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignitem"); + } + } + + /// + /// N:1 userentityinstancedata_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse userentityinstancedata_campaignresponse + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignresponse"); + this.SetRelatedEntity("userentityinstancedata_campaignresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignresponse"); + } + } + + /// + /// N:1 userentityinstancedata_columnmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_columnmapping")] + public Xrm.Framework.CI.Common.Entities.ColumnMapping userentityinstancedata_columnmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_columnmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_columnmapping"); + this.SetRelatedEntity("userentityinstancedata_columnmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_columnmapping"); + } + } + + /// + /// N:1 userentityinstancedata_competitor + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitor")] + public Xrm.Framework.CI.Common.Entities.Competitor userentityinstancedata_competitor + { + get + { + return this.GetRelatedEntity("userentityinstancedata_competitor", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitor"); + this.SetRelatedEntity("userentityinstancedata_competitor", null, value); + this.OnPropertyChanged("userentityinstancedata_competitor"); + } + } + + /// + /// N:1 userentityinstancedata_competitorproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorproduct")] + public Xrm.Framework.CI.Common.Entities.CompetitorProduct userentityinstancedata_competitorproduct + { + get + { + return this.GetRelatedEntity("userentityinstancedata_competitorproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorproduct"); + this.SetRelatedEntity("userentityinstancedata_competitorproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorproduct"); + } + } + + /// + /// N:1 userentityinstancedata_competitorsalesliterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorsalesliterature")] + public Xrm.Framework.CI.Common.Entities.CompetitorSalesLiterature userentityinstancedata_competitorsalesliterature + { + get + { + return this.GetRelatedEntity("userentityinstancedata_competitorsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorsalesliterature"); + this.SetRelatedEntity("userentityinstancedata_competitorsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorsalesliterature"); + } + } + + /// + /// N:1 userentityinstancedata_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connection")] + public Xrm.Framework.CI.Common.Entities.Connection userentityinstancedata_connection + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connection", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connection"); + this.SetRelatedEntity("userentityinstancedata_connection", null, value); + this.OnPropertyChanged("userentityinstancedata_connection"); + } + } + + /// + /// N:1 userentityinstancedata_connectionrole + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionrole")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole userentityinstancedata_connectionrole + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connectionrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionrole"); + this.SetRelatedEntity("userentityinstancedata_connectionrole", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionrole"); + } + } + + /// + /// N:1 userentityinstancedata_connectionroleassociation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleassociation")] + public Xrm.Framework.CI.Common.Entities.ConnectionRoleAssociation userentityinstancedata_connectionroleassociation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connectionroleassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleassociation"); + this.SetRelatedEntity("userentityinstancedata_connectionroleassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleassociation"); + } + } + + /// + /// N:1 userentityinstancedata_connectionroleobjecttypecode + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleobjecttypecode")] + public Xrm.Framework.CI.Common.Entities.ConnectionRoleObjectTypeCode userentityinstancedata_connectionroleobjecttypecode + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connectionroleobjecttypecode", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleobjecttypecode"); + this.SetRelatedEntity("userentityinstancedata_connectionroleobjecttypecode", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleobjecttypecode"); + } + } + + /// + /// N:1 userentityinstancedata_constraintbasedgroup + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_constraintbasedgroup")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup userentityinstancedata_constraintbasedgroup + { + get + { + return this.GetRelatedEntity("userentityinstancedata_constraintbasedgroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_constraintbasedgroup"); + this.SetRelatedEntity("userentityinstancedata_constraintbasedgroup", null, value); + this.OnPropertyChanged("userentityinstancedata_constraintbasedgroup"); + } + } + + /// + /// N:1 userentityinstancedata_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contact")] + public Xrm.Framework.CI.Common.Entities.Contact userentityinstancedata_contact + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contact", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contact"); + this.SetRelatedEntity("userentityinstancedata_contact", null, value); + this.OnPropertyChanged("userentityinstancedata_contact"); + } + } + + /// + /// N:1 userentityinstancedata_contract + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contract")] + public Xrm.Framework.CI.Common.Entities.Contract userentityinstancedata_contract + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contract", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contract"); + this.SetRelatedEntity("userentityinstancedata_contract", null, value); + this.OnPropertyChanged("userentityinstancedata_contract"); + } + } + + /// + /// N:1 userentityinstancedata_contractdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contractdetail")] + public Xrm.Framework.CI.Common.Entities.ContractDetail userentityinstancedata_contractdetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contractdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contractdetail"); + this.SetRelatedEntity("userentityinstancedata_contractdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_contractdetail"); + } + } + + /// + /// N:1 userentityinstancedata_contracttemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contracttemplate")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate userentityinstancedata_contracttemplate + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contracttemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contracttemplate"); + this.SetRelatedEntity("userentityinstancedata_contracttemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_contracttemplate"); + } + } + + /// + /// N:1 userentityinstancedata_customeraddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeraddress")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress userentityinstancedata_customeraddress + { + get + { + return this.GetRelatedEntity("userentityinstancedata_customeraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeraddress"); + this.SetRelatedEntity("userentityinstancedata_customeraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_customeraddress"); + } + } + + /// + /// N:1 userentityinstancedata_customeropportunityrole + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeropportunityrole")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole userentityinstancedata_customeropportunityrole + { + get + { + return this.GetRelatedEntity("userentityinstancedata_customeropportunityrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeropportunityrole"); + this.SetRelatedEntity("userentityinstancedata_customeropportunityrole", null, value); + this.OnPropertyChanged("userentityinstancedata_customeropportunityrole"); + } + } + + /// + /// N:1 userentityinstancedata_customerrelationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customerrelationship")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship userentityinstancedata_customerrelationship + { + get + { + return this.GetRelatedEntity("userentityinstancedata_customerrelationship", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customerrelationship"); + this.SetRelatedEntity("userentityinstancedata_customerrelationship", null, value); + this.OnPropertyChanged("userentityinstancedata_customerrelationship"); + } + } + + /// + /// N:1 userentityinstancedata_dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_dependency")] + public Xrm.Framework.CI.Common.Entities.Dependency userentityinstancedata_dependency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_dependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_dependency"); + this.SetRelatedEntity("userentityinstancedata_dependency", null, value); + this.OnPropertyChanged("userentityinstancedata_dependency"); + } + } + + /// + /// N:1 userentityinstancedata_discount + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discount")] + public Xrm.Framework.CI.Common.Entities.Discount userentityinstancedata_discount + { + get + { + return this.GetRelatedEntity("userentityinstancedata_discount", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discount"); + this.SetRelatedEntity("userentityinstancedata_discount", null, value); + this.OnPropertyChanged("userentityinstancedata_discount"); + } + } + + /// + /// N:1 userentityinstancedata_discounttype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discounttype")] + public Xrm.Framework.CI.Common.Entities.DiscountType userentityinstancedata_discounttype + { + get + { + return this.GetRelatedEntity("userentityinstancedata_discounttype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discounttype"); + this.SetRelatedEntity("userentityinstancedata_discounttype", null, value); + this.OnPropertyChanged("userentityinstancedata_discounttype"); + } + } + + /// + /// N:1 userentityinstancedata_displaystring + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_displaystring")] + public Xrm.Framework.CI.Common.Entities.DisplayString userentityinstancedata_displaystring + { + get + { + return this.GetRelatedEntity("userentityinstancedata_displaystring", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_displaystring"); + this.SetRelatedEntity("userentityinstancedata_displaystring", null, value); + this.OnPropertyChanged("userentityinstancedata_displaystring"); + } + } + + /// + /// N:1 userentityinstancedata_duplicaterecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterecord")] + public Xrm.Framework.CI.Common.Entities.DuplicateRecord userentityinstancedata_duplicaterecord + { + get + { + return this.GetRelatedEntity("userentityinstancedata_duplicaterecord", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterecord"); + this.SetRelatedEntity("userentityinstancedata_duplicaterecord", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterecord"); + } + } + + /// + /// N:1 userentityinstancedata_duplicaterule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterule")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule userentityinstancedata_duplicaterule + { + get + { + return this.GetRelatedEntity("userentityinstancedata_duplicaterule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterule"); + this.SetRelatedEntity("userentityinstancedata_duplicaterule", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterule"); + } + } + + /// + /// N:1 userentityinstancedata_duplicaterulecondition + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterulecondition")] + public Xrm.Framework.CI.Common.Entities.DuplicateRuleCondition userentityinstancedata_duplicaterulecondition + { + get + { + return this.GetRelatedEntity("userentityinstancedata_duplicaterulecondition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterulecondition"); + this.SetRelatedEntity("userentityinstancedata_duplicaterulecondition", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterulecondition"); + } + } + + /// + /// N:1 userentityinstancedata_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_email")] + public Xrm.Framework.CI.Common.Entities.Email userentityinstancedata_email + { + get + { + return this.GetRelatedEntity("userentityinstancedata_email", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_email"); + this.SetRelatedEntity("userentityinstancedata_email", null, value); + this.OnPropertyChanged("userentityinstancedata_email"); + } + } + + /// + /// N:1 userentityinstancedata_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_entitymap")] + public Xrm.Framework.CI.Common.Entities.EntityMap userentityinstancedata_entitymap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_entitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_entitymap"); + this.SetRelatedEntity("userentityinstancedata_entitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_entitymap"); + } + } + + /// + /// N:1 userentityinstancedata_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_equipment")] + public Xrm.Framework.CI.Common.Entities.Equipment userentityinstancedata_equipment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_equipment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_equipment"); + this.SetRelatedEntity("userentityinstancedata_equipment", null, value); + this.OnPropertyChanged("userentityinstancedata_equipment"); + } + } + + /// + /// N:1 userentityinstancedata_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fax")] + public Xrm.Framework.CI.Common.Entities.Fax userentityinstancedata_fax + { + get + { + return this.GetRelatedEntity("userentityinstancedata_fax", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fax"); + this.SetRelatedEntity("userentityinstancedata_fax", null, value); + this.OnPropertyChanged("userentityinstancedata_fax"); + } + } + + /// + /// N:1 userentityinstancedata_fieldpermission + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldpermission")] + public Xrm.Framework.CI.Common.Entities.FieldPermission userentityinstancedata_fieldpermission + { + get + { + return this.GetRelatedEntity("userentityinstancedata_fieldpermission", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldpermission"); + this.SetRelatedEntity("userentityinstancedata_fieldpermission", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldpermission"); + } + } + + /// + /// N:1 userentityinstancedata_fieldsecurityprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldsecurityprofile")] + public Xrm.Framework.CI.Common.Entities.FieldSecurityProfile userentityinstancedata_fieldsecurityprofile + { + get + { + return this.GetRelatedEntity("userentityinstancedata_fieldsecurityprofile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldsecurityprofile"); + this.SetRelatedEntity("userentityinstancedata_fieldsecurityprofile", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldsecurityprofile"); + } + } + + /// + /// N:1 userentityinstancedata_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goal")] + public Xrm.Framework.CI.Common.Entities.Goal userentityinstancedata_goal + { + get + { + return this.GetRelatedEntity("userentityinstancedata_goal", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goal"); + this.SetRelatedEntity("userentityinstancedata_goal", null, value); + this.OnPropertyChanged("userentityinstancedata_goal"); + } + } + + /// + /// N:1 userentityinstancedata_goalrollupquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goalrollupquery")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery userentityinstancedata_goalrollupquery + { + get + { + return this.GetRelatedEntity("userentityinstancedata_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goalrollupquery"); + this.SetRelatedEntity("userentityinstancedata_goalrollupquery", null, value); + this.OnPropertyChanged("userentityinstancedata_goalrollupquery"); + } + } + + /// + /// N:1 userentityinstancedata_import + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_import")] + public Xrm.Framework.CI.Common.Entities.Import userentityinstancedata_import + { + get + { + return this.GetRelatedEntity("userentityinstancedata_import", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_import"); + this.SetRelatedEntity("userentityinstancedata_import", null, value); + this.OnPropertyChanged("userentityinstancedata_import"); + } + } + + /// + /// N:1 userentityinstancedata_importentitymapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importentitymapping")] + public Xrm.Framework.CI.Common.Entities.ImportEntityMapping userentityinstancedata_importentitymapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importentitymapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importentitymapping"); + this.SetRelatedEntity("userentityinstancedata_importentitymapping", null, value); + this.OnPropertyChanged("userentityinstancedata_importentitymapping"); + } + } + + /// + /// N:1 userentityinstancedata_importfile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importfile")] + public Xrm.Framework.CI.Common.Entities.ImportFile userentityinstancedata_importfile + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importfile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importfile"); + this.SetRelatedEntity("userentityinstancedata_importfile", null, value); + this.OnPropertyChanged("userentityinstancedata_importfile"); + } + } + + /// + /// N:1 userentityinstancedata_importjob + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importjob")] + public Xrm.Framework.CI.Common.Entities.ImportJob userentityinstancedata_importjob + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importjob", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importjob"); + this.SetRelatedEntity("userentityinstancedata_importjob", null, value); + this.OnPropertyChanged("userentityinstancedata_importjob"); + } + } + + /// + /// N:1 userentityinstancedata_importlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importlog")] + public Xrm.Framework.CI.Common.Entities.ImportLog userentityinstancedata_importlog + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importlog"); + this.SetRelatedEntity("userentityinstancedata_importlog", null, value); + this.OnPropertyChanged("userentityinstancedata_importlog"); + } + } + + /// + /// N:1 userentityinstancedata_importmap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importmap")] + public Xrm.Framework.CI.Common.Entities.ImportMap userentityinstancedata_importmap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importmap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importmap"); + this.SetRelatedEntity("userentityinstancedata_importmap", null, value); + this.OnPropertyChanged("userentityinstancedata_importmap"); + } + } + + /// + /// N:1 userentityinstancedata_incident + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incident")] + public Xrm.Framework.CI.Common.Entities.Incident userentityinstancedata_incident + { + get + { + return this.GetRelatedEntity("userentityinstancedata_incident", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incident"); + this.SetRelatedEntity("userentityinstancedata_incident", null, value); + this.OnPropertyChanged("userentityinstancedata_incident"); + } + } + + /// + /// N:1 userentityinstancedata_incidentresolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incidentresolution")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution userentityinstancedata_incidentresolution + { + get + { + return this.GetRelatedEntity("userentityinstancedata_incidentresolution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incidentresolution"); + this.SetRelatedEntity("userentityinstancedata_incidentresolution", null, value); + this.OnPropertyChanged("userentityinstancedata_incidentresolution"); + } + } + + /// + /// N:1 userentityinstancedata_invaliddependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invaliddependency")] + public Xrm.Framework.CI.Common.Entities.InvalidDependency userentityinstancedata_invaliddependency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_invaliddependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invaliddependency"); + this.SetRelatedEntity("userentityinstancedata_invaliddependency", null, value); + this.OnPropertyChanged("userentityinstancedata_invaliddependency"); + } + } + + /// + /// N:1 userentityinstancedata_invoice + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoice")] + public Xrm.Framework.CI.Common.Entities.Invoice userentityinstancedata_invoice + { + get + { + return this.GetRelatedEntity("userentityinstancedata_invoice", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoice"); + this.SetRelatedEntity("userentityinstancedata_invoice", null, value); + this.OnPropertyChanged("userentityinstancedata_invoice"); + } + } + + /// + /// N:1 userentityinstancedata_invoicedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoicedetail")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail userentityinstancedata_invoicedetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_invoicedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoicedetail"); + this.SetRelatedEntity("userentityinstancedata_invoicedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_invoicedetail"); + } + } + + /// + /// N:1 userentityinstancedata_isvconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_isvconfig")] + public Xrm.Framework.CI.Common.Entities.IsvConfig userentityinstancedata_isvconfig + { + get + { + return this.GetRelatedEntity("userentityinstancedata_isvconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_isvconfig"); + this.SetRelatedEntity("userentityinstancedata_isvconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_isvconfig"); + } + } + + /// + /// N:1 userentityinstancedata_kbarticle + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticle")] + public Xrm.Framework.CI.Common.Entities.KbArticle userentityinstancedata_kbarticle + { + get + { + return this.GetRelatedEntity("userentityinstancedata_kbarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticle"); + this.SetRelatedEntity("userentityinstancedata_kbarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticle"); + } + } + + /// + /// N:1 userentityinstancedata_kbarticlecomment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticlecomment")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment userentityinstancedata_kbarticlecomment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_kbarticlecomment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticlecomment"); + this.SetRelatedEntity("userentityinstancedata_kbarticlecomment", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticlecomment"); + } + } + + /// + /// N:1 userentityinstancedata_kbarticletemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticletemplate")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate userentityinstancedata_kbarticletemplate + { + get + { + return this.GetRelatedEntity("userentityinstancedata_kbarticletemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticletemplate"); + this.SetRelatedEntity("userentityinstancedata_kbarticletemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticletemplate"); + } + } + + /// + /// N:1 userentityinstancedata_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lead")] + public Xrm.Framework.CI.Common.Entities.Lead userentityinstancedata_lead + { + get + { + return this.GetRelatedEntity("userentityinstancedata_lead", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lead"); + this.SetRelatedEntity("userentityinstancedata_lead", null, value); + this.OnPropertyChanged("userentityinstancedata_lead"); + } + } + + /// + /// N:1 userentityinstancedata_leadaddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadaddress")] + public Xrm.Framework.CI.Common.Entities.LeadAddress userentityinstancedata_leadaddress + { + get + { + return this.GetRelatedEntity("userentityinstancedata_leadaddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadaddress"); + this.SetRelatedEntity("userentityinstancedata_leadaddress", null, value); + this.OnPropertyChanged("userentityinstancedata_leadaddress"); + } + } + + /// + /// N:1 userentityinstancedata_leadproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadproduct")] + public Xrm.Framework.CI.Common.Entities.LeadProduct userentityinstancedata_leadproduct + { + get + { + return this.GetRelatedEntity("userentityinstancedata_leadproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadproduct"); + this.SetRelatedEntity("userentityinstancedata_leadproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_leadproduct"); + } + } + + /// + /// N:1 userentityinstancedata_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_letter")] + public Xrm.Framework.CI.Common.Entities.Letter userentityinstancedata_letter + { + get + { + return this.GetRelatedEntity("userentityinstancedata_letter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_letter"); + this.SetRelatedEntity("userentityinstancedata_letter", null, value); + this.OnPropertyChanged("userentityinstancedata_letter"); + } + } + + /// + /// N:1 userentityinstancedata_license + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_license")] + public Xrm.Framework.CI.Common.Entities.License userentityinstancedata_license + { + get + { + return this.GetRelatedEntity("userentityinstancedata_license", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_license"); + this.SetRelatedEntity("userentityinstancedata_license", null, value); + this.OnPropertyChanged("userentityinstancedata_license"); + } + } + + /// + /// N:1 userentityinstancedata_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_list")] + public Xrm.Framework.CI.Common.Entities.List userentityinstancedata_list + { + get + { + return this.GetRelatedEntity("userentityinstancedata_list", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_list"); + this.SetRelatedEntity("userentityinstancedata_list", null, value); + this.OnPropertyChanged("userentityinstancedata_list"); + } + } + + /// + /// N:1 userentityinstancedata_listmember + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_listmember")] + public Xrm.Framework.CI.Common.Entities.ListMember userentityinstancedata_listmember + { + get + { + return this.GetRelatedEntity("userentityinstancedata_listmember", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_listmember"); + this.SetRelatedEntity("userentityinstancedata_listmember", null, value); + this.OnPropertyChanged("userentityinstancedata_listmember"); + } + } + + /// + /// N:1 userentityinstancedata_lookupmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lookupmapping")] + public Xrm.Framework.CI.Common.Entities.LookUpMapping userentityinstancedata_lookupmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_lookupmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lookupmapping"); + this.SetRelatedEntity("userentityinstancedata_lookupmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_lookupmapping"); + } + } + + /// + /// N:1 userentityinstancedata_mailmergetemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_mailmergetemplate")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate userentityinstancedata_mailmergetemplate + { + get + { + return this.GetRelatedEntity("userentityinstancedata_mailmergetemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_mailmergetemplate"); + this.SetRelatedEntity("userentityinstancedata_mailmergetemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_mailmergetemplate"); + } + } + + /// + /// N:1 userentityinstancedata_metric + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_metric")] + public Xrm.Framework.CI.Common.Entities.Metric userentityinstancedata_metric + { + get + { + return this.GetRelatedEntity("userentityinstancedata_metric", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_metric"); + this.SetRelatedEntity("userentityinstancedata_metric", null, value); + this.OnPropertyChanged("userentityinstancedata_metric"); + } + } + + /// + /// N:1 userentityinstancedata_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunity")] + public Xrm.Framework.CI.Common.Entities.Opportunity userentityinstancedata_opportunity + { + get + { + return this.GetRelatedEntity("userentityinstancedata_opportunity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunity"); + this.SetRelatedEntity("userentityinstancedata_opportunity", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunity"); + } + } + + /// + /// N:1 userentityinstancedata_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose userentityinstancedata_opportunityclose + { + get + { + return this.GetRelatedEntity("userentityinstancedata_opportunityclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityclose"); + this.SetRelatedEntity("userentityinstancedata_opportunityclose", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityclose"); + } + } + + /// + /// N:1 userentityinstancedata_opportunityproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityproduct")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct userentityinstancedata_opportunityproduct + { + get + { + return this.GetRelatedEntity("userentityinstancedata_opportunityproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityproduct"); + this.SetRelatedEntity("userentityinstancedata_opportunityproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityproduct"); + } + } + + /// + /// N:1 userentityinstancedata_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_orderclose")] + public Xrm.Framework.CI.Common.Entities.OrderClose userentityinstancedata_orderclose + { + get + { + return this.GetRelatedEntity("userentityinstancedata_orderclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_orderclose"); + this.SetRelatedEntity("userentityinstancedata_orderclose", null, value); + this.OnPropertyChanged("userentityinstancedata_orderclose"); + } + } + + /// + /// N:1 userentityinstancedata_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_organization")] + public Xrm.Framework.CI.Common.Entities.Organization userentityinstancedata_organization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_organization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_organization"); + this.SetRelatedEntity("userentityinstancedata_organization", null, value); + this.OnPropertyChanged("userentityinstancedata_organization"); + } + } + + /// + /// N:1 userentityinstancedata_ownermapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ownermapping")] + public Xrm.Framework.CI.Common.Entities.OwnerMapping userentityinstancedata_ownermapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_ownermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ownermapping"); + this.SetRelatedEntity("userentityinstancedata_ownermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_ownermapping"); + } + } + + /// + /// N:1 userentityinstancedata_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser userentityinstancedata_owning_user + { + get + { + return this.GetRelatedEntity("userentityinstancedata_owning_user", null); + } + } + + /// + /// N:1 userentityinstancedata_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_phonecall")] + public Xrm.Framework.CI.Common.Entities.PhoneCall userentityinstancedata_phonecall + { + get + { + return this.GetRelatedEntity("userentityinstancedata_phonecall", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_phonecall"); + this.SetRelatedEntity("userentityinstancedata_phonecall", null, value); + this.OnPropertyChanged("userentityinstancedata_phonecall"); + } + } + + /// + /// N:1 userentityinstancedata_picklistmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_picklistmapping")] + public Xrm.Framework.CI.Common.Entities.PickListMapping userentityinstancedata_picklistmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_picklistmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_picklistmapping"); + this.SetRelatedEntity("userentityinstancedata_picklistmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_picklistmapping"); + } + } + + /// + /// N:1 userentityinstancedata_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.PluginAssembly userentityinstancedata_pluginassembly + { + get + { + return this.GetRelatedEntity("userentityinstancedata_pluginassembly", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pluginassembly"); + this.SetRelatedEntity("userentityinstancedata_pluginassembly", null, value); + this.OnPropertyChanged("userentityinstancedata_pluginassembly"); + } + } + + /// + /// N:1 userentityinstancedata_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintype")] + public Xrm.Framework.CI.Common.Entities.PluginType userentityinstancedata_plugintype + { + get + { + return this.GetRelatedEntity("userentityinstancedata_plugintype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintype"); + this.SetRelatedEntity("userentityinstancedata_plugintype", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintype"); + } + } + + /// + /// N:1 userentityinstancedata_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.PluginTypeStatistic userentityinstancedata_plugintypestatistic + { + get + { + return this.GetRelatedEntity("userentityinstancedata_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintypestatistic"); + this.SetRelatedEntity("userentityinstancedata_plugintypestatistic", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintypestatistic"); + } + } + + /// + /// N:1 userentityinstancedata_pricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pricelevel")] + public Xrm.Framework.CI.Common.Entities.PriceLevel userentityinstancedata_pricelevel + { + get + { + return this.GetRelatedEntity("userentityinstancedata_pricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pricelevel"); + this.SetRelatedEntity("userentityinstancedata_pricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_pricelevel"); + } + } + + /// + /// N:1 userentityinstancedata_principalentitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalentitymap")] + public Xrm.Framework.CI.Common.Entities.PrincipalEntityMap userentityinstancedata_principalentitymap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_principalentitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalentitymap"); + this.SetRelatedEntity("userentityinstancedata_principalentitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_principalentitymap"); + } + } + + /// + /// N:1 userentityinstancedata_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.PrincipalObjectAttributeAccess userentityinstancedata_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("userentityinstancedata_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalobjectattributeaccess"); + this.SetRelatedEntity("userentityinstancedata_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("userentityinstancedata_principalobjectattributeaccess"); + } + } + + /// + /// N:1 userentityinstancedata_privilege + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_privilege")] + public Xrm.Framework.CI.Common.Entities.Privilege userentityinstancedata_privilege + { + get + { + return this.GetRelatedEntity("userentityinstancedata_privilege", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_privilege"); + this.SetRelatedEntity("userentityinstancedata_privilege", null, value); + this.OnPropertyChanged("userentityinstancedata_privilege"); + } + } + + /// + /// N:1 userentityinstancedata_processsession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_processsession")] + public Xrm.Framework.CI.Common.Entities.ProcessSession userentityinstancedata_processsession + { + get + { + return this.GetRelatedEntity("userentityinstancedata_processsession", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_processsession"); + this.SetRelatedEntity("userentityinstancedata_processsession", null, value); + this.OnPropertyChanged("userentityinstancedata_processsession"); + } + } + + /// + /// N:1 userentityinstancedata_product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_product")] + public Xrm.Framework.CI.Common.Entities.Product userentityinstancedata_product + { + get + { + return this.GetRelatedEntity("userentityinstancedata_product", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_product"); + this.SetRelatedEntity("userentityinstancedata_product", null, value); + this.OnPropertyChanged("userentityinstancedata_product"); + } + } + + /// + /// N:1 userentityinstancedata_productassociation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productassociation")] + public Xrm.Framework.CI.Common.Entities.ProductAssociation userentityinstancedata_productassociation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productassociation"); + this.SetRelatedEntity("userentityinstancedata_productassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_productassociation"); + } + } + + /// + /// N:1 userentityinstancedata_productpricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productpricelevel")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel userentityinstancedata_productpricelevel + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productpricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productpricelevel"); + this.SetRelatedEntity("userentityinstancedata_productpricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_productpricelevel"); + } + } + + /// + /// N:1 userentityinstancedata_productsalesliterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsalesliterature")] + public Xrm.Framework.CI.Common.Entities.ProductSalesLiterature userentityinstancedata_productsalesliterature + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsalesliterature"); + this.SetRelatedEntity("userentityinstancedata_productsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_productsalesliterature"); + } + } + + /// + /// N:1 userentityinstancedata_productsubstitute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsubstitute")] + public Xrm.Framework.CI.Common.Entities.ProductSubstitute userentityinstancedata_productsubstitute + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productsubstitute", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsubstitute"); + this.SetRelatedEntity("userentityinstancedata_productsubstitute", null, value); + this.OnPropertyChanged("userentityinstancedata_productsubstitute"); + } + } + + /// + /// N:1 userentityinstancedata_publisher + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisher")] + public Xrm.Framework.CI.Common.Entities.Publisher userentityinstancedata_publisher + { + get + { + return this.GetRelatedEntity("userentityinstancedata_publisher", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisher"); + this.SetRelatedEntity("userentityinstancedata_publisher", null, value); + this.OnPropertyChanged("userentityinstancedata_publisher"); + } + } + + /// + /// N:1 userentityinstancedata_publisheraddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisheraddress")] + public Xrm.Framework.CI.Common.Entities.PublisherAddress userentityinstancedata_publisheraddress + { + get + { + return this.GetRelatedEntity("userentityinstancedata_publisheraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisheraddress"); + this.SetRelatedEntity("userentityinstancedata_publisheraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_publisheraddress"); + } + } + + /// + /// N:1 userentityinstancedata_queue + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queue")] + public Xrm.Framework.CI.Common.Entities.Queue userentityinstancedata_queue + { + get + { + return this.GetRelatedEntity("userentityinstancedata_queue", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queue"); + this.SetRelatedEntity("userentityinstancedata_queue", null, value); + this.OnPropertyChanged("userentityinstancedata_queue"); + } + } + + /// + /// N:1 userentityinstancedata_queueitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queueitem")] + public Xrm.Framework.CI.Common.Entities.QueueItem userentityinstancedata_queueitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_queueitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queueitem"); + this.SetRelatedEntity("userentityinstancedata_queueitem", null, value); + this.OnPropertyChanged("userentityinstancedata_queueitem"); + } + } + + /// + /// N:1 userentityinstancedata_quote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quote")] + public Xrm.Framework.CI.Common.Entities.Quote userentityinstancedata_quote + { + get + { + return this.GetRelatedEntity("userentityinstancedata_quote", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quote"); + this.SetRelatedEntity("userentityinstancedata_quote", null, value); + this.OnPropertyChanged("userentityinstancedata_quote"); + } + } + + /// + /// N:1 userentityinstancedata_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quoteclose")] + public Xrm.Framework.CI.Common.Entities.QuoteClose userentityinstancedata_quoteclose + { + get + { + return this.GetRelatedEntity("userentityinstancedata_quoteclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quoteclose"); + this.SetRelatedEntity("userentityinstancedata_quoteclose", null, value); + this.OnPropertyChanged("userentityinstancedata_quoteclose"); + } + } + + /// + /// N:1 userentityinstancedata_quotedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quotedetail")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail userentityinstancedata_quotedetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_quotedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quotedetail"); + this.SetRelatedEntity("userentityinstancedata_quotedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_quotedetail"); + } + } + + /// + /// N:1 userentityinstancedata_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster userentityinstancedata_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("userentityinstancedata_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_recurringappointmentmaster"); + this.SetRelatedEntity("userentityinstancedata_recurringappointmentmaster", null, value); + this.OnPropertyChanged("userentityinstancedata_recurringappointmentmaster"); + } + } + + /// + /// N:1 userentityinstancedata_relationshiprole + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprole")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole userentityinstancedata_relationshiprole + { + get + { + return this.GetRelatedEntity("userentityinstancedata_relationshiprole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprole"); + this.SetRelatedEntity("userentityinstancedata_relationshiprole", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprole"); + } + } + + /// + /// N:1 userentityinstancedata_relationshiprolemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprolemap")] + public Xrm.Framework.CI.Common.Entities.RelationshipRoleMap userentityinstancedata_relationshiprolemap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_relationshiprolemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprolemap"); + this.SetRelatedEntity("userentityinstancedata_relationshiprolemap", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprolemap"); + } + } + + /// + /// N:1 userentityinstancedata_report + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_report")] + public Xrm.Framework.CI.Common.Entities.Report userentityinstancedata_report + { + get + { + return this.GetRelatedEntity("userentityinstancedata_report", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_report"); + this.SetRelatedEntity("userentityinstancedata_report", null, value); + this.OnPropertyChanged("userentityinstancedata_report"); + } + } + + /// + /// N:1 userentityinstancedata_reportcategory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportcategory")] + public Xrm.Framework.CI.Common.Entities.ReportCategory userentityinstancedata_reportcategory + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportcategory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportcategory"); + this.SetRelatedEntity("userentityinstancedata_reportcategory", null, value); + this.OnPropertyChanged("userentityinstancedata_reportcategory"); + } + } + + /// + /// N:1 userentityinstancedata_reportentity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportentity")] + public Xrm.Framework.CI.Common.Entities.ReportEntity userentityinstancedata_reportentity + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportentity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportentity"); + this.SetRelatedEntity("userentityinstancedata_reportentity", null, value); + this.OnPropertyChanged("userentityinstancedata_reportentity"); + } + } + + /// + /// N:1 userentityinstancedata_reportlink + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportlink")] + public Xrm.Framework.CI.Common.Entities.ReportLink userentityinstancedata_reportlink + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportlink", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportlink"); + this.SetRelatedEntity("userentityinstancedata_reportlink", null, value); + this.OnPropertyChanged("userentityinstancedata_reportlink"); + } + } + + /// + /// N:1 userentityinstancedata_reportvisibility + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportvisibility")] + public Xrm.Framework.CI.Common.Entities.ReportVisibility userentityinstancedata_reportvisibility + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportvisibility", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportvisibility"); + this.SetRelatedEntity("userentityinstancedata_reportvisibility", null, value); + this.OnPropertyChanged("userentityinstancedata_reportvisibility"); + } + } + + /// + /// N:1 userentityinstancedata_resource + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resource")] + public Xrm.Framework.CI.Common.Entities.Resource userentityinstancedata_resource + { + get + { + return this.GetRelatedEntity("userentityinstancedata_resource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resource"); + this.SetRelatedEntity("userentityinstancedata_resource", null, value); + this.OnPropertyChanged("userentityinstancedata_resource"); + } + } + + /// + /// N:1 userentityinstancedata_resourcegroup + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcegroup")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup userentityinstancedata_resourcegroup + { + get + { + return this.GetRelatedEntity("userentityinstancedata_resourcegroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcegroup"); + this.SetRelatedEntity("userentityinstancedata_resourcegroup", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcegroup"); + } + } + + /// + /// N:1 userentityinstancedata_resourcespec + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcespec")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec userentityinstancedata_resourcespec + { + get + { + return this.GetRelatedEntity("userentityinstancedata_resourcespec", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcespec"); + this.SetRelatedEntity("userentityinstancedata_resourcespec", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcespec"); + } + } + + /// + /// N:1 userentityinstancedata_ribboncustomization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ribboncustomization")] + public Xrm.Framework.CI.Common.Entities.RibbonCustomization userentityinstancedata_ribboncustomization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_ribboncustomization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ribboncustomization"); + this.SetRelatedEntity("userentityinstancedata_ribboncustomization", null, value); + this.OnPropertyChanged("userentityinstancedata_ribboncustomization"); + } + } + + /// + /// N:1 userentityinstancedata_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_role")] + public Xrm.Framework.CI.Common.Entities.Role userentityinstancedata_role + { + get + { + return this.GetRelatedEntity("userentityinstancedata_role", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_role"); + this.SetRelatedEntity("userentityinstancedata_role", null, value); + this.OnPropertyChanged("userentityinstancedata_role"); + } + } + + /// + /// N:1 userentityinstancedata_rollupfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_rollupfield")] + public Xrm.Framework.CI.Common.Entities.RollupField userentityinstancedata_rollupfield + { + get + { + return this.GetRelatedEntity("userentityinstancedata_rollupfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_rollupfield"); + this.SetRelatedEntity("userentityinstancedata_rollupfield", null, value); + this.OnPropertyChanged("userentityinstancedata_rollupfield"); + } + } + + /// + /// N:1 userentityinstancedata_salesliterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliterature")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature userentityinstancedata_salesliterature + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliterature"); + this.SetRelatedEntity("userentityinstancedata_salesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliterature"); + } + } + + /// + /// N:1 userentityinstancedata_salesliteratureitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliteratureitem")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem userentityinstancedata_salesliteratureitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesliteratureitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliteratureitem"); + this.SetRelatedEntity("userentityinstancedata_salesliteratureitem", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliteratureitem"); + } + } + + /// + /// N:1 userentityinstancedata_salesorder + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorder")] + public Xrm.Framework.CI.Common.Entities.SalesOrder userentityinstancedata_salesorder + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesorder", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorder"); + this.SetRelatedEntity("userentityinstancedata_salesorder", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorder"); + } + } + + /// + /// N:1 userentityinstancedata_salesorderdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorderdetail")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail userentityinstancedata_salesorderdetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorderdetail"); + this.SetRelatedEntity("userentityinstancedata_salesorderdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorderdetail"); + } + } + + /// + /// N:1 userentityinstancedata_savedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedquery")] + public Xrm.Framework.CI.Common.Entities.SavedQuery userentityinstancedata_savedquery + { + get + { + return this.GetRelatedEntity("userentityinstancedata_savedquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedquery"); + this.SetRelatedEntity("userentityinstancedata_savedquery", null, value); + this.OnPropertyChanged("userentityinstancedata_savedquery"); + } + } + + /// + /// N:1 userentityinstancedata_savedqueryvisualization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedqueryvisualization")] + public Xrm.Framework.CI.Common.Entities.SavedQueryVisualization userentityinstancedata_savedqueryvisualization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_savedqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedqueryvisualization"); + this.SetRelatedEntity("userentityinstancedata_savedqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_savedqueryvisualization"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.SdkMessage userentityinstancedata_sdkmessage + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessage"); + this.SetRelatedEntity("userentityinstancedata_sdkmessage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessage"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SdkMessageFilter userentityinstancedata_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagefilter"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagefilter", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagefilter"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SdkMessagePair userentityinstancedata_sdkmessagepair + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagepair"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagepair", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagepair"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStep userentityinstancedata_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstep"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepImage userentityinstancedata_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepimage"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepimage"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepSecureConfig userentityinstancedata_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequest userentityinstancedata_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequest"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagerequest", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequest"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequestField userentityinstancedata_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequestfield"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequestfield"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SdkMessageResponse userentityinstancedata_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponse"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponse"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageResponseField userentityinstancedata_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponsefield"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponsefield"); + } + } + + /// + /// N:1 userentityinstancedata_service + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_service")] + public Xrm.Framework.CI.Common.Entities.Service userentityinstancedata_service + { + get + { + return this.GetRelatedEntity("userentityinstancedata_service", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_service"); + this.SetRelatedEntity("userentityinstancedata_service", null, value); + this.OnPropertyChanged("userentityinstancedata_service"); + } + } + + /// + /// N:1 userentityinstancedata_serviceappointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceappointment")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment userentityinstancedata_serviceappointment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_serviceappointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceappointment"); + this.SetRelatedEntity("userentityinstancedata_serviceappointment", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceappointment"); + } + } + + /// + /// N:1 userentityinstancedata_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.ServiceEndpoint userentityinstancedata_serviceendpoint + { + get + { + return this.GetRelatedEntity("userentityinstancedata_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceendpoint"); + this.SetRelatedEntity("userentityinstancedata_serviceendpoint", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceendpoint"); + } + } + + /// + /// N:1 userentityinstancedata_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation userentityinstancedata_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointdocumentlocation"); + this.SetRelatedEntity("userentityinstancedata_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointdocumentlocation"); + } + } + + /// + /// N:1 userentityinstancedata_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.SharePointSite userentityinstancedata_sharepointsite + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sharepointsite", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointsite"); + this.SetRelatedEntity("userentityinstancedata_sharepointsite", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointsite"); + } + } + + /// + /// N:1 userentityinstancedata_site + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_site")] + public Xrm.Framework.CI.Common.Entities.Site userentityinstancedata_site + { + get + { + return this.GetRelatedEntity("userentityinstancedata_site", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_site"); + this.SetRelatedEntity("userentityinstancedata_site", null, value); + this.OnPropertyChanged("userentityinstancedata_site"); + } + } + + /// + /// N:1 userentityinstancedata_sitemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sitemap")] + public Xrm.Framework.CI.Common.Entities.SiteMap userentityinstancedata_sitemap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sitemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sitemap"); + this.SetRelatedEntity("userentityinstancedata_sitemap", null, value); + this.OnPropertyChanged("userentityinstancedata_sitemap"); + } + } + + /// + /// N:1 userentityinstancedata_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solution")] + public Xrm.Framework.CI.Common.Entities.Solution userentityinstancedata_solution + { + get + { + return this.GetRelatedEntity("userentityinstancedata_solution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solution"); + this.SetRelatedEntity("userentityinstancedata_solution", null, value); + this.OnPropertyChanged("userentityinstancedata_solution"); + } + } + + /// + /// N:1 userentityinstancedata_solutioncomponent + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solutioncomponent")] + public Xrm.Framework.CI.Common.Entities.SolutionComponent userentityinstancedata_solutioncomponent + { + get + { + return this.GetRelatedEntity("userentityinstancedata_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solutioncomponent"); + this.SetRelatedEntity("userentityinstancedata_solutioncomponent", null, value); + this.OnPropertyChanged("userentityinstancedata_solutioncomponent"); + } + } + + /// + /// N:1 userentityinstancedata_subject + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subject")] + public Xrm.Framework.CI.Common.Entities.Subject userentityinstancedata_subject + { + get + { + return this.GetRelatedEntity("userentityinstancedata_subject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subject"); + this.SetRelatedEntity("userentityinstancedata_subject", null, value); + this.OnPropertyChanged("userentityinstancedata_subject"); + } + } + + /// + /// N:1 userentityinstancedata_subscriptionmanuallytrackedobject + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subscriptionmanuallytrackedobject")] + public Xrm.Framework.CI.Common.Entities.SubscriptionManuallyTrackedObject userentityinstancedata_subscriptionmanuallytrackedobject + { + get + { + return this.GetRelatedEntity("userentityinstancedata_subscriptionmanuallytrackedobject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subscriptionmanuallytrackedobject"); + this.SetRelatedEntity("userentityinstancedata_subscriptionmanuallytrackedobject", null, value); + this.OnPropertyChanged("userentityinstancedata_subscriptionmanuallytrackedobject"); + } + } + + /// + /// N:1 userentityinstancedata_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser userentityinstancedata_systemuser + { + get + { + return this.GetRelatedEntity("userentityinstancedata_systemuser", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_systemuser"); + this.SetRelatedEntity("userentityinstancedata_systemuser", null, value); + this.OnPropertyChanged("userentityinstancedata_systemuser"); + } + } + + /// + /// N:1 userentityinstancedata_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_task")] + public Xrm.Framework.CI.Common.Entities.Task userentityinstancedata_task + { + get + { + return this.GetRelatedEntity("userentityinstancedata_task", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_task"); + this.SetRelatedEntity("userentityinstancedata_task", null, value); + this.OnPropertyChanged("userentityinstancedata_task"); + } + } + + /// + /// N:1 userentityinstancedata_team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_team")] + public Xrm.Framework.CI.Common.Entities.Team userentityinstancedata_team + { + get + { + return this.GetRelatedEntity("userentityinstancedata_team", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_team"); + this.SetRelatedEntity("userentityinstancedata_team", null, value); + this.OnPropertyChanged("userentityinstancedata_team"); + } + } + + /// + /// N:1 userentityinstancedata_teammembership + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_teammembership")] + public Xrm.Framework.CI.Common.Entities.TeamMembership userentityinstancedata_teammembership + { + get + { + return this.GetRelatedEntity("userentityinstancedata_teammembership", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_teammembership"); + this.SetRelatedEntity("userentityinstancedata_teammembership", null, value); + this.OnPropertyChanged("userentityinstancedata_teammembership"); + } + } + + /// + /// N:1 userentityinstancedata_template + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_template")] + public Xrm.Framework.CI.Common.Entities.Template userentityinstancedata_template + { + get + { + return this.GetRelatedEntity("userentityinstancedata_template", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_template"); + this.SetRelatedEntity("userentityinstancedata_template", null, value); + this.OnPropertyChanged("userentityinstancedata_template"); + } + } + + /// + /// N:1 userentityinstancedata_territory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_territory")] + public Xrm.Framework.CI.Common.Entities.Territory userentityinstancedata_territory + { + get + { + return this.GetRelatedEntity("userentityinstancedata_territory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_territory"); + this.SetRelatedEntity("userentityinstancedata_territory", null, value); + this.OnPropertyChanged("userentityinstancedata_territory"); + } + } + + /// + /// N:1 userentityinstancedata_timezonedefinition + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonedefinition")] + public Xrm.Framework.CI.Common.Entities.TimeZoneDefinition userentityinstancedata_timezonedefinition + { + get + { + return this.GetRelatedEntity("userentityinstancedata_timezonedefinition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonedefinition"); + this.SetRelatedEntity("userentityinstancedata_timezonedefinition", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonedefinition"); + } + } + + /// + /// N:1 userentityinstancedata_timezonelocalizedname + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonelocalizedname")] + public Xrm.Framework.CI.Common.Entities.TimeZoneLocalizedName userentityinstancedata_timezonelocalizedname + { + get + { + return this.GetRelatedEntity("userentityinstancedata_timezonelocalizedname", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonelocalizedname"); + this.SetRelatedEntity("userentityinstancedata_timezonelocalizedname", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonelocalizedname"); + } + } + + /// + /// N:1 userentityinstancedata_timezonerule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonerule")] + public Xrm.Framework.CI.Common.Entities.TimeZoneRule userentityinstancedata_timezonerule + { + get + { + return this.GetRelatedEntity("userentityinstancedata_timezonerule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonerule"); + this.SetRelatedEntity("userentityinstancedata_timezonerule", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonerule"); + } + } + + /// + /// N:1 userentityinstancedata_transactioncurrency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transactioncurrency")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency userentityinstancedata_transactioncurrency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_transactioncurrency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transactioncurrency"); + this.SetRelatedEntity("userentityinstancedata_transactioncurrency", null, value); + this.OnPropertyChanged("userentityinstancedata_transactioncurrency"); + } + } + + /// + /// N:1 userentityinstancedata_transformationmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationmapping")] + public Xrm.Framework.CI.Common.Entities.TransformationMapping userentityinstancedata_transformationmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_transformationmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationmapping"); + this.SetRelatedEntity("userentityinstancedata_transformationmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationmapping"); + } + } + + /// + /// N:1 userentityinstancedata_transformationparametermapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationparametermapping")] + public Xrm.Framework.CI.Common.Entities.TransformationParameterMapping userentityinstancedata_transformationparametermapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_transformationparametermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationparametermapping"); + this.SetRelatedEntity("userentityinstancedata_transformationparametermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationparametermapping"); + } + } + + /// + /// N:1 userentityinstancedata_uom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uom")] + public Xrm.Framework.CI.Common.Entities.UoM userentityinstancedata_uom + { + get + { + return this.GetRelatedEntity("userentityinstancedata_uom", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uom"); + this.SetRelatedEntity("userentityinstancedata_uom", null, value); + this.OnPropertyChanged("userentityinstancedata_uom"); + } + } + + /// + /// N:1 userentityinstancedata_uomschedule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uomschedule")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule userentityinstancedata_uomschedule + { + get + { + return this.GetRelatedEntity("userentityinstancedata_uomschedule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uomschedule"); + this.SetRelatedEntity("userentityinstancedata_uomschedule", null, value); + this.OnPropertyChanged("userentityinstancedata_uomschedule"); + } + } + + /// + /// N:1 userentityinstancedata_userentityuisettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userentityuisettings")] + public Xrm.Framework.CI.Common.Entities.UserEntityUISettings userentityinstancedata_userentityuisettings + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userentityuisettings", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userentityuisettings"); + this.SetRelatedEntity("userentityinstancedata_userentityuisettings", null, value); + this.OnPropertyChanged("userentityinstancedata_userentityuisettings"); + } + } + + /// + /// N:1 userentityinstancedata_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userform")] + public Xrm.Framework.CI.Common.Entities.UserForm userentityinstancedata_userform + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userform", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userform"); + this.SetRelatedEntity("userentityinstancedata_userform", null, value); + this.OnPropertyChanged("userentityinstancedata_userform"); + } + } + + /// + /// N:1 userentityinstancedata_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userquery")] + public Xrm.Framework.CI.Common.Entities.UserQuery userentityinstancedata_userquery + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userquery"); + this.SetRelatedEntity("userentityinstancedata_userquery", null, value); + this.OnPropertyChanged("userentityinstancedata_userquery"); + } + } + + /// + /// N:1 userentityinstancedata_userqueryvisualization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userqueryvisualization")] + public Xrm.Framework.CI.Common.Entities.UserQueryVisualization userentityinstancedata_userqueryvisualization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userqueryvisualization"); + this.SetRelatedEntity("userentityinstancedata_userqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_userqueryvisualization"); + } + } + + /// + /// N:1 userentityinstancedata_webresource + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_webresource")] + public Xrm.Framework.CI.Common.Entities.WebResource userentityinstancedata_webresource + { + get + { + return this.GetRelatedEntity("userentityinstancedata_webresource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_webresource"); + this.SetRelatedEntity("userentityinstancedata_webresource", null, value); + this.OnPropertyChanged("userentityinstancedata_webresource"); + } + } + + /// + /// N:1 userentityinstancedata_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflow")] + public Xrm.Framework.CI.Common.Entities.Workflow userentityinstancedata_workflow + { + get + { + return this.GetRelatedEntity("userentityinstancedata_workflow", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflow"); + this.SetRelatedEntity("userentityinstancedata_workflow", null, value); + this.OnPropertyChanged("userentityinstancedata_workflow"); + } + } + + /// + /// N:1 userentityinstancedata_workflowdependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowdependency")] + public Xrm.Framework.CI.Common.Entities.WorkflowDependency userentityinstancedata_workflowdependency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_workflowdependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowdependency"); + this.SetRelatedEntity("userentityinstancedata_workflowdependency", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowdependency"); + } + } + + /// + /// N:1 userentityinstancedata_workflowlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowlog")] + public Xrm.Framework.CI.Common.Entities.WorkflowLog userentityinstancedata_workflowlog + { + get + { + return this.GetRelatedEntity("userentityinstancedata_workflowlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowlog"); + this.SetRelatedEntity("userentityinstancedata_workflowlog", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowlog"); + } + } + } + + /// + /// Stores user settings for entity views. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userentityuisettings")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserEntityUISettings : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserEntityUISettings() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userentityuisettings"; + + public const int EntityTypeCode = 2500; + + 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)); + } + } + + /// + /// Describes which entities are most recently inserted into email for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("insertintoemailmruxml")] + public string InsertIntoEmailMRUXml + { + get + { + return this.GetAttributeValue("insertintoemailmruxml"); + } + set + { + this.OnPropertyChanging("InsertIntoEmailMRUXml"); + this.SetAttributeValue("insertintoemailmruxml", value); + this.OnPropertyChanged("InsertIntoEmailMRUXml"); + } + } + + /// + /// Describes which forms are most recently viewed for this entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastviewedformxml")] + public string LastViewedFormXml + { + get + { + return this.GetAttributeValue("lastviewedformxml"); + } + set + { + this.OnPropertyChanging("LastViewedFormXml"); + this.SetAttributeValue("lastviewedformxml", value); + this.OnPropertyChanged("LastViewedFormXml"); + } + } + + /// + /// List of most recently used lookup references for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupmruxml")] + public string LookupMRUXml + { + get + { + return this.GetAttributeValue("lookupmruxml"); + } + set + { + this.OnPropertyChanging("LookupMRUXml"); + this.SetAttributeValue("lookupmruxml", value); + this.OnPropertyChanged("LookupMRUXml"); + } + } + + /// + /// Describes which tabs are most recently used for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mruxml")] + public string MRUXml + { + get + { + return this.GetAttributeValue("mruxml"); + } + set + { + this.OnPropertyChanging("MRUXml"); + this.SetAttributeValue("mruxml", value); + this.OnPropertyChanged("MRUXml"); + } + } + + /// + /// Object Type Code + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user or team who owns the settings. + /// + [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 this. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Describes the reading pane formatting of this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("readingpanexml")] + public string ReadingPaneXml + { + get + { + return this.GetAttributeValue("readingpanexml"); + } + set + { + this.OnPropertyChanging("ReadingPaneXml"); + this.SetAttributeValue("readingpanexml", value); + this.OnPropertyChanged("ReadingPaneXml"); + } + } + + /// + /// Describes which objects are most recently viewed for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recentlyviewedxml")] + public string RecentlyViewedXml + { + get + { + return this.GetAttributeValue("recentlyviewedxml"); + } + set + { + this.OnPropertyChanging("RecentlyViewedXml"); + this.SetAttributeValue("recentlyviewedxml", value); + this.OnPropertyChanged("RecentlyViewedXml"); + } + } + + /// + /// Determines whether a record type is exposed in the Outlook Address Book + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showinaddressbook")] + public System.Nullable ShowInAddressBook + { + get + { + return this.GetAttributeValue>("showinaddressbook"); + } + set + { + this.OnPropertyChanging("ShowInAddressBook"); + this.SetAttributeValue("showinaddressbook", value); + this.OnPropertyChanged("ShowInAddressBook"); + } + } + + /// + /// Describes the tab ordering for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("taborderxml")] + public string TabOrderXml + { + get + { + return this.GetAttributeValue("taborderxml"); + } + set + { + this.OnPropertyChanging("TabOrderXml"); + this.SetAttributeValue("taborderxml", value); + this.OnPropertyChanged("TabOrderXml"); + } + } + + /// + /// Unique identifier user entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityuisettingsid")] + public System.Nullable UserEntityUISettingsId + { + get + { + return this.GetAttributeValue>("userentityuisettingsid"); + } + set + { + this.OnPropertyChanging("UserEntityUISettingsId"); + this.SetAttributeValue("userentityuisettingsid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserEntityUISettingsId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityuisettingsid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserEntityUISettingsId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_userentityuisettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userentityuisettings")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userentityuisettings + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userentityuisettings", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userentityuisettings"); + this.SetRelatedEntities("userentityinstancedata_userentityuisettings", null, value); + this.OnPropertyChanged("userentityinstancedata_userentityuisettings"); + } + } + + /// + /// N:1 team_userentityuisettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityuisettings")] + public Xrm.Framework.CI.Common.Entities.Team team_userentityuisettings + { + get + { + return this.GetRelatedEntity("team_userentityuisettings", null); + } + } + + /// + /// N:1 userentityuisettings_businessunit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_businessunit")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit userentityuisettings_businessunit + { + get + { + return this.GetRelatedEntity("userentityuisettings_businessunit", null); + } + } + + /// + /// N:1 userentityuisettings_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser userentityuisettings_owning_user + { + get + { + return this.GetRelatedEntity("userentityuisettings_owning_user", null); + } + } + } + + /// + /// User-owned dashboards. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userform")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserForm : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserForm() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userform"; + + public const int EntityTypeCode = 1031; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the form or dashboard, such as the filter criteria or intended audience. + /// + [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 XML representation of the layout of the form or dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formxml")] + public string FormXml + { + get + { + return this.GetAttributeValue("formxml"); + } + set + { + this.OnPropertyChanging("FormXml"); + this.SetAttributeValue("formxml", value); + this.OnPropertyChanged("FormXml"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the form or dashboard. + /// + [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 record type (entity) code that the form applies to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the form type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// Unique identifier of the user dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userformid")] + public System.Nullable UserFormId + { + get + { + return this.GetAttributeValue>("userformid"); + } + set + { + this.OnPropertyChanging("UserFormId"); + this.SetAttributeValue("userformid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFormId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userformid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFormId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userform")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userform + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userform", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userform"); + this.SetRelatedEntities("userentityinstancedata_userform", null, value); + this.OnPropertyChanged("userentityinstancedata_userform"); + } + } + + /// + /// 1:N UserForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_AsyncOperations")] + public System.Collections.Generic.IEnumerable UserForm_AsyncOperations + { + get + { + return this.GetRelatedEntities("UserForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserForm_AsyncOperations"); + this.SetRelatedEntities("UserForm_AsyncOperations", null, value); + this.OnPropertyChanged("UserForm_AsyncOperations"); + } + } + + /// + /// 1:N UserForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UserForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UserForm_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UserForm_BulkDeleteFailures"); + this.SetRelatedEntities("UserForm_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UserForm_BulkDeleteFailures"); + } + } + + /// + /// N:1 business_unit_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userform")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_userform + { + get + { + return this.GetRelatedEntity("business_unit_userform", null); + } + } + + /// + /// N:1 lk_userform_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userform_createdby + { + get + { + return this.GetRelatedEntity("lk_userform_createdby", null); + } + } + + /// + /// N:1 lk_userform_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userform_modifiedby + { + get + { + return this.GetRelatedEntity("lk_userform_modifiedby", null); + } + } + + /// + /// N:1 lk_userformbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userformbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userformbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_userformbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userformbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userformbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userform")] + public Xrm.Framework.CI.Common.Entities.Team team_userform + { + get + { + return this.GetRelatedEntity("team_userform", null); + } + } + + /// + /// N:1 user_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userform")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_userform + { + get + { + return this.GetRelatedEntity("user_userform", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum UserQueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Saved database query that is owned by a user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserQuery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserQuery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userquery"; + + public const int EntityTypeCode = 4230; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type the column name that will be used to group the results from the data collected across multiple records from a user view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("advancedgroupby")] + public string AdvancedGroupBy + { + get + { + return this.GetAttributeValue("advancedgroupby"); + } + set + { + this.OnPropertyChanging("AdvancedGroupBy"); + this.SetAttributeValue("advancedgroupby", value); + this.OnPropertyChanged("AdvancedGroupBy"); + } + } + + /// + /// Shows the columns and sorting criteria for the saved view, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnsetxml")] + public string ColumnSetXml + { + get + { + return this.GetAttributeValue("columnsetxml"); + } + set + { + this.OnPropertyChanging("ColumnSetXml"); + this.SetAttributeValue("columnsetxml", value); + this.OnPropertyChanged("ColumnSetXml"); + } + } + + /// + /// Type information about how the items in the user view are formatted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("conditionalformatting")] + public string ConditionalFormatting + { + get + { + return this.GetAttributeValue("conditionalformatting"); + } + set + { + this.OnPropertyChanging("ConditionalFormatting"); + this.SetAttributeValue("conditionalformatting", value); + this.OnPropertyChanged("ConditionalFormatting"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the saved view, such as the filter criteria or intended results set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Contains the Fetch XML query that defines the entities and attributes included in the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fetchxml")] + public string FetchXml + { + get + { + return this.GetAttributeValue("fetchxml"); + } + set + { + this.OnPropertyChanging("FetchXml"); + this.SetAttributeValue("fetchxml", value); + this.OnPropertyChanged("FetchXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("layoutxml")] + public string LayoutXml + { + get + { + return this.GetAttributeValue("layoutxml"); + } + set + { + this.OnPropertyChanging("LayoutXml"); + this.SetAttributeValue("layoutxml", value); + this.OnPropertyChanged("LayoutXml"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the ID of the saved query that the record was created from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentqueryid")] + public Microsoft.Xrm.Sdk.EntityReference ParentQueryId + { + get + { + return this.GetAttributeValue("parentqueryid"); + } + set + { + this.OnPropertyChanging("ParentQueryId"); + this.SetAttributeValue("parentqueryid", value); + this.OnPropertyChanged("ParentQueryId"); + } + } + + /// + /// Shows the code for the query type to indicate whether the saved view is an address book filter, advanced search, or other view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("querytype")] + public System.Nullable QueryType + { + get + { + return this.GetAttributeValue>("querytype"); + } + set + { + this.OnPropertyChanging("QueryType"); + this.SetAttributeValue("querytype", value); + this.OnPropertyChanged("QueryType"); + } + } + + /// + /// Type of entity that the saved view displays. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("returnedtypecode")] + public string ReturnedTypeCode + { + get + { + return this.GetAttributeValue("returnedtypecode"); + } + set + { + this.OnPropertyChanging("ReturnedTypeCode"); + this.SetAttributeValue("returnedtypecode", value); + this.OnPropertyChanged("ReturnedTypeCode"); + } + } + + /// + /// Shows whether the saved view 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 ((Xrm.Framework.CI.Common.Entities.UserQueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.UserQueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the item's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + } + + /// + /// Unique identifier of the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryid")] + public System.Nullable UserQueryId + { + get + { + return this.GetAttributeValue>("userqueryid"); + } + set + { + this.OnPropertyChanging("UserQueryId"); + this.SetAttributeValue("userqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserQueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserQueryId = value; + } + } + + /// + /// Version number of the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userquery")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userquery + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userquery"); + this.SetRelatedEntities("userentityinstancedata_userquery", null, value); + this.OnPropertyChanged("userentityinstancedata_userquery"); + } + } + + /// + /// 1:N UserQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_AsyncOperations")] + public System.Collections.Generic.IEnumerable UserQuery_AsyncOperations + { + get + { + return this.GetRelatedEntities("UserQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserQuery_AsyncOperations"); + this.SetRelatedEntities("UserQuery_AsyncOperations", null, value); + this.OnPropertyChanged("UserQuery_AsyncOperations"); + } + } + + /// + /// 1:N UserQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UserQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UserQuery_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UserQuery_BulkDeleteFailures"); + this.SetRelatedEntities("UserQuery_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UserQuery_BulkDeleteFailures"); + } + } + + /// + /// N:1 business_unit_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userquery")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_userquery + { + get + { + return this.GetRelatedEntity("business_unit_userquery", null); + } + } + + /// + /// N:1 lk_userquery_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_createdby + { + get + { + return this.GetRelatedEntity("lk_userquery_createdby", null); + } + } + + /// + /// N:1 lk_userquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_userquery_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_modifiedby + { + get + { + return this.GetRelatedEntity("lk_userquery_modifiedby", null); + } + } + + /// + /// N:1 lk_userquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userquery")] + public Xrm.Framework.CI.Common.Entities.Team team_userquery + { + get + { + return this.GetRelatedEntity("team_userquery", null); + } + } + + /// + /// N:1 user_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userquery")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_userquery + { + get + { + return this.GetRelatedEntity("user_userquery", null); + } + } + } + + /// + /// Chart attached to an entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userqueryvisualization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserQueryVisualization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserQueryVisualization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userqueryvisualization"; + + public const int EntityTypeCode = 1112; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Shows the fields that are used to display data in a chart, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datadescription")] + public string DataDescription + { + get + { + return this.GetAttributeValue("datadescription"); + } + set + { + this.OnPropertyChanging("DataDescription"); + this.SetAttributeValue("datadescription", value); + this.OnPropertyChanged("DataDescription"); + } + } + + /// + /// Type additional information to describe the chart, such as the filter criteria or intended audience. + /// + [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 chart is the default chart for the view that it is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the team who owns the user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Contains the chart's formatting details and presentation properties, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentationdescription")] + public string PresentationDescription + { + get + { + return this.GetAttributeValue("presentationdescription"); + } + set + { + this.OnPropertyChanging("PresentationDescription"); + this.SetAttributeValue("presentationdescription", value); + this.OnPropertyChanged("PresentationDescription"); + } + } + + /// + /// Type of entity which the user chart is attached. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Unique identifier of the user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryvisualizationid")] + public System.Nullable UserQueryVisualizationId + { + get + { + return this.GetAttributeValue>("userqueryvisualizationid"); + } + set + { + this.OnPropertyChanging("UserQueryVisualizationId"); + this.SetAttributeValue("userqueryvisualizationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserQueryVisualizationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryvisualizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserQueryVisualizationId = value; + } + } + + /// + /// Version number of the user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Shows the web resource that will be displayed in the chart to the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public Microsoft.Xrm.Sdk.EntityReference WebResourceId + { + get + { + return this.GetAttributeValue("webresourceid"); + } + set + { + this.OnPropertyChanging("WebResourceId"); + this.SetAttributeValue("webresourceid", value); + this.OnPropertyChanged("WebResourceId"); + } + } + + /// + /// 1:N userentityinstancedata_userqueryvisualization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userqueryvisualization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userqueryvisualization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userqueryvisualization"); + this.SetRelatedEntities("userentityinstancedata_userqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_userqueryvisualization"); + } + } + + /// + /// N:1 business_unit_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("business_unit_userqueryvisualizations", null); + } + } + + /// + /// N:1 lk_userqueryvisualization_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualization_createdby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualization_createdby", null); + } + } + + /// + /// N:1 lk_userqueryvisualization_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualization_modifiedby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualization_modifiedby", null); + } + } + + /// + /// N:1 lk_userqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualizationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_userqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualizationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.Team team_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("team_userqueryvisualizations", null); + } + } + + /// + /// N:1 user_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("user_userqueryvisualizations", null); + } + } + + /// + /// N:1 webresource_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.WebResource webresource_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("webresource_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_userqueryvisualizations"); + this.SetRelatedEntity("webresource_userqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_userqueryvisualizations"); + } + } + } + + /// + /// User's preferred settings. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("usersettings")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserSettings : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserSettings() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "usersettings"; + + public const int EntityTypeCode = 150; + + 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)); + } + } + + /// + /// Normal polling frequency used for address book synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressbooksyncinterval")] + public System.Nullable AddressBookSyncInterval + { + get + { + return this.GetAttributeValue>("addressbooksyncinterval"); + } + set + { + this.OnPropertyChanging("AddressBookSyncInterval"); + this.SetAttributeValue("addressbooksyncinterval", value); + this.OnPropertyChanged("AddressBookSyncInterval"); + } + } + + /// + /// Default mode, such as simple or detailed, for advanced find. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("advancedfindstartupmode")] + public System.Nullable AdvancedFindStartupMode + { + get + { + return this.GetAttributeValue>("advancedfindstartupmode"); + } + set + { + this.OnPropertyChanging("AdvancedFindStartupMode"); + this.SetAttributeValue("advancedfindstartupmode", value); + this.OnPropertyChanged("AdvancedFindStartupMode"); + } + } + + /// + /// Indicates whether a user wants to specify email credentials. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowemailcredentials")] + [System.ObsoleteAttribute()] + public System.Nullable AllowEmailCredentials + { + get + { + return this.GetAttributeValue>("allowemailcredentials"); + } + } + + /// + /// AM designator to use in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amdesignator")] + public string AMDesignator + { + get + { + return this.GetAttributeValue("amdesignator"); + } + set + { + this.OnPropertyChanging("AMDesignator"); + this.SetAttributeValue("amdesignator", value); + this.OnPropertyChanged("AMDesignator"); + } + } + + /// + /// Auto-create contact on client promote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autocreatecontactonpromote")] + public System.Nullable AutoCreateContactOnPromote + { + get + { + return this.GetAttributeValue>("autocreatecontactonpromote"); + } + set + { + this.OnPropertyChanging("AutoCreateContactOnPromote"); + this.SetAttributeValue("autocreatecontactonpromote", value); + this.OnPropertyChanged("AutoCreateContactOnPromote"); + } + } + + /// + /// Unique identifier of the business unit with which the user is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public System.Nullable BusinessUnitId + { + get + { + return this.GetAttributeValue>("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Calendar type for the system. Set to Gregorian US by default. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendartype")] + public System.Nullable CalendarType + { + get + { + return this.GetAttributeValue>("calendartype"); + } + set + { + this.OnPropertyChanging("CalendarType"); + this.SetAttributeValue("calendartype", value); + this.OnPropertyChanged("CalendarType"); + } + } + + /// + /// Unique identifier of the user who created the user settings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the user settings object 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 usersettings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of decimal places that can be used for currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencydecimalprecision")] + [System.ObsoleteAttribute()] + public System.Nullable CurrencyDecimalPrecision + { + get + { + return this.GetAttributeValue>("currencydecimalprecision"); + } + set + { + this.OnPropertyChanging("CurrencyDecimalPrecision"); + this.SetAttributeValue("currencydecimalprecision", value); + this.OnPropertyChanged("CurrencyDecimalPrecision"); + } + } + + /// + /// Information about how currency symbols are placed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyformatcode")] + public System.Nullable CurrencyFormatCode + { + get + { + return this.GetAttributeValue>("currencyformatcode"); + } + set + { + this.OnPropertyChanging("CurrencyFormatCode"); + this.SetAttributeValue("currencyformatcode", value); + this.OnPropertyChanged("CurrencyFormatCode"); + } + } + + /// + /// Symbol used for currency in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencysymbol")] + public string CurrencySymbol + { + get + { + return this.GetAttributeValue("currencysymbol"); + } + set + { + this.OnPropertyChanging("CurrencySymbol"); + this.SetAttributeValue("currencysymbol", value); + this.OnPropertyChanged("CurrencySymbol"); + } + } + + /// + /// Information that specifies the level of data validation in excel worksheets exported in a format suitable for import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datavalidationmodeforexporttoexcel")] + public Microsoft.Xrm.Sdk.OptionSetValue DataValidationModeForExportToExcel + { + get + { + return this.GetAttributeValue("datavalidationmodeforexporttoexcel"); + } + set + { + this.OnPropertyChanging("DataValidationModeForExportToExcel"); + this.SetAttributeValue("datavalidationmodeforexporttoexcel", value); + this.OnPropertyChanged("DataValidationModeForExportToExcel"); + } + } + + /// + /// Information about how the date is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatcode")] + public System.Nullable DateFormatCode + { + get + { + return this.GetAttributeValue>("dateformatcode"); + } + set + { + this.OnPropertyChanging("DateFormatCode"); + this.SetAttributeValue("dateformatcode", value); + this.OnPropertyChanged("DateFormatCode"); + } + } + + /// + /// String showing how the date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatstring")] + public string DateFormatString + { + get + { + return this.GetAttributeValue("dateformatstring"); + } + set + { + this.OnPropertyChanging("DateFormatString"); + this.SetAttributeValue("dateformatstring", value); + this.OnPropertyChanged("DateFormatString"); + } + } + + /// + /// Character used to separate the month, the day, and the year in dates in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateseparator")] + public string DateSeparator + { + get + { + return this.GetAttributeValue("dateseparator"); + } + set + { + this.OnPropertyChanging("DateSeparator"); + this.SetAttributeValue("dateseparator", value); + this.OnPropertyChanged("DateSeparator"); + } + } + + /// + /// Symbol used for decimal in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decimalsymbol")] + public string DecimalSymbol + { + get + { + return this.GetAttributeValue("decimalsymbol"); + } + set + { + this.OnPropertyChanging("DecimalSymbol"); + this.SetAttributeValue("decimalsymbol", value); + this.OnPropertyChanged("DecimalSymbol"); + } + } + + /// + /// Default calendar view for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultcalendarview")] + public System.Nullable DefaultCalendarView + { + get + { + return this.GetAttributeValue>("defaultcalendarview"); + } + set + { + this.OnPropertyChanging("DefaultCalendarView"); + this.SetAttributeValue("defaultcalendarview", value); + this.OnPropertyChanged("DefaultCalendarView"); + } + } + + /// + /// Text area to enter default country code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultcountrycode")] + public string DefaultCountryCode + { + get + { + return this.GetAttributeValue("defaultcountrycode"); + } + set + { + this.OnPropertyChanging("DefaultCountryCode"); + this.SetAttributeValue("defaultcountrycode", value); + this.OnPropertyChanged("DefaultCountryCode"); + } + } + + /// + /// Unique identifier of the default dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultdashboardid")] + public System.Nullable DefaultDashboardId + { + get + { + return this.GetAttributeValue>("defaultdashboardid"); + } + set + { + this.OnPropertyChanging("DefaultDashboardId"); + this.SetAttributeValue("defaultdashboardid", value); + this.OnPropertyChanged("DefaultDashboardId"); + } + } + + /// + /// Email password. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailpassword")] + [System.ObsoleteAttribute()] + public string EmailPassword + { + get + { + return this.GetAttributeValue("emailpassword"); + } + } + + /// + /// Email user name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailusername")] + [System.ObsoleteAttribute()] + public string EmailUsername + { + get + { + return this.GetAttributeValue("emailusername"); + } + } + + /// + /// Indicates the form mode to be used. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityformmode")] + public Microsoft.Xrm.Sdk.OptionSetValue EntityFormMode + { + get + { + return this.GetAttributeValue("entityformmode"); + } + set + { + this.OnPropertyChanging("EntityFormMode"); + this.SetAttributeValue("entityformmode", value); + this.OnPropertyChanged("EntityFormMode"); + } + } + + /// + /// Order in which names are to be displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullnameconventioncode")] + public System.Nullable FullNameConventionCode + { + get + { + return this.GetAttributeValue>("fullnameconventioncode"); + } + set + { + this.OnPropertyChanging("FullNameConventionCode"); + this.SetAttributeValue("fullnameconventioncode", value); + this.OnPropertyChanged("FullNameConventionCode"); + } + } + + /// + /// Information that specifies whether the Get Started pane in lists is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("getstartedpanecontentenabled")] + public System.Nullable GetStartedPaneContentEnabled + { + get + { + return this.GetAttributeValue>("getstartedpanecontentenabled"); + } + set + { + this.OnPropertyChanging("GetStartedPaneContentEnabled"); + this.SetAttributeValue("getstartedpanecontentenabled", value); + this.OnPropertyChanged("GetStartedPaneContentEnabled"); + } + } + + /// + /// Unique identifier of the Help language. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("helplanguageid")] + public System.Nullable HelpLanguageId + { + get + { + return this.GetAttributeValue>("helplanguageid"); + } + set + { + this.OnPropertyChanging("HelpLanguageId"); + this.SetAttributeValue("helplanguageid", value); + this.OnPropertyChanged("HelpLanguageId"); + } + } + + /// + /// Web site home page for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homepagearea")] + public string HomepageArea + { + get + { + return this.GetAttributeValue("homepagearea"); + } + set + { + this.OnPropertyChanging("HomepageArea"); + this.SetAttributeValue("homepagearea", value); + this.OnPropertyChanged("HomepageArea"); + } + } + + /// + /// Configuration of the home page layout. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homepagelayout")] + public string HomepageLayout + { + get + { + return this.GetAttributeValue("homepagelayout"); + } + set + { + this.OnPropertyChanging("HomepageLayout"); + this.SetAttributeValue("homepagelayout", value); + this.OnPropertyChanged("HomepageLayout"); + } + } + + /// + /// Web site page for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homepagesubarea")] + public string HomepageSubarea + { + get + { + return this.GetAttributeValue("homepagesubarea"); + } + set + { + this.OnPropertyChanging("HomepageSubarea"); + this.SetAttributeValue("homepagesubarea", value); + this.OnPropertyChanged("HomepageSubarea"); + } + } + + /// + /// Information that specifies whether a user account is to ignore unsolicited email (deprecated). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreunsolicitedemail")] + public System.Nullable IgnoreUnsolicitedEmail + { + get + { + return this.GetAttributeValue>("ignoreunsolicitedemail"); + } + set + { + this.OnPropertyChanging("IgnoreUnsolicitedEmail"); + this.SetAttributeValue("ignoreunsolicitedemail", value); + this.OnPropertyChanged("IgnoreUnsolicitedEmail"); + } + } + + /// + /// Incoming email filtering method. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailfilteringmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailFilteringMethod + { + get + { + return this.GetAttributeValue("incomingemailfilteringmethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailFilteringMethod"); + this.SetAttributeValue("incomingemailfilteringmethod", value); + this.OnPropertyChanged("IncomingEmailFilteringMethod"); + } + } + + /// + /// Enable or disable country code selection . + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefaultcountrycodecheckenabled")] + public System.Nullable IsDefaultCountryCodeCheckEnabled + { + get + { + return this.GetAttributeValue>("isdefaultcountrycodecheckenabled"); + } + set + { + this.OnPropertyChanging("IsDefaultCountryCodeCheckEnabled"); + this.SetAttributeValue("isdefaultcountrycodecheckenabled", value); + this.OnPropertyChanged("IsDefaultCountryCodeCheckEnabled"); + } + } + + /// + /// Indicates if duplicate detection is enabled when going online. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledwhengoingonline")] + public System.Nullable IsDuplicateDetectionEnabledWhenGoingOnline + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledwhengoingonline"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledWhenGoingOnline"); + this.SetAttributeValue("isduplicatedetectionenabledwhengoingonline", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledWhenGoingOnline"); + } + } + + /// + /// Indicates if send as other user privilege is enabled or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issendasallowed")] + public System.Nullable IsSendAsAllowed + { + get + { + return this.GetAttributeValue>("issendasallowed"); + } + set + { + this.OnPropertyChanging("IsSendAsAllowed"); + this.SetAttributeValue("issendasallowed", value); + this.OnPropertyChanged("IsSendAsAllowed"); + } + } + + /// + /// Shows the last time when the traces were read from the database. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastalertsviewedtime")] + public System.Nullable LastAlertsViewedTime + { + get + { + return this.GetAttributeValue>("lastalertsviewedtime"); + } + set + { + this.OnPropertyChanging("LastAlertsViewedTime"); + this.SetAttributeValue("lastalertsviewedtime", value); + this.OnPropertyChanged("LastAlertsViewedTime"); + } + } + + /// + /// Unique identifier of the user locale. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("localeid")] + public System.Nullable LocaleId + { + get + { + return this.GetAttributeValue>("localeid"); + } + set + { + this.OnPropertyChanging("LocaleId"); + this.SetAttributeValue("localeid", value); + this.OnPropertyChanged("LocaleId"); + } + } + + /// + /// Information that specifies how Long Date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longdateformatcode")] + public System.Nullable LongDateFormatCode + { + get + { + return this.GetAttributeValue>("longdateformatcode"); + } + set + { + this.OnPropertyChanging("LongDateFormatCode"); + this.SetAttributeValue("longdateformatcode", value); + this.OnPropertyChanged("LongDateFormatCode"); + } + } + + /// + /// Unique identifier of the user who last modified the user settings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the user settings object 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 usersettings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information that specifies how negative currency numbers are displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativecurrencyformatcode")] + public System.Nullable NegativeCurrencyFormatCode + { + get + { + return this.GetAttributeValue>("negativecurrencyformatcode"); + } + set + { + this.OnPropertyChanging("NegativeCurrencyFormatCode"); + this.SetAttributeValue("negativecurrencyformatcode", value); + this.OnPropertyChanged("NegativeCurrencyFormatCode"); + } + } + + /// + /// Information that specifies how negative numbers are displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativeformatcode")] + public System.Nullable NegativeFormatCode + { + get + { + return this.GetAttributeValue>("negativeformatcode"); + } + set + { + this.OnPropertyChanging("NegativeFormatCode"); + this.SetAttributeValue("negativeformatcode", value); + this.OnPropertyChanged("NegativeFormatCode"); + } + } + + /// + /// Next tracking number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nexttrackingnumber")] + public System.Nullable NextTrackingNumber + { + get + { + return this.GetAttributeValue>("nexttrackingnumber"); + } + set + { + this.OnPropertyChanging("NextTrackingNumber"); + this.SetAttributeValue("nexttrackingnumber", value); + this.OnPropertyChanged("NextTrackingNumber"); + } + } + + /// + /// Information that specifies how numbers are grouped in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numbergroupformat")] + public string NumberGroupFormat + { + get + { + return this.GetAttributeValue("numbergroupformat"); + } + set + { + this.OnPropertyChanging("NumberGroupFormat"); + this.SetAttributeValue("numbergroupformat", value); + this.OnPropertyChanged("NumberGroupFormat"); + } + } + + /// + /// Symbol used for number separation in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberseparator")] + public string NumberSeparator + { + get + { + return this.GetAttributeValue("numberseparator"); + } + set + { + this.OnPropertyChanging("NumberSeparator"); + this.SetAttributeValue("numberseparator", value); + this.OnPropertyChanged("NumberSeparator"); + } + } + + /// + /// Normal polling frequency used for background offline synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("offlinesyncinterval")] + public System.Nullable OfflineSyncInterval + { + get + { + return this.GetAttributeValue>("offlinesyncinterval"); + } + set + { + this.OnPropertyChanging("OfflineSyncInterval"); + this.SetAttributeValue("offlinesyncinterval", value); + this.OnPropertyChanged("OfflineSyncInterval"); + } + } + + /// + /// Normal polling frequency used for record synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlooksyncinterval")] + public System.Nullable OutlookSyncInterval + { + get + { + return this.GetAttributeValue>("outlooksyncinterval"); + } + set + { + this.OnPropertyChanging("OutlookSyncInterval"); + this.SetAttributeValue("outlooksyncinterval", value); + this.OnPropertyChanged("OutlookSyncInterval"); + } + } + + /// + /// Information that specifies how many items to list on a page in list views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paginglimit")] + public System.Nullable PagingLimit + { + get + { + return this.GetAttributeValue>("paginglimit"); + } + set + { + this.OnPropertyChanging("PagingLimit"); + this.SetAttributeValue("paginglimit", value); + this.OnPropertyChanged("PagingLimit"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalizationsettings")] + public string PersonalizationSettings + { + get + { + return this.GetAttributeValue("personalizationsettings"); + } + set + { + this.OnPropertyChanging("PersonalizationSettings"); + this.SetAttributeValue("personalizationsettings", value); + this.OnPropertyChanged("PersonalizationSettings"); + } + } + + /// + /// PM designator to use in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pmdesignator")] + public string PMDesignator + { + get + { + return this.GetAttributeValue("pmdesignator"); + } + set + { + this.OnPropertyChanging("PMDesignator"); + this.SetAttributeValue("pmdesignator", value); + this.OnPropertyChanged("PMDesignator"); + } + } + + /// + /// Number of decimal places that can be used for prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingdecimalprecision")] + [System.ObsoleteAttribute()] + public System.Nullable PricingDecimalPrecision + { + get + { + return this.GetAttributeValue>("pricingdecimalprecision"); + } + set + { + this.OnPropertyChanging("PricingDecimalPrecision"); + this.SetAttributeValue("pricingdecimalprecision", value); + this.OnPropertyChanged("PricingDecimalPrecision"); + } + } + + /// + /// Picklist for selecting the user preference for reporting scripting errors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportscripterrors")] + public Microsoft.Xrm.Sdk.OptionSetValue ReportScriptErrors + { + get + { + return this.GetAttributeValue("reportscripterrors"); + } + set + { + this.OnPropertyChanging("ReportScriptErrors"); + this.SetAttributeValue("reportscripterrors", value); + this.OnPropertyChanged("ReportScriptErrors"); + } + } + + /// + /// Information that specifies whether to display the week number in calendar displays in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showweeknumber")] + public System.Nullable ShowWeekNumber + { + get + { + return this.GetAttributeValue>("showweeknumber"); + } + set + { + this.OnPropertyChanging("ShowWeekNumber"); + this.SetAttributeValue("showweeknumber", value); + this.OnPropertyChanged("ShowWeekNumber"); + } + } + + /// + /// Indicates if the company field in Microsoft Office Outlook items are set during Outlook synchronization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("synccontactcompany")] + public System.Nullable SyncContactCompany + { + get + { + return this.GetAttributeValue>("synccontactcompany"); + } + set + { + this.OnPropertyChanging("SyncContactCompany"); + this.SetAttributeValue("synccontactcompany", value); + this.OnPropertyChanged("SyncContactCompany"); + } + } + + /// + /// Unique identifier of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserId = value; + } + } + + /// + /// Information that specifies how the time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatcode")] + public System.Nullable TimeFormatCode + { + get + { + return this.GetAttributeValue>("timeformatcode"); + } + set + { + this.OnPropertyChanging("TimeFormatCode"); + this.SetAttributeValue("timeformatcode", value); + this.OnPropertyChanged("TimeFormatCode"); + } + } + + /// + /// Text for how time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatstring")] + public string TimeFormatString + { + get + { + return this.GetAttributeValue("timeformatstring"); + } + set + { + this.OnPropertyChanging("TimeFormatString"); + this.SetAttributeValue("timeformatstring", value); + this.OnPropertyChanged("TimeFormatString"); + } + } + + /// + /// Text for how time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeseparator")] + public string TimeSeparator + { + get + { + return this.GetAttributeValue("timeseparator"); + } + set + { + this.OnPropertyChanging("TimeSeparator"); + this.SetAttributeValue("timeseparator", value); + this.OnPropertyChanged("TimeSeparator"); + } + } + + /// + /// Local time zone adjustment for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonebias")] + public System.Nullable TimeZoneBias + { + get + { + return this.GetAttributeValue>("timezonebias"); + } + set + { + this.OnPropertyChanging("TimeZoneBias"); + this.SetAttributeValue("timezonebias", value); + this.OnPropertyChanged("TimeZoneBias"); + } + } + + /// + /// Local time zone for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// Local time zone daylight adjustment for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightbias")] + public System.Nullable TimeZoneDaylightBias + { + get + { + return this.GetAttributeValue>("timezonedaylightbias"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightBias"); + this.SetAttributeValue("timezonedaylightbias", value); + this.OnPropertyChanged("TimeZoneDaylightBias"); + } + } + + /// + /// Local time zone daylight day for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightday")] + public System.Nullable TimeZoneDaylightDay + { + get + { + return this.GetAttributeValue>("timezonedaylightday"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightDay"); + this.SetAttributeValue("timezonedaylightday", value); + this.OnPropertyChanged("TimeZoneDaylightDay"); + } + } + + /// + /// Local time zone daylight day of week for the user. System calculated based on the time zone selected in Options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightdayofweek")] + public System.Nullable TimeZoneDaylightDayOfWeek + { + get + { + return this.GetAttributeValue>("timezonedaylightdayofweek"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightDayOfWeek"); + this.SetAttributeValue("timezonedaylightdayofweek", value); + this.OnPropertyChanged("TimeZoneDaylightDayOfWeek"); + } + } + + /// + /// Local time zone daylight hour for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylighthour")] + public System.Nullable TimeZoneDaylightHour + { + get + { + return this.GetAttributeValue>("timezonedaylighthour"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightHour"); + this.SetAttributeValue("timezonedaylighthour", value); + this.OnPropertyChanged("TimeZoneDaylightHour"); + } + } + + /// + /// Local time zone daylight minute for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightminute")] + public System.Nullable TimeZoneDaylightMinute + { + get + { + return this.GetAttributeValue>("timezonedaylightminute"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightMinute"); + this.SetAttributeValue("timezonedaylightminute", value); + this.OnPropertyChanged("TimeZoneDaylightMinute"); + } + } + + /// + /// Local time zone daylight month for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightmonth")] + public System.Nullable TimeZoneDaylightMonth + { + get + { + return this.GetAttributeValue>("timezonedaylightmonth"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightMonth"); + this.SetAttributeValue("timezonedaylightmonth", value); + this.OnPropertyChanged("TimeZoneDaylightMonth"); + } + } + + /// + /// Local time zone daylight second for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightsecond")] + public System.Nullable TimeZoneDaylightSecond + { + get + { + return this.GetAttributeValue>("timezonedaylightsecond"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightSecond"); + this.SetAttributeValue("timezonedaylightsecond", value); + this.OnPropertyChanged("TimeZoneDaylightSecond"); + } + } + + /// + /// Local time zone daylight year for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightyear")] + public System.Nullable TimeZoneDaylightYear + { + get + { + return this.GetAttributeValue>("timezonedaylightyear"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightYear"); + this.SetAttributeValue("timezonedaylightyear", value); + this.OnPropertyChanged("TimeZoneDaylightYear"); + } + } + + /// + /// Local time zone standard time bias for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardbias")] + public System.Nullable TimeZoneStandardBias + { + get + { + return this.GetAttributeValue>("timezonestandardbias"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardBias"); + this.SetAttributeValue("timezonestandardbias", value); + this.OnPropertyChanged("TimeZoneStandardBias"); + } + } + + /// + /// Local time zone standard day for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardday")] + public System.Nullable TimeZoneStandardDay + { + get + { + return this.GetAttributeValue>("timezonestandardday"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardDay"); + this.SetAttributeValue("timezonestandardday", value); + this.OnPropertyChanged("TimeZoneStandardDay"); + } + } + + /// + /// Local time zone standard day of week for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandarddayofweek")] + public System.Nullable TimeZoneStandardDayOfWeek + { + get + { + return this.GetAttributeValue>("timezonestandarddayofweek"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardDayOfWeek"); + this.SetAttributeValue("timezonestandarddayofweek", value); + this.OnPropertyChanged("TimeZoneStandardDayOfWeek"); + } + } + + /// + /// Local time zone standard hour for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardhour")] + public System.Nullable TimeZoneStandardHour + { + get + { + return this.GetAttributeValue>("timezonestandardhour"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardHour"); + this.SetAttributeValue("timezonestandardhour", value); + this.OnPropertyChanged("TimeZoneStandardHour"); + } + } + + /// + /// Local time zone standard minute for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardminute")] + public System.Nullable TimeZoneStandardMinute + { + get + { + return this.GetAttributeValue>("timezonestandardminute"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardMinute"); + this.SetAttributeValue("timezonestandardminute", value); + this.OnPropertyChanged("TimeZoneStandardMinute"); + } + } + + /// + /// Local time zone standard month for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardmonth")] + public System.Nullable TimeZoneStandardMonth + { + get + { + return this.GetAttributeValue>("timezonestandardmonth"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardMonth"); + this.SetAttributeValue("timezonestandardmonth", value); + this.OnPropertyChanged("TimeZoneStandardMonth"); + } + } + + /// + /// Local time zone standard second for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardsecond")] + public System.Nullable TimeZoneStandardSecond + { + get + { + return this.GetAttributeValue>("timezonestandardsecond"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardSecond"); + this.SetAttributeValue("timezonestandardsecond", value); + this.OnPropertyChanged("TimeZoneStandardSecond"); + } + } + + /// + /// Local time zone standard year for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardyear")] + public System.Nullable TimeZoneStandardYear + { + get + { + return this.GetAttributeValue>("timezonestandardyear"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardYear"); + this.SetAttributeValue("timezonestandardyear", value); + this.OnPropertyChanged("TimeZoneStandardYear"); + } + } + + /// + /// Tracking token ID. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtokenid")] + public System.Nullable TrackingTokenId + { + get + { + return this.GetAttributeValue>("trackingtokenid"); + } + set + { + this.OnPropertyChanging("TrackingTokenId"); + this.SetAttributeValue("trackingtokenid", value); + this.OnPropertyChanged("TrackingTokenId"); + } + } + + /// + /// Unique identifier of the default currency of the user. + /// + [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"); + } + } + + /// + /// Unique identifier of the language in which to view the user interface (UI). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uilanguageid")] + public System.Nullable UILanguageId + { + get + { + return this.GetAttributeValue>("uilanguageid"); + } + set + { + this.OnPropertyChanging("UILanguageId"); + this.SetAttributeValue("uilanguageid", value); + this.OnPropertyChanged("UILanguageId"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM appointment form within Microsoft Office Outlook for creating new appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformforappointment")] + public System.Nullable UseCrmFormForAppointment + { + get + { + return this.GetAttributeValue>("usecrmformforappointment"); + } + set + { + this.OnPropertyChanging("UseCrmFormForAppointment"); + this.SetAttributeValue("usecrmformforappointment", value); + this.OnPropertyChanged("UseCrmFormForAppointment"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM contact form within Microsoft Office Outlook for creating new contacts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformforcontact")] + public System.Nullable UseCrmFormForContact + { + get + { + return this.GetAttributeValue>("usecrmformforcontact"); + } + set + { + this.OnPropertyChanging("UseCrmFormForContact"); + this.SetAttributeValue("usecrmformforcontact", value); + this.OnPropertyChanged("UseCrmFormForContact"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM email form within Microsoft Office Outlook for creating new emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformforemail")] + public System.Nullable UseCrmFormForEmail + { + get + { + return this.GetAttributeValue>("usecrmformforemail"); + } + set + { + this.OnPropertyChanging("UseCrmFormForEmail"); + this.SetAttributeValue("usecrmformforemail", value); + this.OnPropertyChanged("UseCrmFormForEmail"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM task form within Microsoft Office Outlook for creating new tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformfortask")] + public System.Nullable UseCrmFormForTask + { + get + { + return this.GetAttributeValue>("usecrmformfortask"); + } + set + { + this.OnPropertyChanging("UseCrmFormForTask"); + this.SetAttributeValue("usecrmformfortask", value); + this.OnPropertyChanged("UseCrmFormForTask"); + } + } + + /// + /// Indicates whether image strips are used to render images. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useimagestrips")] + public System.Nullable UseImageStrips + { + get + { + return this.GetAttributeValue>("useimagestrips"); + } + set + { + this.OnPropertyChanging("UseImageStrips"); + this.SetAttributeValue("useimagestrips", value); + this.OnPropertyChanged("UseImageStrips"); + } + } + + /// + /// Specifies user profile ids in comma separated list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userprofile")] + public string UserProfile + { + get + { + return this.GetAttributeValue("userprofile"); + } + set + { + this.OnPropertyChanging("UserProfile"); + this.SetAttributeValue("userprofile", value); + this.OnPropertyChanged("UserProfile"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// The layout of the visualization pane. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("visualizationpanelayout")] + public Microsoft.Xrm.Sdk.OptionSetValue VisualizationPaneLayout + { + get + { + return this.GetAttributeValue("visualizationpanelayout"); + } + set + { + this.OnPropertyChanging("VisualizationPaneLayout"); + this.SetAttributeValue("visualizationpanelayout", value); + this.OnPropertyChanged("VisualizationPaneLayout"); + } + } + + /// + /// Workday start time for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workdaystarttime")] + public string WorkdayStartTime + { + get + { + return this.GetAttributeValue("workdaystarttime"); + } + set + { + this.OnPropertyChanging("WorkdayStartTime"); + this.SetAttributeValue("workdaystarttime", value); + this.OnPropertyChanged("WorkdayStartTime"); + } + } + + /// + /// Workday stop time for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workdaystoptime")] + public string WorkdayStopTime + { + get + { + return this.GetAttributeValue("workdaystoptime"); + } + set + { + this.OnPropertyChanging("WorkdayStopTime"); + this.SetAttributeValue("workdaystoptime", value); + this.OnPropertyChanged("WorkdayStopTime"); + } + } + + /// + /// N:1 business_unit_user_settings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_user_settings")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_user_settings + { + get + { + return this.GetRelatedEntity("business_unit_user_settings", null); + } + set + { + this.OnPropertyChanging("business_unit_user_settings"); + this.SetRelatedEntity("business_unit_user_settings", null, value); + this.OnPropertyChanged("business_unit_user_settings"); + } + } + + /// + /// N:1 lk_usersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_usersettings_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_usersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_usersettings_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_usersettingsbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettingsbase_createdby + { + get + { + return this.GetRelatedEntity("lk_usersettingsbase_createdby", null); + } + } + + /// + /// N:1 lk_usersettingsbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettingsbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_usersettingsbase_modifiedby", null); + } + } + + /// + /// N:1 transactioncurrency_usersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_usersettings")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_usersettings + { + get + { + return this.GetRelatedEntity("transactioncurrency_usersettings", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_usersettings"); + this.SetRelatedEntity("transactioncurrency_usersettings", null, value); + this.OnPropertyChanged("transactioncurrency_usersettings"); + } + } + + /// + /// N:1 user_settings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_settings")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_settings + { + get + { + return this.GetRelatedEntity("user_settings", null); + } + set + { + this.OnPropertyChanging("user_settings"); + this.SetRelatedEntity("user_settings", null, value); + this.OnPropertyChanged("user_settings"); + } + } + } + + /// + /// Data equivalent to files used in Web development. Web resources provide client-side components that are used to provide custom user interface elements. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("webresource")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class WebResource : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public WebResource() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "webresource"; + + public const int EntityTypeCode = 9333; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information that specifies whether this component can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty CanBeDeleted + { + get + { + return this.GetAttributeValue("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Bytes of the web resource, in Base64 format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Unique identifier of the user who created the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the web resource 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 web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Display name of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayname")] + public string DisplayName + { + get + { + return this.GetAttributeValue("displayname"); + } + set + { + this.OnPropertyChanging("DisplayName"); + this.SetAttributeValue("displayname", value); + this.OnPropertyChanged("DisplayName"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Language of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the web resource was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Silverlight runtime version number required by a silverlight web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("silverlightversion")] + public string SilverlightVersion + { + get + { + return this.GetAttributeValue("silverlightversion"); + } + set + { + this.OnPropertyChanging("SilverlightVersion"); + this.SetAttributeValue("silverlightversion", value); + this.OnPropertyChanged("SilverlightVersion"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Unique identifier of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public System.Nullable WebResourceId + { + get + { + return this.GetAttributeValue>("webresourceid"); + } + set + { + this.OnPropertyChanging("WebResourceId"); + this.SetAttributeValue("webresourceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WebResourceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WebResourceId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceidunique")] + public System.Nullable WebResourceIdUnique + { + get + { + return this.GetAttributeValue>("webresourceidunique"); + } + } + + /// + /// Drop-down list for selecting the type of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourcetype")] + public Microsoft.Xrm.Sdk.OptionSetValue WebResourceType + { + get + { + return this.GetAttributeValue("webresourcetype"); + } + set + { + this.OnPropertyChanging("WebResourceType"); + this.SetAttributeValue("webresourcetype", value); + this.OnPropertyChanged("WebResourceType"); + } + } + + /// + /// 1:N solution_configuration_webresource + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_configuration_webresource")] + public System.Collections.Generic.IEnumerable solution_configuration_webresource + { + get + { + return this.GetRelatedEntities("solution_configuration_webresource", null); + } + set + { + this.OnPropertyChanging("solution_configuration_webresource"); + this.SetRelatedEntities("solution_configuration_webresource", null, value); + this.OnPropertyChanged("solution_configuration_webresource"); + } + } + + /// + /// 1:N userentityinstancedata_webresource + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_webresource")] + public System.Collections.Generic.IEnumerable userentityinstancedata_webresource + { + get + { + return this.GetRelatedEntities("userentityinstancedata_webresource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_webresource"); + this.SetRelatedEntities("userentityinstancedata_webresource", null, value); + this.OnPropertyChanged("userentityinstancedata_webresource"); + } + } + + /// + /// 1:N webresource_savedqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_savedqueryvisualizations")] + public System.Collections.Generic.IEnumerable webresource_savedqueryvisualizations + { + get + { + return this.GetRelatedEntities("webresource_savedqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_savedqueryvisualizations"); + this.SetRelatedEntities("webresource_savedqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_savedqueryvisualizations"); + } + } + + /// + /// 1:N webresource_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable webresource_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("webresource_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_userqueryvisualizations"); + this.SetRelatedEntities("webresource_userqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_userqueryvisualizations"); + } + } + + /// + /// N:1 lk_webresourcebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_webresourcebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_webresourcebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_webresourcebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_webresourcebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_webresourcebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 webresource_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser webresource_createdby + { + get + { + return this.GetRelatedEntity("webresource_createdby", null); + } + } + + /// + /// N:1 webresource_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser webresource_modifiedby + { + get + { + return this.GetRelatedEntity("webresource_modifiedby", null); + } + } + + /// + /// N:1 webresource_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_organization")] + public Xrm.Framework.CI.Common.Entities.Organization webresource_organization + { + get + { + return this.GetRelatedEntity("webresource_organization", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum WorkflowState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Activated = 1, + } + + /// + /// Set of logical rules that define the steps necessary to automate a specific business process, task, or set of actions to be performed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("workflow")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Workflow : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Workflow() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "workflow"; + + public const int EntityTypeCode = 4703; + + 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 latest activation record for the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeworkflowid")] + public Microsoft.Xrm.Sdk.EntityReference ActiveWorkflowId + { + get + { + return this.GetAttributeValue("activeworkflowid"); + } + } + + /// + /// Indicates whether the asynchronous system job is automatically deleted on completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodelete")] + public System.Nullable AsyncAutoDelete + { + get + { + return this.GetAttributeValue>("asyncautodelete"); + } + set + { + this.OnPropertyChanging("AsyncAutoDelete"); + this.SetAttributeValue("asyncautodelete", value); + this.OnPropertyChanged("AsyncAutoDelete"); + } + } + + /// + /// Category of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public Microsoft.Xrm.Sdk.OptionSetValue Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Business logic converted into client data + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("clientdata")] + public string ClientData + { + get + { + return this.GetAttributeValue("clientdata"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the process 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 process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Stage of the process when triggered on Create. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createstage")] + public Microsoft.Xrm.Sdk.OptionSetValue CreateStage + { + get + { + return this.GetAttributeValue("createstage"); + } + set + { + this.OnPropertyChanging("CreateStage"); + this.SetAttributeValue("createstage", value); + this.OnPropertyChanged("CreateStage"); + } + } + + /// + /// Stage of the process when triggered on Delete. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletestage")] + public Microsoft.Xrm.Sdk.OptionSetValue DeleteStage + { + get + { + return this.GetAttributeValue("deletestage"); + } + set + { + this.OnPropertyChanging("DeleteStage"); + this.SetAttributeValue("deletestage", value); + this.OnPropertyChanged("DeleteStage"); + } + } + + /// + /// Description of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Input parameters to the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inputparameters")] + public string InputParameters + { + get + { + return this.GetAttributeValue("inputparameters"); + } + set + { + this.OnPropertyChanging("InputParameters"); + this.SetAttributeValue("inputparameters", value); + this.OnPropertyChanged("InputParameters"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Indicates whether the process was created using the Microsoft Dynamics CRM Web application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscrmuiworkflow")] + public System.Nullable IsCrmUIWorkflow + { + get + { + return this.GetAttributeValue>("iscrmuiworkflow"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the custom operation is automatically transacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("istransacted")] + public System.Nullable IsTransacted + { + get + { + return this.GetAttributeValue>("istransacted"); + } + set + { + this.OnPropertyChanging("IsTransacted"); + this.SetAttributeValue("istransacted", value); + this.OnPropertyChanged("IsTransacted"); + } + } + + /// + /// Language of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Shows the mode of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mode")] + public Microsoft.Xrm.Sdk.OptionSetValue Mode + { + get + { + return this.GetAttributeValue("mode"); + } + set + { + this.OnPropertyChanging("Mode"); + this.SetAttributeValue("mode", value); + this.OnPropertyChanged("Mode"); + } + } + + /// + /// Unique identifier of the user who last modified the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the process 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 process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Indicates whether the process is able to run as an on-demand process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ondemand")] + public System.Nullable OnDemand + { + get + { + return this.GetAttributeValue>("ondemand"); + } + set + { + this.OnPropertyChanging("OnDemand"); + this.SetAttributeValue("ondemand", value); + this.OnPropertyChanged("OnDemand"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the process. + /// + [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 process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the definition for process activation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentworkflowid")] + public Microsoft.Xrm.Sdk.EntityReference ParentWorkflowId + { + get + { + return this.GetAttributeValue("parentworkflowid"); + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + } + + /// + /// Primary entity for the process. The process can be associated for one or more SDK operations defined on the primary entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentity")] + public string PrimaryEntity + { + get + { + return this.GetAttributeValue("primaryentity"); + } + set + { + this.OnPropertyChanging("PrimaryEntity"); + this.SetAttributeValue("primaryentity", value); + this.OnPropertyChanged("PrimaryEntity"); + } + } + + /// + /// Type the business process flow order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processorder")] + public System.Nullable ProcessOrder + { + get + { + return this.GetAttributeValue>("processorder"); + } + set + { + this.OnPropertyChanging("ProcessOrder"); + this.SetAttributeValue("processorder", value); + this.OnPropertyChanged("ProcessOrder"); + } + } + + /// + /// Contains the role assignment for the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processroleassignment")] + public string ProcessRoleAssignment + { + get + { + return this.GetAttributeValue("processroleassignment"); + } + set + { + this.OnPropertyChanging("ProcessRoleAssignment"); + this.SetAttributeValue("processroleassignment", value); + this.OnPropertyChanged("ProcessRoleAssignment"); + } + } + + /// + /// Indicates the rank for order of execution for the synchronous workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// Specifies the system user account under which a workflow executes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("runas")] + public Microsoft.Xrm.Sdk.OptionSetValue RunAs + { + get + { + return this.GetAttributeValue("runas"); + } + set + { + this.OnPropertyChanging("RunAs"); + this.SetAttributeValue("runas", value); + this.OnPropertyChanged("RunAs"); + } + } + + /// + /// Scope of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scope")] + public Microsoft.Xrm.Sdk.OptionSetValue Scope + { + get + { + return this.GetAttributeValue("scope"); + } + set + { + this.OnPropertyChanging("Scope"); + this.SetAttributeValue("scope", value); + this.OnPropertyChanged("Scope"); + } + } + + /// + /// Unique identifier of the SDK Message associated with this workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.WorkflowState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.WorkflowState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Additional information about status of the process. + /// + [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"); + } + } + + /// + /// Indicates whether the process can be included in other processes as a child process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subprocess")] + public System.Nullable Subprocess + { + get + { + return this.GetAttributeValue>("subprocess"); + } + set + { + this.OnPropertyChanging("Subprocess"); + this.SetAttributeValue("subprocess", value); + this.OnPropertyChanged("Subprocess"); + } + } + + /// + /// Select whether synchronous workflow failures will be saved to log files. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("syncworkflowlogonfailure")] + public System.Nullable SyncWorkflowLogOnFailure + { + get + { + return this.GetAttributeValue>("syncworkflowlogonfailure"); + } + set + { + this.OnPropertyChanging("SyncWorkflowLogOnFailure"); + this.SetAttributeValue("syncworkflowlogonfailure", value); + this.OnPropertyChanged("SyncWorkflowLogOnFailure"); + } + } + + /// + /// Indicates whether the process will be triggered when the primary entity is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("triggeroncreate")] + public System.Nullable TriggerOnCreate + { + get + { + return this.GetAttributeValue>("triggeroncreate"); + } + set + { + this.OnPropertyChanging("TriggerOnCreate"); + this.SetAttributeValue("triggeroncreate", value); + this.OnPropertyChanged("TriggerOnCreate"); + } + } + + /// + /// Indicates whether the process will be triggered on deletion of the primary entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("triggerondelete")] + public System.Nullable TriggerOnDelete + { + get + { + return this.GetAttributeValue>("triggerondelete"); + } + set + { + this.OnPropertyChanging("TriggerOnDelete"); + this.SetAttributeValue("triggerondelete", value); + this.OnPropertyChanged("TriggerOnDelete"); + } + } + + /// + /// Attributes that trigger the process when updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("triggeronupdateattributelist")] + public string TriggerOnUpdateAttributeList + { + get + { + return this.GetAttributeValue("triggeronupdateattributelist"); + } + set + { + this.OnPropertyChanging("TriggerOnUpdateAttributeList"); + this.SetAttributeValue("triggeronupdateattributelist", value); + this.OnPropertyChanged("TriggerOnUpdateAttributeList"); + } + } + + /// + /// Type of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// Type a name for the custom operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// Select the stage a process will be triggered on update. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("updatestage")] + public Microsoft.Xrm.Sdk.OptionSetValue UpdateStage + { + get + { + return this.GetAttributeValue("updatestage"); + } + set + { + this.OnPropertyChanging("UpdateStage"); + this.SetAttributeValue("updatestage", value); + this.OnPropertyChanged("UpdateStage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Unique identifier of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + public System.Nullable WorkflowId + { + get + { + return this.GetAttributeValue>("workflowid"); + } + set + { + this.OnPropertyChanging("WorkflowId"); + this.SetAttributeValue("workflowid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WorkflowId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WorkflowId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowidunique")] + public System.Nullable WorkflowIdUnique + { + get + { + return this.GetAttributeValue>("workflowidunique"); + } + } + + /// + /// XAML that defines the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("xaml")] + public string Xaml + { + get + { + return this.GetAttributeValue("xaml"); + } + set + { + this.OnPropertyChanging("Xaml"); + this.SetAttributeValue("xaml", value); + this.OnPropertyChanged("Xaml"); + } + } + + /// + /// 1:N lk_asyncoperation_workflowactivationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_workflowactivationid")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_workflowactivationid + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_workflowactivationid", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_workflowactivationid"); + this.SetRelatedEntities("lk_asyncoperation_workflowactivationid", null, value); + this.OnPropertyChanged("lk_asyncoperation_workflowactivationid"); + } + } + + /// + /// 1:N lk_processsession_processid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_processid")] + public System.Collections.Generic.IEnumerable lk_processsession_processid + { + get + { + return this.GetRelatedEntities("lk_processsession_processid", null); + } + set + { + this.OnPropertyChanging("lk_processsession_processid"); + this.SetRelatedEntities("lk_processsession_processid", null, value); + this.OnPropertyChanged("lk_processsession_processid"); + } + } + + /// + /// 1:N process_processstage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processstage")] + public System.Collections.Generic.IEnumerable process_processstage + { + get + { + return this.GetRelatedEntities("process_processstage", null); + } + set + { + this.OnPropertyChanging("process_processstage"); + this.SetRelatedEntities("process_processstage", null, value); + this.OnPropertyChanged("process_processstage"); + } + } + + /// + /// 1:N process_processtrigger + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processtrigger")] + public System.Collections.Generic.IEnumerable process_processtrigger + { + get + { + return this.GetRelatedEntities("process_processtrigger", null); + } + set + { + this.OnPropertyChanging("process_processtrigger"); + this.SetRelatedEntities("process_processtrigger", null, value); + this.OnPropertyChanged("process_processtrigger"); + } + } + + /// + /// 1:N userentityinstancedata_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflow")] + public System.Collections.Generic.IEnumerable userentityinstancedata_workflow + { + get + { + return this.GetRelatedEntities("userentityinstancedata_workflow", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflow"); + this.SetRelatedEntities("userentityinstancedata_workflow", null, value); + this.OnPropertyChanged("userentityinstancedata_workflow"); + } + } + + /// + /// 1:N workflow_active_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedworkflow_active_workflow + { + get + { + return this.GetRelatedEntities("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedworkflow_active_workflow"); + this.SetRelatedEntities("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedworkflow_active_workflow"); + } + } + + /// + /// 1:N Workflow_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Workflow_Annotation")] + public System.Collections.Generic.IEnumerable Workflow_Annotation + { + get + { + return this.GetRelatedEntities("Workflow_Annotation", null); + } + set + { + this.OnPropertyChanging("Workflow_Annotation"); + this.SetRelatedEntities("Workflow_Annotation", null, value); + this.OnPropertyChanged("Workflow_Annotation"); + } + } + + /// + /// 1:N workflow_dependencies + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependencies")] + public System.Collections.Generic.IEnumerable workflow_dependencies + { + get + { + return this.GetRelatedEntities("workflow_dependencies", null); + } + set + { + this.OnPropertyChanging("workflow_dependencies"); + this.SetRelatedEntities("workflow_dependencies", null, value); + this.OnPropertyChanged("workflow_dependencies"); + } + } + + /// + /// 1:N workflow_parent_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedworkflow_parent_workflow + { + get + { + return this.GetRelatedEntities("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedworkflow_parent_workflow"); + this.SetRelatedEntities("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedworkflow_parent_workflow"); + } + } + + /// + /// N:1 business_unit_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflow")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_workflow + { + get + { + return this.GetRelatedEntity("business_unit_workflow", null); + } + } + + /// + /// N:1 system_user_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_workflow")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_workflow + { + get + { + return this.GetRelatedEntity("system_user_workflow", null); + } + } + + /// + /// N:1 team_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflow")] + public Xrm.Framework.CI.Common.Entities.Team team_workflow + { + get + { + return this.GetRelatedEntity("team_workflow", null); + } + } + + /// + /// N:1 workflow_active_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeworkflowid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Workflow Referencingworkflow_active_workflow + { + get + { + return this.GetRelatedEntity("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 workflow_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_createdby + { + get + { + return this.GetRelatedEntity("workflow_createdby", null); + } + } + + /// + /// N:1 workflow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_createdonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_createdonbehalfby", null); + } + } + + /// + /// N:1 workflow_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_modifiedby + { + get + { + return this.GetRelatedEntity("workflow_modifiedby", null); + } + } + + /// + /// N:1 workflow_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_modifiedonbehalfby", null); + } + } + + /// + /// N:1 workflow_parent_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentworkflowid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Workflow Referencingworkflow_parent_workflow + { + get + { + return this.GetRelatedEntity("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + } + + /// + /// Dependencies for a process. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("workflowdependency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class WorkflowDependency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public WorkflowDependency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "workflowdependency"; + + public const int EntityTypeCode = 4704; + + 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 process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the process dependency 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 process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Name of the entity used in the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customentityname")] + public string CustomEntityName + { + get + { + return this.GetAttributeValue("customentityname"); + } + set + { + this.OnPropertyChanging("CustomEntityName"); + this.SetAttributeValue("customentityname", value); + this.OnPropertyChanged("CustomEntityName"); + } + } + + /// + /// Name of the attribute used in the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentattributename")] + public string DependentAttributeName + { + get + { + return this.GetAttributeValue("dependentattributename"); + } + set + { + this.OnPropertyChanging("DependentAttributeName"); + this.SetAttributeValue("dependentattributename", value); + this.OnPropertyChanged("DependentAttributeName"); + } + } + + /// + /// Name of the entity used in the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependententityname")] + public string DependentEntityName + { + get + { + return this.GetAttributeValue("dependententityname"); + } + set + { + this.OnPropertyChanging("DependentEntityName"); + this.SetAttributeValue("dependententityname", value); + this.OnPropertyChanged("DependentEntityName"); + } + } + + /// + /// Comma-separated list of attributes that will be passed to process instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityattributes")] + public string EntityAttributes + { + get + { + return this.GetAttributeValue("entityattributes"); + } + set + { + this.OnPropertyChanging("EntityAttributes"); + this.SetAttributeValue("entityattributes", value); + this.OnPropertyChanged("EntityAttributes"); + } + } + + /// + /// Unique identifier of the user who last modified the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the process dependency 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 process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the parent workflow instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Name of the process parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametername")] + public string ParameterName + { + get + { + return this.GetAttributeValue("parametername"); + } + set + { + this.OnPropertyChanging("ParameterName"); + this.SetAttributeValue("parametername", value); + this.OnPropertyChanged("ParameterName"); + } + } + + /// + /// Fully qualified name of the CLR type of the local parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametertype")] + public string ParameterType + { + get + { + return this.GetAttributeValue("parametertype"); + } + set + { + this.OnPropertyChanging("ParameterType"); + this.SetAttributeValue("parametertype", value); + this.OnPropertyChanged("ParameterType"); + } + } + + /// + /// Attribute of the primary entity that specifies related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedattributename")] + public string RelatedAttributeName + { + get + { + return this.GetAttributeValue("relatedattributename"); + } + set + { + this.OnPropertyChanging("RelatedAttributeName"); + this.SetAttributeValue("relatedattributename", value); + this.OnPropertyChanged("RelatedAttributeName"); + } + } + + /// + /// Name of the related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedentityname")] + public string RelatedEntityName + { + get + { + return this.GetAttributeValue("relatedentityname"); + } + set + { + this.OnPropertyChanging("RelatedEntityName"); + this.SetAttributeValue("relatedentityname", value); + this.OnPropertyChanged("RelatedEntityName"); + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Type of the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// Unique identifier of the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowdependencyid")] + public System.Nullable WorkflowDependencyId + { + get + { + return this.GetAttributeValue>("workflowdependencyid"); + } + set + { + this.OnPropertyChanging("WorkflowDependencyId"); + this.SetAttributeValue("workflowdependencyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WorkflowDependencyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowdependencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WorkflowDependencyId = value; + } + } + + /// + /// Unique identifier of the process with which the dependency is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + public Microsoft.Xrm.Sdk.EntityReference WorkflowId + { + get + { + return this.GetAttributeValue("workflowid"); + } + set + { + this.OnPropertyChanging("WorkflowId"); + this.SetAttributeValue("workflowid", value); + this.OnPropertyChanged("WorkflowId"); + } + } + + /// + /// 1:N userentityinstancedata_workflowdependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowdependency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_workflowdependency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_workflowdependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowdependency"); + this.SetRelatedEntities("userentityinstancedata_workflowdependency", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowdependency"); + } + } + + /// + /// N:1 sdkmessageid_workflow_dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_workflow_dependency")] + public Xrm.Framework.CI.Common.Entities.SdkMessage sdkmessageid_workflow_dependency + { + get + { + return this.GetRelatedEntity("sdkmessageid_workflow_dependency", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_workflow_dependency"); + this.SetRelatedEntity("sdkmessageid_workflow_dependency", null, value); + this.OnPropertyChanged("sdkmessageid_workflow_dependency"); + } + } + + /// + /// N:1 workflow_dependencies + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependencies")] + public Xrm.Framework.CI.Common.Entities.Workflow workflow_dependencies + { + get + { + return this.GetRelatedEntity("workflow_dependencies", null); + } + set + { + this.OnPropertyChanging("workflow_dependencies"); + this.SetRelatedEntity("workflow_dependencies", null, value); + this.OnPropertyChanged("workflow_dependencies"); + } + } + + /// + /// N:1 workflow_dependency_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_createdby + { + get + { + return this.GetRelatedEntity("workflow_dependency_createdby", null); + } + } + + /// + /// N:1 workflow_dependency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_createdonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_dependency_createdonbehalfby", null); + } + } + + /// + /// N:1 workflow_dependency_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_modifiedby + { + get + { + return this.GetRelatedEntity("workflow_dependency_modifiedby", null); + } + } + + /// + /// N:1 workflow_dependency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_dependency_modifiedonbehalfby", null); + } + } + } + + /// + /// Log used to track process execution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("workflowlog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class WorkflowLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public WorkflowLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "workflowlog"; + + public const int EntityTypeCode = 4706; + + 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)); + } + } + + /// + /// Name of the activity which the process step is currently processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityname")] + public string ActivityName + { + get + { + return this.GetAttributeValue("activityname"); + } + set + { + this.OnPropertyChanging("ActivityName"); + this.SetAttributeValue("activityname", value); + this.OnPropertyChanged("ActivityName"); + } + } + + /// + /// Unique identifier of the parent record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + set + { + this.OnPropertyChanging("AsyncOperationId"); + this.SetAttributeValue("asyncoperationid", value); + this.OnPropertyChanged("AsyncOperationId"); + } + } + + /// + /// Unique identifier of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childworkflowinstanceid")] + public Microsoft.Xrm.Sdk.EntityReference ChildWorkflowInstanceId + { + get + { + return this.GetAttributeValue("childworkflowinstanceid"); + } + set + { + this.OnPropertyChanging("ChildWorkflowInstanceId"); + this.SetAttributeValue("childworkflowinstanceid", value); + this.OnPropertyChanged("ChildWorkflowInstanceId"); + } + } + + /// + /// Date and time when the operation was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + set + { + this.OnPropertyChanging("CompletedOn"); + this.SetAttributeValue("completedon", value); + this.OnPropertyChanged("CompletedOn"); + } + } + + /// + /// Unique identifier of the user who created the process log entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the process log entry 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 process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the process step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Error code related to process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + set + { + this.OnPropertyChanging("ErrorCode"); + this.SetAttributeValue("errorcode", value); + this.OnPropertyChanged("ErrorCode"); + } + } + + /// + /// String specifying the result of an interaction activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("interactionactivityresult")] + public string InteractionActivityResult + { + get + { + return this.GetAttributeValue("interactionactivityresult"); + } + set + { + this.OnPropertyChanging("InteractionActivityResult"); + this.SetAttributeValue("interactionactivityresult", value); + this.OnPropertyChanged("InteractionActivityResult"); + } + } + + /// + /// Message related to process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + set + { + this.OnPropertyChanging("Message"); + this.SetAttributeValue("message", value); + this.OnPropertyChanged("Message"); + } + } + + /// + /// Unique identifier of the user who last modified the process log entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the process log entry 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 process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the associated record. + /// + [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"); + } + } + + /// + /// Name of the process stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagename")] + public string StageName + { + get + { + return this.GetAttributeValue("stagename"); + } + set + { + this.OnPropertyChanging("StageName"); + this.SetAttributeValue("stagename", value); + this.OnPropertyChanged("StageName"); + } + } + + /// + /// Status of the process step for which process log record has been created: In Progress, Successfully Completed, or Failed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("status")] + public Microsoft.Xrm.Sdk.OptionSetValue Status + { + get + { + return this.GetAttributeValue("status"); + } + set + { + this.OnPropertyChanging("Status"); + this.SetAttributeValue("status", value); + this.OnPropertyChanged("Status"); + } + } + + /// + /// Name of the process step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepname")] + public string StepName + { + get + { + return this.GetAttributeValue("stepname"); + } + set + { + this.OnPropertyChanging("StepName"); + this.SetAttributeValue("stepname", value); + this.OnPropertyChanged("StepName"); + } + } + + /// + /// Unique identifier of the process log entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowlogid")] + public System.Nullable WorkflowLogId + { + get + { + return this.GetAttributeValue>("workflowlogid"); + } + set + { + this.OnPropertyChanging("WorkflowLogId"); + this.SetAttributeValue("workflowlogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WorkflowLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowlogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WorkflowLogId = value; + } + } + + /// + /// 1:N userentityinstancedata_workflowlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowlog")] + public System.Collections.Generic.IEnumerable userentityinstancedata_workflowlog + { + get + { + return this.GetRelatedEntities("userentityinstancedata_workflowlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowlog"); + this.SetRelatedEntities("userentityinstancedata_workflowlog", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowlog"); + } + } + + /// + /// N:1 business_unit_workflowlogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflowlogs")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_workflowlogs + { + get + { + return this.GetRelatedEntity("business_unit_workflowlogs", null); + } + } + + /// + /// N:1 lk_workflowlog_asyncoperation_childworkflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childworkflowinstanceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperation_childworkflow")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation lk_workflowlog_asyncoperation_childworkflow + { + get + { + return this.GetRelatedEntity("lk_workflowlog_asyncoperation_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperation_childworkflow"); + this.SetRelatedEntity("lk_workflowlog_asyncoperation_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperation_childworkflow"); + } + } + + /// + /// N:1 lk_workflowlog_asyncoperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperations")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation lk_workflowlog_asyncoperations + { + get + { + return this.GetRelatedEntity("lk_workflowlog_asyncoperations", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperations"); + this.SetRelatedEntity("lk_workflowlog_asyncoperations", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperations"); + } + } + + /// + /// N:1 lk_workflowlog_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_createdby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_createdby", null); + } + } + + /// + /// N:1 lk_workflowlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_workflowlog_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_modifiedby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_modifiedby", null); + } + } + + /// + /// N:1 lk_workflowlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_workflowlog_processsession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession")] + public Xrm.Framework.CI.Common.Entities.ProcessSession lk_workflowlog_processsession + { + get + { + return this.GetRelatedEntity("lk_workflowlog_processsession", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession"); + this.SetRelatedEntity("lk_workflowlog_processsession", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession"); + } + } + + /// + /// N:1 lk_workflowlog_processsession_childworkflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childworkflowinstanceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession_childworkflow")] + public Xrm.Framework.CI.Common.Entities.ProcessSession lk_workflowlog_processsession_childworkflow + { + get + { + return this.GetRelatedEntity("lk_workflowlog_processsession_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession_childworkflow"); + this.SetRelatedEntity("lk_workflowlog_processsession_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession_childworkflow"); + } + } + + /// + /// N:1 team_workflowlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflowlog")] + public Xrm.Framework.CI.Common.Entities.Team team_workflowlog + { + get + { + return this.GetRelatedEntity("team_workflowlog", null); + } + } + } + + /// + /// Represents a source of entities bound to a CRM service. It tracks and manages changes made to the retrieved entities. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CIContext : Microsoft.Xrm.Sdk.Client.OrganizationServiceContext + { + + /// + /// Constructor. + /// + public CIContext(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 AccountLeadsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ActivityMimeAttachmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ActivityPartySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ActivityPointerSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AnnotationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AnnualFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AppointmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AsyncOperationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AttributeMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AuditSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkDeleteFailureSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkDeleteOperationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkOperationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkOperationLogSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BusinessUnitSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BusinessUnitNewsArticleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignActivitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignActivityItemSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignItemSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignResponseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ColumnMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CompetitorSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CompetitorProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CompetitorSalesLiteratureSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionRoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionRoleAssociationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionRoleObjectTypeCodeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConstraintBasedGroupSet + { + 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 ContactInvoicesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactLeadsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactOrdersSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactQuotesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContractSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContractDetailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContractTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CustomerAddressSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CustomerOpportunityRoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CustomerRelationshipSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DependencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DiscountSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DiscountTypeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DisplayStringSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DuplicateRecordSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DuplicateRuleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DuplicateRuleConditionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EmailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EmailServerProfileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EntityMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EquipmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ExchangeSyncIdMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FaxSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FieldPermissionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FieldSecurityProfileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FixedMonthlyFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable GoalSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable GoalRollupQuerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportEntityMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportFileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportJobSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportLogSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable IncidentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable IncidentResolutionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable InvalidDependencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable InvoiceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable InvoiceDetailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable IsvConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable KbArticleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable KbArticleCommentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable KbArticleTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadAddressSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadCompetitorsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LetterSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LicenseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ListSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ListMemberSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LookUpMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MailboxSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MailMergeTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MetricSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MonthlyFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_PostAlbumSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_PostConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_PostRuleConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_wallsavedquerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_wallsavedqueryusersettingsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunityCloseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunityCompetitorsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunityProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OrderCloseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OrganizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OrganizationUISet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OwnerMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PhoneCallSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PickListMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PluginAssemblySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PluginTypeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PluginTypeStatisticSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostCommentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostFollowSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostLikeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PriceLevelSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PrincipalEntityMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PrincipalObjectAttributeAccessSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PrivilegeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProcessSessionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProcessStageSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProcessTriggerSet + { + 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 ProductPriceLevelSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProductSalesLiteratureSet + { + 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 PublisherSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PublisherAddressSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QuarterlyFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QueueSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QueueItemSet + { + 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 QuoteDetailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RecurrenceRuleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RecurringAppointmentMasterSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RelationshipRoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RelationshipRoleMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportCategorySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportEntitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportLinkSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportVisibilitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ResourceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ResourceGroupSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ResourceSpecSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RibbonCustomizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RolePrivilegesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RoleTemplatePrivilegesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RollupFieldSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SalesLiteratureSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SalesLiteratureItemSet + { + 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(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SavedQuerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SavedQueryVisualizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageFilterSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessagePairSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageProcessingStepSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageProcessingStepImageSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageProcessingStepSecureConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageRequestSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageRequestFieldSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageResponseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageResponseFieldSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SemiAnnualFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceAppointmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceContractContactsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceEndpointSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SharePointDocumentLocationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SharePointSiteSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SiteSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SiteMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SolutionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SolutionComponentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SubjectSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SubscriptionManuallyTrackedObjectSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemFormSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserLicensesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserProfilesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserRolesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TaskSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamMembershipSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamProfilesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamRolesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TerritorySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TimeZoneDefinitionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TimeZoneLocalizedNameSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TimeZoneRuleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TraceLogSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TransactionCurrencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TransformationMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TransformationParameterMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UoMSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UoMScheduleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserEntityInstanceDataSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserEntityUISettingsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserFormSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserQuerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserQueryVisualizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserSettingsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WebResourceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WorkflowSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WorkflowDependencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WorkflowLogSet + { + get + { + return this.CreateQuery(); + } + } + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ExportXrmSolutionCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ExportXrmSolutionCommand.cs new file mode 100644 index 00000000..bcf93cb7 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ExportXrmSolutionCommand.cs @@ -0,0 +1,207 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Crm.Sdk.Messages; +using System.IO; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsData.Export, "XrmSolution")] + public class ExportXrmSolutionCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public string UniqueSolutionName + { + get { return uniqueSolutionName; } + set { uniqueSolutionName = value; } + } + private string uniqueSolutionName; + + [Parameter(Mandatory = true)] + public bool Managed + { + get { return managed; } + set { managed = value; } + } + private bool managed = false; + + [Parameter(Mandatory = true)] + public string OutputFolder + { + get { return outputFolder; } + set { outputFolder = value; } + } + private string outputFolder; + + [Parameter(Mandatory = false)] + public bool IncludeVersionInName + { + get { return includeVersionInName; } + set { includeVersionInName = value; } + } + private bool includeVersionInName = false; + + [Parameter(Mandatory = false)] + public bool ExportAutoNumberingSettings + { + get { return exportAutoNumberingSettings; } + set { exportAutoNumberingSettings = value; } + } + private bool exportAutoNumberingSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportCalendarSettings + { + get { return exportCalendarSettings; } + set { exportCalendarSettings = value; } + } + private bool exportCalendarSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportCustomizationSettings + { + get { return exportCustomizationSettings; } + set { exportCustomizationSettings = value; } + } + private bool exportCustomizationSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportEmailTrackingSettings + { + get { return exportEmailTrackingSettings; } + set { exportEmailTrackingSettings = value; } + } + private bool exportEmailTrackingSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportGeneralSettings + { + get { return exportGeneralSettings; } + set { exportGeneralSettings = value; } + } + private bool exportGeneralSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportIsvConfig + { + get { return exportIsvConfig; } + set { exportIsvConfig = value; } + } + private bool exportIsvConfig = false; + + [Parameter(Mandatory = false)] + public bool ExportMarketingSettings + { + get { return exportMarketingSettings; } + set { exportMarketingSettings = value; } + } + private bool exportMarketingSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportOutlookSynchronizationSettings + { + get { return exportOutlookSynchronizationSettings; } + set { exportOutlookSynchronizationSettings = value; } + } + private bool exportOutlookSynchronizationSettings = false; + + [Parameter(Mandatory = false)] + public bool ExportRelationshipRoles + { + get { return exportRelationshipRoles; } + set { exportRelationshipRoles = value; } + } + private bool exportRelationshipRoles = false; + + + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Exporting Solution: {0}", UniqueSolutionName)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + StringBuilder solutionFile = new StringBuilder(); + Solution solution = null; + + using (CIContext context = new CIContext(service)) + { + var query = from s in context.SolutionSet + where s.UniqueName == UniqueSolutionName + select s; + + solution = query.FirstOrDefault(); + } + + if (solution == null) + { + throw new Exception(string.Format("Solution {0} could not be found", UniqueSolutionName)); + } + else + { + solutionFile.Append(UniqueSolutionName); + + if (IncludeVersionInName) + { + solutionFile.Append("_"); + solutionFile.Append(solution.Version.Replace(".", "_")); + } + } + + if (managed) + { + solutionFile.Append("_managed"); + } + + solutionFile.Append(".zip"); + + ExportSolutionRequest req = new ExportSolutionRequest() + { + Managed = managed, + SolutionName = UniqueSolutionName, + ExportAutoNumberingSettings = exportAutoNumberingSettings, + ExportCalendarSettings = exportCalendarSettings, + ExportCustomizationSettings = exportCustomizationSettings, + ExportEmailTrackingSettings = exportEmailTrackingSettings, + ExportGeneralSettings = exportGeneralSettings, + ExportIsvConfig = exportIsvConfig, + ExportMarketingSettings = exportMarketingSettings, + ExportOutlookSynchronizationSettings = exportOutlookSynchronizationSettings, + ExportRelationshipRoles = exportRelationshipRoles + }; + + ExportSolutionResponse res = service.Execute(req) as ExportSolutionResponse; + + File.WriteAllBytes(outputFolder + "\\" + solutionFile.ToString(), res.ExportSolutionFile); + + base.WriteObject(solutionFile.ToString()); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ExtractCustomizations.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ExtractCustomizations.ps1 new file mode 100644 index 00000000..adc0a60c --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ExtractCustomizations.ps1 @@ -0,0 +1,103 @@ +# Filename: ExtractCustomizations.ps1 +param([string]$solutionPackager, #The full path to the solutionpackager.exe +[string]$solutionFilesFolder, #The folder to extract the CRM solution +[string]$mappingFile, #The full path to the mapping file +[string]$solutionName, #The unique CRM solution name +[string]$connectionString, #The connection string as per CRM Sdk +[switch]$checkout, #Optional - pass if you want to Check Out the existing files in the extract location +[switch]$checkin) #Optional - pass if you want to Check In the updated files after extraction + +$ErrorActionPreference = "Stop" + +Write-Output "Solution Packager: $solutionPackager" +Write-Output "Solution Files Folder: $solutionFilesFolder" +Write-Output "Mapping File: $mappingFile" +Write-Output "ConnectionString: $connectionString" +Write-Output "Check In: $checkin" +Write-Output "Check Out: $checkout" + +# CI Toolkit +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition +$xrmCIToolkit = $scriptPath + "\Xrm.Framework.CI.PowerShell.dll" +Write-Output "Importing CIToolkit: $xrmCIToolkit" +Import-Module $xrmCIToolkit + +#TF.exe +$tfCommand = "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\tf.exe" + +#Check Pending Changes +$pendingChanges = & "$tfCommand" status /recursive /noprompt "$solutionFilesFolder" +if ($pendingChanges -like "*no pending changes*") +{ + Write-Output $pendingChanges +} +else +{ + Write-Output $pendingChanges + Write-Error "Pending Changes Detected. Undo your changes and try again." + return +} + +#Before Files +[string[]]$beforeFiles = [System.IO.Directory]::GetFileSystemEntries($solutionFilesFolder, "*", [IO.SearchOption]::AllDirectories) +Write-Output "Before Files: " $beforeFiles + +#Check Out +if ($checkout -and ($beforeFiles.Length -gt 0)) +{ + & "$tfCommand" checkout /recursive /noprompt "$solutionFilesFolder" +} + +#Export Solutions +Write-Output "Exporting Solutions to: " $env:TEMP +$unmanagedSolution = Export-XrmSolution -ConnectionString $connectionString -Managed $False -OutputFolder $env:TEMP -UniqueSolutionName $solutionName +Write-Output "Exported Solution: $unmanagedSolution" +$managedSolution = Export-XrmSolution -ConnectionString $connectionString -Managed $True -OutputFolder $env:TEMP -UniqueSolutionName $solutionName +Write-Output "Exported Solution: $managedSolution" + +#Solution Packager +$extractOuput = & "$solutionPackager" /action:Extract /zipfile:"$env:TEMP\$unmanagedSolution" /folder:"$solutionFilesFolder" /packagetype:Both /errorlevel:Info /allowWrite:Yes /allowDelete:Yes /map:$mappingFile +Write-Output $extractOuput +if ($lastexitcode -ne 0) +{ + throw "Solution Extract operation failed with exit code: $lastexitcode" +} +else +{ + if (($extractOuput -ne $null) -and ($extractOuput -like "*warnings encountered*")) + { + Write-Warning "Solution Packager encountered warnings. Check the output." + } +} + +#After Files +[string[]]$afterFiles = [System.IO.Directory]::GetFileSystemEntries($solutionFilesFolder, "*", [IO.SearchOption]::AllDirectories) +Write-Output "After Files: " $afterFiles + +#Get the deltas +$deletedFiles = $beforeFiles | where {$afterFiles -notcontains $_} +$addedFiles = $afterFiles | where {$beforeFiles -notcontains $_} +if ($deletedFiles.Length -gt 0) +{ + Write-Output "Deleted Files:" $deletedFiles + + $_files = [System.String]::Join(""" """, $deletedFiles) + + & "$tfCommand" undo /noprompt "$_files" + & "$tfCommand" delete /noprompt "$_files" +} +if ($addedFiles.Length -gt 0) +{ + Write-Output "Added Files:" $addedFiles + $_files = [System.String]::Join(""" """, $addedFiles) + + & "$tfCommand" add /noprompt "$_files" +} + +# Checkin +if ($checkin) +{ + & "$tfCommand" checkin /noprompt /recursive /override:"PowerShell Extract" "$solutionFilesFolder" /bypass +} + +# End of script \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionCommand.cs new file mode 100644 index 00000000..0f5c4a57 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionCommand.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "XrmSolution")] + public class GetXrmSolutionCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public string UniqueSolutionName + { + get { return uniqueSolutionName; } + set { uniqueSolutionName = value; } + } + private string uniqueSolutionName; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Exporting Solution: {0}", UniqueSolutionName)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + + using (CIContext context = new CIContext(service)) + { + var query = from s in context.SolutionSet + where s.UniqueName == UniqueSolutionName + select s; + + Solution solution = query.FirstOrDefault(); + + WriteObject(solution); + } + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionImportLog.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionImportLog.cs new file mode 100644 index 00000000..e10a9552 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionImportLog.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Microsoft.Crm.Sdk.Messages; +using System.IO; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk.Query; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "XrmSolutionImportLog")] + public class GetXrmSolutionImportLogCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public Guid ImportJobId + { + get { return importJobId; } + set { importJobId = value; } + } + private Guid importJobId; + + [Parameter(Mandatory = false)] + public string OutputFile + { + get { return outputFile; } + set { outputFile = value; } + } + private string outputFile; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Downloading Solution Import Log for: {0}", ImportJobId)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + ImportJob importJob = service.Retrieve(ImportJob.EntityLogicalName, importJobId, new ColumnSet(true)).ToEntity(); + + RetrieveFormattedImportJobResultsRequest importLogRequest = new RetrieveFormattedImportJobResultsRequest() + { + ImportJobId = importJobId + }; + RetrieveFormattedImportJobResultsResponse importLogResponse = + (RetrieveFormattedImportJobResultsResponse)service.Execute(importLogRequest); + + if (!string.IsNullOrEmpty(outputFile)) + { + File.WriteAllText(outputFile, importLogResponse.FormattedResults); + } + + WriteObject(importJob); + } + + base.WriteVerbose(string.Format("Solution Import Log Downloaded Successfully")); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionInfoFromFolderCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionInfoFromFolderCommand.cs new file mode 100644 index 00000000..43c87d58 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionInfoFromFolderCommand.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Microsoft.Crm.Sdk.Messages; +using Microsoft.Xrm.Sdk.Query; +using System.IO; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk.Messages; +using System.IO.Compression; +using Xrm.Framework.CI.Common; +using System.Xml.Linq; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "XrmSolutionInfoFromFolder")] + public class GetXrmSolutionInfoFromFolderCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string SolutionFilesFolderPath + { + get { return solutionFilesFolderPath; } + set { solutionFilesFolderPath = value; } + } + private string solutionFilesFolderPath; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Reading Solution Files Folder: {0}", SolutionFilesFolderPath)); + + string uniqueName; + string version; + + using (StreamReader reader = new StreamReader(SolutionFilesFolderPath + "\\Other\\Solution.xml")) + { + XElement solutionNode = XElement.Load(reader); + uniqueName = solutionNode.Descendants("UniqueName").First().Value; + version = solutionNode.Descendants("Version").First().Value; + } + + XrmSolutionInfo info = new XrmSolutionInfo() + { + UniqueName = uniqueName, + Version = version + }; + + base.WriteObject(info); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionInfoFromZipCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionInfoFromZipCommand.cs new file mode 100644 index 00000000..daa11704 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/GetXrmSolutionInfoFromZipCommand.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Microsoft.Crm.Sdk.Messages; +using Microsoft.Xrm.Sdk.Query; +using System.IO; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk.Messages; +using System.IO.Compression; +using Xrm.Framework.CI.Common; +using System.Xml.Linq; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "XrmSolutionInfoFromZip")] + public class GetXrmSolutionInfoFromZipCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string SolutionFilePath + { + get { return solutionFilePath; } + set { solutionFilePath = value; } + } + private string solutionFilePath; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Reading Solution Zip: {0}", SolutionFilePath)); + + string uniqueName; + string version; + + using (ZipArchive solutionZip = ZipFile.Open(solutionFilePath, ZipArchiveMode.Read)) + { + ZipArchiveEntry solutionEntry = solutionZip.GetEntry("solution.xml"); + + using (StreamReader reader = new StreamReader(solutionEntry.Open())) + { + XElement solutionNode = XElement.Load(reader); + uniqueName = solutionNode.Descendants("UniqueName").First().Value; + version = solutionNode.Descendants("Version").First().Value; + } + } + + XrmSolutionInfo info = new XrmSolutionInfo() + { + UniqueName = uniqueName, + Version = version + }; + + base.WriteObject(info); + } + + #endregion + } + + public class XrmSolutionInfo + { + public string UniqueName { get; set; } + public string Version { get; set; } + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ImportSolution.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ImportSolution.ps1 new file mode 100644 index 00000000..9ed31e9a --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ImportSolution.ps1 @@ -0,0 +1,95 @@ +# Filename: ImportSolution.ps1 + +param( +[string]$solutionFile, #The full solution file name +[string]$solutionPath, #The full path to the location of the solution +[string]$targetCrmConnectionUrl, #The target CRM organization connection string +[bool]$override = $false, #If set to true will override the solution even if a solution with same version exists +[bool]$publishWorkflows = $false, #Will publish workflows during import +[bool]$overwriteUnmanagedCustomizations = $false, #Will overwrite unmanaged customizations +[bool]$skipProductUpdateDependencies = $false, #Will skip product update dependencies +[string]$logsDirectory #Optional - will place the import log in here +) + +$ErrorActionPreference = "Stop" + +$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition + +$xrmCIToolkit = $scriptPath + "\Xrm.Framework.CI.PowerShell.dll" +Write-Output "Importing CIToolkit: $xrmCIToolkit" +Import-Module $xrmCIToolkit + +Write-Output "solutionFile: $solutionFile" +Write-Output "solutionPath: $solutionPath" +Write-Output "targetCrmConnectionUrl: $targetCrmConnectionUrl" +Write-Output "Override: $override" +Write-Output "Publish Workflows: $publishWorkflows" +Write-Output "overwrite Unmanaged Customizations: $overwriteUnmanagedCustomizations" +Write-Output "Skip Product Update Dependencies: $skipProductUpdateDependencies" +Write-Output "Logs Directory: $logsDirectory" + +$solutionInfo = Get-XrmSolutionInfoFromZip -SolutionFilePath ($solutionPath + "\" + $solutionFile) + +Write-Output "Solution to Import: " $solutionInfo.UniqueName +Write-Output "Solution to Import: " $solutionInfo.Version + +$solution = Get-XrmSolution -ConnectionString $targetCrmConnectionUrl -UniqueSolutionName $solutionInfo.UniqueName + +if ($solution -eq $null) +{ + Write-Output "Solution not currently installed" +} +else +{ + Write-Output "Solution Installed Current version: " $solution.Version +} + +if ($override -or ($solution -eq $null) -or ($solution.Version -ne $solutionInfo.Version)) +{ + $solutionImportPath = $solutionPath + "\" + $solutionFile + + Write-Output "Importing Solution: $solutionImportPath" + + $importJobId = [guid]::NewGuid() + + $asyncOperationId = Import-XrmSolution -ConnectionString $targetCrmConnectionUrl -SolutionFilePath $solutionImportPath -publishWorkflows $publishWorkflows -overwriteUnmanagedCustomizations $overwriteUnmanagedCustomizations -SkipProductUpdateDependencies $skipProductUpdateDependencies -ImportAsync $true -WaitForCompletion $true -ImportJobId $importJobId + + Write-Output "Solution Import Completed. Import Job Id: $importJobId" + + if ($logsDirectory) + { + $importLogFile = $logsDirectory + "\" + $solutionFile.Replace(".zip", "_" + [System.DateTime]::Now.ToString("yyyy_MM_dd__HH_mm") + ".xml") + } + + $importJob = Get-XrmSolutionImportLog -ImportJobId $importJobId -ConnectionString $targetCrmConnectionUrl -OutputFile $importLogFile + + $importProgress = $importJob.Progress + $importResult = (Select-Xml -Content $importJob.Data -XPath "//solutionManifest/result/@result").Node.Value + $importErrorText = (Select-Xml -Content $importJob.Data -XPath "//solutionManifest/result/@errortext").Node.Value + + + Write-Output "Import Progress: $importProgress" + Write-Output "Import Result: $importResult" + Write-Output "Import Error Text: $importErrorText" + Write-Output $importJob.Data + + if (($importResult -ne "success") -or ($importProgress -ne 100)) + { + throw "Import Failed" + } + + $solution = Get-XrmSolution -ConnectionString $targetCrmConnectionUrl -UniqueSolutionName $solutionInfo.UniqueName + + if ($solution.Version -ne $solutionInfo.Version) + { + throw "Import Failed" + } + else + { + Write-Output "Solution Imported Successfully" + } +} +else +{ + Write-Output "Skipped Import of Solution..." +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ImportXrmSolutionCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ImportXrmSolutionCommand.cs new file mode 100644 index 00000000..1f004c57 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/ImportXrmSolutionCommand.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Microsoft.Crm.Sdk.Messages; +using Microsoft.Xrm.Sdk.Query; +using System.IO; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk.Messages; +using System.IO.Compression; +using Xrm.Framework.CI.Common; +using System.Xml.Linq; +using System.Threading; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsData.Import, "XrmSolution")] + public class ImportXrmSolutionCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public string SolutionFilePath + { + get { return solutionFilePath; } + set { solutionFilePath = value; } + } + private string solutionFilePath; + + [Parameter(Mandatory = false)] + public bool PublishWorkflows + { + get { return publishWorkflows; } + set { publishWorkflows = value; } + } + private bool publishWorkflows = false; + + [Parameter(Mandatory = false)] + public bool ConvertToManaged + { + get { return convertToManaged; } + set { convertToManaged = value; } + } + private bool convertToManaged = false; + + [Parameter(Mandatory = false)] + public bool OverwriteUnmanagedCustomizations + { + get { return overwriteUnmanagedCustomizations; } + set { overwriteUnmanagedCustomizations = value; } + } + private bool overwriteUnmanagedCustomizations = false; + + [Parameter(Mandatory = false)] + public bool SkipProductUpdateDependencies + { + get { return skipProductUpdateDependencies; } + set { skipProductUpdateDependencies = value; } + } + private bool skipProductUpdateDependencies = false; + + [Parameter(Mandatory = false)] + public bool ImportAsync + { + get { return importAsync; } + set { importAsync = value; } + } + private bool importAsync = false; + + [Parameter(Mandatory = false)] + public bool WaitForCompletion + { + get { return waitForCompletion; } + set { waitForCompletion = value; } + } + private bool waitForCompletion = false; + + [Parameter(Mandatory = false)] + public int SleepInterval + { + get { return sleepInterval; } + set { sleepInterval = value; } + } + private int sleepInterval = 15; + + [Parameter(Mandatory = false)] + public int AsyncWaitTimeout + { + get { return asyncWaitTimeout; } + set { asyncWaitTimeout = value; } + } + private int asyncWaitTimeout = 15*60; + + [Parameter(Mandatory = false)] + public Guid ImportJobId + { + get { return importJobId; } + set { importJobId = value; } + } + private Guid importJobId = Guid.Empty; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Importing Solution: {0}", SolutionFilePath)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + if (importJobId == Guid.Empty) + { + ImportJobId = Guid.NewGuid(); + } + + base.WriteVerbose(string.Format("ImportJobId {0}", ImportJobId)); + + using (OrganizationService service = new OrganizationService(connection)) + { + byte[] solutionBytes = File.ReadAllBytes(solutionFilePath); + + ImportSolutionRequest importSolutionRequest = new ImportSolutionRequest() + { + CustomizationFile = solutionBytes, + PublishWorkflows = publishWorkflows, + ConvertToManaged = convertToManaged, + OverwriteUnmanagedCustomizations = overwriteUnmanagedCustomizations, + SkipProductUpdateDependencies = skipProductUpdateDependencies, + ImportJobId = ImportJobId, + RequestId = ImportJobId + }; + + if (importAsync) + { + Guid asyncJobId; + + ExecuteAsyncRequest asyncRequest = new ExecuteAsyncRequest() + { + Request = importSolutionRequest, + RequestId = ImportJobId + }; + ExecuteAsyncResponse asyncResponse = service.Execute(asyncRequest) as ExecuteAsyncResponse; + + asyncJobId = asyncResponse.AsyncJobId; + + WriteObject(asyncJobId); + + if (waitForCompletion) + { + DateTime end = DateTime.Now.AddSeconds(asyncWaitTimeout); + + bool completed = false; + while (!completed) + { + if (end < DateTime.Now) + { + throw new Exception(string.Format("Import Timeout Exceeded: {0}", asyncWaitTimeout)); + } + + Thread.Sleep(SleepInterval*1000); + + AsyncOperation asyncOperation; + + try + { + + asyncOperation = service.Retrieve("asyncoperation", asyncJobId, + new ColumnSet("asyncoperationid", "statuscode", "message")).ToEntity(); + } + catch (Exception ex) + { + base.WriteWarning(ex.Message); + continue; + } + + switch (asyncOperation.StatusCode.Value) + { + //Succeeded + case 30: + completed = true; + break; + //Pausing //Canceling //Failed //Canceled + case 21: + case 22: + case 31: + case 32: + throw new Exception(string.Format("Solution Import Failed: {0} {1}", + asyncOperation.StatusCode.Value, asyncOperation.Message)); + default: + break; + } + } + } + } + else + { + ImportSolutionResponse importSolutionResponse = service.Execute(importSolutionRequest) as ImportSolutionResponse; + } + + base.WriteVerbose(string.Format("{0} Imported Completed {1}", SolutionFilePath, importJobId)); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/NewXrmEntityCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/NewXrmEntityCommand.cs new file mode 100644 index 00000000..1ef203ae --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/NewXrmEntityCommand.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.New, "XrmEntity")] + public class NewXrmEntityCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string EntityName + { + get { return entityName; } + set { entityName = value; } + } + private string entityName; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("New Entity: {0}", EntityName)); + + WriteObject(new Entity(EntityName)); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Properties/AssemblyInfo.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..dd0df38f --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Xrm.Framework.CI.PowerShell")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Wael Hamze")] +[assembly: AssemblyProduct("Xrm CI Framework")] +[assembly: AssemblyCopyright("Copyright © Wael Hamze 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("092138a4-4c60-452c-b17e-eadc27374b2c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/PublishXrmCustomizationsCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/PublishXrmCustomizationsCommand.cs new file mode 100644 index 00000000..48666b98 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/PublishXrmCustomizationsCommand.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; +using Microsoft.Crm.Sdk.Messages; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsData.Publish, "XrmCustomizations")] + public class PublishXrmCustomizationsCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Publishing Customizations")); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + PublishAllXmlRequest req = new PublishAllXmlRequest(); + service.Execute(req); + + base.WriteVerbose(string.Format("Publish Customizations Completed")); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/RMPSCmdArgs.ps1 b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/RMPSCmdArgs.ps1 new file mode 100644 index 00000000..cc45a264 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/RMPSCmdArgs.ps1 @@ -0,0 +1 @@ +-Command "try { & '.\__ScriptFile__' __Parameters__} Catch [System.Exception] {Write-Output $_;$inner = $_.Exception.InnerException;while ($inner){Write-Output $inner;$inner = $inner.InnerException}$exitCode = 1} if ($exitCode -gt 0) { '`nERROR: Operation Failed' } exit $exitCode" \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/RemoveXrmEntityCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/RemoveXrmEntityCommand.cs new file mode 100644 index 00000000..7424c3b4 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/RemoveXrmEntityCommand.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Remove, "XrmEntity")] + public class RemoveXrmEntityCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public string EntityName + { + get { return entityName; } + set { entityName = value; } + } + private string entityName; + + [Parameter(Mandatory = true)] + public Guid Id + { + get { return id; } + set { id = value; } + } + private Guid id; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Deleting Entity: {0} {1}", EntityName, Id)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + service.Delete(EntityName, Id); + + base.WriteVerbose(string.Format("Entity Deleted: {0} {1}", EntityName, Id)); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SelectXrmWhoAmICommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SelectXrmWhoAmICommand.cs new file mode 100644 index 00000000..b6fbfea7 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SelectXrmWhoAmICommand.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; +using Microsoft.Crm.Sdk.Messages; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Select, "WhoAmI")] + public class SelectXrmWhoAmICommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Invoking Organization Service")); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + WhoAmIResponse response = (service.Execute(new WhoAmIRequest()) as WhoAmIResponse); + + base.WriteObject(response); + + base.WriteVerbose(string.Format("OrganizationId: {0}", response.OrganizationId)); + base.WriteVerbose(string.Format("BusinessUnitId: {0}", response.BusinessUnitId)); + base.WriteVerbose(string.Format("UserId: {0}", response.UserId)); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmEntityCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmEntityCommand.cs new file mode 100644 index 00000000..aaae2fe2 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmEntityCommand.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Set, "XrmEntity")] + public class SetXrmEntityCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public Entity EntityObject + { + get { return entityObject; } + set { entityObject = value; } + } + private Entity entityObject; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Updating Entity: {0}", EntityObject)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + using (OrganizationService service = new OrganizationService(connection)) + { + service.Update(EntityObject); + + base.WriteVerbose(string.Format("Entity Updated: {0}", EntityObject)); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmSolutionVersionCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmSolutionVersionCommand.cs new file mode 100644 index 00000000..2451fff5 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmSolutionVersionCommand.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Xrm.Framework.CI.Common; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Set, "XrmSolutionVersion")] + public class SetXrmSolutionVersionCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string ConnectionString + { + get { return connectionString; } + set { connectionString = value; } + } + private string connectionString; + + [Parameter(Mandatory = true)] + public string SolutionName + { + get { return solutionName; } + set { solutionName = value; } + } + private string solutionName; + + [Parameter(Mandatory = true)] + public string Version + { + get { return version; } + set { version = value; } + } + private string version; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + base.WriteVerbose(string.Format("Updating Solution {0} Version: {1}", SolutionName, Version)); + + CrmConnection connection = CrmConnection.Parse(connectionString); + + Solution solution = null; + + using (OrganizationService orgService = new OrganizationService(connection)) + { + using (CIContext context = new CIContext(orgService)) + { + var query = from s in context.SolutionSet + where s.UniqueName == solutionName + select s; + + solution = query.FirstOrDefault(); + } + + if (solution == null) + { + throw new Exception(string.Format("Solution {0} could not be found", SolutionName)); + } + else + { + Solution update = new Solution(); + update.Id = solution.Id; + update.Version = version; + orgService.Update(update); + + base.WriteVerbose(string.Format("Solution {0} Update to Version: {1}", SolutionName, Version)); + } + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmSolutionVersionInFolderCommand.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmSolutionVersionInFolderCommand.cs new file mode 100644 index 00000000..68505792 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/SetXrmSolutionVersionInFolderCommand.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Management.Automation; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; +using Microsoft.Crm.Sdk.Messages; +using Microsoft.Xrm.Sdk.Query; +using System.IO; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Sdk.Messages; +using System.IO.Compression; +using Xrm.Framework.CI.Common; +using System.Xml.Linq; + +namespace Xrm.Framework.CI.PowerShell +{ + [Cmdlet(VerbsCommon.Set, "XrmSolutionVersionInFolder")] + public class SetXrmSolutionVersionInFolderCommand : Cmdlet + { + #region Parameters + + [Parameter(Mandatory = true)] + public string SolutionFilesFolderPath + { + get { return solutionFilesFolderPath; } + set { solutionFilesFolderPath = value; } + } + private string solutionFilesFolderPath; + + [Parameter(Mandatory = true)] + public string Version + { + get { return version; } + set { version = value; } + } + private string version; + + #endregion + + #region Process Record + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + string uniqueName; + + string solutionFile = SolutionFilesFolderPath + "\\Other\\Solution.xml"; + + base.WriteVerbose(string.Format("Reading Solution File: {0}", solutionFile)); + + XElement solutionNode; + + using (StreamReader reader = new StreamReader(solutionFile)) + { + solutionNode = XElement.Load(reader); + uniqueName = solutionNode.Descendants("UniqueName").First().Value; + + base.WriteVerbose(string.Format("Updating Version for Solution: {0}", uniqueName)); + + solutionNode.Descendants("Version").First().Value = Version; + } + + solutionNode.Save(solutionFile); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Xrm.Framework.CI.PowerShell.csproj b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Xrm.Framework.CI.PowerShell.csproj new file mode 100644 index 00000000..e3798160 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell/Xrm.Framework.CI.PowerShell.csproj @@ -0,0 +1,126 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {A4D91C99-EF3D-4ED4-A647-7902054F8854} + Library + Properties + Xrm.Framework.CI.PowerShell + Xrm.Framework.CI.PowerShell + v4.5 + 512 + SAK + SAK + SAK + SAK + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + true + + + ..\Lib\Keys\Xrm.Framework.CI.snk + + + + ..\Lib\CrmSdk\microsoft.crm.sdk.proxy.dll + + + ..\Lib\CrmSdk\microsoft.xrm.client.dll + + + ..\Lib\CrmSdk\microsoft.xrm.sdk.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Always + + + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + + + + + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/CrmConnectionAttributes.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/CrmConnectionAttributes.cs new file mode 100644 index 00000000..745095ec --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/CrmConnectionAttributes.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Xrm.Framework.CI.Common +{ + public class CrmConnectionAttributes + { + public string Port { get; set; } + + public string Protocol { get; set; } + + public string Domain { get; set; } + + public string UserName { get; set; } + + public string Password { get; set; } + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/CrmConnectionConverter.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/CrmConnectionConverter.cs new file mode 100644 index 00000000..35bd346e --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/CrmConnectionConverter.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xrm.Client; + +namespace Xrm.Framework.CI.Common +{ + public class CrmConnectionConverter + { + //public static string ConvertToConnectionString() + //{ + + //} + + public static CrmConnectionAttributes ConvertFromConnectionString(string connectionString) + { + CrmConnectionAttributes conAttributes = new CrmConnectionAttributes(); + + CrmConnection connection = CrmConnection.Parse(connectionString); + Uri serviceUri = connection.ServiceUri; + + conAttributes.Protocol = serviceUri.Scheme; + conAttributes.Port = serviceUri.Port.ToString(); + + if (connection.ClientCredentials != null && connection.ClientCredentials.Windows != null && connection.ClientCredentials.Windows.ClientCredential != null) + { + conAttributes.Domain = connection.ClientCredentials.Windows.ClientCredential.Domain; + conAttributes.UserName = connection.ClientCredentials.Windows.ClientCredential.UserName; + conAttributes.Password = connection.ClientCredentials.Windows.ClientCredential.Password; + } + else if (connection.ClientCredentials != null && connection.ClientCredentials.UserName != null) + { + conAttributes.UserName = connection.ClientCredentials.UserName.UserName; + conAttributes.Password = connection.ClientCredentials.UserName.Password; + } + + return conAttributes; + } + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/Entities.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/Entities.cs new file mode 100644 index 00000000..242373de --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/Entities.cs @@ -0,0 +1,185226 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.33440 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()] + +namespace Xrm.Framework.CI.Common.Entities +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Account : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Account() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "account"; + + 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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 CRM. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 the lead that the account was created from if the account was created by converting a lead in Microsoft Dynamics CRM. 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"); + } + } + + /// + /// 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 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 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 ((Xrm.Framework.CI.Common.Entities.AccountState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.AccountState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N account_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_activity_parties")] + public System.Collections.Generic.IEnumerable account_activity_parties + { + get + { + return this.GetRelatedEntities("account_activity_parties", null); + } + set + { + this.OnPropertyChanging("account_activity_parties"); + this.SetRelatedEntities("account_activity_parties", null, value); + this.OnPropertyChanged("account_activity_parties"); + } + } + + /// + /// 1:N Account_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ActivityPointers")] + public System.Collections.Generic.IEnumerable Account_ActivityPointers + { + get + { + return this.GetRelatedEntities("Account_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Account_ActivityPointers"); + this.SetRelatedEntities("Account_ActivityPointers", null, value); + this.OnPropertyChanged("Account_ActivityPointers"); + } + } + + /// + /// 1:N Account_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Annotation")] + public System.Collections.Generic.IEnumerable Account_Annotation + { + get + { + return this.GetRelatedEntities("Account_Annotation", null); + } + set + { + this.OnPropertyChanging("Account_Annotation"); + this.SetRelatedEntities("Account_Annotation", null, value); + this.OnPropertyChanged("Account_Annotation"); + } + } + + /// + /// 1:N Account_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Appointments")] + public System.Collections.Generic.IEnumerable Account_Appointments + { + get + { + return this.GetRelatedEntities("Account_Appointments", null); + } + set + { + this.OnPropertyChanging("Account_Appointments"); + this.SetRelatedEntities("Account_Appointments", null, value); + this.OnPropertyChanged("Account_Appointments"); + } + } + + /// + /// 1:N Account_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_AsyncOperations")] + public System.Collections.Generic.IEnumerable Account_AsyncOperations + { + get + { + return this.GetRelatedEntities("Account_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Account_AsyncOperations"); + this.SetRelatedEntities("Account_AsyncOperations", null, value); + this.OnPropertyChanged("Account_AsyncOperations"); + } + } + + /// + /// 1:N Account_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Account_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Account_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Account_BulkDeleteFailures"); + this.SetRelatedEntities("Account_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Account_BulkDeleteFailures"); + } + } + + /// + /// 1:N account_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections1")] + public System.Collections.Generic.IEnumerable account_connections1 + { + get + { + return this.GetRelatedEntities("account_connections1", null); + } + set + { + this.OnPropertyChanging("account_connections1"); + this.SetRelatedEntities("account_connections1", null, value); + this.OnPropertyChanged("account_connections1"); + } + } + + /// + /// 1:N account_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections2")] + public System.Collections.Generic.IEnumerable account_connections2 + { + get + { + return this.GetRelatedEntities("account_connections2", null); + } + set + { + this.OnPropertyChanging("account_connections2"); + this.SetRelatedEntities("account_connections2", null, value); + this.OnPropertyChanged("account_connections2"); + } + } + + /// + /// 1:N account_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable account_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("account_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("account_customer_opportunity_roles"); + this.SetRelatedEntities("account_customer_opportunity_roles", null, value); + this.OnPropertyChanged("account_customer_opportunity_roles"); + } + } + + /// + /// 1:N account_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_customer")] + public System.Collections.Generic.IEnumerable account_customer_relationship_customer + { + get + { + return this.GetRelatedEntities("account_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_customer"); + this.SetRelatedEntities("account_customer_relationship_customer", null, value); + this.OnPropertyChanged("account_customer_relationship_customer"); + } + } + + /// + /// 1:N account_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_partner")] + public System.Collections.Generic.IEnumerable account_customer_relationship_partner + { + get + { + return this.GetRelatedEntities("account_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_partner"); + this.SetRelatedEntities("account_customer_relationship_partner", null, value); + this.OnPropertyChanged("account_customer_relationship_partner"); + } + } + + /// + /// 1:N Account_CustomerAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_CustomerAddress")] + public System.Collections.Generic.IEnumerable Account_CustomerAddress + { + get + { + return this.GetRelatedEntities("Account_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Account_CustomerAddress"); + this.SetRelatedEntities("Account_CustomerAddress", null, value); + this.OnPropertyChanged("Account_CustomerAddress"); + } + } + + /// + /// 1:N Account_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Account_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Account_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Account_DuplicateBaseRecord"); + this.SetRelatedEntities("Account_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Account_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Account_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Account_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Account_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Account_DuplicateMatchingRecord"); + this.SetRelatedEntities("Account_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Account_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Account_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Emails")] + public System.Collections.Generic.IEnumerable Account_Emails + { + get + { + return this.GetRelatedEntities("Account_Emails", null); + } + set + { + this.OnPropertyChanging("Account_Emails"); + this.SetRelatedEntities("Account_Emails", null, value); + this.OnPropertyChanged("Account_Emails"); + } + } + + /// + /// 1:N Account_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Faxes")] + public System.Collections.Generic.IEnumerable Account_Faxes + { + get + { + return this.GetRelatedEntities("Account_Faxes", null); + } + set + { + this.OnPropertyChanging("Account_Faxes"); + this.SetRelatedEntities("Account_Faxes", null, value); + this.OnPropertyChanged("Account_Faxes"); + } + } + + /// + /// 1:N Account_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Letters")] + public System.Collections.Generic.IEnumerable Account_Letters + { + get + { + return this.GetRelatedEntities("Account_Letters", null); + } + set + { + this.OnPropertyChanging("Account_Letters"); + this.SetRelatedEntities("Account_Letters", null, value); + this.OnPropertyChanged("Account_Letters"); + } + } + + /// + /// 1:N account_master_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedaccount_master_account + { + get + { + return this.GetRelatedEntities("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedaccount_master_account"); + this.SetRelatedEntities("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedaccount_master_account"); + } + } + + /// + /// 1:N account_parent_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedaccount_parent_account + { + get + { + return this.GetRelatedEntities("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedaccount_parent_account"); + this.SetRelatedEntities("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedaccount_parent_account"); + } + } + + /// + /// 1:N Account_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Phonecalls")] + public System.Collections.Generic.IEnumerable Account_Phonecalls + { + get + { + return this.GetRelatedEntities("Account_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Account_Phonecalls"); + this.SetRelatedEntities("Account_Phonecalls", null, value); + this.OnPropertyChanged("Account_Phonecalls"); + } + } + + /// + /// 1:N account_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_PostFollows")] + public System.Collections.Generic.IEnumerable account_PostFollows + { + get + { + return this.GetRelatedEntities("account_PostFollows", null); + } + set + { + this.OnPropertyChanging("account_PostFollows"); + this.SetRelatedEntities("account_PostFollows", null, value); + this.OnPropertyChanged("account_PostFollows"); + } + } + + /// + /// 1:N account_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable account_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("account_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("account_principalobjectattributeaccess"); + this.SetRelatedEntities("account_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("account_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Account_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ProcessSessions")] + public System.Collections.Generic.IEnumerable Account_ProcessSessions + { + get + { + return this.GetRelatedEntities("Account_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Account_ProcessSessions"); + this.SetRelatedEntities("Account_ProcessSessions", null, value); + this.OnPropertyChanged("Account_ProcessSessions"); + } + } + + /// + /// 1:N Account_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Account_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Account_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Account_RecurringAppointmentMasters"); + this.SetRelatedEntities("Account_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Account_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Account_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Account_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Account_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Account_ServiceAppointments"); + this.SetRelatedEntities("Account_ServiceAppointments", null, value); + this.OnPropertyChanged("Account_ServiceAppointments"); + } + } + + /// + /// 1:N Account_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Account_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Account_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Account_SharepointDocumentLocation"); + this.SetRelatedEntities("Account_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Account_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Account_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Tasks")] + public System.Collections.Generic.IEnumerable Account_Tasks + { + get + { + return this.GetRelatedEntities("Account_Tasks", null); + } + set + { + this.OnPropertyChanging("Account_Tasks"); + this.SetRelatedEntities("Account_Tasks", null, value); + this.OnPropertyChanged("Account_Tasks"); + } + } + + /// + /// 1:N contact_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_accounts")] + public System.Collections.Generic.IEnumerable contact_customer_accounts + { + get + { + return this.GetRelatedEntities("contact_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contact_customer_accounts"); + this.SetRelatedEntities("contact_customer_accounts", null, value); + this.OnPropertyChanged("contact_customer_accounts"); + } + } + + /// + /// 1:N contract_billingcustomer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_accounts")] + public System.Collections.Generic.IEnumerable contract_billingcustomer_accounts + { + get + { + return this.GetRelatedEntities("contract_billingcustomer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_accounts"); + this.SetRelatedEntities("contract_billingcustomer_accounts", null, value); + this.OnPropertyChanged("contract_billingcustomer_accounts"); + } + } + + /// + /// 1:N contract_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_accounts")] + public System.Collections.Generic.IEnumerable contract_customer_accounts + { + get + { + return this.GetRelatedEntities("contract_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_customer_accounts"); + this.SetRelatedEntities("contract_customer_accounts", null, value); + this.OnPropertyChanged("contract_customer_accounts"); + } + } + + /// + /// 1:N contractlineitem_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_accounts")] + public System.Collections.Generic.IEnumerable contractlineitem_customer_accounts + { + get + { + return this.GetRelatedEntities("contractlineitem_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_accounts"); + this.SetRelatedEntities("contractlineitem_customer_accounts", null, value); + this.OnPropertyChanged("contractlineitem_customer_accounts"); + } + } + + /// + /// 1:N CreatedAccount_BulkOperationLogs2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedAccount_BulkOperationLogs2")] + public System.Collections.Generic.IEnumerable CreatedAccount_BulkOperationLogs2 + { + get + { + return this.GetRelatedEntities("CreatedAccount_BulkOperationLogs2", null); + } + set + { + this.OnPropertyChanging("CreatedAccount_BulkOperationLogs2"); + this.SetRelatedEntities("CreatedAccount_BulkOperationLogs2", null, value); + this.OnPropertyChanged("CreatedAccount_BulkOperationLogs2"); + } + } + + /// + /// 1:N incident_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_accounts")] + public System.Collections.Generic.IEnumerable incident_customer_accounts + { + get + { + return this.GetRelatedEntities("incident_customer_accounts", null); + } + set + { + this.OnPropertyChanging("incident_customer_accounts"); + this.SetRelatedEntities("incident_customer_accounts", null, value); + this.OnPropertyChanged("incident_customer_accounts"); + } + } + + /// + /// 1:N invoice_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_accounts")] + public System.Collections.Generic.IEnumerable invoice_customer_accounts + { + get + { + return this.GetRelatedEntities("invoice_customer_accounts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_accounts"); + this.SetRelatedEntities("invoice_customer_accounts", null, value); + this.OnPropertyChanged("invoice_customer_accounts"); + } + } + + /// + /// 1:N lead_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_accounts")] + public System.Collections.Generic.IEnumerable lead_customer_accounts + { + get + { + return this.GetRelatedEntities("lead_customer_accounts", null); + } + set + { + this.OnPropertyChanging("lead_customer_accounts"); + this.SetRelatedEntities("lead_customer_accounts", null, value); + this.OnPropertyChanged("lead_customer_accounts"); + } + } + + /// + /// 1:N lead_parent_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_account")] + public System.Collections.Generic.IEnumerable lead_parent_account + { + get + { + return this.GetRelatedEntities("lead_parent_account", null); + } + set + { + this.OnPropertyChanging("lead_parent_account"); + this.SetRelatedEntities("lead_parent_account", null, value); + this.OnPropertyChanged("lead_parent_account"); + } + } + + /// + /// 1:N opportunity_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_accounts")] + public System.Collections.Generic.IEnumerable opportunity_customer_accounts + { + get + { + return this.GetRelatedEntities("opportunity_customer_accounts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_accounts"); + this.SetRelatedEntities("opportunity_customer_accounts", null, value); + this.OnPropertyChanged("opportunity_customer_accounts"); + } + } + + /// + /// 1:N opportunity_parent_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_account")] + public System.Collections.Generic.IEnumerable opportunity_parent_account + { + get + { + return this.GetRelatedEntities("opportunity_parent_account", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_account"); + this.SetRelatedEntities("opportunity_parent_account", null, value); + this.OnPropertyChanged("opportunity_parent_account"); + } + } + + /// + /// 1:N order_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_accounts")] + public System.Collections.Generic.IEnumerable order_customer_accounts + { + get + { + return this.GetRelatedEntities("order_customer_accounts", null); + } + set + { + this.OnPropertyChanging("order_customer_accounts"); + this.SetRelatedEntities("order_customer_accounts", null, value); + this.OnPropertyChanged("order_customer_accounts"); + } + } + + /// + /// 1:N quote_customer_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_accounts")] + public System.Collections.Generic.IEnumerable quote_customer_accounts + { + get + { + return this.GetRelatedEntities("quote_customer_accounts", null); + } + set + { + this.OnPropertyChanging("quote_customer_accounts"); + this.SetRelatedEntities("quote_customer_accounts", null, value); + this.OnPropertyChanged("quote_customer_accounts"); + } + } + + /// + /// 1:N SourceAccount_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceAccount_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable SourceAccount_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("SourceAccount_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceAccount_BulkOperationLogs"); + this.SetRelatedEntities("SourceAccount_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceAccount_BulkOperationLogs"); + } + } + + /// + /// 1:N userentityinstancedata_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_account")] + public System.Collections.Generic.IEnumerable userentityinstancedata_account + { + get + { + return this.GetRelatedEntities("userentityinstancedata_account", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_account"); + this.SetRelatedEntities("userentityinstancedata_account", null, value); + this.OnPropertyChanged("userentityinstancedata_account"); + } + } + + /// + /// N:N accountleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("accountleads_association")] + public System.Collections.Generic.IEnumerable accountleads_association + { + get + { + return this.GetRelatedEntities("accountleads_association", null); + } + set + { + this.OnPropertyChanging("accountleads_association"); + this.SetRelatedEntities("accountleads_association", null, value); + this.OnPropertyChanged("accountleads_association"); + } + } + + /// + /// N:N listaccount_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listaccount_association")] + public System.Collections.Generic.IEnumerable listaccount_association + { + get + { + return this.GetRelatedEntities("listaccount_association", null); + } + set + { + this.OnPropertyChanging("listaccount_association"); + this.SetRelatedEntities("listaccount_association", null, value); + this.OnPropertyChanged("listaccount_association"); + } + } + + /// + /// N:1 account_master_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Account Referencingaccount_master_account + { + get + { + return this.GetRelatedEntity("account_master_account", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 account_originating_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_originating_lead")] + public Xrm.Framework.CI.Common.Entities.Lead account_originating_lead + { + get + { + return this.GetRelatedEntity("account_originating_lead", null); + } + set + { + this.OnPropertyChanging("account_originating_lead"); + this.SetRelatedEntity("account_originating_lead", null, value); + this.OnPropertyChanged("account_originating_lead"); + } + } + + /// + /// N:1 account_parent_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Account Referencingaccount_parent_account + { + get + { + return this.GetRelatedEntity("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingaccount_parent_account"); + this.SetRelatedEntity("account_parent_account", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingaccount_parent_account"); + } + } + + /// + /// N:1 account_primary_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_primary_contact")] + public Xrm.Framework.CI.Common.Entities.Contact account_primary_contact + { + get + { + return this.GetRelatedEntity("account_primary_contact", null); + } + set + { + this.OnPropertyChanging("account_primary_contact"); + this.SetRelatedEntity("account_primary_contact", null, value); + this.OnPropertyChanged("account_primary_contact"); + } + } + + /// + /// N:1 business_unit_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_accounts")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_accounts + { + get + { + return this.GetRelatedEntity("business_unit_accounts", null); + } + } + + /// + /// N:1 equipment_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredequipmentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_accounts")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_accounts + { + get + { + return this.GetRelatedEntity("equipment_accounts", null); + } + set + { + this.OnPropertyChanging("equipment_accounts"); + this.SetRelatedEntity("equipment_accounts", null, value); + this.OnPropertyChanged("equipment_accounts"); + } + } + + /// + /// N:1 lk_accountbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_createdby + { + get + { + return this.GetRelatedEntity("lk_accountbase_createdby", null); + } + } + + /// + /// N:1 lk_accountbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_accountbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_accountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_accountbase_modifiedby", null); + } + } + + /// + /// N:1 lk_accountbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_accountbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_accountbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 price_level_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultpricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_accounts")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_accounts + { + get + { + return this.GetRelatedEntity("price_level_accounts", null); + } + set + { + this.OnPropertyChanging("price_level_accounts"); + this.SetRelatedEntity("price_level_accounts", null, value); + this.OnPropertyChanged("price_level_accounts"); + } + } + + /// + /// N:1 processstage_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_account")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_account + { + get + { + return this.GetRelatedEntity("processstage_account", null); + } + set + { + this.OnPropertyChanging("processstage_account"); + this.SetRelatedEntity("processstage_account", null, value); + this.OnPropertyChanged("processstage_account"); + } + } + + /// + /// N:1 service_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredserviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_accounts")] + public Xrm.Framework.CI.Common.Entities.Service service_accounts + { + get + { + return this.GetRelatedEntity("service_accounts", null); + } + set + { + this.OnPropertyChanging("service_accounts"); + this.SetRelatedEntity("service_accounts", null, value); + this.OnPropertyChanged("service_accounts"); + } + } + + /// + /// N:1 system_user_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_accounts")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_accounts + { + get + { + return this.GetRelatedEntity("system_user_accounts", null); + } + set + { + this.OnPropertyChanging("system_user_accounts"); + this.SetRelatedEntity("system_user_accounts", null, value); + this.OnPropertyChanged("system_user_accounts"); + } + } + + /// + /// N:1 team_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_accounts")] + public Xrm.Framework.CI.Common.Entities.Team team_accounts + { + get + { + return this.GetRelatedEntity("team_accounts", null); + } + } + + /// + /// N:1 territory_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_accounts")] + public Xrm.Framework.CI.Common.Entities.Territory territory_accounts + { + get + { + return this.GetRelatedEntity("territory_accounts", null); + } + set + { + this.OnPropertyChanging("territory_accounts"); + this.SetRelatedEntity("territory_accounts", null, value); + this.OnPropertyChanged("territory_accounts"); + } + } + + /// + /// N:1 transactioncurrency_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_account")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_account + { + get + { + return this.GetRelatedEntity("transactioncurrency_account", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_account"); + this.SetRelatedEntity("transactioncurrency_account", null, value); + this.OnPropertyChanged("transactioncurrency_account"); + } + } + + /// + /// N:1 user_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_accounts")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_accounts + { + get + { + return this.GetRelatedEntity("user_accounts", null); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("accountleads")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AccountLeads : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AccountLeads() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "accountleads"; + + public const int EntityTypeCode = 16; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public System.Nullable AccountId + { + get + { + return this.GetAttributeValue>("accountid"); + } + } + + /// + /// Unique identifier of the lead for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountleadid")] + public System.Nullable AccountLeadId + { + get + { + return this.GetAttributeValue>("accountleadid"); + } + set + { + this.OnPropertyChanging("AccountLeadId"); + this.SetAttributeValue("accountleadid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AccountLeadId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountleadid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AccountLeadId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N accountleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("accountleads_association")] + public System.Collections.Generic.IEnumerable accountleads_association + { + get + { + return this.GetRelatedEntities("accountleads_association", null); + } + set + { + this.OnPropertyChanging("accountleads_association"); + this.SetRelatedEntities("accountleads_association", null, value); + this.OnPropertyChanged("accountleads_association"); + } + } + } + + /// + /// MIME attachment for an email activity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("activitymimeattachment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ActivityMimeAttachment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ActivityMimeAttachment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "activitymimeattachment"; + + public const int EntityTypeCode = 1001; + + 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 activity with which the email attachment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference ActivityId + { + get + { + return this.GetAttributeValue("activityid"); + } + set + { + this.OnPropertyChanging("ActivityId"); + this.SetAttributeValue("activityid", value); + this.OnPropertyChanged("ActivityId"); + } + } + + /// + /// Unique identifier of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitymimeattachmentid")] + public System.Nullable ActivityMimeAttachmentId + { + get + { + return this.GetAttributeValue>("activitymimeattachmentid"); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachmentId"); + this.SetAttributeValue("activitymimeattachmentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ActivityMimeAttachmentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitymimeattachmentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ActivityMimeAttachmentId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitymimeattachmentidunique")] + public System.Nullable ActivityMimeAttachmentIdUnique + { + get + { + return this.GetAttributeValue>("activitymimeattachmentidunique"); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachmentIdUnique"); + this.SetAttributeValue("activitymimeattachmentidunique", value); + this.OnPropertyChanged("ActivityMimeAttachmentIdUnique"); + } + } + + /// + /// Unique identifier of the attachment with which this activitymimeattachment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attachmentid")] + public Microsoft.Xrm.Sdk.EntityReference AttachmentId + { + get + { + return this.GetAttributeValue("attachmentid"); + } + set + { + this.OnPropertyChanging("AttachmentId"); + this.SetAttributeValue("attachmentid", value); + this.OnPropertyChanged("AttachmentId"); + } + } + + /// + /// Number of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attachmentnumber")] + public System.Nullable AttachmentNumber + { + get + { + return this.GetAttributeValue>("attachmentnumber"); + } + set + { + this.OnPropertyChanging("AttachmentNumber"); + this.SetAttributeValue("attachmentnumber", value); + this.OnPropertyChanged("AttachmentNumber"); + } + } + + /// + /// Contents of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("body")] + public string Body + { + get + { + return this.GetAttributeValue("body"); + } + set + { + this.OnPropertyChanging("Body"); + this.SetAttributeValue("body", value); + this.OnPropertyChanged("Body"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// File name of the attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// MIME type of the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the record with which the attachment is associated + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Object Type Code of the entity that is associated with the attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the activity_mime_attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the activity mime attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the activity mime attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Descriptive subject for the email attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Version number of the activity mime attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ActivityMimeAttachment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_AsyncOperations")] + public System.Collections.Generic.IEnumerable ActivityMimeAttachment_AsyncOperations + { + get + { + return this.GetRelatedEntities("ActivityMimeAttachment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachment_AsyncOperations"); + this.SetRelatedEntities("ActivityMimeAttachment_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityMimeAttachment_AsyncOperations"); + } + } + + /// + /// 1:N ActivityMimeAttachment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ActivityMimeAttachment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ActivityMimeAttachment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachment_BulkDeleteFailures"); + this.SetRelatedEntities("ActivityMimeAttachment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ActivityMimeAttachment_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_activitymimeattachment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activitymimeattachment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_activitymimeattachment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_activitymimeattachment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activitymimeattachment"); + this.SetRelatedEntities("userentityinstancedata_activitymimeattachment", null, value); + this.OnPropertyChanged("userentityinstancedata_activitymimeattachment"); + } + } + + /// + /// N:1 activity_pointer_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_activity_mime_attachment")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_activity_mime_attachment + { + get + { + return this.GetRelatedEntity("activity_pointer_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_activity_mime_attachment"); + this.SetRelatedEntity("activity_pointer_activity_mime_attachment", null, value); + this.OnPropertyChanged("activity_pointer_activity_mime_attachment"); + } + } + + /// + /// N:1 email_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_mime_attachment")] + public Xrm.Framework.CI.Common.Entities.Email email_activity_mime_attachment + { + get + { + return this.GetRelatedEntity("email_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("email_activity_mime_attachment"); + this.SetRelatedEntity("email_activity_mime_attachment", null, value); + this.OnPropertyChanged("email_activity_mime_attachment"); + } + } + + /// + /// N:1 template_activity_mime_attachments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("template_activity_mime_attachments")] + public Xrm.Framework.CI.Common.Entities.Template template_activity_mime_attachments + { + get + { + return this.GetRelatedEntity("template_activity_mime_attachments", null); + } + set + { + this.OnPropertyChanging("template_activity_mime_attachments"); + this.SetRelatedEntity("template_activity_mime_attachments", null, value); + this.OnPropertyChanged("template_activity_mime_attachments"); + } + } + } + + /// + /// Person or group associated with an activity. An activity can have multiple activity parties. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("activityparty")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ActivityParty : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ActivityParty() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "activityparty"; + + public const int EntityTypeCode = 135; + + 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 activity associated with the activity party. (A "party" is any person who is associated with an activity.) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + public Microsoft.Xrm.Sdk.EntityReference ActivityId + { + get + { + return this.GetAttributeValue("activityid"); + } + set + { + this.OnPropertyChanging("ActivityId"); + this.SetAttributeValue("activityid", value); + this.OnPropertyChanged("ActivityId"); + } + } + + /// + /// Unique identifier of the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitypartyid")] + public System.Nullable ActivityPartyId + { + get + { + return this.GetAttributeValue>("activitypartyid"); + } + set + { + this.OnPropertyChanging("ActivityPartyId"); + this.SetAttributeValue("activitypartyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ActivityPartyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitypartyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ActivityPartyId = value; + } + } + + /// + /// Email address to which an email is delivered, and which is associated with the target entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressused")] + public string AddressUsed + { + get + { + return this.GetAttributeValue("addressused"); + } + set + { + this.OnPropertyChanging("AddressUsed"); + this.SetAttributeValue("addressused", value); + this.OnPropertyChanged("AddressUsed"); + } + } + + /// + /// Information about whether to allow sending email to the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotemail")] + public System.Nullable DoNotEmail + { + get + { + return this.GetAttributeValue>("donotemail"); + } + } + + /// + /// Information about whether to allow sending faxes to the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotfax")] + public System.Nullable DoNotFax + { + get + { + return this.GetAttributeValue>("donotfax"); + } + } + + /// + /// Information about whether to allow phone calls to the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotphone")] + public System.Nullable DoNotPhone + { + get + { + return this.GetAttributeValue>("donotphone"); + } + } + + /// + /// Information about whether to allow sending postal mail to the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotpostalmail")] + public System.Nullable DoNotPostalMail + { + get + { + return this.GetAttributeValue>("donotpostalmail"); + } + } + + /// + /// Amount of effort used by the resource in a service appointment activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effort")] + public System.Nullable Effort + { + get + { + return this.GetAttributeValue>("effort"); + } + set + { + this.OnPropertyChanging("Effort"); + this.SetAttributeValue("effort", value); + this.OnPropertyChanged("Effort"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeentryid")] + public string ExchangeEntryId + { + get + { + return this.GetAttributeValue("exchangeentryid"); + } + set + { + this.OnPropertyChanging("ExchangeEntryId"); + this.SetAttributeValue("exchangeentryid", value); + this.OnPropertyChanged("ExchangeEntryId"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Information about whether the underlying entity record is deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispartydeleted")] + public System.Nullable IsPartyDeleted + { + get + { + return this.GetAttributeValue>("ispartydeleted"); + } + } + + /// + /// Unique identifier of the user or team who owns the activity_party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Role of the person in the activity, such as sender, to, cc, bcc, required, optional, organizer, regarding, or owner. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("participationtypemask")] + public Microsoft.Xrm.Sdk.OptionSetValue ParticipationTypeMask + { + get + { + return this.GetAttributeValue("participationtypemask"); + } + set + { + this.OnPropertyChanging("ParticipationTypeMask"); + this.SetAttributeValue("participationtypemask", value); + this.OnPropertyChanged("ParticipationTypeMask"); + } + } + + /// + /// Unique identifier of the party associated with the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + public Microsoft.Xrm.Sdk.EntityReference PartyId + { + get + { + return this.GetAttributeValue("partyid"); + } + set + { + this.OnPropertyChanging("PartyId"); + this.SetAttributeValue("partyid", value); + this.OnPropertyChanged("PartyId"); + } + } + + /// + /// Unique identifier of the resource specification for the activity party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public Microsoft.Xrm.Sdk.EntityReference ResourceSpecId + { + get + { + return this.GetAttributeValue("resourcespecid"); + } + set + { + this.OnPropertyChanging("ResourceSpecId"); + this.SetAttributeValue("resourcespecid", value); + this.OnPropertyChanged("ResourceSpecId"); + } + } + + /// + /// Scheduled end time of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + } + + /// + /// Scheduled start time of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_activityparty + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activityparty")] + public System.Collections.Generic.IEnumerable userentityinstancedata_activityparty + { + get + { + return this.GetRelatedEntities("userentityinstancedata_activityparty", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activityparty"); + this.SetRelatedEntities("userentityinstancedata_activityparty", null, value); + this.OnPropertyChanged("userentityinstancedata_activityparty"); + } + } + + /// + /// N:1 account_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Account account_activity_parties + { + get + { + return this.GetRelatedEntity("account_activity_parties", null); + } + set + { + this.OnPropertyChanging("account_activity_parties"); + this.SetRelatedEntity("account_activity_parties", null, value); + this.OnPropertyChanged("account_activity_parties"); + } + } + + /// + /// N:1 ActivityPartyResourceSpec + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPartyResourceSpec")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ActivityPartyResourceSpec + { + get + { + return this.GetRelatedEntity("ActivityPartyResourceSpec", null); + } + set + { + this.OnPropertyChanging("ActivityPartyResourceSpec"); + this.SetRelatedEntity("ActivityPartyResourceSpec", null, value); + this.OnPropertyChanged("ActivityPartyResourceSpec"); + } + } + + /// + /// N:1 activitypointer_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_activity_parties")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activitypointer_activity_parties + { + get + { + return this.GetRelatedEntity("activitypointer_activity_parties", null); + } + set + { + this.OnPropertyChanging("activitypointer_activity_parties"); + this.SetRelatedEntity("activitypointer_activity_parties", null, value); + this.OnPropertyChanged("activitypointer_activity_parties"); + } + } + + /// + /// N:1 appointment_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_activity_parties + { + get + { + return this.GetRelatedEntity("appointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("appointment_activity_parties"); + this.SetRelatedEntity("appointment_activity_parties", null, value); + this.OnPropertyChanged("appointment_activity_parties"); + } + } + + /// + /// N:1 bulkoperation_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("bulkoperation_activity_parties")] + public Xrm.Framework.CI.Common.Entities.BulkOperation bulkoperation_activity_parties + { + get + { + return this.GetRelatedEntity("bulkoperation_activity_parties", null); + } + set + { + this.OnPropertyChanging("bulkoperation_activity_parties"); + this.SetRelatedEntity("bulkoperation_activity_parties", null, value); + this.OnPropertyChanged("bulkoperation_activity_parties"); + } + } + + /// + /// N:1 campaign_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_activity_parties + { + get + { + return this.GetRelatedEntity("campaign_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaign_activity_parties"); + this.SetRelatedEntity("campaign_activity_parties", null, value); + this.OnPropertyChanged("campaign_activity_parties"); + } + } + + /// + /// N:1 campaignactivity_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activity_parties")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_activity_parties + { + get + { + return this.GetRelatedEntity("campaignactivity_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activity_parties"); + this.SetRelatedEntity("campaignactivity_activity_parties", null, value); + this.OnPropertyChanged("campaignactivity_activity_parties"); + } + } + + /// + /// N:1 campaignactivity_activityparties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activityparties")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_activityparties + { + get + { + return this.GetRelatedEntity("campaignactivity_activityparties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activityparties"); + this.SetRelatedEntity("campaignactivity_activityparties", null, value); + this.OnPropertyChanged("campaignactivity_activityparties"); + } + } + + /// + /// N:1 campaignresponse_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_activity_parties")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse campaignresponse_activity_parties + { + get + { + return this.GetRelatedEntity("campaignresponse_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignresponse_activity_parties"); + this.SetRelatedEntity("campaignresponse_activity_parties", null, value); + this.OnPropertyChanged("campaignresponse_activity_parties"); + } + } + + /// + /// N:1 contact_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Contact contact_activity_parties + { + get + { + return this.GetRelatedEntity("contact_activity_parties", null); + } + set + { + this.OnPropertyChanging("contact_activity_parties"); + this.SetRelatedEntity("contact_activity_parties", null, value); + this.OnPropertyChanged("contact_activity_parties"); + } + } + + /// + /// N:1 contract_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Contract contract_activity_parties + { + get + { + return this.GetRelatedEntity("contract_activity_parties", null); + } + set + { + this.OnPropertyChanging("contract_activity_parties"); + this.SetRelatedEntity("contract_activity_parties", null, value); + this.OnPropertyChanged("contract_activity_parties"); + } + } + + /// + /// N:1 email_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Email email_activity_parties + { + get + { + return this.GetRelatedEntity("email_activity_parties", null); + } + set + { + this.OnPropertyChanging("email_activity_parties"); + this.SetRelatedEntity("email_activity_parties", null, value); + this.OnPropertyChanged("email_activity_parties"); + } + } + + /// + /// N:1 equipment_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_activity_parties + { + get + { + return this.GetRelatedEntity("equipment_activity_parties", null); + } + set + { + this.OnPropertyChanging("equipment_activity_parties"); + this.SetRelatedEntity("equipment_activity_parties", null, value); + this.OnPropertyChanged("equipment_activity_parties"); + } + } + + /// + /// N:1 fax_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Fax fax_activity_parties + { + get + { + return this.GetRelatedEntity("fax_activity_parties", null); + } + set + { + this.OnPropertyChanging("fax_activity_parties"); + this.SetRelatedEntity("fax_activity_parties", null, value); + this.OnPropertyChanged("fax_activity_parties"); + } + } + + /// + /// N:1 incident_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Incident incident_activity_parties + { + get + { + return this.GetRelatedEntity("incident_activity_parties", null); + } + set + { + this.OnPropertyChanging("incident_activity_parties"); + this.SetRelatedEntity("incident_activity_parties", null, value); + this.OnPropertyChanged("incident_activity_parties"); + } + } + + /// + /// N:1 incidentresolution_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incidentresolution_activity_parties")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution incidentresolution_activity_parties + { + get + { + return this.GetRelatedEntity("incidentresolution_activity_parties", null); + } + set + { + this.OnPropertyChanging("incidentresolution_activity_parties"); + this.SetRelatedEntity("incidentresolution_activity_parties", null, value); + this.OnPropertyChanged("incidentresolution_activity_parties"); + } + } + + /// + /// N:1 invoice_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_activity_parties + { + get + { + return this.GetRelatedEntity("invoice_activity_parties", null); + } + set + { + this.OnPropertyChanging("invoice_activity_parties"); + this.SetRelatedEntity("invoice_activity_parties", null, value); + this.OnPropertyChanged("invoice_activity_parties"); + } + } + + /// + /// N:1 lead_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Lead lead_activity_parties + { + get + { + return this.GetRelatedEntity("lead_activity_parties", null); + } + set + { + this.OnPropertyChanging("lead_activity_parties"); + this.SetRelatedEntity("lead_activity_parties", null, value); + this.OnPropertyChanged("lead_activity_parties"); + } + } + + /// + /// N:1 letter_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Letter letter_activity_parties + { + get + { + return this.GetRelatedEntity("letter_activity_parties", null); + } + set + { + this.OnPropertyChanging("letter_activity_parties"); + this.SetRelatedEntity("letter_activity_parties", null, value); + this.OnPropertyChanged("letter_activity_parties"); + } + } + + /// + /// N:1 opportunity_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_activity_parties + { + get + { + return this.GetRelatedEntity("opportunity_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunity_activity_parties"); + this.SetRelatedEntity("opportunity_activity_parties", null, value); + this.OnPropertyChanged("opportunity_activity_parties"); + } + } + + /// + /// N:1 opportunityclose_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityclose_activity_parties")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose opportunityclose_activity_parties + { + get + { + return this.GetRelatedEntity("opportunityclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunityclose_activity_parties"); + this.SetRelatedEntity("opportunityclose_activity_parties", null, value); + this.OnPropertyChanged("opportunityclose_activity_parties"); + } + } + + /// + /// N:1 orderclose_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("orderclose_activity_parties")] + public Xrm.Framework.CI.Common.Entities.OrderClose orderclose_activity_parties + { + get + { + return this.GetRelatedEntity("orderclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("orderclose_activity_parties"); + this.SetRelatedEntity("orderclose_activity_parties", null, value); + this.OnPropertyChanged("orderclose_activity_parties"); + } + } + + /// + /// N:1 phonecall_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_activity_parties")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_activity_parties + { + get + { + return this.GetRelatedEntity("phonecall_activity_parties", null); + } + set + { + this.OnPropertyChanging("phonecall_activity_parties"); + this.SetRelatedEntity("phonecall_activity_parties", null, value); + this.OnPropertyChanged("phonecall_activity_parties"); + } + } + + /// + /// N:1 queue_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Queue queue_activity_parties + { + get + { + return this.GetRelatedEntity("queue_activity_parties", null); + } + set + { + this.OnPropertyChanging("queue_activity_parties"); + this.SetRelatedEntity("queue_activity_parties", null, value); + this.OnPropertyChanged("queue_activity_parties"); + } + } + + /// + /// N:1 quote_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Quote quote_activity_parties + { + get + { + return this.GetRelatedEntity("quote_activity_parties", null); + } + set + { + this.OnPropertyChanging("quote_activity_parties"); + this.SetRelatedEntity("quote_activity_parties", null, value); + this.OnPropertyChanged("quote_activity_parties"); + } + } + + /// + /// N:1 quoteclose_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quoteclose_activity_parties")] + public Xrm.Framework.CI.Common.Entities.QuoteClose quoteclose_activity_parties + { + get + { + return this.GetRelatedEntity("quoteclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("quoteclose_activity_parties"); + this.SetRelatedEntity("quoteclose_activity_parties", null, value); + this.OnPropertyChanged("quoteclose_activity_parties"); + } + } + + /// + /// N:1 recurringappointmentmaster_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_activity_parties")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_activity_parties + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_activity_parties", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_activity_parties"); + this.SetRelatedEntity("recurringappointmentmaster_activity_parties", null, value); + this.OnPropertyChanged("recurringappointmentmaster_activity_parties"); + } + } + + /// + /// N:1 salesorder_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_activity_parties")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_activity_parties + { + get + { + return this.GetRelatedEntity("salesorder_activity_parties", null); + } + set + { + this.OnPropertyChanging("salesorder_activity_parties"); + this.SetRelatedEntity("salesorder_activity_parties", null, value); + this.OnPropertyChanged("salesorder_activity_parties"); + } + } + + /// + /// N:1 serviceappointment_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_activity_parties")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_activity_parties + { + get + { + return this.GetRelatedEntity("serviceappointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("serviceappointment_activity_parties"); + this.SetRelatedEntity("serviceappointment_activity_parties", null, value); + this.OnPropertyChanged("serviceappointment_activity_parties"); + } + } + + /// + /// N:1 system_user_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_activity_parties")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_activity_parties + { + get + { + return this.GetRelatedEntity("system_user_activity_parties", null); + } + set + { + this.OnPropertyChanging("system_user_activity_parties"); + this.SetRelatedEntity("system_user_activity_parties", null, value); + this.OnPropertyChanged("system_user_activity_parties"); + } + } + + /// + /// N:1 task_activity_parties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_activity_parties")] + public Xrm.Framework.CI.Common.Entities.Task task_activity_parties + { + get + { + return this.GetRelatedEntity("task_activity_parties", null); + } + set + { + this.OnPropertyChanging("task_activity_parties"); + this.SetRelatedEntity("task_activity_parties", null, value); + this.OnPropertyChanged("task_activity_parties"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ActivityPointerState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// Task performed, or to be performed, by a user. An activity is any action for which an entry can be made on a calendar. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("activitypointer")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ActivityPointer : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ActivityPointer() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "activitypointer"; + + public const int EntityTypeCode = 4200; + + 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 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 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 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 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"); + } + } + + /// + /// All activity parties associated with this activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allparties")] + public System.Collections.Generic.IEnumerable allparties + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("allparties"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + } + + /// + /// Unique identifier of the user who created the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the 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 activitypointer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Description of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Information regarding whether the 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 regarding whether the 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"); + } + } + + /// + /// 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 user who last modified the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when 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 activitypointer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Scheduled duration of the activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + set + { + this.OnPropertyChanging("ScheduledDurationMinutes"); + this.SetAttributeValue("scheduleddurationminutes", value); + this.OnPropertyChanged("ScheduledDurationMinutes"); + } + } + + /// + /// Scheduled end time of the 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 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 an associated service. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ActivityPointerState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ActivityPointerState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the 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"); + } + } + + /// + /// Subject associated with the 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N activity_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_campaignresponse")] + public System.Collections.Generic.IEnumerable activity_campaignresponse + { + get + { + return this.GetRelatedEntities("activity_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_campaignresponse"); + this.SetRelatedEntities("activity_campaignresponse", null, value); + this.OnPropertyChanged("activity_campaignresponse"); + } + } + + /// + /// 1:N activity_pointer_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_activity_mime_attachment")] + public System.Collections.Generic.IEnumerable activity_pointer_activity_mime_attachment + { + get + { + return this.GetRelatedEntities("activity_pointer_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_activity_mime_attachment"); + this.SetRelatedEntities("activity_pointer_activity_mime_attachment", null, value); + this.OnPropertyChanged("activity_pointer_activity_mime_attachment"); + } + } + + /// + /// 1:N activity_pointer_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_appointment")] + public System.Collections.Generic.IEnumerable activity_pointer_appointment + { + get + { + return this.GetRelatedEntities("activity_pointer_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_appointment"); + this.SetRelatedEntities("activity_pointer_appointment", null, value); + this.OnPropertyChanged("activity_pointer_appointment"); + } + } + + /// + /// 1:N activity_pointer_BulkOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation")] + public System.Collections.Generic.IEnumerable activity_pointer_BulkOperation + { + get + { + return this.GetRelatedEntities("activity_pointer_BulkOperation", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation"); + this.SetRelatedEntities("activity_pointer_BulkOperation", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation"); + } + } + + /// + /// 1:N activity_pointer_BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation_logs")] + public System.Collections.Generic.IEnumerable activity_pointer_BulkOperation_logs + { + get + { + return this.GetRelatedEntities("activity_pointer_BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation_logs"); + this.SetRelatedEntities("activity_pointer_BulkOperation_logs", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation_logs"); + } + } + + /// + /// 1:N activity_pointer_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignactivity")] + public System.Collections.Generic.IEnumerable activity_pointer_campaignactivity + { + get + { + return this.GetRelatedEntities("activity_pointer_campaignactivity", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignactivity"); + this.SetRelatedEntities("activity_pointer_campaignactivity", null, value); + this.OnPropertyChanged("activity_pointer_campaignactivity"); + } + } + + /// + /// 1:N activity_pointer_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignresponse")] + public System.Collections.Generic.IEnumerable activity_pointer_campaignresponse + { + get + { + return this.GetRelatedEntities("activity_pointer_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignresponse"); + this.SetRelatedEntities("activity_pointer_campaignresponse", null, value); + this.OnPropertyChanged("activity_pointer_campaignresponse"); + } + } + + /// + /// 1:N activity_pointer_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_email")] + public System.Collections.Generic.IEnumerable activity_pointer_email + { + get + { + return this.GetRelatedEntities("activity_pointer_email", null); + } + set + { + this.OnPropertyChanging("activity_pointer_email"); + this.SetRelatedEntities("activity_pointer_email", null, value); + this.OnPropertyChanged("activity_pointer_email"); + } + } + + /// + /// 1:N activity_pointer_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_fax")] + public System.Collections.Generic.IEnumerable activity_pointer_fax + { + get + { + return this.GetRelatedEntities("activity_pointer_fax", null); + } + set + { + this.OnPropertyChanging("activity_pointer_fax"); + this.SetRelatedEntities("activity_pointer_fax", null, value); + this.OnPropertyChanged("activity_pointer_fax"); + } + } + + /// + /// 1:N activity_pointer_incident_resolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_incident_resolution")] + public System.Collections.Generic.IEnumerable activity_pointer_incident_resolution + { + get + { + return this.GetRelatedEntities("activity_pointer_incident_resolution", null); + } + set + { + this.OnPropertyChanging("activity_pointer_incident_resolution"); + this.SetRelatedEntities("activity_pointer_incident_resolution", null, value); + this.OnPropertyChanged("activity_pointer_incident_resolution"); + } + } + + /// + /// 1:N activity_pointer_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_letter")] + public System.Collections.Generic.IEnumerable activity_pointer_letter + { + get + { + return this.GetRelatedEntities("activity_pointer_letter", null); + } + set + { + this.OnPropertyChanging("activity_pointer_letter"); + this.SetRelatedEntities("activity_pointer_letter", null, value); + this.OnPropertyChanged("activity_pointer_letter"); + } + } + + /// + /// 1:N activity_pointer_opportunity_close + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_opportunity_close")] + public System.Collections.Generic.IEnumerable activity_pointer_opportunity_close + { + get + { + return this.GetRelatedEntities("activity_pointer_opportunity_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_opportunity_close"); + this.SetRelatedEntities("activity_pointer_opportunity_close", null, value); + this.OnPropertyChanged("activity_pointer_opportunity_close"); + } + } + + /// + /// 1:N activity_pointer_order_close + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_order_close")] + public System.Collections.Generic.IEnumerable activity_pointer_order_close + { + get + { + return this.GetRelatedEntities("activity_pointer_order_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_order_close"); + this.SetRelatedEntities("activity_pointer_order_close", null, value); + this.OnPropertyChanged("activity_pointer_order_close"); + } + } + + /// + /// 1:N activity_pointer_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_phonecall")] + public System.Collections.Generic.IEnumerable activity_pointer_phonecall + { + get + { + return this.GetRelatedEntities("activity_pointer_phonecall", null); + } + set + { + this.OnPropertyChanging("activity_pointer_phonecall"); + this.SetRelatedEntities("activity_pointer_phonecall", null, value); + this.OnPropertyChanged("activity_pointer_phonecall"); + } + } + + /// + /// 1:N activity_pointer_quote_close + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_quote_close")] + public System.Collections.Generic.IEnumerable activity_pointer_quote_close + { + get + { + return this.GetRelatedEntities("activity_pointer_quote_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_quote_close"); + this.SetRelatedEntities("activity_pointer_quote_close", null, value); + this.OnPropertyChanged("activity_pointer_quote_close"); + } + } + + /// + /// 1:N activity_pointer_recurrencerule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurrencerule")] + public System.Collections.Generic.IEnumerable activity_pointer_recurrencerule + { + get + { + return this.GetRelatedEntities("activity_pointer_recurrencerule", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurrencerule"); + this.SetRelatedEntities("activity_pointer_recurrencerule", null, value); + this.OnPropertyChanged("activity_pointer_recurrencerule"); + } + } + + /// + /// 1:N activity_pointer_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable activity_pointer_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("activity_pointer_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurringappointmentmaster"); + this.SetRelatedEntities("activity_pointer_recurringappointmentmaster", null, value); + this.OnPropertyChanged("activity_pointer_recurringappointmentmaster"); + } + } + + /// + /// 1:N activity_pointer_service_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_service_appointment")] + public System.Collections.Generic.IEnumerable activity_pointer_service_appointment + { + get + { + return this.GetRelatedEntities("activity_pointer_service_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_service_appointment"); + this.SetRelatedEntities("activity_pointer_service_appointment", null, value); + this.OnPropertyChanged("activity_pointer_service_appointment"); + } + } + + /// + /// 1:N activity_pointer_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_task")] + public System.Collections.Generic.IEnumerable activity_pointer_task + { + get + { + return this.GetRelatedEntities("activity_pointer_task", null); + } + set + { + this.OnPropertyChanging("activity_pointer_task"); + this.SetRelatedEntities("activity_pointer_task", null, value); + this.OnPropertyChanged("activity_pointer_task"); + } + } + + /// + /// 1:N activitypointer_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_activity_parties")] + public System.Collections.Generic.IEnumerable activitypointer_activity_parties + { + get + { + return this.GetRelatedEntities("activitypointer_activity_parties", null); + } + set + { + this.OnPropertyChanging("activitypointer_activity_parties"); + this.SetRelatedEntities("activitypointer_activity_parties", null, value); + this.OnPropertyChanged("activitypointer_activity_parties"); + } + } + + /// + /// 1:N ActivityPointer_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_AsyncOperations")] + public System.Collections.Generic.IEnumerable ActivityPointer_AsyncOperations + { + get + { + return this.GetRelatedEntities("ActivityPointer_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_AsyncOperations"); + this.SetRelatedEntities("ActivityPointer_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityPointer_AsyncOperations"); + } + } + + /// + /// 1:N ActivityPointer_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ActivityPointer_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ActivityPointer_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_BulkDeleteFailures"); + this.SetRelatedEntities("ActivityPointer_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ActivityPointer_BulkDeleteFailures"); + } + } + + /// + /// 1:N ActivityPointer_CampaignActivityItems + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_CampaignActivityItems")] + public System.Collections.Generic.IEnumerable ActivityPointer_CampaignActivityItems + { + get + { + return this.GetRelatedEntities("ActivityPointer_CampaignActivityItems", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_CampaignActivityItems"); + this.SetRelatedEntities("ActivityPointer_CampaignActivityItems", null, value); + this.OnPropertyChanged("ActivityPointer_CampaignActivityItems"); + } + } + + /// + /// 1:N activitypointer_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections1")] + public System.Collections.Generic.IEnumerable activitypointer_connections1 + { + get + { + return this.GetRelatedEntities("activitypointer_connections1", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections1"); + this.SetRelatedEntities("activitypointer_connections1", null, value); + this.OnPropertyChanged("activitypointer_connections1"); + } + } + + /// + /// 1:N activitypointer_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections2")] + public System.Collections.Generic.IEnumerable activitypointer_connections2 + { + get + { + return this.GetRelatedEntities("activitypointer_connections2", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections2"); + this.SetRelatedEntities("activitypointer_connections2", null, value); + this.OnPropertyChanged("activitypointer_connections2"); + } + } + + /// + /// 1:N ActivityPointer_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_QueueItem")] + public System.Collections.Generic.IEnumerable ActivityPointer_QueueItem + { + get + { + return this.GetRelatedEntities("ActivityPointer_QueueItem", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_QueueItem"); + this.SetRelatedEntities("ActivityPointer_QueueItem", null, value); + this.OnPropertyChanged("ActivityPointer_QueueItem"); + } + } + + /// + /// 1:N CreatedActivity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedActivity_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedActivity_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedActivity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedActivity_BulkOperationLogs"); + this.SetRelatedEntities("CreatedActivity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedActivity_BulkOperationLogs"); + } + } + + /// + /// N:1 Account_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Account Account_ActivityPointers + { + get + { + return this.GetRelatedEntity("Account_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Account_ActivityPointers"); + this.SetRelatedEntity("Account_ActivityPointers", null, value); + this.OnPropertyChanged("Account_ActivityPointers"); + } + } + + /// + /// N:1 activitypointer_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendermailboxid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_sendermailboxid_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox activitypointer_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntity("activitypointer_sendermailboxid_mailbox", null); + } + } + + /// + /// N:1 BulkOperation_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_ActivityPointers + { + get + { + return this.GetRelatedEntity("BulkOperation_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("BulkOperation_ActivityPointers"); + this.SetRelatedEntity("BulkOperation_ActivityPointers", null, value); + this.OnPropertyChanged("BulkOperation_ActivityPointers"); + } + } + + /// + /// N:1 business_unit_activitypointer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_activitypointer")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_activitypointer + { + get + { + return this.GetRelatedEntity("business_unit_activitypointer", null); + } + } + + /// + /// N:1 Campaign_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_ActivityPointers + { + get + { + return this.GetRelatedEntity("Campaign_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Campaign_ActivityPointers"); + this.SetRelatedEntity("Campaign_ActivityPointers", null, value); + this.OnPropertyChanged("Campaign_ActivityPointers"); + } + } + + /// + /// N:1 CampaignActivity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_ActivityPointers + { + get + { + return this.GetRelatedEntity("CampaignActivity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ActivityPointers"); + this.SetRelatedEntity("CampaignActivity_ActivityPointers", null, value); + this.OnPropertyChanged("CampaignActivity_ActivityPointers"); + } + } + + /// + /// N:1 Contact_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_ActivityPointers + { + get + { + return this.GetRelatedEntity("Contact_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contact_ActivityPointers"); + this.SetRelatedEntity("Contact_ActivityPointers", null, value); + this.OnPropertyChanged("Contact_ActivityPointers"); + } + } + + /// + /// N:1 Contract_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_ActivityPointers + { + get + { + return this.GetRelatedEntity("Contract_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contract_ActivityPointers"); + this.SetRelatedEntity("Contract_ActivityPointers", null, value); + this.OnPropertyChanged("Contract_ActivityPointers"); + } + } + + /// + /// N:1 Incident_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_ActivityPointers + { + get + { + return this.GetRelatedEntity("Incident_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Incident_ActivityPointers"); + this.SetRelatedEntity("Incident_ActivityPointers", null, value); + this.OnPropertyChanged("Incident_ActivityPointers"); + } + } + + /// + /// N:1 Invoice_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_ActivityPointers + { + get + { + return this.GetRelatedEntity("Invoice_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Invoice_ActivityPointers"); + this.SetRelatedEntity("Invoice_ActivityPointers", null, value); + this.OnPropertyChanged("Invoice_ActivityPointers"); + } + } + + /// + /// N:1 Lead_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_ActivityPointers + { + get + { + return this.GetRelatedEntity("Lead_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Lead_ActivityPointers"); + this.SetRelatedEntity("Lead_ActivityPointers", null, value); + this.OnPropertyChanged("Lead_ActivityPointers"); + } + } + + /// + /// N:1 lk_activitypointer_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_createdby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_createdby", null); + } + } + + /// + /// N:1 lk_activitypointer_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_activitypointer_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_modifiedby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_modifiedby", null); + } + } + + /// + /// N:1 lk_activitypointer_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_activitypointer_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_activitypointer_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_ActivityPointers + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ActivityPointers"); + this.SetRelatedEntity("msdyn_postalbum_ActivityPointers", null, value); + this.OnPropertyChanged("msdyn_postalbum_ActivityPointers"); + } + } + + /// + /// N:1 Opportunity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_ActivityPointers + { + get + { + return this.GetRelatedEntity("Opportunity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Opportunity_ActivityPointers"); + this.SetRelatedEntity("Opportunity_ActivityPointers", null, value); + this.OnPropertyChanged("Opportunity_ActivityPointers"); + } + } + + /// + /// N:1 Quote_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_ActivityPointers + { + get + { + return this.GetRelatedEntity("Quote_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Quote_ActivityPointers"); + this.SetRelatedEntity("Quote_ActivityPointers", null, value); + this.OnPropertyChanged("Quote_ActivityPointers"); + } + } + + /// + /// N:1 SalesOrder_ActivityPointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ActivityPointers")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_ActivityPointers + { + get + { + return this.GetRelatedEntity("SalesOrder_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ActivityPointers"); + this.SetRelatedEntity("SalesOrder_ActivityPointers", null, value); + this.OnPropertyChanged("SalesOrder_ActivityPointers"); + } + } + + /// + /// N:1 service_activity_pointers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_activity_pointers")] + public Xrm.Framework.CI.Common.Entities.Service service_activity_pointers + { + get + { + return this.GetRelatedEntity("service_activity_pointers", null); + } + set + { + this.OnPropertyChanging("service_activity_pointers"); + this.SetRelatedEntity("service_activity_pointers", null, value); + this.OnPropertyChanged("service_activity_pointers"); + } + } + + /// + /// N:1 team_activity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_activity")] + public Xrm.Framework.CI.Common.Entities.Team team_activity + { + get + { + return this.GetRelatedEntity("team_activity", null); + } + } + + /// + /// N:1 TransactionCurrency_ActivityPointer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ActivityPointer")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ActivityPointer + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ActivityPointer", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ActivityPointer"); + this.SetRelatedEntity("TransactionCurrency_ActivityPointer", null, value); + this.OnPropertyChanged("TransactionCurrency_ActivityPointer"); + } + } + + /// + /// N:1 user_activity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_activity")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_activity + { + get + { + return this.GetRelatedEntity("user_activity", null); + } + } + } + + /// + /// Note that is attached to one or more objects, including other notes. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("annotation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Annotation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Annotation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "annotation"; + + public const int EntityTypeCode = 5; + + 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 note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annotationid")] + public System.Nullable AnnotationId + { + get + { + return this.GetAttributeValue>("annotationid"); + } + set + { + this.OnPropertyChanging("AnnotationId"); + this.SetAttributeValue("annotationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AnnotationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annotationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AnnotationId = value; + } + } + + /// + /// Unique identifier of the user who created the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the note 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 annotation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Contents of the note's attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("documentbody")] + public string DocumentBody + { + get + { + return this.GetAttributeValue("documentbody"); + } + set + { + this.OnPropertyChanging("DocumentBody"); + this.SetAttributeValue("documentbody", value); + this.OnPropertyChanged("DocumentBody"); + } + } + + /// + /// File name of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the note is an attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdocument")] + public System.Nullable IsDocument + { + get + { + return this.GetAttributeValue>("isdocument"); + } + set + { + this.OnPropertyChanging("IsDocument"); + this.SetAttributeValue("isdocument", value); + this.OnPropertyChanged("IsDocument"); + } + } + + /// + /// Language identifier for the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("langid")] + public string LangId + { + get + { + return this.GetAttributeValue("langid"); + } + set + { + this.OnPropertyChanging("LangId"); + this.SetAttributeValue("langid", value); + this.OnPropertyChanged("LangId"); + } + } + + /// + /// MIME type of the note's attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the note 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 annotation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Text of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("notetext")] + public string NoteText + { + get + { + return this.GetAttributeValue("notetext"); + } + set + { + this.OnPropertyChanging("NoteText"); + this.SetAttributeValue("notetext", value); + this.OnPropertyChanged("NoteText"); + } + } + + /// + /// Unique identifier of the object with which the note is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Type of entity with which the note is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// 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 note. + /// + [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 note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// workflow step id associated with the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepid")] + public string StepId + { + get + { + return this.GetAttributeValue("stepid"); + } + set + { + this.OnPropertyChanging("StepId"); + this.SetAttributeValue("stepid", value); + this.OnPropertyChanged("StepId"); + } + } + + /// + /// Subject associated with the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Version number of the note. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Annotation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_AsyncOperations")] + public System.Collections.Generic.IEnumerable Annotation_AsyncOperations + { + get + { + return this.GetRelatedEntities("Annotation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Annotation_AsyncOperations"); + this.SetRelatedEntities("Annotation_AsyncOperations", null, value); + this.OnPropertyChanged("Annotation_AsyncOperations"); + } + } + + /// + /// 1:N Annotation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Annotation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Annotation_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Annotation_BulkDeleteFailures"); + this.SetRelatedEntities("Annotation_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Annotation_BulkDeleteFailures"); + } + } + + /// + /// 1:N Annotation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_ProcessSessions")] + public System.Collections.Generic.IEnumerable Annotation_ProcessSessions + { + get + { + return this.GetRelatedEntities("Annotation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Annotation_ProcessSessions"); + this.SetRelatedEntities("Annotation_ProcessSessions", null, value); + this.OnPropertyChanged("Annotation_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_annotation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_annotation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_annotation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_annotation"); + this.SetRelatedEntities("userentityinstancedata_annotation", null, value); + this.OnPropertyChanged("userentityinstancedata_annotation"); + } + } + + /// + /// N:1 Account_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Annotation")] + public Xrm.Framework.CI.Common.Entities.Account Account_Annotation + { + get + { + return this.GetRelatedEntity("Account_Annotation", null); + } + set + { + this.OnPropertyChanging("Account_Annotation"); + this.SetRelatedEntity("Account_Annotation", null, value); + this.OnPropertyChanged("Account_Annotation"); + } + } + + /// + /// N:1 annotation_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("annotation_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser annotation_owning_user + { + get + { + return this.GetRelatedEntity("annotation_owning_user", null); + } + } + + /// + /// N:1 Appointment_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_Annotation")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_Annotation + { + get + { + return this.GetRelatedEntity("Appointment_Annotation", null); + } + set + { + this.OnPropertyChanging("Appointment_Annotation"); + this.SetRelatedEntity("Appointment_Annotation", null, value); + this.OnPropertyChanged("Appointment_Annotation"); + } + } + + /// + /// N:1 business_unit_annotations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_annotations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_annotations + { + get + { + return this.GetRelatedEntity("business_unit_annotations", null); + } + } + + /// + /// N:1 Calendar_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_Annotation")] + public Xrm.Framework.CI.Common.Entities.Calendar Calendar_Annotation + { + get + { + return this.GetRelatedEntity("Calendar_Annotation", null); + } + set + { + this.OnPropertyChanging("Calendar_Annotation"); + this.SetRelatedEntity("Calendar_Annotation", null, value); + this.OnPropertyChanged("Calendar_Annotation"); + } + } + + /// + /// N:1 Campaign_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Annotation")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Annotation + { + get + { + return this.GetRelatedEntity("Campaign_Annotation", null); + } + set + { + this.OnPropertyChanging("Campaign_Annotation"); + this.SetRelatedEntity("Campaign_Annotation", null, value); + this.OnPropertyChanged("Campaign_Annotation"); + } + } + + /// + /// N:1 CampaignActivity_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Annotation")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Annotation + { + get + { + return this.GetRelatedEntity("CampaignActivity_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Annotation"); + this.SetRelatedEntity("CampaignActivity_Annotation", null, value); + this.OnPropertyChanged("CampaignActivity_Annotation"); + } + } + + /// + /// N:1 CampaignResponse_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Annotation")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_Annotation + { + get + { + return this.GetRelatedEntity("CampaignResponse_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Annotation"); + this.SetRelatedEntity("CampaignResponse_Annotation", null, value); + this.OnPropertyChanged("CampaignResponse_Annotation"); + } + } + + /// + /// N:1 Competitor_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_Annotation")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_Annotation + { + get + { + return this.GetRelatedEntity("Competitor_Annotation", null); + } + set + { + this.OnPropertyChanging("Competitor_Annotation"); + this.SetRelatedEntity("Competitor_Annotation", null, value); + this.OnPropertyChanged("Competitor_Annotation"); + } + } + + /// + /// N:1 Contact_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Annotation")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Annotation + { + get + { + return this.GetRelatedEntity("Contact_Annotation", null); + } + set + { + this.OnPropertyChanging("Contact_Annotation"); + this.SetRelatedEntity("Contact_Annotation", null, value); + this.OnPropertyChanged("Contact_Annotation"); + } + } + + /// + /// N:1 Contract_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Annotation")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Annotation + { + get + { + return this.GetRelatedEntity("Contract_Annotation", null); + } + set + { + this.OnPropertyChanging("Contract_Annotation"); + this.SetRelatedEntity("Contract_Annotation", null, value); + this.OnPropertyChanged("Contract_Annotation"); + } + } + + /// + /// N:1 ContractDetail_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_Annotation")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_Annotation + { + get + { + return this.GetRelatedEntity("ContractDetail_Annotation", null); + } + set + { + this.OnPropertyChanging("ContractDetail_Annotation"); + this.SetRelatedEntity("ContractDetail_Annotation", null, value); + this.OnPropertyChanged("ContractDetail_Annotation"); + } + } + + /// + /// N:1 DuplicateRule_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_Annotation")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule DuplicateRule_Annotation + { + get + { + return this.GetRelatedEntity("DuplicateRule_Annotation", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_Annotation"); + this.SetRelatedEntity("DuplicateRule_Annotation", null, value); + this.OnPropertyChanged("DuplicateRule_Annotation"); + } + } + + /// + /// N:1 Email_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_Annotation")] + public Xrm.Framework.CI.Common.Entities.Email Email_Annotation + { + get + { + return this.GetRelatedEntity("Email_Annotation", null); + } + set + { + this.OnPropertyChanging("Email_Annotation"); + this.SetRelatedEntity("Email_Annotation", null, value); + this.OnPropertyChanged("Email_Annotation"); + } + } + + /// + /// N:1 EmailServerProfile_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Annotation")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile EmailServerProfile_Annotation + { + get + { + return this.GetRelatedEntity("EmailServerProfile_Annotation", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Annotation"); + this.SetRelatedEntity("EmailServerProfile_Annotation", null, value); + this.OnPropertyChanged("EmailServerProfile_Annotation"); + } + } + + /// + /// N:1 Equipment_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_Annotation")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_Annotation + { + get + { + return this.GetRelatedEntity("Equipment_Annotation", null); + } + set + { + this.OnPropertyChanging("Equipment_Annotation"); + this.SetRelatedEntity("Equipment_Annotation", null, value); + this.OnPropertyChanged("Equipment_Annotation"); + } + } + + /// + /// N:1 Fax_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_Annotation")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_Annotation + { + get + { + return this.GetRelatedEntity("Fax_Annotation", null); + } + set + { + this.OnPropertyChanging("Fax_Annotation"); + this.SetRelatedEntity("Fax_Annotation", null, value); + this.OnPropertyChanged("Fax_Annotation"); + } + } + + /// + /// N:1 Goal_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_Annotation")] + public Xrm.Framework.CI.Common.Entities.Goal Goal_Annotation + { + get + { + return this.GetRelatedEntity("Goal_Annotation", null); + } + set + { + this.OnPropertyChanging("Goal_Annotation"); + this.SetRelatedEntity("Goal_Annotation", null, value); + this.OnPropertyChanged("Goal_Annotation"); + } + } + + /// + /// N:1 Incident_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Annotation")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Annotation + { + get + { + return this.GetRelatedEntity("Incident_Annotation", null); + } + set + { + this.OnPropertyChanging("Incident_Annotation"); + this.SetRelatedEntity("Incident_Annotation", null, value); + this.OnPropertyChanged("Incident_Annotation"); + } + } + + /// + /// N:1 IncidentResolution_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_Annotation")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution IncidentResolution_Annotation + { + get + { + return this.GetRelatedEntity("IncidentResolution_Annotation", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_Annotation"); + this.SetRelatedEntity("IncidentResolution_Annotation", null, value); + this.OnPropertyChanged("IncidentResolution_Annotation"); + } + } + + /// + /// N:1 Invoice_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Annotation")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Annotation + { + get + { + return this.GetRelatedEntity("Invoice_Annotation", null); + } + set + { + this.OnPropertyChanging("Invoice_Annotation"); + this.SetRelatedEntity("Invoice_Annotation", null, value); + this.OnPropertyChanged("Invoice_Annotation"); + } + } + + /// + /// N:1 KbArticle_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_Annotation")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_Annotation + { + get + { + return this.GetRelatedEntity("KbArticle_Annotation", null); + } + set + { + this.OnPropertyChanging("KbArticle_Annotation"); + this.SetRelatedEntity("KbArticle_Annotation", null, value); + this.OnPropertyChanged("KbArticle_Annotation"); + } + } + + /// + /// N:1 Lead_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Annotation")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Annotation + { + get + { + return this.GetRelatedEntity("Lead_Annotation", null); + } + set + { + this.OnPropertyChanging("Lead_Annotation"); + this.SetRelatedEntity("Lead_Annotation", null, value); + this.OnPropertyChanged("Lead_Annotation"); + } + } + + /// + /// N:1 Letter_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_Annotation")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_Annotation + { + get + { + return this.GetRelatedEntity("Letter_Annotation", null); + } + set + { + this.OnPropertyChanging("Letter_Annotation"); + this.SetRelatedEntity("Letter_Annotation", null, value); + this.OnPropertyChanged("Letter_Annotation"); + } + } + + /// + /// N:1 List_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_Annotation")] + public Xrm.Framework.CI.Common.Entities.List List_Annotation + { + get + { + return this.GetRelatedEntity("List_Annotation", null); + } + set + { + this.OnPropertyChanging("List_Annotation"); + this.SetRelatedEntity("List_Annotation", null, value); + this.OnPropertyChanged("List_Annotation"); + } + } + + /// + /// N:1 lk_annotationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_createdby", null); + } + } + + /// + /// N:1 lk_annotationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_annotationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_modifiedby", null); + } + } + + /// + /// N:1 lk_annotationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annotationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annotationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Mailbox_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Mailbox_Annotation")] + public Xrm.Framework.CI.Common.Entities.Mailbox Mailbox_Annotation + { + get + { + return this.GetRelatedEntity("Mailbox_Annotation", null); + } + set + { + this.OnPropertyChanging("Mailbox_Annotation"); + this.SetRelatedEntity("Mailbox_Annotation", null, value); + this.OnPropertyChanged("Mailbox_Annotation"); + } + } + + /// + /// N:1 msdyn_postalbum_Annotations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Annotations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Annotations + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Annotations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Annotations"); + this.SetRelatedEntity("msdyn_postalbum_Annotations", null, value); + this.OnPropertyChanged("msdyn_postalbum_Annotations"); + } + } + + /// + /// N:1 Opportunity_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Annotation")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Annotation + { + get + { + return this.GetRelatedEntity("Opportunity_Annotation", null); + } + set + { + this.OnPropertyChanging("Opportunity_Annotation"); + this.SetRelatedEntity("Opportunity_Annotation", null, value); + this.OnPropertyChanged("Opportunity_Annotation"); + } + } + + /// + /// N:1 OpportunityClose_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_Annotation")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose OpportunityClose_Annotation + { + get + { + return this.GetRelatedEntity("OpportunityClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_Annotation"); + this.SetRelatedEntity("OpportunityClose_Annotation", null, value); + this.OnPropertyChanged("OpportunityClose_Annotation"); + } + } + + /// + /// N:1 OrderClose_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_Annotation")] + public Xrm.Framework.CI.Common.Entities.OrderClose OrderClose_Annotation + { + get + { + return this.GetRelatedEntity("OrderClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OrderClose_Annotation"); + this.SetRelatedEntity("OrderClose_Annotation", null, value); + this.OnPropertyChanged("OrderClose_Annotation"); + } + } + + /// + /// N:1 PhoneCall_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_Annotation")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_Annotation + { + get + { + return this.GetRelatedEntity("PhoneCall_Annotation", null); + } + set + { + this.OnPropertyChanging("PhoneCall_Annotation"); + this.SetRelatedEntity("PhoneCall_Annotation", null, value); + this.OnPropertyChanged("PhoneCall_Annotation"); + } + } + + /// + /// N:1 Product_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_Annotation")] + public Xrm.Framework.CI.Common.Entities.Product Product_Annotation + { + get + { + return this.GetRelatedEntity("Product_Annotation", null); + } + set + { + this.OnPropertyChanging("Product_Annotation"); + this.SetRelatedEntity("Product_Annotation", null, value); + this.OnPropertyChanged("Product_Annotation"); + } + } + + /// + /// N:1 Quote_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Annotation")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Annotation + { + get + { + return this.GetRelatedEntity("Quote_Annotation", null); + } + set + { + this.OnPropertyChanging("Quote_Annotation"); + this.SetRelatedEntity("Quote_Annotation", null, value); + this.OnPropertyChanged("Quote_Annotation"); + } + } + + /// + /// N:1 QuoteClose_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_Annotation")] + public Xrm.Framework.CI.Common.Entities.QuoteClose QuoteClose_Annotation + { + get + { + return this.GetRelatedEntity("QuoteClose_Annotation", null); + } + set + { + this.OnPropertyChanging("QuoteClose_Annotation"); + this.SetRelatedEntity("QuoteClose_Annotation", null, value); + this.OnPropertyChanged("QuoteClose_Annotation"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_Annotation")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_Annotation + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_Annotation", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_Annotation"); + this.SetRelatedEntity("RecurringAppointmentMaster_Annotation", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_Annotation"); + } + } + + /// + /// N:1 ResourceSpec_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_Annotation")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ResourceSpec_Annotation + { + get + { + return this.GetRelatedEntity("ResourceSpec_Annotation", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_Annotation"); + this.SetRelatedEntity("ResourceSpec_Annotation", null, value); + this.OnPropertyChanged("ResourceSpec_Annotation"); + } + } + + /// + /// N:1 SalesOrder_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Annotation")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Annotation + { + get + { + return this.GetRelatedEntity("SalesOrder_Annotation", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Annotation"); + this.SetRelatedEntity("SalesOrder_Annotation", null, value); + this.OnPropertyChanged("SalesOrder_Annotation"); + } + } + + /// + /// N:1 Service_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_Annotation")] + public Xrm.Framework.CI.Common.Entities.Service Service_Annotation + { + get + { + return this.GetRelatedEntity("Service_Annotation", null); + } + set + { + this.OnPropertyChanging("Service_Annotation"); + this.SetRelatedEntity("Service_Annotation", null, value); + this.OnPropertyChanged("Service_Annotation"); + } + } + + /// + /// N:1 ServiceAppointment_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_Annotation")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_Annotation + { + get + { + return this.GetRelatedEntity("ServiceAppointment_Annotation", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_Annotation"); + this.SetRelatedEntity("ServiceAppointment_Annotation", null, value); + this.OnPropertyChanged("ServiceAppointment_Annotation"); + } + } + + /// + /// N:1 Task_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_Annotation")] + public Xrm.Framework.CI.Common.Entities.Task Task_Annotation + { + get + { + return this.GetRelatedEntity("Task_Annotation", null); + } + set + { + this.OnPropertyChanging("Task_Annotation"); + this.SetRelatedEntity("Task_Annotation", null, value); + this.OnPropertyChanged("Task_Annotation"); + } + } + + /// + /// N:1 team_annotations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_annotations")] + public Xrm.Framework.CI.Common.Entities.Team team_annotations + { + get + { + return this.GetRelatedEntity("team_annotations", null); + } + } + + /// + /// N:1 Workflow_Annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Workflow_Annotation")] + public Xrm.Framework.CI.Common.Entities.Workflow Workflow_Annotation + { + get + { + return this.GetRelatedEntity("Workflow_Annotation", null); + } + set + { + this.OnPropertyChanging("Workflow_Annotation"); + this.SetRelatedEntity("Workflow_Annotation", null, value); + this.OnPropertyChanged("Workflow_Annotation"); + } + } + } + + /// + /// Year long fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("annualfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AnnualFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AnnualFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "annualfiscalcalendar"; + + public const int EntityTypeCode = 2000; + + 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)); + } + } + + /// + /// Sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annual")] + public Microsoft.Xrm.Sdk.Money Annual + { + get + { + return this.GetAttributeValue("annual"); + } + set + { + this.OnPropertyChanging("Annual"); + this.SetAttributeValue("annual", value); + this.OnPropertyChanged("Annual"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annual_base")] + public Microsoft.Xrm.Sdk.Money Annual_Base + { + get + { + return this.GetAttributeValue("annual_base"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the quota for the annual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the annual fiscal calendar 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 annualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the annual fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the quota for the annual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the annual fiscal calendar 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 annualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the sales person associated with the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 annual fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the user associated with the annual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N AnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable AnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("AnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("AnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("AnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N AnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable AnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("AnnualFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("AnnualFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("AnnualFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("AnnualFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_annualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_annualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_annualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_annualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_annualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_annualfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_annualfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_annualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_annualfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_annualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_annualfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum AppointmentState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// Commitment representing a time interval with start/end times and duration. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("appointment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Appointment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Appointment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "appointment"; + + public const int EntityTypeCode = 4201; + + 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 appointment. + /// + [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"); + } + } + + /// + /// Shows the value selected in the Duration field on the appointment at the time that the appointment is closed as completed. The duration is used to report the time spent on the activity. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the appointment. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual duration of the appointment. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the appointment. By default, it displays the date and time when the activity was created, but can be edited to capture the actual duration of the appointment. + /// + [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"); + } + } + + /// + /// Type a category to identify the appointment type, such as sales demo, prospect call, or service call, to tie the appointment to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the purpose of the appointment. + /// + [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 ID of the appointment in Microsoft Office Outlook. The ID is used to synchronize the appointment between Microsoft Dynamics CRM and the correct Exchange account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("globalobjectid")] + public string GlobalObjectId + { + get + { + return this.GetAttributeValue("globalobjectid"); + } + set + { + this.OnPropertyChanging("GlobalObjectId"); + this.SetAttributeValue("globalobjectid", value); + this.OnPropertyChanged("GlobalObjectId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Select whether the appointment is an all-day event to make sure that the required resources are scheduled for the full day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isalldayevent")] + public System.Nullable IsAllDayEvent + { + get + { + return this.GetAttributeValue>("isalldayevent"); + } + set + { + this.OnPropertyChanging("IsAllDayEvent"); + this.SetAttributeValue("isalldayevent", value); + this.OnPropertyChanged("IsAllDayEvent"); + } + } + + /// + /// Information regarding whether the appointment 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 regarding whether the appointment 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"); + } + } + + /// + /// Type the location where the appointment will take place, such as a conference room or customer office. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("location")] + public string Location + { + get + { + return this.GetAttributeValue("location"); + } + set + { + this.OnPropertyChanging("Location"); + this.SetAttributeValue("location", value); + this.OnPropertyChanged("Location"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedfieldsmask")] + public string ModifiedFieldsMask + { + get + { + return this.GetAttributeValue("modifiedfieldsmask"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are not needed at the appointment, but can optionally attend. + /// + [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"); + } + } + + /// + /// Enter the user who is in charge of coordinating or leading the appointment to make sure the appointment is displayed in the user's My Activities view. + /// + [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"); + } + } + + /// + /// The original start date of the appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originalstartdate")] + public System.Nullable OriginalStartDate + { + get + { + return this.GetAttributeValue>("originalstartdate"); + } + } + + /// + /// Unique identifier of the Microsoft Office Outlook appointment owner that correlates to the PR_OWNER_APPT_ID MAPI property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlookownerapptid")] + public System.Nullable OutlookOwnerApptId + { + get + { + return this.GetAttributeValue>("outlookownerapptid"); + } + set + { + this.OnPropertyChanging("OutlookOwnerApptId"); + this.SetAttributeValue("outlookownerapptid", value); + this.OnPropertyChanged("OutlookOwnerApptId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 that owns the appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user that owns the appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the appointment 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"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are required to attend the appointment. + /// + [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"); + } + } + + /// + /// Shows the expected duration of the appointment, in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + set + { + this.OnPropertyChanging("ScheduledDurationMinutes"); + this.SetAttributeValue("scheduleddurationminutes", value); + this.OnPropertyChanged("ScheduledDurationMinutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about the timing of the appointment. + /// + [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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about the timing of the appointment. + /// + [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"); + } + } + + /// + /// Shows the ID of the recurring series of an instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesid")] + public System.Nullable SeriesId + { + get + { + return this.GetAttributeValue>("seriesid"); + } + } + + /// + /// Unique identifier for an associated service. + /// + [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"); + } + } + + /// + /// 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 appointment is open, completed, or canceled. Completed and canceled appointments are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.AppointmentState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.AppointmentState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the appointment'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"); + } + } + + /// + /// Type a subcategory to identify the appointment type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the appointment. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N appointment_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_activity_parties")] + public System.Collections.Generic.IEnumerable appointment_activity_parties + { + get + { + return this.GetRelatedEntities("appointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("appointment_activity_parties"); + this.SetRelatedEntities("appointment_activity_parties", null, value); + this.OnPropertyChanged("appointment_activity_parties"); + } + } + + /// + /// 1:N Appointment_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_Annotation")] + public System.Collections.Generic.IEnumerable Appointment_Annotation + { + get + { + return this.GetRelatedEntities("Appointment_Annotation", null); + } + set + { + this.OnPropertyChanging("Appointment_Annotation"); + this.SetRelatedEntities("Appointment_Annotation", null, value); + this.OnPropertyChanged("Appointment_Annotation"); + } + } + + /// + /// 1:N Appointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_AsyncOperations")] + public System.Collections.Generic.IEnumerable Appointment_AsyncOperations + { + get + { + return this.GetRelatedEntities("Appointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Appointment_AsyncOperations"); + this.SetRelatedEntities("Appointment_AsyncOperations", null, value); + this.OnPropertyChanged("Appointment_AsyncOperations"); + } + } + + /// + /// 1:N Appointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Appointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Appointment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Appointment_BulkDeleteFailures"); + this.SetRelatedEntities("Appointment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Appointment_BulkDeleteFailures"); + } + } + + /// + /// 1:N appointment_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_campaignresponse")] + public System.Collections.Generic.IEnumerable appointment_campaignresponse + { + get + { + return this.GetRelatedEntities("appointment_campaignresponse", null); + } + set + { + this.OnPropertyChanging("appointment_campaignresponse"); + this.SetRelatedEntities("appointment_campaignresponse", null, value); + this.OnPropertyChanged("appointment_campaignresponse"); + } + } + + /// + /// 1:N appointment_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections1")] + public System.Collections.Generic.IEnumerable appointment_connections1 + { + get + { + return this.GetRelatedEntities("appointment_connections1", null); + } + set + { + this.OnPropertyChanging("appointment_connections1"); + this.SetRelatedEntities("appointment_connections1", null, value); + this.OnPropertyChanged("appointment_connections1"); + } + } + + /// + /// 1:N appointment_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections2")] + public System.Collections.Generic.IEnumerable appointment_connections2 + { + get + { + return this.GetRelatedEntities("appointment_connections2", null); + } + set + { + this.OnPropertyChanging("appointment_connections2"); + this.SetRelatedEntities("appointment_connections2", null, value); + this.OnPropertyChanged("appointment_connections2"); + } + } + + /// + /// 1:N Appointment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Appointment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Appointment_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Appointment_DuplicateBaseRecord"); + this.SetRelatedEntities("Appointment_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Appointment_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Appointment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Appointment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Appointment_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Appointment_DuplicateMatchingRecord"); + this.SetRelatedEntities("Appointment_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Appointment_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N appointment_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_PostFollows")] + public System.Collections.Generic.IEnumerable appointment_PostFollows + { + get + { + return this.GetRelatedEntities("appointment_PostFollows", null); + } + set + { + this.OnPropertyChanging("appointment_PostFollows"); + this.SetRelatedEntities("appointment_PostFollows", null, value); + this.OnPropertyChanged("appointment_PostFollows"); + } + } + + /// + /// 1:N appointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable appointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("appointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("appointment_principalobjectattributeaccess"); + this.SetRelatedEntities("appointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("appointment_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Appointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_ProcessSessions")] + public System.Collections.Generic.IEnumerable Appointment_ProcessSessions + { + get + { + return this.GetRelatedEntities("Appointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Appointment_ProcessSessions"); + this.SetRelatedEntities("Appointment_ProcessSessions", null, value); + this.OnPropertyChanged("Appointment_ProcessSessions"); + } + } + + /// + /// 1:N Appointment_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_QueueItem")] + public System.Collections.Generic.IEnumerable Appointment_QueueItem + { + get + { + return this.GetRelatedEntities("Appointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("Appointment_QueueItem"); + this.SetRelatedEntities("Appointment_QueueItem", null, value); + this.OnPropertyChanged("Appointment_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_appointment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_appointment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_appointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_appointment"); + this.SetRelatedEntities("userentityinstancedata_appointment", null, value); + this.OnPropertyChanged("userentityinstancedata_appointment"); + } + } + + /// + /// N:1 Account_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Appointments")] + public Xrm.Framework.CI.Common.Entities.Account Account_Appointments + { + get + { + return this.GetRelatedEntity("Account_Appointments", null); + } + set + { + this.OnPropertyChanging("Account_Appointments"); + this.SetRelatedEntity("Account_Appointments", null, value); + this.OnPropertyChanged("Account_Appointments"); + } + } + + /// + /// N:1 activity_pointer_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_appointment")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_appointment + { + get + { + return this.GetRelatedEntity("activity_pointer_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_appointment"); + this.SetRelatedEntity("activity_pointer_appointment", null, value); + this.OnPropertyChanged("activity_pointer_appointment"); + } + } + + /// + /// N:1 BulkOperation_Appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Appointment")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Appointment + { + get + { + return this.GetRelatedEntity("BulkOperation_Appointment", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Appointment"); + this.SetRelatedEntity("BulkOperation_Appointment", null, value); + this.OnPropertyChanged("BulkOperation_Appointment"); + } + } + + /// + /// N:1 business_unit_appointment_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_appointment_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_appointment_activities + { + get + { + return this.GetRelatedEntity("business_unit_appointment_activities", null); + } + } + + /// + /// N:1 Campaign_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Appointments")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Appointments + { + get + { + return this.GetRelatedEntity("Campaign_Appointments", null); + } + set + { + this.OnPropertyChanging("Campaign_Appointments"); + this.SetRelatedEntity("Campaign_Appointments", null, value); + this.OnPropertyChanged("Campaign_Appointments"); + } + } + + /// + /// N:1 CampaignActivity_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Appointments")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Appointments + { + get + { + return this.GetRelatedEntity("CampaignActivity_Appointments", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Appointments"); + this.SetRelatedEntity("CampaignActivity_Appointments", null, value); + this.OnPropertyChanged("CampaignActivity_Appointments"); + } + } + + /// + /// N:1 Contact_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Appointments")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Appointments + { + get + { + return this.GetRelatedEntity("Contact_Appointments", null); + } + set + { + this.OnPropertyChanging("Contact_Appointments"); + this.SetRelatedEntity("Contact_Appointments", null, value); + this.OnPropertyChanged("Contact_Appointments"); + } + } + + /// + /// N:1 Contract_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Appointments")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Appointments + { + get + { + return this.GetRelatedEntity("Contract_Appointments", null); + } + set + { + this.OnPropertyChanging("Contract_Appointments"); + this.SetRelatedEntity("Contract_Appointments", null, value); + this.OnPropertyChanged("Contract_Appointments"); + } + } + + /// + /// N:1 Incident_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Appointments")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Appointments + { + get + { + return this.GetRelatedEntity("Incident_Appointments", null); + } + set + { + this.OnPropertyChanging("Incident_Appointments"); + this.SetRelatedEntity("Incident_Appointments", null, value); + this.OnPropertyChanged("Incident_Appointments"); + } + } + + /// + /// N:1 Invoice_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Appointments")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Appointments + { + get + { + return this.GetRelatedEntity("Invoice_Appointments", null); + } + set + { + this.OnPropertyChanging("Invoice_Appointments"); + this.SetRelatedEntity("Invoice_Appointments", null, value); + this.OnPropertyChanged("Invoice_Appointments"); + } + } + + /// + /// N:1 Lead_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Appointments")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Appointments + { + get + { + return this.GetRelatedEntity("Lead_Appointments", null); + } + set + { + this.OnPropertyChanging("Lead_Appointments"); + this.SetRelatedEntity("Lead_Appointments", null, value); + this.OnPropertyChanged("Lead_Appointments"); + } + } + + /// + /// N:1 lk_appointment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_createdby + { + get + { + return this.GetRelatedEntity("lk_appointment_createdby", null); + } + } + + /// + /// N:1 lk_appointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_appointment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_appointment_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_modifiedby + { + get + { + return this.GetRelatedEntity("lk_appointment_modifiedby", null); + } + } + + /// + /// N:1 lk_appointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_appointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_appointment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Appointments")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Appointments + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Appointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Appointments"); + this.SetRelatedEntity("msdyn_postalbum_Appointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_Appointments"); + } + } + + /// + /// N:1 Opportunity_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Appointments")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Appointments + { + get + { + return this.GetRelatedEntity("Opportunity_Appointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_Appointments"); + this.SetRelatedEntity("Opportunity_Appointments", null, value); + this.OnPropertyChanged("Opportunity_Appointments"); + } + } + + /// + /// N:1 processstage_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_appointments")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_appointments + { + get + { + return this.GetRelatedEntity("processstage_appointments", null); + } + set + { + this.OnPropertyChanging("processstage_appointments"); + this.SetRelatedEntity("processstage_appointments", null, value); + this.OnPropertyChanged("processstage_appointments"); + } + } + + /// + /// N:1 Quote_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Appointments")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Appointments + { + get + { + return this.GetRelatedEntity("Quote_Appointments", null); + } + set + { + this.OnPropertyChanging("Quote_Appointments"); + this.SetRelatedEntity("Quote_Appointments", null, value); + this.OnPropertyChanged("Quote_Appointments"); + } + } + + /// + /// N:1 recurringappointmentmaster_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_appointment")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_appointment + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_appointment", null); + } + } + + /// + /// N:1 SalesOrder_Appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Appointments")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Appointments + { + get + { + return this.GetRelatedEntity("SalesOrder_Appointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Appointments"); + this.SetRelatedEntity("SalesOrder_Appointments", null, value); + this.OnPropertyChanged("SalesOrder_Appointments"); + } + } + + /// + /// N:1 service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_appointments")] + public Xrm.Framework.CI.Common.Entities.Service service_appointments + { + get + { + return this.GetRelatedEntity("service_appointments", null); + } + set + { + this.OnPropertyChanging("service_appointments"); + this.SetRelatedEntity("service_appointments", null, value); + this.OnPropertyChanged("service_appointments"); + } + } + + /// + /// N:1 team_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_appointment")] + public Xrm.Framework.CI.Common.Entities.Team team_appointment + { + get + { + return this.GetRelatedEntity("team_appointment", null); + } + } + + /// + /// N:1 TransactionCurrency_Appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Appointment")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Appointment + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Appointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Appointment"); + this.SetRelatedEntity("TransactionCurrency_Appointment", null, value); + this.OnPropertyChanged("TransactionCurrency_Appointment"); + } + } + + /// + /// N:1 user_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_appointment")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_appointment + { + get + { + return this.GetRelatedEntity("user_appointment", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum AsyncOperationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Ready = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Suspended = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Locked = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 3, + } + + /// + /// Process whose execution can proceed independently or in the background. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("asyncoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AsyncOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AsyncOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "asyncoperation"; + + public const int EntityTypeCode = 4700; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public System.Nullable AsyncOperationId + { + get + { + return this.GetAttributeValue>("asyncoperationid"); + } + set + { + this.OnPropertyChanging("AsyncOperationId"); + this.SetAttributeValue("asyncoperationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AsyncOperationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AsyncOperationId = value; + } + } + + /// + /// Date and time when the system job was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Unique identifier used to correlate between multiple SDK requests and system jobs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationid")] + public System.Nullable CorrelationId + { + get + { + return this.GetAttributeValue>("correlationid"); + } + set + { + this.OnPropertyChanging("CorrelationId"); + this.SetAttributeValue("correlationid", value); + this.OnPropertyChanged("CorrelationId"); + } + } + + /// + /// Last time the correlation depth was updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationupdatedtime")] + public System.Nullable CorrelationUpdatedTime + { + get + { + return this.GetAttributeValue>("correlationupdatedtime"); + } + set + { + this.OnPropertyChanging("CorrelationUpdatedTime"); + this.SetAttributeValue("correlationupdatedtime", value); + this.OnPropertyChanged("CorrelationUpdatedTime"); + } + } + + /// + /// Unique identifier of the user who created the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the system job was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the asyncoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unstructured data associated with the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// Execution of all operations with the same dependency token is serialized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytoken")] + public string DependencyToken + { + get + { + return this.GetAttributeValue("dependencytoken"); + } + set + { + this.OnPropertyChanging("DependencyToken"); + this.SetAttributeValue("dependencytoken", value); + this.OnPropertyChanged("DependencyToken"); + } + } + + /// + /// Number of SDK calls made since the first call. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("depth")] + public System.Nullable Depth + { + get + { + return this.GetAttributeValue>("depth"); + } + set + { + this.OnPropertyChanging("Depth"); + this.SetAttributeValue("depth", value); + this.OnPropertyChanged("Depth"); + } + } + + /// + /// Error code returned from a canceled system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + } + + /// + /// Time that the system job has taken to execute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executiontimespan")] + public System.Nullable ExecutionTimeSpan + { + get + { + return this.GetAttributeValue>("executiontimespan"); + } + } + + /// + /// Message provided by the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlymessage")] + public string FriendlyMessage + { + get + { + return this.GetAttributeValue("friendlymessage"); + } + set + { + this.OnPropertyChanging("FriendlyMessage"); + this.SetAttributeValue("friendlymessage", value); + this.OnPropertyChanged("FriendlyMessage"); + } + } + + /// + /// Unique identifier of the host that owns this system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hostid")] + public string HostId + { + get + { + return this.GetAttributeValue("hostid"); + } + set + { + this.OnPropertyChanging("HostId"); + this.SetAttributeValue("hostid", value); + this.OnPropertyChanged("HostId"); + } + } + + /// + /// Indicates that the system job is waiting for an event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iswaitingforevent")] + public System.Nullable IsWaitingForEvent + { + get + { + return this.GetAttributeValue>("iswaitingforevent"); + } + } + + /// + /// Message related to the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + } + + /// + /// Name of the message that started this system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagename")] + public string MessageName + { + get + { + return this.GetAttributeValue("messagename"); + } + set + { + this.OnPropertyChanging("MessageName"); + this.SetAttributeValue("messagename", value); + this.OnPropertyChanged("MessageName"); + } + } + + /// + /// Unique identifier of the user who last modified the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the system job was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the asyncoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operationtype")] + public Microsoft.Xrm.Sdk.OptionSetValue OperationType + { + get + { + return this.GetAttributeValue("operationtype"); + } + set + { + this.OnPropertyChanging("OperationType"); + this.SetAttributeValue("operationtype", value); + this.OnPropertyChanged("OperationType"); + } + } + + /// + /// Unique identifier of the user or team who owns the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier of the business unit that owns the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the owning extension with which the system job is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningextensionid")] + public Microsoft.Xrm.Sdk.EntityReference OwningExtensionId + { + get + { + return this.GetAttributeValue("owningextensionid"); + } + set + { + this.OnPropertyChanging("OwningExtensionId"); + this.SetAttributeValue("owningextensionid", value); + this.OnPropertyChanged("OwningExtensionId"); + } + } + + /// + /// Unique identifier of the team who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Indicates whether the system job should run only after the specified date and time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponeuntil")] + public System.Nullable PostponeUntil + { + get + { + return this.GetAttributeValue>("postponeuntil"); + } + set + { + this.OnPropertyChanging("PostponeUntil"); + this.SetAttributeValue("postponeuntil", value); + this.OnPropertyChanged("PostponeUntil"); + } + } + + /// + /// Type of entity with which the system job is primarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytype")] + public string PrimaryEntityType + { + get + { + return this.GetAttributeValue("primaryentitytype"); + } + set + { + this.OnPropertyChanging("PrimaryEntityType"); + this.SetAttributeValue("primaryentitytype", value); + this.OnPropertyChanged("PrimaryEntityType"); + } + } + + /// + /// Pattern of the system job's recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepattern")] + public string RecurrencePattern + { + get + { + return this.GetAttributeValue("recurrencepattern"); + } + set + { + this.OnPropertyChanging("RecurrencePattern"); + this.SetAttributeValue("recurrencepattern", value); + this.OnPropertyChanged("RecurrencePattern"); + } + } + + /// + /// Starting time in UTC for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencestarttime")] + public System.Nullable RecurrenceStartTime + { + get + { + return this.GetAttributeValue>("recurrencestarttime"); + } + set + { + this.OnPropertyChanging("RecurrenceStartTime"); + this.SetAttributeValue("recurrencestarttime", value); + this.OnPropertyChanged("RecurrenceStartTime"); + } + } + + /// + /// Unique identifier of the object with which the system job is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the request that generated the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requestid")] + public System.Nullable RequestId + { + get + { + return this.GetAttributeValue>("requestid"); + } + set + { + this.OnPropertyChanging("RequestId"); + this.SetAttributeValue("requestid", value); + this.OnPropertyChanged("RequestId"); + } + } + + /// + /// Number of times to retry the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retrycount")] + public System.Nullable RetryCount + { + get + { + return this.GetAttributeValue>("retrycount"); + } + } + + /// + /// Order in which operations were submitted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequence")] + public System.Nullable Sequence + { + get + { + return this.GetAttributeValue>("sequence"); + } + } + + /// + /// Date and time when the system job was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + } + + /// + /// Status of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.AsyncOperationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.AsyncOperationState), 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 system job. + /// + [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"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Unique identifier of the workflow activation related to the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivationid")] + public Microsoft.Xrm.Sdk.EntityReference WorkflowActivationId + { + get + { + return this.GetAttributeValue("workflowactivationid"); + } + set + { + this.OnPropertyChanging("WorkflowActivationId"); + this.SetAttributeValue("workflowactivationid", value); + this.OnPropertyChanged("WorkflowActivationId"); + } + } + + /// + /// Name of a workflow stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowstagename")] + public string WorkflowStageName + { + get + { + return this.GetAttributeValue("workflowstagename"); + } + } + + /// + /// 1:N AsyncOperation_BulkDeleteOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_BulkDeleteOperation")] + public System.Collections.Generic.IEnumerable AsyncOperation_BulkDeleteOperation + { + get + { + return this.GetRelatedEntities("AsyncOperation_BulkDeleteOperation", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_BulkDeleteOperation"); + this.SetRelatedEntities("AsyncOperation_BulkDeleteOperation", null, value); + this.OnPropertyChanged("AsyncOperation_BulkDeleteOperation"); + } + } + + /// + /// 1:N AsyncOperation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable AsyncOperation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("AsyncOperation_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_DuplicateBaseRecord"); + this.SetRelatedEntities("AsyncOperation_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("AsyncOperation_DuplicateBaseRecord"); + } + } + + /// + /// 1:N AsyncOperation_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_Emails")] + public System.Collections.Generic.IEnumerable AsyncOperation_Emails + { + get + { + return this.GetRelatedEntities("AsyncOperation_Emails", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_Emails"); + this.SetRelatedEntities("AsyncOperation_Emails", null, value); + this.OnPropertyChanged("AsyncOperation_Emails"); + } + } + + /// + /// 1:N lk_workflowlog_asyncoperation_childworkflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperation_childworkflow")] + public System.Collections.Generic.IEnumerable lk_workflowlog_asyncoperation_childworkflow + { + get + { + return this.GetRelatedEntities("lk_workflowlog_asyncoperation_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperation_childworkflow"); + this.SetRelatedEntities("lk_workflowlog_asyncoperation_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperation_childworkflow"); + } + } + + /// + /// 1:N lk_workflowlog_asyncoperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperations")] + public System.Collections.Generic.IEnumerable lk_workflowlog_asyncoperations + { + get + { + return this.GetRelatedEntities("lk_workflowlog_asyncoperations", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperations"); + this.SetRelatedEntities("lk_workflowlog_asyncoperations", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperations"); + } + } + + /// + /// 1:N userentityinstancedata_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_asyncoperation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_asyncoperation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_asyncoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_asyncoperation"); + this.SetRelatedEntities("userentityinstancedata_asyncoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_asyncoperation"); + } + } + + /// + /// N:1 Account_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Account Account_AsyncOperations + { + get + { + return this.GetRelatedEntity("Account_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Account_AsyncOperations"); + this.SetRelatedEntity("Account_AsyncOperations", null, value); + this.OnPropertyChanged("Account_AsyncOperations"); + } + } + + /// + /// N:1 ActivityMimeAttachment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ActivityMimeAttachment ActivityMimeAttachment_AsyncOperations + { + get + { + return this.GetRelatedEntity("ActivityMimeAttachment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityMimeAttachment_AsyncOperations"); + this.SetRelatedEntity("ActivityMimeAttachment_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityMimeAttachment_AsyncOperations"); + } + } + + /// + /// N:1 ActivityPointer_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_AsyncOperations + { + get + { + return this.GetRelatedEntity("ActivityPointer_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_AsyncOperations"); + this.SetRelatedEntity("ActivityPointer_AsyncOperations", null, value); + this.OnPropertyChanged("ActivityPointer_AsyncOperations"); + } + } + + /// + /// N:1 Annotation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Annotation Annotation_AsyncOperations + { + get + { + return this.GetRelatedEntity("Annotation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Annotation_AsyncOperations"); + this.SetRelatedEntity("Annotation_AsyncOperations", null, value); + this.OnPropertyChanged("Annotation_AsyncOperations"); + } + } + + /// + /// N:1 AnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.AnnualFiscalCalendar AnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("AnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("AnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("AnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Appointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_AsyncOperations + { + get + { + return this.GetRelatedEntity("Appointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Appointment_AsyncOperations"); + this.SetRelatedEntity("Appointment_AsyncOperations", null, value); + this.OnPropertyChanged("Appointment_AsyncOperations"); + } + } + + /// + /// N:1 AttributeMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.AttributeMap AttributeMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("AttributeMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AttributeMap_AsyncOperations"); + this.SetRelatedEntity("AttributeMap_AsyncOperations", null, value); + this.OnPropertyChanged("AttributeMap_AsyncOperations"); + } + } + + /// + /// N:1 BulkOperation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_AsyncOperations + { + get + { + return this.GetRelatedEntity("BulkOperation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperation_AsyncOperations"); + this.SetRelatedEntity("BulkOperation_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperation_AsyncOperations"); + } + } + + /// + /// N:1 BulkOperationLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BulkOperationLog BulkOperationLog_AsyncOperations + { + get + { + return this.GetRelatedEntity("BulkOperationLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperationLog_AsyncOperations"); + this.SetRelatedEntity("BulkOperationLog_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperationLog_AsyncOperations"); + } + } + + /// + /// N:1 business_unit_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_asyncoperation + { + get + { + return this.GetRelatedEntity("business_unit_asyncoperation", null); + } + } + + /// + /// N:1 BusinessUnit_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_AsyncOperations + { + get + { + return this.GetRelatedEntity("BusinessUnit_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_AsyncOperations"); + this.SetRelatedEntity("BusinessUnit_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnit_AsyncOperations"); + } + } + + /// + /// N:1 BusinessUnitNewsArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle BusinessUnitNewsArticle_AsyncOperations + { + get + { + return this.GetRelatedEntity("BusinessUnitNewsArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_AsyncOperations"); + this.SetRelatedEntity("BusinessUnitNewsArticle_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_AsyncOperations"); + } + } + + /// + /// N:1 Calendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Calendar Calendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("Calendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Calendar_AsyncOperations"); + this.SetRelatedEntity("Calendar_AsyncOperations", null, value); + this.OnPropertyChanged("Calendar_AsyncOperations"); + } + } + + /// + /// N:1 Campaign_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_AsyncOperations + { + get + { + return this.GetRelatedEntity("Campaign_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Campaign_AsyncOperations"); + this.SetRelatedEntity("Campaign_AsyncOperations", null, value); + this.OnPropertyChanged("Campaign_AsyncOperations"); + } + } + + /// + /// N:1 CampaignActivity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_AsyncOperations + { + get + { + return this.GetRelatedEntity("CampaignActivity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_AsyncOperations"); + this.SetRelatedEntity("CampaignActivity_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignActivity_AsyncOperations"); + } + } + + /// + /// N:1 CampaignResponse_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_AsyncOperations + { + get + { + return this.GetRelatedEntity("CampaignResponse_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_AsyncOperations"); + this.SetRelatedEntity("CampaignResponse_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignResponse_AsyncOperations"); + } + } + + /// + /// N:1 Competitor_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_AsyncOperations + { + get + { + return this.GetRelatedEntity("Competitor_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Competitor_AsyncOperations"); + this.SetRelatedEntity("Competitor_AsyncOperations", null, value); + this.OnPropertyChanged("Competitor_AsyncOperations"); + } + } + + /// + /// N:1 Connection_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Connection Connection_AsyncOperations + { + get + { + return this.GetRelatedEntity("Connection_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_AsyncOperations"); + this.SetRelatedEntity("Connection_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_AsyncOperations"); + } + } + + /// + /// N:1 Connection_Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_Role_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole Connection_Role_AsyncOperations + { + get + { + return this.GetRelatedEntity("Connection_Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_Role_AsyncOperations"); + this.SetRelatedEntity("Connection_Role_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_Role_AsyncOperations"); + } + } + + /// + /// N:1 ConstraintBasedGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup ConstraintBasedGroup_AsyncOperations + { + get + { + return this.GetRelatedEntity("ConstraintBasedGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_AsyncOperations"); + this.SetRelatedEntity("ConstraintBasedGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_AsyncOperations"); + } + } + + /// + /// N:1 Contact_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_AsyncOperations + { + get + { + return this.GetRelatedEntity("Contact_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contact_AsyncOperations"); + this.SetRelatedEntity("Contact_AsyncOperations", null, value); + this.OnPropertyChanged("Contact_AsyncOperations"); + } + } + + /// + /// N:1 Contract_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_AsyncOperations + { + get + { + return this.GetRelatedEntity("Contract_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contract_AsyncOperations"); + this.SetRelatedEntity("Contract_AsyncOperations", null, value); + this.OnPropertyChanged("Contract_AsyncOperations"); + } + } + + /// + /// N:1 ContractDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("ContractDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractDetail_AsyncOperations"); + this.SetRelatedEntity("ContractDetail_AsyncOperations", null, value); + this.OnPropertyChanged("ContractDetail_AsyncOperations"); + } + } + + /// + /// N:1 ContractTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate ContractTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntity("ContractTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_AsyncOperations"); + this.SetRelatedEntity("ContractTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("ContractTemplate_AsyncOperations"); + } + } + + /// + /// N:1 CustomerAddress_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress CustomerAddress_AsyncOperations + { + get + { + return this.GetRelatedEntity("CustomerAddress_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_AsyncOperations"); + this.SetRelatedEntity("CustomerAddress_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerAddress_AsyncOperations"); + } + } + + /// + /// N:1 CustomerOpportunityRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole CustomerOpportunityRole_AsyncOperations + { + get + { + return this.GetRelatedEntity("CustomerOpportunityRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_AsyncOperations"); + this.SetRelatedEntity("CustomerOpportunityRole_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_AsyncOperations"); + } + } + + /// + /// N:1 CustomerRelationship_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship CustomerRelationship_AsyncOperations + { + get + { + return this.GetRelatedEntity("CustomerRelationship_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_AsyncOperations"); + this.SetRelatedEntity("CustomerRelationship_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerRelationship_AsyncOperations"); + } + } + + /// + /// N:1 Discount_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Discount Discount_AsyncOperations + { + get + { + return this.GetRelatedEntity("Discount_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Discount_AsyncOperations"); + this.SetRelatedEntity("Discount_AsyncOperations", null, value); + this.OnPropertyChanged("Discount_AsyncOperations"); + } + } + + /// + /// N:1 DiscountType_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.DiscountType DiscountType_AsyncOperations + { + get + { + return this.GetRelatedEntity("DiscountType_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DiscountType_AsyncOperations"); + this.SetRelatedEntity("DiscountType_AsyncOperations", null, value); + this.OnPropertyChanged("DiscountType_AsyncOperations"); + } + } + + /// + /// N:1 DisplayString_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.DisplayString DisplayString_AsyncOperations + { + get + { + return this.GetRelatedEntity("DisplayString_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DisplayString_AsyncOperations"); + this.SetRelatedEntity("DisplayString_AsyncOperations", null, value); + this.OnPropertyChanged("DisplayString_AsyncOperations"); + } + } + + /// + /// N:1 Email_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Email Email_AsyncOperations + { + get + { + return this.GetRelatedEntity("Email_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Email_AsyncOperations"); + this.SetRelatedEntity("Email_AsyncOperations", null, value); + this.OnPropertyChanged("Email_AsyncOperations"); + } + } + + /// + /// N:1 emailserverprofile_asyncoperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_asyncoperations")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_asyncoperations + { + get + { + return this.GetRelatedEntity("emailserverprofile_asyncoperations", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_asyncoperations"); + this.SetRelatedEntity("emailserverprofile_asyncoperations", null, value); + this.OnPropertyChanged("emailserverprofile_asyncoperations"); + } + } + + /// + /// N:1 EntityMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.EntityMap EntityMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("EntityMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("EntityMap_AsyncOperations"); + this.SetRelatedEntity("EntityMap_AsyncOperations", null, value); + this.OnPropertyChanged("EntityMap_AsyncOperations"); + } + } + + /// + /// N:1 Equipment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_AsyncOperations + { + get + { + return this.GetRelatedEntity("Equipment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Equipment_AsyncOperations"); + this.SetRelatedEntity("Equipment_AsyncOperations", null, value); + this.OnPropertyChanged("Equipment_AsyncOperations"); + } + } + + /// + /// N:1 Fax_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_AsyncOperations + { + get + { + return this.GetRelatedEntity("Fax_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Fax_AsyncOperations"); + this.SetRelatedEntity("Fax_AsyncOperations", null, value); + this.OnPropertyChanged("Fax_AsyncOperations"); + } + } + + /// + /// N:1 FixedMonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.FixedMonthlyFiscalCalendar FixedMonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("FixedMonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("FixedMonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("FixedMonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("FixedMonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Goal_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Goal Goal_AsyncOperations + { + get + { + return this.GetRelatedEntity("Goal_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Goal_AsyncOperations"); + this.SetRelatedEntity("Goal_AsyncOperations", null, value); + this.OnPropertyChanged("Goal_AsyncOperations"); + } + } + + /// + /// N:1 goalrollupquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goalrollupquery_AsyncOperations + { + get + { + return this.GetRelatedEntity("goalrollupquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_AsyncOperations"); + this.SetRelatedEntity("goalrollupquery_AsyncOperations", null, value); + this.OnPropertyChanged("goalrollupquery_AsyncOperations"); + } + } + + /// + /// N:1 Import_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Import Import_AsyncOperations + { + get + { + return this.GetRelatedEntity("Import_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Import_AsyncOperations"); + this.SetRelatedEntity("Import_AsyncOperations", null, value); + this.OnPropertyChanged("Import_AsyncOperations"); + } + } + + /// + /// N:1 ImportFile_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ImportFile ImportFile_AsyncOperations + { + get + { + return this.GetRelatedEntity("ImportFile_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportFile_AsyncOperations"); + this.SetRelatedEntity("ImportFile_AsyncOperations", null, value); + this.OnPropertyChanged("ImportFile_AsyncOperations"); + } + } + + /// + /// N:1 ImportLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ImportLog ImportLog_AsyncOperations + { + get + { + return this.GetRelatedEntity("ImportLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportLog_AsyncOperations"); + this.SetRelatedEntity("ImportLog_AsyncOperations", null, value); + this.OnPropertyChanged("ImportLog_AsyncOperations"); + } + } + + /// + /// N:1 ImportMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("ImportMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportMap_AsyncOperations"); + this.SetRelatedEntity("ImportMap_AsyncOperations", null, value); + this.OnPropertyChanged("ImportMap_AsyncOperations"); + } + } + + /// + /// N:1 Incident_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_AsyncOperations + { + get + { + return this.GetRelatedEntity("Incident_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Incident_AsyncOperations"); + this.SetRelatedEntity("Incident_AsyncOperations", null, value); + this.OnPropertyChanged("Incident_AsyncOperations"); + } + } + + /// + /// N:1 IncidentResolution_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution IncidentResolution_AsyncOperations + { + get + { + return this.GetRelatedEntity("IncidentResolution_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_AsyncOperations"); + this.SetRelatedEntity("IncidentResolution_AsyncOperations", null, value); + this.OnPropertyChanged("IncidentResolution_AsyncOperations"); + } + } + + /// + /// N:1 Invoice_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_AsyncOperations + { + get + { + return this.GetRelatedEntity("Invoice_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Invoice_AsyncOperations"); + this.SetRelatedEntity("Invoice_AsyncOperations", null, value); + this.OnPropertyChanged("Invoice_AsyncOperations"); + } + } + + /// + /// N:1 InvoiceDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail InvoiceDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("InvoiceDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_AsyncOperations"); + this.SetRelatedEntity("InvoiceDetail_AsyncOperations", null, value); + this.OnPropertyChanged("InvoiceDetail_AsyncOperations"); + } + } + + /// + /// N:1 IsvConfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.IsvConfig IsvConfig_AsyncOperations + { + get + { + return this.GetRelatedEntity("IsvConfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IsvConfig_AsyncOperations"); + this.SetRelatedEntity("IsvConfig_AsyncOperations", null, value); + this.OnPropertyChanged("IsvConfig_AsyncOperations"); + } + } + + /// + /// N:1 KbArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_AsyncOperations + { + get + { + return this.GetRelatedEntity("KbArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticle_AsyncOperations"); + this.SetRelatedEntity("KbArticle_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticle_AsyncOperations"); + } + } + + /// + /// N:1 KbArticleComment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment KbArticleComment_AsyncOperations + { + get + { + return this.GetRelatedEntity("KbArticleComment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_AsyncOperations"); + this.SetRelatedEntity("KbArticleComment_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleComment_AsyncOperations"); + } + } + + /// + /// N:1 KbArticleTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate KbArticleTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntity("KbArticleTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_AsyncOperations"); + this.SetRelatedEntity("KbArticleTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleTemplate_AsyncOperations"); + } + } + + /// + /// N:1 Lead_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_AsyncOperations + { + get + { + return this.GetRelatedEntity("Lead_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Lead_AsyncOperations"); + this.SetRelatedEntity("Lead_AsyncOperations", null, value); + this.OnPropertyChanged("Lead_AsyncOperations"); + } + } + + /// + /// N:1 Letter_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_AsyncOperations + { + get + { + return this.GetRelatedEntity("Letter_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Letter_AsyncOperations"); + this.SetRelatedEntity("Letter_AsyncOperations", null, value); + this.OnPropertyChanged("Letter_AsyncOperations"); + } + } + + /// + /// N:1 List_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.List List_AsyncOperations + { + get + { + return this.GetRelatedEntity("List_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("List_AsyncOperations"); + this.SetRelatedEntity("List_AsyncOperations", null, value); + this.OnPropertyChanged("List_AsyncOperations"); + } + } + + /// + /// N:1 lk_asyncoperation_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_createdby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_createdby", null); + } + } + + /// + /// N:1 lk_asyncoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_asyncoperation_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_modifiedby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_modifiedby", null); + } + } + + /// + /// N:1 lk_asyncoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_asyncoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_asyncoperation_workflowactivationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_workflowactivationid")] + public Xrm.Framework.CI.Common.Entities.Workflow lk_asyncoperation_workflowactivationid + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_workflowactivationid", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_workflowactivationid"); + this.SetRelatedEntity("lk_asyncoperation_workflowactivationid", null, value); + this.OnPropertyChanged("lk_asyncoperation_workflowactivationid"); + } + } + + /// + /// N:1 mailbox_asyncoperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_asyncoperations")] + public Xrm.Framework.CI.Common.Entities.Mailbox mailbox_asyncoperations + { + get + { + return this.GetRelatedEntity("mailbox_asyncoperations", null); + } + set + { + this.OnPropertyChanging("mailbox_asyncoperations"); + this.SetRelatedEntity("mailbox_asyncoperations", null, value); + this.OnPropertyChanged("mailbox_asyncoperations"); + } + } + + /// + /// N:1 MailMergeTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate MailMergeTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntity("MailMergeTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_AsyncOperations"); + this.SetRelatedEntity("MailMergeTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("MailMergeTemplate_AsyncOperations"); + } + } + + /// + /// N:1 metric_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Metric metric_AsyncOperations + { + get + { + return this.GetRelatedEntity("metric_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("metric_AsyncOperations"); + this.SetRelatedEntity("metric_AsyncOperations", null, value); + this.OnPropertyChanged("metric_AsyncOperations"); + } + } + + /// + /// N:1 MonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.MonthlyFiscalCalendar MonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("MonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("MonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("MonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_postalbum_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_AsyncOperations"); + this.SetRelatedEntity("msdyn_postalbum_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postalbum_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_postconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_AsyncOperations"); + this.SetRelatedEntity("msdyn_postconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postconfig_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_postruleconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_AsyncOperations"); + this.SetRelatedEntity("msdyn_postruleconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_AsyncOperations"); + this.SetRelatedEntity("msdyn_wallsavedquery_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_AsyncOperations"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_AsyncOperations + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_AsyncOperations"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_AsyncOperations"); + } + } + + /// + /// N:1 Opportunity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_AsyncOperations + { + get + { + return this.GetRelatedEntity("Opportunity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Opportunity_AsyncOperations"); + this.SetRelatedEntity("Opportunity_AsyncOperations", null, value); + this.OnPropertyChanged("Opportunity_AsyncOperations"); + } + } + + /// + /// N:1 OpportunityClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose OpportunityClose_AsyncOperations + { + get + { + return this.GetRelatedEntity("OpportunityClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_AsyncOperations"); + this.SetRelatedEntity("OpportunityClose_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityClose_AsyncOperations"); + } + } + + /// + /// N:1 OpportunityProduct_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct OpportunityProduct_AsyncOperations + { + get + { + return this.GetRelatedEntity("OpportunityProduct_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_AsyncOperations"); + this.SetRelatedEntity("OpportunityProduct_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityProduct_AsyncOperations"); + } + } + + /// + /// N:1 OrderClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.OrderClose OrderClose_AsyncOperations + { + get + { + return this.GetRelatedEntity("OrderClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OrderClose_AsyncOperations"); + this.SetRelatedEntity("OrderClose_AsyncOperations", null, value); + this.OnPropertyChanged("OrderClose_AsyncOperations"); + } + } + + /// + /// N:1 Organization_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Organization Organization_AsyncOperations + { + get + { + return this.GetRelatedEntity("Organization_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Organization_AsyncOperations"); + this.SetRelatedEntity("Organization_AsyncOperations", null, value); + this.OnPropertyChanged("Organization_AsyncOperations"); + } + } + + /// + /// N:1 PhoneCall_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_AsyncOperations + { + get + { + return this.GetRelatedEntity("PhoneCall_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PhoneCall_AsyncOperations"); + this.SetRelatedEntity("PhoneCall_AsyncOperations", null, value); + this.OnPropertyChanged("PhoneCall_AsyncOperations"); + } + } + + /// + /// N:1 post_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Post post_AsyncOperations + { + get + { + return this.GetRelatedEntity("post_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("post_AsyncOperations"); + this.SetRelatedEntity("post_AsyncOperations", null, value); + this.OnPropertyChanged("post_AsyncOperations"); + } + } + + /// + /// N:1 PostFollow_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PostFollow_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.PostFollow PostFollow_AsyncOperations + { + get + { + return this.GetRelatedEntity("PostFollow_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PostFollow_AsyncOperations"); + this.SetRelatedEntity("PostFollow_AsyncOperations", null, value); + this.OnPropertyChanged("PostFollow_AsyncOperations"); + } + } + + /// + /// N:1 PriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntity("PriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PriceLevel_AsyncOperations"); + this.SetRelatedEntity("PriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("PriceLevel_AsyncOperations"); + } + } + + /// + /// N:1 Privilege_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Privilege Privilege_AsyncOperations + { + get + { + return this.GetRelatedEntity("Privilege_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Privilege_AsyncOperations"); + this.SetRelatedEntity("Privilege_AsyncOperations", null, value); + this.OnPropertyChanged("Privilege_AsyncOperations"); + } + } + + /// + /// N:1 Product_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Product Product_AsyncOperations + { + get + { + return this.GetRelatedEntity("Product_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Product_AsyncOperations"); + this.SetRelatedEntity("Product_AsyncOperations", null, value); + this.OnPropertyChanged("Product_AsyncOperations"); + } + } + + /// + /// N:1 ProductPriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel ProductPriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntity("ProductPriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_AsyncOperations"); + this.SetRelatedEntity("ProductPriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("ProductPriceLevel_AsyncOperations"); + } + } + + /// + /// N:1 QuarterlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QuarterlyFiscalCalendar QuarterlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("QuarterlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuarterlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("QuarterlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("QuarterlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Queue_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_AsyncOperations + { + get + { + return this.GetRelatedEntity("Queue_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Queue_AsyncOperations"); + this.SetRelatedEntity("Queue_AsyncOperations", null, value); + this.OnPropertyChanged("Queue_AsyncOperations"); + } + } + + /// + /// N:1 QueueItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QueueItem QueueItem_AsyncOperations + { + get + { + return this.GetRelatedEntity("QueueItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QueueItem_AsyncOperations"); + this.SetRelatedEntity("QueueItem_AsyncOperations", null, value); + this.OnPropertyChanged("QueueItem_AsyncOperations"); + } + } + + /// + /// N:1 Quote_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_AsyncOperations + { + get + { + return this.GetRelatedEntity("Quote_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Quote_AsyncOperations"); + this.SetRelatedEntity("Quote_AsyncOperations", null, value); + this.OnPropertyChanged("Quote_AsyncOperations"); + } + } + + /// + /// N:1 QuoteClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QuoteClose QuoteClose_AsyncOperations + { + get + { + return this.GetRelatedEntity("QuoteClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteClose_AsyncOperations"); + this.SetRelatedEntity("QuoteClose_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteClose_AsyncOperations"); + } + } + + /// + /// N:1 QuoteDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail QuoteDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("QuoteDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_AsyncOperations"); + this.SetRelatedEntity("QuoteDetail_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteDetail_AsyncOperations"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_AsyncOperations + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_AsyncOperations"); + this.SetRelatedEntity("RecurringAppointmentMaster_AsyncOperations", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_AsyncOperations"); + } + } + + /// + /// N:1 RelationshipRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole RelationshipRole_AsyncOperations + { + get + { + return this.GetRelatedEntity("RelationshipRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_AsyncOperations"); + this.SetRelatedEntity("RelationshipRole_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRole_AsyncOperations"); + } + } + + /// + /// N:1 RelationshipRoleMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RelationshipRoleMap RelationshipRoleMap_AsyncOperations + { + get + { + return this.GetRelatedEntity("RelationshipRoleMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRoleMap_AsyncOperations"); + this.SetRelatedEntity("RelationshipRoleMap_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRoleMap_AsyncOperations"); + } + } + + /// + /// N:1 Report_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Report Report_AsyncOperations + { + get + { + return this.GetRelatedEntity("Report_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Report_AsyncOperations"); + this.SetRelatedEntity("Report_AsyncOperations", null, value); + this.OnPropertyChanged("Report_AsyncOperations"); + } + } + + /// + /// N:1 Resource_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Resource Resource_AsyncOperations + { + get + { + return this.GetRelatedEntity("Resource_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Resource_AsyncOperations"); + this.SetRelatedEntity("Resource_AsyncOperations", null, value); + this.OnPropertyChanged("Resource_AsyncOperations"); + } + } + + /// + /// N:1 ResourceGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_AsyncOperations + { + get + { + return this.GetRelatedEntity("ResourceGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_AsyncOperations"); + this.SetRelatedEntity("ResourceGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceGroup_AsyncOperations"); + } + } + + /// + /// N:1 ResourceSpec_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ResourceSpec_AsyncOperations + { + get + { + return this.GetRelatedEntity("ResourceSpec_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_AsyncOperations"); + this.SetRelatedEntity("ResourceSpec_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceSpec_AsyncOperations"); + } + } + + /// + /// N:1 Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Role Role_AsyncOperations + { + get + { + return this.GetRelatedEntity("Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Role_AsyncOperations"); + this.SetRelatedEntity("Role_AsyncOperations", null, value); + this.OnPropertyChanged("Role_AsyncOperations"); + } + } + + /// + /// N:1 rollupfield_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.RollupField rollupfield_AsyncOperations + { + get + { + return this.GetRelatedEntity("rollupfield_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("rollupfield_AsyncOperations"); + this.SetRelatedEntity("rollupfield_AsyncOperations", null, value); + this.OnPropertyChanged("rollupfield_AsyncOperations"); + } + } + + /// + /// N:1 SalesLiterature_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesLiterature_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_AsyncOperations"); + this.SetRelatedEntity("SalesLiterature_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiterature_AsyncOperations"); + } + } + + /// + /// N:1 SalesLiteratureItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem SalesLiteratureItem_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesLiteratureItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_AsyncOperations"); + this.SetRelatedEntity("SalesLiteratureItem_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiteratureItem_AsyncOperations"); + } + } + + /// + /// N:1 SalesOrder_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesOrder_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrder_AsyncOperations"); + this.SetRelatedEntity("SalesOrder_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrder_AsyncOperations"); + } + } + + /// + /// N:1 SalesOrderDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail SalesOrderDetail_AsyncOperations + { + get + { + return this.GetRelatedEntity("SalesOrderDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_AsyncOperations"); + this.SetRelatedEntity("SalesOrderDetail_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrderDetail_AsyncOperations"); + } + } + + /// + /// N:1 SavedQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SavedQuery SavedQuery_AsyncOperations + { + get + { + return this.GetRelatedEntity("SavedQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SavedQuery_AsyncOperations"); + this.SetRelatedEntity("SavedQuery_AsyncOperations", null, value); + this.OnPropertyChanged("SavedQuery_AsyncOperations"); + } + } + + /// + /// N:1 SdkMessageProcessingStep_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningextensionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SdkMessageProcessingStep_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStep SdkMessageProcessingStep_AsyncOperations + { + get + { + return this.GetRelatedEntity("SdkMessageProcessingStep_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStep_AsyncOperations"); + this.SetRelatedEntity("SdkMessageProcessingStep_AsyncOperations", null, value); + this.OnPropertyChanged("SdkMessageProcessingStep_AsyncOperations"); + } + } + + /// + /// N:1 SemiAnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SemiAnnualFiscalCalendar SemiAnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntity("SemiAnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SemiAnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntity("SemiAnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("SemiAnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// N:1 Service_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Service Service_AsyncOperations + { + get + { + return this.GetRelatedEntity("Service_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Service_AsyncOperations"); + this.SetRelatedEntity("Service_AsyncOperations", null, value); + this.OnPropertyChanged("Service_AsyncOperations"); + } + } + + /// + /// N:1 ServiceAppointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_AsyncOperations + { + get + { + return this.GetRelatedEntity("ServiceAppointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_AsyncOperations"); + this.SetRelatedEntity("ServiceAppointment_AsyncOperations", null, value); + this.OnPropertyChanged("ServiceAppointment_AsyncOperations"); + } + } + + /// + /// N:1 SharePointDocumentLocation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_AsyncOperations + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_AsyncOperations"); + this.SetRelatedEntity("SharePointDocumentLocation_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_AsyncOperations"); + } + } + + /// + /// N:1 SharePointSite_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_AsyncOperations + { + get + { + return this.GetRelatedEntity("SharePointSite_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointSite_AsyncOperations"); + this.SetRelatedEntity("SharePointSite_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointSite_AsyncOperations"); + } + } + + /// + /// N:1 Site_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Site Site_AsyncOperations + { + get + { + return this.GetRelatedEntity("Site_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Site_AsyncOperations"); + this.SetRelatedEntity("Site_AsyncOperations", null, value); + this.OnPropertyChanged("Site_AsyncOperations"); + } + } + + /// + /// N:1 Subject_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Subject Subject_AsyncOperations + { + get + { + return this.GetRelatedEntity("Subject_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Subject_AsyncOperations"); + this.SetRelatedEntity("Subject_AsyncOperations", null, value); + this.OnPropertyChanged("Subject_AsyncOperations"); + } + } + + /// + /// N:1 system_user_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_asyncoperation + { + get + { + return this.GetRelatedEntity("system_user_asyncoperation", null); + } + } + + /// + /// N:1 SystemForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SystemForm SystemForm_AsyncOperations + { + get + { + return this.GetRelatedEntity("SystemForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemForm_AsyncOperations"); + this.SetRelatedEntity("SystemForm_AsyncOperations", null, value); + this.OnPropertyChanged("SystemForm_AsyncOperations"); + } + } + + /// + /// N:1 SystemUser_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_AsyncOperations + { + get + { + return this.GetRelatedEntity("SystemUser_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemUser_AsyncOperations"); + this.SetRelatedEntity("SystemUser_AsyncOperations", null, value); + this.OnPropertyChanged("SystemUser_AsyncOperations"); + } + } + + /// + /// N:1 Task_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Task Task_AsyncOperations + { + get + { + return this.GetRelatedEntity("Task_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Task_AsyncOperations"); + this.SetRelatedEntity("Task_AsyncOperations", null, value); + this.OnPropertyChanged("Task_AsyncOperations"); + } + } + + /// + /// N:1 team_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.Team team_asyncoperation + { + get + { + return this.GetRelatedEntity("team_asyncoperation", null); + } + } + + /// + /// N:1 Team_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Team Team_AsyncOperations + { + get + { + return this.GetRelatedEntity("Team_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Team_AsyncOperations"); + this.SetRelatedEntity("Team_AsyncOperations", null, value); + this.OnPropertyChanged("Team_AsyncOperations"); + } + } + + /// + /// N:1 Template_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Template Template_AsyncOperations + { + get + { + return this.GetRelatedEntity("Template_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Template_AsyncOperations"); + this.SetRelatedEntity("Template_AsyncOperations", null, value); + this.OnPropertyChanged("Template_AsyncOperations"); + } + } + + /// + /// N:1 Territory_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_AsyncOperations + { + get + { + return this.GetRelatedEntity("Territory_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Territory_AsyncOperations"); + this.SetRelatedEntity("Territory_AsyncOperations", null, value); + this.OnPropertyChanged("Territory_AsyncOperations"); + } + } + + /// + /// N:1 TransactionCurrency_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_AsyncOperations + { + get + { + return this.GetRelatedEntity("TransactionCurrency_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_AsyncOperations"); + this.SetRelatedEntity("TransactionCurrency_AsyncOperations", null, value); + this.OnPropertyChanged("TransactionCurrency_AsyncOperations"); + } + } + + /// + /// N:1 UoM_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UoM UoM_AsyncOperations + { + get + { + return this.GetRelatedEntity("UoM_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoM_AsyncOperations"); + this.SetRelatedEntity("UoM_AsyncOperations", null, value); + this.OnPropertyChanged("UoM_AsyncOperations"); + } + } + + /// + /// N:1 UoMSchedule_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule UoMSchedule_AsyncOperations + { + get + { + return this.GetRelatedEntity("UoMSchedule_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoMSchedule_AsyncOperations"); + this.SetRelatedEntity("UoMSchedule_AsyncOperations", null, value); + this.OnPropertyChanged("UoMSchedule_AsyncOperations"); + } + } + + /// + /// N:1 UserForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UserForm UserForm_AsyncOperations + { + get + { + return this.GetRelatedEntity("UserForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserForm_AsyncOperations"); + this.SetRelatedEntity("UserForm_AsyncOperations", null, value); + this.OnPropertyChanged("UserForm_AsyncOperations"); + } + } + + /// + /// N:1 UserQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_AsyncOperations")] + public Xrm.Framework.CI.Common.Entities.UserQuery UserQuery_AsyncOperations + { + get + { + return this.GetRelatedEntity("UserQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserQuery_AsyncOperations"); + this.SetRelatedEntity("UserQuery_AsyncOperations", null, value); + this.OnPropertyChanged("UserQuery_AsyncOperations"); + } + } + } + + /// + /// Represents a mapping between attributes where the attribute values should be copied from a record into the form of a new related record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("attributemap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class AttributeMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public AttributeMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "attributemap"; + + public const int EntityTypeCode = 4601; + + 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 attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemapid")] + public System.Nullable AttributeMapId + { + get + { + return this.GetAttributeValue>("attributemapid"); + } + set + { + this.OnPropertyChanging("AttributeMapId"); + this.SetAttributeValue("attributemapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AttributeMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AttributeMapId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemapidunique")] + public System.Nullable AttributeMapIdUnique + { + get + { + return this.GetAttributeValue>("attributemapidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the attribute map 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 attributemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the entity map with which the attribute map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + public Microsoft.Xrm.Sdk.EntityReference EntityMapId + { + get + { + return this.GetAttributeValue("entitymapid"); + } + set + { + this.OnPropertyChanging("EntityMapId"); + this.SetAttributeValue("entitymapid", value); + this.OnPropertyChanged("EntityMapId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether this attribute map is user-defined or system-defined. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issystem")] + public System.Nullable IsSystem + { + get + { + return this.GetAttributeValue>("issystem"); + } + set + { + this.OnPropertyChanging("IsSystem"); + this.SetAttributeValue("issystem", value); + this.OnPropertyChanged("IsSystem"); + } + } + + /// + /// Unique identifier of the user who last modified the attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the attribute map 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 attributemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the attribute map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the parent attribute map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentattributemapid")] + public Microsoft.Xrm.Sdk.EntityReference ParentAttributeMapId + { + get + { + return this.GetAttributeValue("parentattributemapid"); + } + set + { + this.OnPropertyChanging("ParentAttributeMapId"); + this.SetAttributeValue("parentattributemapid", value); + this.OnPropertyChanged("ParentAttributeMapId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Name of the source attribute for the mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceattributename")] + public string SourceAttributeName + { + get + { + return this.GetAttributeValue("sourceattributename"); + } + set + { + this.OnPropertyChanging("SourceAttributeName"); + this.SetAttributeValue("sourceattributename", value); + this.OnPropertyChanged("SourceAttributeName"); + } + } + + /// + /// Name of the target attribute for the mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetattributename")] + public string TargetAttributeName + { + get + { + return this.GetAttributeValue("targetattributename"); + } + set + { + this.OnPropertyChanging("TargetAttributeName"); + this.SetAttributeValue("targetattributename", value); + this.OnPropertyChanged("TargetAttributeName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N attribute_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedattribute_map_attribute_maps + { + get + { + return this.GetRelatedEntities("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedattribute_map_attribute_maps"); + this.SetRelatedEntities("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedattribute_map_attribute_maps"); + } + } + + /// + /// 1:N AttributeMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable AttributeMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("AttributeMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("AttributeMap_AsyncOperations"); + this.SetRelatedEntities("AttributeMap_AsyncOperations", null, value); + this.OnPropertyChanged("AttributeMap_AsyncOperations"); + } + } + + /// + /// 1:N AttributeMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable AttributeMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("AttributeMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("AttributeMap_BulkDeleteFailures"); + this.SetRelatedEntities("AttributeMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("AttributeMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_attributemap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_attributemap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_attributemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_attributemap"); + this.SetRelatedEntities("userentityinstancedata_attributemap", null, value); + this.OnPropertyChanged("userentityinstancedata_attributemap"); + } + } + + /// + /// N:1 attribute_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentattributemapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.AttributeMap Referencingattribute_map_attribute_maps + { + get + { + return this.GetRelatedEntity("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingattribute_map_attribute_maps"); + this.SetRelatedEntity("attribute_map_attribute_maps", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingattribute_map_attribute_maps"); + } + } + + /// + /// N:1 createdby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_attributemap + { + get + { + return this.GetRelatedEntity("createdby_attributemap", null); + } + } + + /// + /// N:1 createdonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdonbehalfby_attributemap + { + get + { + return this.GetRelatedEntity("createdonbehalfby_attributemap", null); + } + } + + /// + /// N:1 entity_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entity_map_attribute_maps")] + public Xrm.Framework.CI.Common.Entities.EntityMap entity_map_attribute_maps + { + get + { + return this.GetRelatedEntity("entity_map_attribute_maps", null); + } + set + { + this.OnPropertyChanging("entity_map_attribute_maps"); + this.SetRelatedEntity("entity_map_attribute_maps", null, value); + this.OnPropertyChanged("entity_map_attribute_maps"); + } + } + + /// + /// N:1 modifiedby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_attributemap + { + get + { + return this.GetRelatedEntity("modifiedby_attributemap", null); + } + } + + /// + /// N:1 modifiedonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_attributemap")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedonbehalfby_attributemap + { + get + { + return this.GetRelatedEntity("modifiedonbehalfby_attributemap", null); + } + } + + /// + /// N:1 organization_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_attributemap")] + public Xrm.Framework.CI.Common.Entities.Organization organization_attributemap + { + get + { + return this.GetRelatedEntity("organization_attributemap", null); + } + } + } + + /// + /// Track changes to records for analysis, record keeping, and compliance. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("audit")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Audit : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Audit() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "audit"; + + public const int EntityTypeCode = 4567; + + 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)); + } + } + + /// + /// Actions the user can perform that cause a change + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("action")] + public Microsoft.Xrm.Sdk.OptionSetValue Action + { + get + { + return this.GetAttributeValue("action"); + } + } + + /// + /// Contains a CSV of the ColumnNumber metadata property of attributes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributemask")] + public string AttributeMask + { + get + { + return this.GetAttributeValue("attributemask"); + } + } + + /// + /// Unique identifier of the auditing instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("auditid")] + public System.Nullable AuditId + { + get + { + return this.GetAttributeValue>("auditid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("auditid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the calling user in case of an impersonated call + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("callinguserid")] + public Microsoft.Xrm.Sdk.EntityReference CallingUserId + { + get + { + return this.GetAttributeValue("callinguserid"); + } + } + + /// + /// Date and time when the audit record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the record that is being audited + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + } + + /// + /// The action that causes the audit--it will be create, delete, or update + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operation")] + public Microsoft.Xrm.Sdk.OptionSetValue Operation + { + get + { + return this.GetAttributeValue("operation"); + } + } + + /// + /// Unique identifier for multiple changes that are part of a single operation; this field contains the same GUID for all the audit rows generated in a single transaction + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactionid")] + public System.Nullable TransactionId + { + get + { + return this.GetAttributeValue>("transactionid"); + } + } + + /// + /// Unique identifier of the user who caused a change + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userid")] + public Microsoft.Xrm.Sdk.EntityReference UserId + { + get + { + return this.GetAttributeValue("userid"); + } + } + + /// + /// 1:N userentityinstancedata_audit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_audit")] + public System.Collections.Generic.IEnumerable userentityinstancedata_audit + { + get + { + return this.GetRelatedEntities("userentityinstancedata_audit", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_audit"); + this.SetRelatedEntities("userentityinstancedata_audit", null, value); + this.OnPropertyChanged("userentityinstancedata_audit"); + } + } + + /// + /// N:1 lk_audit_callinguserid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("callinguserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_callinguserid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_audit_callinguserid + { + get + { + return this.GetRelatedEntity("lk_audit_callinguserid", null); + } + } + + /// + /// N:1 lk_audit_userid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_userid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_audit_userid + { + get + { + return this.GetRelatedEntity("lk_audit_userid", null); + } + } + } + + /// + /// Record that was not deleted during a bulk deletion job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkdeletefailure")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkDeleteFailure : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkDeleteFailure() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkdeletefailure"; + + public const int EntityTypeCode = 4425; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + } + + /// + /// Unique identifier of the bulk deletion failure record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeletefailureid")] + public System.Nullable BulkDeleteFailureId + { + get + { + return this.GetAttributeValue>("bulkdeletefailureid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeletefailureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the bulk operation job which created this record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + public Microsoft.Xrm.Sdk.EntityReference BulkDeleteOperationId + { + get + { + return this.GetAttributeValue("bulkdeleteoperationid"); + } + } + + /// + /// Description of the error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errordescription")] + public string ErrorDescription + { + get + { + return this.GetAttributeValue("errordescription"); + } + } + + /// + /// Error code for the failed bulk deletion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + } + + /// + /// Index of the ordered query expression that retrieved this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orderedqueryindex")] + public System.Nullable OrderedQueryIndex + { + get + { + return this.GetAttributeValue>("orderedqueryindex"); + } + } + + /// + /// Unique identifier of the user or team who owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the bulk deletion failure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the bulk deletion failure record. + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the record that can not be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + } + + /// + /// 1:N userentityinstancedata_bulkdeletefailure + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeletefailure")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkdeletefailure + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkdeletefailure", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeletefailure"); + this.SetRelatedEntities("userentityinstancedata_bulkdeletefailure", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeletefailure"); + } + } + + /// + /// N:1 Account_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Account Account_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Account_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ActivityMimeAttachment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityMimeAttachment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ActivityMimeAttachment ActivityMimeAttachment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ActivityMimeAttachment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ActivityPointer_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ActivityPointer_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Annotation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Annotation Annotation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Annotation_BulkDeleteFailures", null); + } + } + + /// + /// N:1 AnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AnnualFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.AnnualFiscalCalendar AnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("AnnualFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Appointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Appointment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 AttributeMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AttributeMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.AttributeMap AttributeMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("AttributeMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BulkDeleteOperation_BulkDeleteFailure + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkDeleteOperation_BulkDeleteFailure")] + public Xrm.Framework.CI.Common.Entities.BulkDeleteOperation BulkDeleteOperation_BulkDeleteFailure + { + get + { + return this.GetRelatedEntity("BulkDeleteOperation_BulkDeleteFailure", null); + } + } + + /// + /// N:1 BulkOperation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BulkOperation_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BulkOperationLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BulkOperationLog BulkOperationLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BulkOperationLog_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BusinessUnit_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BusinessUnit_BulkDeleteFailures", null); + } + } + + /// + /// N:1 BusinessUnitNewsArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle BusinessUnitNewsArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("BusinessUnitNewsArticle_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Calendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Calendar Calendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Calendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Campaign_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Campaign_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CampaignActivity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CampaignActivity_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CampaignResponse_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CampaignResponse_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Competitor_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Competitor_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ConstraintBasedGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup ConstraintBasedGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ConstraintBasedGroup_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Contact_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Contact_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Contract_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Contract_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ContractDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ContractDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ContractTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate ContractTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ContractTemplate_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CustomerAddress_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress CustomerAddress_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CustomerAddress_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CustomerOpportunityRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole CustomerOpportunityRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CustomerOpportunityRole_BulkDeleteFailures", null); + } + } + + /// + /// N:1 CustomerRelationship_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship CustomerRelationship_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("CustomerRelationship_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Discount_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Discount Discount_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Discount_BulkDeleteFailures", null); + } + } + + /// + /// N:1 DiscountType_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.DiscountType DiscountType_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("DiscountType_BulkDeleteFailures", null); + } + } + + /// + /// N:1 DisplayString_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.DisplayString DisplayString_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("DisplayString_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Email_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Email Email_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Email_BulkDeleteFailures", null); + } + } + + /// + /// N:1 emailserverprofile_bulkdeletefailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_bulkdeletefailures")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_bulkdeletefailures + { + get + { + return this.GetRelatedEntity("emailserverprofile_bulkdeletefailures", null); + } + } + + /// + /// N:1 EntityMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.EntityMap EntityMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("EntityMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Equipment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Equipment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Fax_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Fax_BulkDeleteFailures", null); + } + } + + /// + /// N:1 FixedMonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.FixedMonthlyFiscalCalendar FixedMonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("FixedMonthlyFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Import_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Import Import_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Import_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ImportFile_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ImportFile ImportFile_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ImportFile_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ImportLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ImportLog ImportLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ImportLog_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ImportMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ImportMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Incident_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Incident_BulkDeleteFailures", null); + } + } + + /// + /// N:1 IncidentResolution_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution IncidentResolution_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("IncidentResolution_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Invoice_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Invoice_BulkDeleteFailures", null); + } + } + + /// + /// N:1 InvoiceDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail InvoiceDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("InvoiceDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 IsvConfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.IsvConfig IsvConfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("IsvConfig_BulkDeleteFailures", null); + } + } + + /// + /// N:1 KbArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("KbArticle_BulkDeleteFailures", null); + } + } + + /// + /// N:1 KbArticleComment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment KbArticleComment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("KbArticleComment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 KbArticleTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate KbArticleTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("KbArticleTemplate_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Lead_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Lead_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Letter_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Letter_BulkDeleteFailures", null); + } + } + + /// + /// N:1 List_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.List List_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("List_BulkDeleteFailures", null); + } + } + + /// + /// N:1 MonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.MonthlyFiscalCalendar MonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("MonthlyFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_postalbum_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_postconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_postruleconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_wallsavedquery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_BulkDeleteFailures", null); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Opportunity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Opportunity_BulkDeleteFailures", null); + } + } + + /// + /// N:1 OpportunityClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose OpportunityClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("OpportunityClose_BulkDeleteFailures", null); + } + } + + /// + /// N:1 OpportunityProduct_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct OpportunityProduct_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("OpportunityProduct_BulkDeleteFailures", null); + } + } + + /// + /// N:1 OrderClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.OrderClose OrderClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("OrderClose_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Organization_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Organization Organization_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Organization_BulkDeleteFailures", null); + } + } + + /// + /// N:1 PhoneCall_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("PhoneCall_BulkDeleteFailures", null); + } + } + + /// + /// N:1 post_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Post post_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("post_BulkDeleteFailures", null); + } + } + + /// + /// N:1 PriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("PriceLevel_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Privilege_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Privilege Privilege_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Privilege_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Product_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Product Product_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Product_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ProductPriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel ProductPriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ProductPriceLevel_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QuarterlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QuarterlyFiscalCalendar QuarterlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QuarterlyFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Queue_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Queue_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QueueItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QueueItem QueueItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QueueItem_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Quote_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Quote_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QuoteClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QuoteClose QuoteClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QuoteClose_BulkDeleteFailures", null); + } + } + + /// + /// N:1 QuoteDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail QuoteDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("QuoteDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 RecurringAppointmentMaster_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_BulkDeleteFailures", null); + } + } + + /// + /// N:1 RelationshipRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole RelationshipRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("RelationshipRole_BulkDeleteFailures", null); + } + } + + /// + /// N:1 RelationshipRoleMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.RelationshipRoleMap RelationshipRoleMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("RelationshipRoleMap_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Resource_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Resource Resource_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Resource_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ResourceGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ResourceGroup_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ResourceSpec_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec ResourceSpec_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ResourceSpec_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Role_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Role Role_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Role_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesLiterature_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesLiterature_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesLiteratureItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem SalesLiteratureItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesLiteratureItem_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesOrder_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesOrder_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SalesOrderDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail SalesOrderDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SalesOrderDetail_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SavedQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SavedQuery SavedQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SavedQuery_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SemiAnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SemiAnnualFiscalCalendar SemiAnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SemiAnnualFiscalCalendar_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Service_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Service Service_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Service_BulkDeleteFailures", null); + } + } + + /// + /// N:1 ServiceAppointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("ServiceAppointment_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Site_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Site Site_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Site_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Subject_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Subject Subject_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Subject_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SystemForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SystemForm SystemForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SystemForm_BulkDeleteFailures", null); + } + } + + /// + /// N:1 SystemUser_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("SystemUser_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Task_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Task Task_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Task_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Team_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Team Team_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Team_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Template_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Template Template_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Template_BulkDeleteFailures", null); + } + } + + /// + /// N:1 Territory_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("Territory_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UoM_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UoM UoM_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UoM_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UoMSchedule_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule UoMSchedule_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UoMSchedule_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UserForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UserForm UserForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UserForm_BulkDeleteFailures", null); + } + } + + /// + /// N:1 UserQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_BulkDeleteFailures")] + public Xrm.Framework.CI.Common.Entities.UserQuery UserQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntity("UserQuery_BulkDeleteFailures", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum BulkDeleteOperationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Ready = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Suspended = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Locked = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 3, + } + + /// + /// User-submitted bulk deletion job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkdeleteoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkDeleteOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkDeleteOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkdeleteoperation"; + + public const int EntityTypeCode = 4424; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job that created this record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + } + + /// + /// Unique identifier of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + public System.Nullable BulkDeleteOperationId + { + get + { + return this.GetAttributeValue>("bulkdeleteoperationid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkdeleteoperationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the user who created the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the bulk deletion job was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the bulkdeleteoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of records that could not be deleted by the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// Information about if recurrence is defined for the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isrecurring")] + public System.Nullable IsRecurring + { + get + { + return this.GetAttributeValue>("isrecurring"); + } + } + + /// + /// Unique identifier of the user who last modified the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the bulk deletion job record 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 bulkdeleteoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + } + + /// + /// Next scheduled time for the bulk deletion job to run. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextrun")] + public System.Nullable NextRun + { + get + { + return this.GetAttributeValue>("nextrun"); + } + } + + /// + /// Fetch XML of the ordered query set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orderedquerysetxml")] + public string OrderedQuerySetXml + { + get + { + return this.GetAttributeValue("orderedquerysetxml"); + } + } + + /// + /// Unique identifier of the user or team who owns the bulk delete operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Business unit that owns the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Business user what owns the bulk delete operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Index of the ordered query expression that defines the deletion set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processingqeindex")] + public System.Nullable ProcessingQEIndex + { + get + { + return this.GetAttributeValue>("processingqeindex"); + } + } + + /// + /// Status of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.BulkDeleteOperationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.BulkDeleteOperationState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + } + + /// + /// Number of records deleted by the bulk deletion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("successcount")] + public System.Nullable SuccessCount + { + get + { + return this.GetAttributeValue>("successcount"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N BulkDeleteOperation_BulkDeleteFailure + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkDeleteOperation_BulkDeleteFailure")] + public System.Collections.Generic.IEnumerable BulkDeleteOperation_BulkDeleteFailure + { + get + { + return this.GetRelatedEntities("BulkDeleteOperation_BulkDeleteFailure", null); + } + set + { + this.OnPropertyChanging("BulkDeleteOperation_BulkDeleteFailure"); + this.SetRelatedEntities("BulkDeleteOperation_BulkDeleteFailure", null, value); + this.OnPropertyChanged("BulkDeleteOperation_BulkDeleteFailure"); + } + } + + /// + /// 1:N userentityinstancedata_bulkdeleteoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeleteoperation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkdeleteoperation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkdeleteoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeleteoperation"); + this.SetRelatedEntities("userentityinstancedata_bulkdeleteoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeleteoperation"); + } + } + + /// + /// N:1 AsyncOperation_BulkDeleteOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_BulkDeleteOperation")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation AsyncOperation_BulkDeleteOperation + { + get + { + return this.GetRelatedEntity("AsyncOperation_BulkDeleteOperation", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperationbase_createdby", null); + } + } + + /// + /// N:1 lk_bulkdeleteoperationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_bulkdeleteoperationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_bulkdeleteoperationbase_modifiedby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum BulkOperationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// System operation used to perform lengthy and asynchronous operations on large data sets, such as distributing a campaign activity or quick campaign. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkoperation"; + + public const int EntityTypeCode = 4406; + + 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 bulk operation. + /// + [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 bulk operation in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdurationminutes")] + public System.Nullable ActualDurationMinutes + { + get + { + return this.GetAttributeValue>("actualdurationminutes"); + } + } + + /// + /// Shows the date and time when the quick campaign was completed or canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualend")] + public System.Nullable ActualEnd + { + get + { + return this.GetAttributeValue>("actualend"); + } + } + + /// + /// Shows the date and time when the activity was started or created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualstart")] + public System.Nullable ActualStart + { + get + { + return this.GetAttributeValue>("actualstart"); + } + } + + /// + /// Shows the number for the quick campaign record, used to identify the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationnumber")] + public string BulkOperationNumber + { + get + { + return this.GetAttributeValue("bulkoperationnumber"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Choose the activity to create that determines how target prospects or customers in this quick campaign are contacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdrecordtypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CreatedRecordTypeCode + { + get + { + return this.GetAttributeValue("createdrecordtypecode"); + } + } + + /// + /// Type additional information to describe the quick campaign, such as the products or services offered. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + } + + /// + /// Shows the error code that is used to troubleshoot issues in the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + } + + /// + /// Number of records which failed in the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isbilled")] + public System.Nullable IsBilled + { + get + { + return this.GetAttributeValue>("isbilled"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies if the bulk operation was created from a workflow rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowcreated")] + public System.Nullable IsWorkflowCreated + { + get + { + return this.GetAttributeValue>("isworkflowcreated"); + } + } + + /// + /// 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 bulk operation 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 bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Select the type of bulk operation process, such as quick campaign or campaign activity distribution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operationtypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue OperationTypeCode + { + get + { + return this.GetAttributeValue("operationtypecode"); + } + } + + /// + /// 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 bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// XML string that contains the parameters to the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parameters")] + public string Parameters + { + get + { + return this.GetAttributeValue("parameters"); + } + } + + /// + /// Choose the campaign from which the campaign activities were bulk-distributed. + /// + [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"); + } + } + + /// + /// Scheduled duration of the bulk operation, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end date and time of the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + } + + /// + /// Scheduled start date and time of the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + } + + /// + /// Unique identifier for an associated service. + /// + [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"); + } + } + + /// + /// Shows whether the quick campaign is open, closed, or canceled. Closed or canceled quick campaigns are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.BulkOperationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.BulkOperationState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the quick campaign'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"); + } + } + + /// + /// Type a short description about the objective or primary topic of the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + } + + /// + /// Number of records which succeeded in the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("successcount")] + public System.Nullable SuccessCount + { + get + { + return this.GetAttributeValue>("successcount"); + } + } + + /// + /// Select the type of records targeted in the quick campaign to identify the target audience. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetedrecordtypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue TargetedRecordTypeCode + { + get + { + return this.GetAttributeValue("targetedrecordtypecode"); + } + } + + /// + /// Number of members to target. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetmemberscount")] + public System.Nullable TargetMembersCount + { + get + { + return this.GetAttributeValue>("targetmemberscount"); + } + } + + /// + /// 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 of the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N bulkoperation_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("bulkoperation_activity_parties")] + public System.Collections.Generic.IEnumerable bulkoperation_activity_parties + { + get + { + return this.GetRelatedEntities("bulkoperation_activity_parties", null); + } + set + { + this.OnPropertyChanging("bulkoperation_activity_parties"); + this.SetRelatedEntities("bulkoperation_activity_parties", null, value); + this.OnPropertyChanged("bulkoperation_activity_parties"); + } + } + + /// + /// 1:N BulkOperation_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_ActivityPointers")] + public System.Collections.Generic.IEnumerable BulkOperation_ActivityPointers + { + get + { + return this.GetRelatedEntities("BulkOperation_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("BulkOperation_ActivityPointers"); + this.SetRelatedEntities("BulkOperation_ActivityPointers", null, value); + this.OnPropertyChanged("BulkOperation_ActivityPointers"); + } + } + + /// + /// 1:N BulkOperation_Appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Appointment")] + public System.Collections.Generic.IEnumerable BulkOperation_Appointment + { + get + { + return this.GetRelatedEntities("BulkOperation_Appointment", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Appointment"); + this.SetRelatedEntities("BulkOperation_Appointment", null, value); + this.OnPropertyChanged("BulkOperation_Appointment"); + } + } + + /// + /// 1:N BulkOperation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_AsyncOperations")] + public System.Collections.Generic.IEnumerable BulkOperation_AsyncOperations + { + get + { + return this.GetRelatedEntities("BulkOperation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperation_AsyncOperations"); + this.SetRelatedEntities("BulkOperation_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperation_AsyncOperations"); + } + } + + /// + /// 1:N BulkOperation_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BulkOperation_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BulkOperation_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BulkOperation_BulkDeleteFailures"); + this.SetRelatedEntities("BulkOperation_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BulkOperation_BulkDeleteFailures"); + } + } + + /// + /// 1:N BulkOperation_CampaignResponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_CampaignResponse")] + public System.Collections.Generic.IEnumerable BulkOperation_CampaignResponse + { + get + { + return this.GetRelatedEntities("BulkOperation_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("BulkOperation_CampaignResponse"); + this.SetRelatedEntities("BulkOperation_CampaignResponse", null, value); + this.OnPropertyChanged("BulkOperation_CampaignResponse"); + } + } + + /// + /// 1:N BulkOperation_Email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Email")] + public System.Collections.Generic.IEnumerable BulkOperation_Email + { + get + { + return this.GetRelatedEntities("BulkOperation_Email", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Email"); + this.SetRelatedEntities("BulkOperation_Email", null, value); + this.OnPropertyChanged("BulkOperation_Email"); + } + } + + /// + /// 1:N BulkOperation_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Faxes")] + public System.Collections.Generic.IEnumerable BulkOperation_Faxes + { + get + { + return this.GetRelatedEntities("BulkOperation_Faxes", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Faxes"); + this.SetRelatedEntities("BulkOperation_Faxes", null, value); + this.OnPropertyChanged("BulkOperation_Faxes"); + } + } + + /// + /// 1:N BulkOperation_Letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Letter")] + public System.Collections.Generic.IEnumerable BulkOperation_Letter + { + get + { + return this.GetRelatedEntities("BulkOperation_Letter", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Letter"); + this.SetRelatedEntities("BulkOperation_Letter", null, value); + this.OnPropertyChanged("BulkOperation_Letter"); + } + } + + /// + /// 1:N BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_logs")] + public System.Collections.Generic.IEnumerable BulkOperation_logs + { + get + { + return this.GetRelatedEntities("BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("BulkOperation_logs"); + this.SetRelatedEntities("BulkOperation_logs", null, value); + this.OnPropertyChanged("BulkOperation_logs"); + } + } + + /// + /// 1:N BulkOperation_Phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Phonecall")] + public System.Collections.Generic.IEnumerable BulkOperation_Phonecall + { + get + { + return this.GetRelatedEntities("BulkOperation_Phonecall", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Phonecall"); + this.SetRelatedEntities("BulkOperation_Phonecall", null, value); + this.OnPropertyChanged("BulkOperation_Phonecall"); + } + } + + /// + /// 1:N BulkOperation_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_QueueItem")] + public System.Collections.Generic.IEnumerable BulkOperation_QueueItem + { + get + { + return this.GetRelatedEntities("BulkOperation_QueueItem", null); + } + set + { + this.OnPropertyChanging("BulkOperation_QueueItem"); + this.SetRelatedEntities("BulkOperation_QueueItem", null, value); + this.OnPropertyChanged("BulkOperation_QueueItem"); + } + } + + /// + /// 1:N BulkOperation_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_RecurringAppointmentMaster")] + public System.Collections.Generic.IEnumerable BulkOperation_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntities("BulkOperation_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("BulkOperation_RecurringAppointmentMaster"); + this.SetRelatedEntities("BulkOperation_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("BulkOperation_RecurringAppointmentMaster"); + } + } + + /// + /// 1:N userentityinstancedata_bulkoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkoperation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperation"); + this.SetRelatedEntities("userentityinstancedata_bulkoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperation"); + } + } + + /// + /// N:1 activity_pointer_BulkOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_BulkOperation + { + get + { + return this.GetRelatedEntity("activity_pointer_BulkOperation", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation"); + this.SetRelatedEntity("activity_pointer_BulkOperation", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation"); + } + } + + /// + /// N:1 business_unit_BulkOperation_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_BulkOperation_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_BulkOperation_activities + { + get + { + return this.GetRelatedEntity("business_unit_BulkOperation_activities", null); + } + } + + /// + /// N:1 CampaignActivity_BulkOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkOperations")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_BulkOperations + { + get + { + return this.GetRelatedEntity("CampaignActivity_BulkOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_BulkOperations"); + this.SetRelatedEntity("CampaignActivity_BulkOperations", null, value); + this.OnPropertyChanged("CampaignActivity_BulkOperations"); + } + } + + /// + /// N:1 List_BulkOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkOperations")] + public Xrm.Framework.CI.Common.Entities.List List_BulkOperations + { + get + { + return this.GetRelatedEntity("List_BulkOperations", null); + } + set + { + this.OnPropertyChanging("List_BulkOperations"); + this.SetRelatedEntity("List_BulkOperations", null, value); + this.OnPropertyChanged("List_BulkOperations"); + } + } + + /// + /// N:1 lk_BulkOperation_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_createdby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_createdby", null); + } + } + + /// + /// N:1 lk_BulkOperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_BulkOperation_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_modifiedby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_modifiedby", null); + } + } + + /// + /// N:1 lk_BulkOperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_BulkOperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_BulkOperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_BulkOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_BulkOperation")] + public Xrm.Framework.CI.Common.Entities.Team team_BulkOperation + { + get + { + return this.GetRelatedEntity("team_BulkOperation", null); + } + } + + /// + /// N:1 user_BulkOperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_BulkOperation")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_BulkOperation + { + get + { + return this.GetRelatedEntity("user_BulkOperation", null); + } + } + } + + /// + /// Log used to track bulk operation execution, successes, and failures. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("bulkoperationlog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BulkOperationLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BulkOperationLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "bulkoperationlog"; + + public const int EntityTypeCode = 4405; + + 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 data value at which an error occurred during the quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("additionalinfo")] + public string AdditionalInfo + { + get + { + return this.GetAttributeValue("additionalinfo"); + } + set + { + this.OnPropertyChanging("AdditionalInfo"); + this.SetAttributeValue("additionalinfo", value); + this.OnPropertyChanged("AdditionalInfo"); + } + } + + /// + /// Shows the quick campaign record that the log applies to. This information is used to relate log data to the parent quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationid")] + public Microsoft.Xrm.Sdk.EntityReference BulkOperationId + { + get + { + return this.GetAttributeValue("bulkoperationid"); + } + set + { + this.OnPropertyChanging("BulkOperationId"); + this.SetAttributeValue("bulkoperationid", value); + this.OnPropertyChanged("BulkOperationId"); + } + } + + /// + /// Unique identifier of the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationlogid")] + public System.Nullable BulkOperationLogId + { + get + { + return this.GetAttributeValue>("bulkoperationlogid"); + } + set + { + this.OnPropertyChanging("BulkOperationLogId"); + this.SetAttributeValue("bulkoperationlogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("BulkOperationLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationlogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.BulkOperationLogId = value; + } + } + + /// + /// Choose the activity or other item created by the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + public Microsoft.Xrm.Sdk.EntityReference CreatedObjectId + { + get + { + return this.GetAttributeValue("createdobjectid"); + } + set + { + this.OnPropertyChanging("CreatedObjectId"); + this.SetAttributeValue("createdobjectid", value); + this.OnPropertyChanged("CreatedObjectId"); + } + } + + /// + /// Shows the error code that is used to troubleshoot issues in the bulk operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + } + + /// + /// Unique identifier of the user or team who owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the bulk operation log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Choose the account, contact, lead, or list that the bulk operation log item applies to. + /// + [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"); + } + } + + /// + /// 1:N BulkOperationLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_AsyncOperations")] + public System.Collections.Generic.IEnumerable BulkOperationLog_AsyncOperations + { + get + { + return this.GetRelatedEntities("BulkOperationLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BulkOperationLog_AsyncOperations"); + this.SetRelatedEntities("BulkOperationLog_AsyncOperations", null, value); + this.OnPropertyChanged("BulkOperationLog_AsyncOperations"); + } + } + + /// + /// 1:N BulkOperationLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperationLog_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BulkOperationLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BulkOperationLog_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BulkOperationLog_BulkDeleteFailures"); + this.SetRelatedEntities("BulkOperationLog_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BulkOperationLog_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_bulkoperationlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperationlog")] + public System.Collections.Generic.IEnumerable userentityinstancedata_bulkoperationlog + { + get + { + return this.GetRelatedEntities("userentityinstancedata_bulkoperationlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperationlog"); + this.SetRelatedEntities("userentityinstancedata_bulkoperationlog", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperationlog"); + } + } + + /// + /// N:1 activity_pointer_BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_BulkOperation_logs")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_BulkOperation_logs + { + get + { + return this.GetRelatedEntity("activity_pointer_BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("activity_pointer_BulkOperation_logs"); + this.SetRelatedEntity("activity_pointer_BulkOperation_logs", null, value); + this.OnPropertyChanged("activity_pointer_BulkOperation_logs"); + } + } + + /// + /// N:1 BulkOperation_logs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_logs")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_logs + { + get + { + return this.GetRelatedEntity("BulkOperation_logs", null); + } + set + { + this.OnPropertyChanging("BulkOperation_logs"); + this.SetRelatedEntity("BulkOperation_logs", null, value); + this.OnPropertyChanged("BulkOperation_logs"); + } + } + + /// + /// N:1 CreatedAccount_BulkOperationLogs2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedAccount_BulkOperationLogs2")] + public Xrm.Framework.CI.Common.Entities.Account CreatedAccount_BulkOperationLogs2 + { + get + { + return this.GetRelatedEntity("CreatedAccount_BulkOperationLogs2", null); + } + set + { + this.OnPropertyChanging("CreatedAccount_BulkOperationLogs2"); + this.SetRelatedEntity("CreatedAccount_BulkOperationLogs2", null, value); + this.OnPropertyChanged("CreatedAccount_BulkOperationLogs2"); + } + } + + /// + /// N:1 CreatedActivity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedActivity_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer CreatedActivity_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedActivity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedActivity_BulkOperationLogs"); + this.SetRelatedEntity("CreatedActivity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedActivity_BulkOperationLogs"); + } + } + + /// + /// N:1 CreatedContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedContact_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Contact CreatedContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedContact_BulkOperationLogs"); + this.SetRelatedEntity("CreatedContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedContact_BulkOperationLogs"); + } + } + + /// + /// N:1 CreatedLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedLead_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Lead CreatedLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedLead_BulkOperationLogs"); + this.SetRelatedEntity("CreatedLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedLead_BulkOperationLogs"); + } + } + + /// + /// N:1 CreatedOpportunity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedOpportunity_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Opportunity CreatedOpportunity_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("CreatedOpportunity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedOpportunity_BulkOperationLogs"); + this.SetRelatedEntity("CreatedOpportunity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedOpportunity_BulkOperationLogs"); + } + } + + /// + /// N:1 SourceAccount_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceAccount_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Account SourceAccount_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("SourceAccount_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceAccount_BulkOperationLogs"); + this.SetRelatedEntity("SourceAccount_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceAccount_BulkOperationLogs"); + } + } + + /// + /// N:1 SourceContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceContact_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Contact SourceContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("SourceContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceContact_BulkOperationLogs"); + this.SetRelatedEntity("SourceContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceContact_BulkOperationLogs"); + } + } + + /// + /// N:1 SourceLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceLead_BulkOperationLogs")] + public Xrm.Framework.CI.Common.Entities.Lead SourceLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntity("SourceLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceLead_BulkOperationLogs"); + this.SetRelatedEntity("SourceLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceLead_BulkOperationLogs"); + } + } + } + + /// + /// Business, division, or department in the Microsoft Dynamics CRM database. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("businessunit")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BusinessUnit : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BusinessUnit() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "businessunit"; + + public const int EntityTypeCode = 10; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public System.Nullable BusinessUnitId + { + get + { + return this.GetAttributeValue>("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("BusinessUnitId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.BusinessUnitId = value; + } + } + + /// + /// Fiscal calendar associated with the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Name of the business unit cost center. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("costcenter")] + public string CostCenter + { + get + { + return this.GetAttributeValue("costcenter"); + } + set + { + this.OnPropertyChanging("CostCenter"); + this.SetAttributeValue("costcenter", value); + this.OnPropertyChanged("CostCenter"); + } + } + + /// + /// Unique identifier of the user who created the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the business unit 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 businessunit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Credit limit for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit")] + public System.Nullable CreditLimit + { + get + { + return this.GetAttributeValue>("creditlimit"); + } + set + { + this.OnPropertyChanging("CreditLimit"); + this.SetAttributeValue("creditlimit", value); + this.OnPropertyChanged("CreditLimit"); + } + } + + /// + /// Description of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Reason for disabling the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Name of the division to which the business unit belongs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("divisionname")] + public string DivisionName + { + get + { + return this.GetAttributeValue("divisionname"); + } + set + { + this.OnPropertyChanging("DivisionName"); + this.SetAttributeValue("divisionname", value); + this.OnPropertyChanged("DivisionName"); + } + } + + /// + /// Email address for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Exchange rate for the currency associated with the businessunit with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Alternative name under which the business unit can be filed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fileasname")] + public string FileAsName + { + get + { + return this.GetAttributeValue("fileasname"); + } + set + { + this.OnPropertyChanging("FileAsName"); + this.SetAttributeValue("fileasname", value); + this.OnPropertyChanged("FileAsName"); + } + } + + /// + /// FTP site URL for the business unit. + /// + [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"); + } + } + + /// + /// Inheritance mask for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inheritancemask")] + public System.Nullable InheritanceMask + { + get + { + return this.GetAttributeValue>("inheritancemask"); + } + set + { + this.OnPropertyChanging("InheritanceMask"); + this.SetAttributeValue("inheritancemask", value); + this.OnPropertyChanged("InheritanceMask"); + } + } + + /// + /// Information about whether the business unit is enabled or disabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + } + + /// + /// Unique identifier of the user who last modified the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the business unit 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 businessunit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the business unit. + /// + [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"); + } + } + + /// + /// Unique identifier for the parent business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbusinessunitid")] + public Microsoft.Xrm.Sdk.EntityReference ParentBusinessUnitId + { + get + { + return this.GetAttributeValue("parentbusinessunitid"); + } + set + { + this.OnPropertyChanging("ParentBusinessUnitId"); + this.SetAttributeValue("parentbusinessunitid", value); + this.OnPropertyChanged("ParentBusinessUnitId"); + } + } + + /// + /// Picture or diagram of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picture")] + public string Picture + { + get + { + return this.GetAttributeValue("picture"); + } + set + { + this.OnPropertyChanging("Picture"); + this.SetAttributeValue("picture", value); + this.OnPropertyChanged("Picture"); + } + } + + /// + /// Stock exchange on which the business is listed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stockexchange")] + public string StockExchange + { + get + { + return this.GetAttributeValue("stockexchange"); + } + set + { + this.OnPropertyChanging("StockExchange"); + this.SetAttributeValue("stockexchange", value); + this.OnPropertyChanged("StockExchange"); + } + } + + /// + /// Stock exchange ticker symbol for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tickersymbol")] + public string TickerSymbol + { + get + { + return this.GetAttributeValue("tickersymbol"); + } + set + { + this.OnPropertyChanging("TickerSymbol"); + this.SetAttributeValue("tickersymbol", value); + this.OnPropertyChanged("TickerSymbol"); + } + } + + /// + /// Unique identifier of the currency associated with the businessunit. + /// + [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"); + } + } + + /// + /// UTC offset for the business unit. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// Version number of the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Website URL for the business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")] + public string WebSiteUrl + { + get + { + return this.GetAttributeValue("websiteurl"); + } + set + { + this.OnPropertyChanging("WebSiteUrl"); + this.SetAttributeValue("websiteurl", value); + this.OnPropertyChanged("WebSiteUrl"); + } + } + + /// + /// Information about whether workflow or sales process rules have been suspended. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsuspended")] + public System.Nullable WorkflowSuspended + { + get + { + return this.GetAttributeValue>("workflowsuspended"); + } + set + { + this.OnPropertyChanging("WorkflowSuspended"); + this.SetAttributeValue("workflowsuspended", value); + this.OnPropertyChanged("WorkflowSuspended"); + } + } + + /// + /// 1:N business_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable business_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("business_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("business_customer_opportunity_roles"); + this.SetRelatedEntities("business_customer_opportunity_roles", null, value); + this.OnPropertyChanged("business_customer_opportunity_roles"); + } + } + + /// + /// 1:N business_unit_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_accounts")] + public System.Collections.Generic.IEnumerable business_unit_accounts + { + get + { + return this.GetRelatedEntities("business_unit_accounts", null); + } + set + { + this.OnPropertyChanging("business_unit_accounts"); + this.SetRelatedEntities("business_unit_accounts", null, value); + this.OnPropertyChanged("business_unit_accounts"); + } + } + + /// + /// 1:N business_unit_activitypointer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_activitypointer")] + public System.Collections.Generic.IEnumerable business_unit_activitypointer + { + get + { + return this.GetRelatedEntities("business_unit_activitypointer", null); + } + set + { + this.OnPropertyChanging("business_unit_activitypointer"); + this.SetRelatedEntities("business_unit_activitypointer", null, value); + this.OnPropertyChanged("business_unit_activitypointer"); + } + } + + /// + /// 1:N business_unit_annotations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_annotations")] + public System.Collections.Generic.IEnumerable business_unit_annotations + { + get + { + return this.GetRelatedEntities("business_unit_annotations", null); + } + set + { + this.OnPropertyChanging("business_unit_annotations"); + this.SetRelatedEntities("business_unit_annotations", null, value); + this.OnPropertyChanged("business_unit_annotations"); + } + } + + /// + /// 1:N business_unit_appointment_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_appointment_activities")] + public System.Collections.Generic.IEnumerable business_unit_appointment_activities + { + get + { + return this.GetRelatedEntities("business_unit_appointment_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_appointment_activities"); + this.SetRelatedEntities("business_unit_appointment_activities", null, value); + this.OnPropertyChanged("business_unit_appointment_activities"); + } + } + + /// + /// 1:N business_unit_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_asyncoperation")] + public System.Collections.Generic.IEnumerable business_unit_asyncoperation + { + get + { + return this.GetRelatedEntities("business_unit_asyncoperation", null); + } + set + { + this.OnPropertyChanging("business_unit_asyncoperation"); + this.SetRelatedEntities("business_unit_asyncoperation", null, value); + this.OnPropertyChanged("business_unit_asyncoperation"); + } + } + + /// + /// 1:N business_unit_BulkOperation_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_BulkOperation_activities")] + public System.Collections.Generic.IEnumerable business_unit_BulkOperation_activities + { + get + { + return this.GetRelatedEntities("business_unit_BulkOperation_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_BulkOperation_activities"); + this.SetRelatedEntities("business_unit_BulkOperation_activities", null, value); + this.OnPropertyChanged("business_unit_BulkOperation_activities"); + } + } + + /// + /// 1:N business_unit_calendars + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_calendars")] + public System.Collections.Generic.IEnumerable business_unit_calendars + { + get + { + return this.GetRelatedEntities("business_unit_calendars", null); + } + set + { + this.OnPropertyChanging("business_unit_calendars"); + this.SetRelatedEntities("business_unit_calendars", null, value); + this.OnPropertyChanged("business_unit_calendars"); + } + } + + /// + /// 1:N business_unit_campaignactivity_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignactivity_activities")] + public System.Collections.Generic.IEnumerable business_unit_campaignactivity_activities + { + get + { + return this.GetRelatedEntities("business_unit_campaignactivity_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_campaignactivity_activities"); + this.SetRelatedEntities("business_unit_campaignactivity_activities", null, value); + this.OnPropertyChanged("business_unit_campaignactivity_activities"); + } + } + + /// + /// 1:N business_unit_campaignresponse_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignresponse_activities")] + public System.Collections.Generic.IEnumerable business_unit_campaignresponse_activities + { + get + { + return this.GetRelatedEntities("business_unit_campaignresponse_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_campaignresponse_activities"); + this.SetRelatedEntities("business_unit_campaignresponse_activities", null, value); + this.OnPropertyChanged("business_unit_campaignresponse_activities"); + } + } + + /// + /// 1:N business_unit_connections + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_connections")] + public System.Collections.Generic.IEnumerable business_unit_connections + { + get + { + return this.GetRelatedEntities("business_unit_connections", null); + } + set + { + this.OnPropertyChanging("business_unit_connections"); + this.SetRelatedEntities("business_unit_connections", null, value); + this.OnPropertyChanged("business_unit_connections"); + } + } + + /// + /// 1:N business_unit_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_constraint_based_groups")] + public System.Collections.Generic.IEnumerable business_unit_constraint_based_groups + { + get + { + return this.GetRelatedEntities("business_unit_constraint_based_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_constraint_based_groups"); + this.SetRelatedEntities("business_unit_constraint_based_groups", null, value); + this.OnPropertyChanged("business_unit_constraint_based_groups"); + } + } + + /// + /// 1:N business_unit_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_contacts")] + public System.Collections.Generic.IEnumerable business_unit_contacts + { + get + { + return this.GetRelatedEntities("business_unit_contacts", null); + } + set + { + this.OnPropertyChanging("business_unit_contacts"); + this.SetRelatedEntities("business_unit_contacts", null, value); + this.OnPropertyChanged("business_unit_contacts"); + } + } + + /// + /// 1:N business_unit_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_customer_relationship")] + public System.Collections.Generic.IEnumerable business_unit_customer_relationship + { + get + { + return this.GetRelatedEntities("business_unit_customer_relationship", null); + } + set + { + this.OnPropertyChanging("business_unit_customer_relationship"); + this.SetRelatedEntities("business_unit_customer_relationship", null, value); + this.OnPropertyChanged("business_unit_customer_relationship"); + } + } + + /// + /// 1:N business_unit_email_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_email_activities")] + public System.Collections.Generic.IEnumerable business_unit_email_activities + { + get + { + return this.GetRelatedEntities("business_unit_email_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_email_activities"); + this.SetRelatedEntities("business_unit_email_activities", null, value); + this.OnPropertyChanged("business_unit_email_activities"); + } + } + + /// + /// 1:N business_unit_emailserverprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_emailserverprofile")] + public System.Collections.Generic.IEnumerable business_unit_emailserverprofile + { + get + { + return this.GetRelatedEntities("business_unit_emailserverprofile", null); + } + set + { + this.OnPropertyChanging("business_unit_emailserverprofile"); + this.SetRelatedEntities("business_unit_emailserverprofile", null, value); + this.OnPropertyChanged("business_unit_emailserverprofile"); + } + } + + /// + /// 1:N business_unit_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_equipment")] + public System.Collections.Generic.IEnumerable business_unit_equipment + { + get + { + return this.GetRelatedEntities("business_unit_equipment", null); + } + set + { + this.OnPropertyChanging("business_unit_equipment"); + this.SetRelatedEntities("business_unit_equipment", null, value); + this.OnPropertyChanged("business_unit_equipment"); + } + } + + /// + /// 1:N business_unit_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_exchangesyncidmapping")] + public System.Collections.Generic.IEnumerable business_unit_exchangesyncidmapping + { + get + { + return this.GetRelatedEntities("business_unit_exchangesyncidmapping", null); + } + set + { + this.OnPropertyChanging("business_unit_exchangesyncidmapping"); + this.SetRelatedEntities("business_unit_exchangesyncidmapping", null, value); + this.OnPropertyChanged("business_unit_exchangesyncidmapping"); + } + } + + /// + /// 1:N business_unit_fax_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_fax_activities")] + public System.Collections.Generic.IEnumerable business_unit_fax_activities + { + get + { + return this.GetRelatedEntities("business_unit_fax_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_fax_activities"); + this.SetRelatedEntities("business_unit_fax_activities", null, value); + this.OnPropertyChanged("business_unit_fax_activities"); + } + } + + /// + /// 1:N business_unit_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goal")] + public System.Collections.Generic.IEnumerable business_unit_goal + { + get + { + return this.GetRelatedEntities("business_unit_goal", null); + } + set + { + this.OnPropertyChanging("business_unit_goal"); + this.SetRelatedEntities("business_unit_goal", null, value); + this.OnPropertyChanged("business_unit_goal"); + } + } + + /// + /// 1:N business_unit_goalrollupquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goalrollupquery")] + public System.Collections.Generic.IEnumerable business_unit_goalrollupquery + { + get + { + return this.GetRelatedEntities("business_unit_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("business_unit_goalrollupquery"); + this.SetRelatedEntities("business_unit_goalrollupquery", null, value); + this.OnPropertyChanged("business_unit_goalrollupquery"); + } + } + + /// + /// 1:N business_unit_incident_resolution_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incident_resolution_activities")] + public System.Collections.Generic.IEnumerable business_unit_incident_resolution_activities + { + get + { + return this.GetRelatedEntities("business_unit_incident_resolution_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_incident_resolution_activities"); + this.SetRelatedEntities("business_unit_incident_resolution_activities", null, value); + this.OnPropertyChanged("business_unit_incident_resolution_activities"); + } + } + + /// + /// 1:N business_unit_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incidents")] + public System.Collections.Generic.IEnumerable business_unit_incidents + { + get + { + return this.GetRelatedEntities("business_unit_incidents", null); + } + set + { + this.OnPropertyChanging("business_unit_incidents"); + this.SetRelatedEntities("business_unit_incidents", null, value); + this.OnPropertyChanged("business_unit_incidents"); + } + } + + /// + /// 1:N business_unit_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_invoices")] + public System.Collections.Generic.IEnumerable business_unit_invoices + { + get + { + return this.GetRelatedEntities("business_unit_invoices", null); + } + set + { + this.OnPropertyChanging("business_unit_invoices"); + this.SetRelatedEntities("business_unit_invoices", null, value); + this.OnPropertyChanged("business_unit_invoices"); + } + } + + /// + /// 1:N business_unit_leads + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_leads")] + public System.Collections.Generic.IEnumerable business_unit_leads + { + get + { + return this.GetRelatedEntities("business_unit_leads", null); + } + set + { + this.OnPropertyChanging("business_unit_leads"); + this.SetRelatedEntities("business_unit_leads", null, value); + this.OnPropertyChanged("business_unit_leads"); + } + } + + /// + /// 1:N business_unit_letter_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_letter_activities")] + public System.Collections.Generic.IEnumerable business_unit_letter_activities + { + get + { + return this.GetRelatedEntities("business_unit_letter_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_letter_activities"); + this.SetRelatedEntities("business_unit_letter_activities", null, value); + this.OnPropertyChanged("business_unit_letter_activities"); + } + } + + /// + /// 1:N business_unit_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_list")] + public System.Collections.Generic.IEnumerable business_unit_list + { + get + { + return this.GetRelatedEntities("business_unit_list", null); + } + set + { + this.OnPropertyChanging("business_unit_list"); + this.SetRelatedEntities("business_unit_list", null, value); + this.OnPropertyChanged("business_unit_list"); + } + } + + /// + /// 1:N business_unit_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailbox")] + public System.Collections.Generic.IEnumerable business_unit_mailbox + { + get + { + return this.GetRelatedEntities("business_unit_mailbox", null); + } + set + { + this.OnPropertyChanging("business_unit_mailbox"); + this.SetRelatedEntities("business_unit_mailbox", null, value); + this.OnPropertyChanged("business_unit_mailbox"); + } + } + + /// + /// 1:N business_unit_mailmergetemplates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailmergetemplates")] + public System.Collections.Generic.IEnumerable business_unit_mailmergetemplates + { + get + { + return this.GetRelatedEntities("business_unit_mailmergetemplates", null); + } + set + { + this.OnPropertyChanging("business_unit_mailmergetemplates"); + this.SetRelatedEntities("business_unit_mailmergetemplates", null, value); + this.OnPropertyChanged("business_unit_mailmergetemplates"); + } + } + + /// + /// 1:N business_unit_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_postalbum")] + public System.Collections.Generic.IEnumerable business_unit_msdyn_postalbum + { + get + { + return this.GetRelatedEntities("business_unit_msdyn_postalbum", null); + } + set + { + this.OnPropertyChanging("business_unit_msdyn_postalbum"); + this.SetRelatedEntities("business_unit_msdyn_postalbum", null, value); + this.OnPropertyChanged("business_unit_msdyn_postalbum"); + } + } + + /// + /// 1:N business_unit_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable business_unit_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("business_unit_msdyn_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("business_unit_msdyn_wallsavedqueryusersettings"); + this.SetRelatedEntities("business_unit_msdyn_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("business_unit_msdyn_wallsavedqueryusersettings"); + } + } + + /// + /// 1:N business_unit_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunities")] + public System.Collections.Generic.IEnumerable business_unit_opportunities + { + get + { + return this.GetRelatedEntities("business_unit_opportunities", null); + } + set + { + this.OnPropertyChanging("business_unit_opportunities"); + this.SetRelatedEntities("business_unit_opportunities", null, value); + this.OnPropertyChanged("business_unit_opportunities"); + } + } + + /// + /// 1:N business_unit_opportunity_close_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunity_close_activities")] + public System.Collections.Generic.IEnumerable business_unit_opportunity_close_activities + { + get + { + return this.GetRelatedEntities("business_unit_opportunity_close_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_opportunity_close_activities"); + this.SetRelatedEntities("business_unit_opportunity_close_activities", null, value); + this.OnPropertyChanged("business_unit_opportunity_close_activities"); + } + } + + /// + /// 1:N business_unit_order_close_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_order_close_activities")] + public System.Collections.Generic.IEnumerable business_unit_order_close_activities + { + get + { + return this.GetRelatedEntities("business_unit_order_close_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_order_close_activities"); + this.SetRelatedEntities("business_unit_order_close_activities", null, value); + this.OnPropertyChanged("business_unit_order_close_activities"); + } + } + + /// + /// 1:N business_unit_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_orders")] + public System.Collections.Generic.IEnumerable business_unit_orders + { + get + { + return this.GetRelatedEntities("business_unit_orders", null); + } + set + { + this.OnPropertyChanging("business_unit_orders"); + this.SetRelatedEntities("business_unit_orders", null, value); + this.OnPropertyChanged("business_unit_orders"); + } + } + + /// + /// 1:N business_unit_parent_business_unit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedbusiness_unit_parent_business_unit + { + get + { + return this.GetRelatedEntities("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedbusiness_unit_parent_business_unit"); + this.SetRelatedEntities("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedbusiness_unit_parent_business_unit"); + } + } + + /// + /// 1:N business_unit_phone_call_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_phone_call_activities")] + public System.Collections.Generic.IEnumerable business_unit_phone_call_activities + { + get + { + return this.GetRelatedEntities("business_unit_phone_call_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_phone_call_activities"); + this.SetRelatedEntities("business_unit_phone_call_activities", null, value); + this.OnPropertyChanged("business_unit_phone_call_activities"); + } + } + + /// + /// 1:N business_unit_postfollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_postfollows")] + public System.Collections.Generic.IEnumerable business_unit_postfollows + { + get + { + return this.GetRelatedEntities("business_unit_postfollows", null); + } + set + { + this.OnPropertyChanging("business_unit_postfollows"); + this.SetRelatedEntities("business_unit_postfollows", null, value); + this.OnPropertyChanged("business_unit_postfollows"); + } + } + + /// + /// 1:N business_unit_queues + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues")] + public System.Collections.Generic.IEnumerable business_unit_queues + { + get + { + return this.GetRelatedEntities("business_unit_queues", null); + } + set + { + this.OnPropertyChanging("business_unit_queues"); + this.SetRelatedEntities("business_unit_queues", null, value); + this.OnPropertyChanged("business_unit_queues"); + } + } + + /// + /// 1:N business_unit_queues2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues2")] + public System.Collections.Generic.IEnumerable business_unit_queues2 + { + get + { + return this.GetRelatedEntities("business_unit_queues2", null); + } + set + { + this.OnPropertyChanging("business_unit_queues2"); + this.SetRelatedEntities("business_unit_queues2", null, value); + this.OnPropertyChanged("business_unit_queues2"); + } + } + + /// + /// 1:N business_unit_quote_close_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quote_close_activities")] + public System.Collections.Generic.IEnumerable business_unit_quote_close_activities + { + get + { + return this.GetRelatedEntities("business_unit_quote_close_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_quote_close_activities"); + this.SetRelatedEntities("business_unit_quote_close_activities", null, value); + this.OnPropertyChanged("business_unit_quote_close_activities"); + } + } + + /// + /// 1:N business_unit_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quotes")] + public System.Collections.Generic.IEnumerable business_unit_quotes + { + get + { + return this.GetRelatedEntities("business_unit_quotes", null); + } + set + { + this.OnPropertyChanging("business_unit_quotes"); + this.SetRelatedEntities("business_unit_quotes", null, value); + this.OnPropertyChanged("business_unit_quotes"); + } + } + + /// + /// 1:N business_unit_recurrencerule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurrencerule")] + public System.Collections.Generic.IEnumerable business_unit_recurrencerule + { + get + { + return this.GetRelatedEntities("business_unit_recurrencerule", null); + } + set + { + this.OnPropertyChanging("business_unit_recurrencerule"); + this.SetRelatedEntities("business_unit_recurrencerule", null, value); + this.OnPropertyChanged("business_unit_recurrencerule"); + } + } + + /// + /// 1:N business_unit_recurringappointmentmaster_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurringappointmentmaster_activities")] + public System.Collections.Generic.IEnumerable business_unit_recurringappointmentmaster_activities + { + get + { + return this.GetRelatedEntities("business_unit_recurringappointmentmaster_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_recurringappointmentmaster_activities"); + this.SetRelatedEntities("business_unit_recurringappointmentmaster_activities", null, value); + this.OnPropertyChanged("business_unit_recurringappointmentmaster_activities"); + } + } + + /// + /// 1:N business_unit_reports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_reports")] + public System.Collections.Generic.IEnumerable business_unit_reports + { + get + { + return this.GetRelatedEntities("business_unit_reports", null); + } + set + { + this.OnPropertyChanging("business_unit_reports"); + this.SetRelatedEntities("business_unit_reports", null, value); + this.OnPropertyChanged("business_unit_reports"); + } + } + + /// + /// 1:N business_unit_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_groups")] + public System.Collections.Generic.IEnumerable business_unit_resource_groups + { + get + { + return this.GetRelatedEntities("business_unit_resource_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_groups"); + this.SetRelatedEntities("business_unit_resource_groups", null, value); + this.OnPropertyChanged("business_unit_resource_groups"); + } + } + + /// + /// 1:N business_unit_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_specs")] + public System.Collections.Generic.IEnumerable business_unit_resource_specs + { + get + { + return this.GetRelatedEntities("business_unit_resource_specs", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_specs"); + this.SetRelatedEntities("business_unit_resource_specs", null, value); + this.OnPropertyChanged("business_unit_resource_specs"); + } + } + + /// + /// 1:N business_unit_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resources")] + public System.Collections.Generic.IEnumerable business_unit_resources + { + get + { + return this.GetRelatedEntities("business_unit_resources", null); + } + set + { + this.OnPropertyChanging("business_unit_resources"); + this.SetRelatedEntities("business_unit_resources", null, value); + this.OnPropertyChanged("business_unit_resources"); + } + } + + /// + /// 1:N business_unit_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_roles")] + public System.Collections.Generic.IEnumerable business_unit_roles + { + get + { + return this.GetRelatedEntities("business_unit_roles", null); + } + set + { + this.OnPropertyChanging("business_unit_roles"); + this.SetRelatedEntities("business_unit_roles", null, value); + this.OnPropertyChanged("business_unit_roles"); + } + } + + /// + /// 1:N business_unit_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_appointments")] + public System.Collections.Generic.IEnumerable business_unit_service_appointments + { + get + { + return this.GetRelatedEntities("business_unit_service_appointments", null); + } + set + { + this.OnPropertyChanging("business_unit_service_appointments"); + this.SetRelatedEntities("business_unit_service_appointments", null, value); + this.OnPropertyChanged("business_unit_service_appointments"); + } + } + + /// + /// 1:N business_unit_service_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_contracts")] + public System.Collections.Generic.IEnumerable business_unit_service_contracts + { + get + { + return this.GetRelatedEntities("business_unit_service_contracts", null); + } + set + { + this.OnPropertyChanging("business_unit_service_contracts"); + this.SetRelatedEntities("business_unit_service_contracts", null, value); + this.OnPropertyChanged("business_unit_service_contracts"); + } + } + + /// + /// 1:N business_unit_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable business_unit_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("business_unit_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("business_unit_sharepointdocumentlocation"); + this.SetRelatedEntities("business_unit_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("business_unit_sharepointdocumentlocation"); + } + } + + /// + /// 1:N business_unit_sharepointsites + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointsites")] + public System.Collections.Generic.IEnumerable business_unit_sharepointsites + { + get + { + return this.GetRelatedEntities("business_unit_sharepointsites", null); + } + set + { + this.OnPropertyChanging("business_unit_sharepointsites"); + this.SetRelatedEntities("business_unit_sharepointsites", null, value); + this.OnPropertyChanged("business_unit_sharepointsites"); + } + } + + /// + /// 1:N business_unit_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_system_users")] + public System.Collections.Generic.IEnumerable business_unit_system_users + { + get + { + return this.GetRelatedEntities("business_unit_system_users", null); + } + set + { + this.OnPropertyChanging("business_unit_system_users"); + this.SetRelatedEntities("business_unit_system_users", null, value); + this.OnPropertyChanged("business_unit_system_users"); + } + } + + /// + /// 1:N business_unit_task_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_task_activities")] + public System.Collections.Generic.IEnumerable business_unit_task_activities + { + get + { + return this.GetRelatedEntities("business_unit_task_activities", null); + } + set + { + this.OnPropertyChanging("business_unit_task_activities"); + this.SetRelatedEntities("business_unit_task_activities", null, value); + this.OnPropertyChanged("business_unit_task_activities"); + } + } + + /// + /// 1:N business_unit_teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_teams")] + public System.Collections.Generic.IEnumerable business_unit_teams + { + get + { + return this.GetRelatedEntities("business_unit_teams", null); + } + set + { + this.OnPropertyChanging("business_unit_teams"); + this.SetRelatedEntities("business_unit_teams", null, value); + this.OnPropertyChanged("business_unit_teams"); + } + } + + /// + /// 1:N business_unit_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_templates")] + public System.Collections.Generic.IEnumerable business_unit_templates + { + get + { + return this.GetRelatedEntities("business_unit_templates", null); + } + set + { + this.OnPropertyChanging("business_unit_templates"); + this.SetRelatedEntities("business_unit_templates", null, value); + this.OnPropertyChanged("business_unit_templates"); + } + } + + /// + /// 1:N business_unit_user_settings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_user_settings")] + public System.Collections.Generic.IEnumerable business_unit_user_settings + { + get + { + return this.GetRelatedEntities("business_unit_user_settings", null); + } + set + { + this.OnPropertyChanging("business_unit_user_settings"); + this.SetRelatedEntities("business_unit_user_settings", null, value); + this.OnPropertyChanged("business_unit_user_settings"); + } + } + + /// + /// 1:N business_unit_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userform")] + public System.Collections.Generic.IEnumerable business_unit_userform + { + get + { + return this.GetRelatedEntities("business_unit_userform", null); + } + set + { + this.OnPropertyChanging("business_unit_userform"); + this.SetRelatedEntities("business_unit_userform", null, value); + this.OnPropertyChanged("business_unit_userform"); + } + } + + /// + /// 1:N business_unit_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userquery")] + public System.Collections.Generic.IEnumerable business_unit_userquery + { + get + { + return this.GetRelatedEntities("business_unit_userquery", null); + } + set + { + this.OnPropertyChanging("business_unit_userquery"); + this.SetRelatedEntities("business_unit_userquery", null, value); + this.OnPropertyChanged("business_unit_userquery"); + } + } + + /// + /// 1:N business_unit_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable business_unit_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("business_unit_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("business_unit_userqueryvisualizations"); + this.SetRelatedEntities("business_unit_userqueryvisualizations", null, value); + this.OnPropertyChanged("business_unit_userqueryvisualizations"); + } + } + + /// + /// 1:N business_unit_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflow")] + public System.Collections.Generic.IEnumerable business_unit_workflow + { + get + { + return this.GetRelatedEntities("business_unit_workflow", null); + } + set + { + this.OnPropertyChanging("business_unit_workflow"); + this.SetRelatedEntities("business_unit_workflow", null, value); + this.OnPropertyChanged("business_unit_workflow"); + } + } + + /// + /// 1:N business_unit_workflowlogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflowlogs")] + public System.Collections.Generic.IEnumerable business_unit_workflowlogs + { + get + { + return this.GetRelatedEntities("business_unit_workflowlogs", null); + } + set + { + this.OnPropertyChanging("business_unit_workflowlogs"); + this.SetRelatedEntities("business_unit_workflowlogs", null, value); + this.OnPropertyChanged("business_unit_workflowlogs"); + } + } + + /// + /// 1:N BusinessUnit_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_AsyncOperations")] + public System.Collections.Generic.IEnumerable BusinessUnit_AsyncOperations + { + get + { + return this.GetRelatedEntities("BusinessUnit_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_AsyncOperations"); + this.SetRelatedEntities("BusinessUnit_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnit_AsyncOperations"); + } + } + + /// + /// 1:N BusinessUnit_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BusinessUnit_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BusinessUnit_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_BulkDeleteFailures"); + this.SetRelatedEntities("BusinessUnit_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BusinessUnit_BulkDeleteFailures"); + } + } + + /// + /// 1:N BusinessUnit_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Campaigns")] + public System.Collections.Generic.IEnumerable BusinessUnit_Campaigns + { + get + { + return this.GetRelatedEntities("BusinessUnit_Campaigns", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Campaigns"); + this.SetRelatedEntities("BusinessUnit_Campaigns", null, value); + this.OnPropertyChanged("BusinessUnit_Campaigns"); + } + } + + /// + /// 1:N BusinessUnit_DuplicateRules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_DuplicateRules")] + public System.Collections.Generic.IEnumerable BusinessUnit_DuplicateRules + { + get + { + return this.GetRelatedEntities("BusinessUnit_DuplicateRules", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_DuplicateRules"); + this.SetRelatedEntities("BusinessUnit_DuplicateRules", null, value); + this.OnPropertyChanged("BusinessUnit_DuplicateRules"); + } + } + + /// + /// 1:N BusinessUnit_ImportFiles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportFiles")] + public System.Collections.Generic.IEnumerable BusinessUnit_ImportFiles + { + get + { + return this.GetRelatedEntities("BusinessUnit_ImportFiles", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ImportFiles"); + this.SetRelatedEntities("BusinessUnit_ImportFiles", null, value); + this.OnPropertyChanged("BusinessUnit_ImportFiles"); + } + } + + /// + /// 1:N BusinessUnit_ImportLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportLogs")] + public System.Collections.Generic.IEnumerable BusinessUnit_ImportLogs + { + get + { + return this.GetRelatedEntities("BusinessUnit_ImportLogs", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ImportLogs"); + this.SetRelatedEntities("BusinessUnit_ImportLogs", null, value); + this.OnPropertyChanged("BusinessUnit_ImportLogs"); + } + } + + /// + /// 1:N BusinessUnit_ImportMaps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportMaps")] + public System.Collections.Generic.IEnumerable BusinessUnit_ImportMaps + { + get + { + return this.GetRelatedEntities("BusinessUnit_ImportMaps", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ImportMaps"); + this.SetRelatedEntities("BusinessUnit_ImportMaps", null, value); + this.OnPropertyChanged("BusinessUnit_ImportMaps"); + } + } + + /// + /// 1:N BusinessUnit_Imports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Imports")] + public System.Collections.Generic.IEnumerable BusinessUnit_Imports + { + get + { + return this.GetRelatedEntities("BusinessUnit_Imports", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Imports"); + this.SetRelatedEntities("BusinessUnit_Imports", null, value); + this.OnPropertyChanged("BusinessUnit_Imports"); + } + } + + /// + /// 1:N businessunit_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("businessunit_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable businessunit_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("businessunit_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("businessunit_principalobjectattributeaccess"); + this.SetRelatedEntities("businessunit_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("businessunit_principalobjectattributeaccess"); + } + } + + /// + /// 1:N BusinessUnit_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ProcessSessions")] + public System.Collections.Generic.IEnumerable BusinessUnit_ProcessSessions + { + get + { + return this.GetRelatedEntities("BusinessUnit_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ProcessSessions"); + this.SetRelatedEntities("BusinessUnit_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnit_ProcessSessions"); + } + } + + /// + /// 1:N Owning_businessunit_processsessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Owning_businessunit_processsessions")] + public System.Collections.Generic.IEnumerable Owning_businessunit_processsessions + { + get + { + return this.GetRelatedEntities("Owning_businessunit_processsessions", null); + } + set + { + this.OnPropertyChanging("Owning_businessunit_processsessions"); + this.SetRelatedEntities("Owning_businessunit_processsessions", null, value); + this.OnPropertyChanged("Owning_businessunit_processsessions"); + } + } + + /// + /// 1:N userentityinstancedata_businessunit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunit")] + public System.Collections.Generic.IEnumerable userentityinstancedata_businessunit + { + get + { + return this.GetRelatedEntities("userentityinstancedata_businessunit", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_businessunit"); + this.SetRelatedEntities("userentityinstancedata_businessunit", null, value); + this.OnPropertyChanged("userentityinstancedata_businessunit"); + } + } + + /// + /// 1:N userentityuisettings_businessunit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_businessunit")] + public System.Collections.Generic.IEnumerable userentityuisettings_businessunit + { + get + { + return this.GetRelatedEntities("userentityuisettings_businessunit", null); + } + set + { + this.OnPropertyChanging("userentityuisettings_businessunit"); + this.SetRelatedEntities("userentityuisettings_businessunit", null, value); + this.OnPropertyChanged("userentityuisettings_businessunit"); + } + } + + /// + /// N:1 business_unit_parent_business_unit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbusinessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.BusinessUnit Referencingbusiness_unit_parent_business_unit + { + get + { + return this.GetRelatedEntity("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingbusiness_unit_parent_business_unit"); + this.SetRelatedEntity("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingbusiness_unit_parent_business_unit"); + } + } + + /// + /// N:1 BusinessUnit_Calendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Calendar")] + public Xrm.Framework.CI.Common.Entities.Calendar BusinessUnit_Calendar + { + get + { + return this.GetRelatedEntity("BusinessUnit_Calendar", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Calendar"); + this.SetRelatedEntity("BusinessUnit_Calendar", null, value); + this.OnPropertyChanged("BusinessUnit_Calendar"); + } + } + + /// + /// N:1 lk_businessunit_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunit_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunit_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunit_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunit_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunit_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunitbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitbase_createdby + { + get + { + return this.GetRelatedEntity("lk_businessunitbase_createdby", null); + } + } + + /// + /// N:1 lk_businessunitbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_businessunitbase_modifiedby", null); + } + } + + /// + /// N:1 organization_business_units + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_units")] + public Xrm.Framework.CI.Common.Entities.Organization organization_business_units + { + get + { + return this.GetRelatedEntity("organization_business_units", null); + } + } + + /// + /// N:1 TransactionCurrency_BusinessUnit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_BusinessUnit")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_BusinessUnit + { + get + { + return this.GetRelatedEntity("TransactionCurrency_BusinessUnit", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_BusinessUnit"); + this.SetRelatedEntity("TransactionCurrency_BusinessUnit", null, value); + this.OnPropertyChanged("TransactionCurrency_BusinessUnit"); + } + } + } + + /// + /// Announcement associated with an organization. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("businessunitnewsarticle")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class BusinessUnitNewsArticle : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public BusinessUnitNewsArticle() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "businessunitnewsarticle"; + + public const int EntityTypeCode = 132; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time for the announcement to become active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeon")] + public System.Nullable ActiveOn + { + get + { + return this.GetAttributeValue>("activeon"); + } + set + { + this.OnPropertyChanging("ActiveOn"); + this.SetAttributeValue("activeon", value); + this.OnPropertyChanged("ActiveOn"); + } + } + + /// + /// Date and time of the last day the announcement is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeuntil")] + public System.Nullable ActiveUntil + { + get + { + return this.GetAttributeValue>("activeuntil"); + } + set + { + this.OnPropertyChanging("ActiveUntil"); + this.SetAttributeValue("activeuntil", value); + this.OnPropertyChanged("ActiveUntil"); + } + } + + /// + /// Title of the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articletitle")] + public string ArticleTitle + { + get + { + return this.GetAttributeValue("articletitle"); + } + set + { + this.OnPropertyChanging("ArticleTitle"); + this.SetAttributeValue("articletitle", value); + this.OnPropertyChanged("ArticleTitle"); + } + } + + /// + /// Type of announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articletypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ArticleTypeCode + { + get + { + return this.GetAttributeValue("articletypecode"); + } + set + { + this.OnPropertyChanging("ArticleTypeCode"); + this.SetAttributeValue("articletypecode", value); + this.OnPropertyChanged("ArticleTypeCode"); + } + } + + /// + /// URL for the Website on which the announcement is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articleurl")] + public string ArticleUrl + { + get + { + return this.GetAttributeValue("articleurl"); + } + set + { + this.OnPropertyChanging("ArticleUrl"); + this.SetAttributeValue("articleurl", value); + this.OnPropertyChanged("ArticleUrl"); + } + } + + /// + /// Unique identifier of the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitnewsarticleid")] + public System.Nullable BusinessUnitNewsArticleId + { + get + { + return this.GetAttributeValue>("businessunitnewsarticleid"); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticleId"); + this.SetAttributeValue("businessunitnewsarticleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("BusinessUnitNewsArticleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitnewsarticleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.BusinessUnitNewsArticleId = value; + } + } + + /// + /// Unique identifier of the user who created the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the announcement 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 businessunitnewsarticle. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the announcement 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 businessunitnewsarticle. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Text for the announcement. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("newsarticle")] + public string NewsArticle + { + get + { + return this.GetAttributeValue("newsarticle"); + } + set + { + this.OnPropertyChanging("NewsArticle"); + this.SetAttributeValue("newsarticle", value); + this.OnPropertyChanged("NewsArticle"); + } + } + + /// + /// Unique identifier of the organization associated with the announcement. + /// + [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"); + } + } + + /// + /// Information about whether to show the announcement on the Website home page. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showonhomepage")] + public System.Nullable ShowOnHomepage + { + get + { + return this.GetAttributeValue>("showonhomepage"); + } + set + { + this.OnPropertyChanging("ShowOnHomepage"); + this.SetAttributeValue("showonhomepage", value); + this.OnPropertyChanged("ShowOnHomepage"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N BusinessUnitNewsArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_AsyncOperations")] + public System.Collections.Generic.IEnumerable BusinessUnitNewsArticle_AsyncOperations + { + get + { + return this.GetRelatedEntities("BusinessUnitNewsArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_AsyncOperations"); + this.SetRelatedEntities("BusinessUnitNewsArticle_AsyncOperations", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_AsyncOperations"); + } + } + + /// + /// 1:N BusinessUnitNewsArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable BusinessUnitNewsArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("BusinessUnitNewsArticle_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_BulkDeleteFailures"); + this.SetRelatedEntities("BusinessUnitNewsArticle_BulkDeleteFailures", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_BulkDeleteFailures"); + } + } + + /// + /// 1:N BusinessUnitNewsArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_ProcessSessions")] + public System.Collections.Generic.IEnumerable BusinessUnitNewsArticle_ProcessSessions + { + get + { + return this.GetRelatedEntities("BusinessUnitNewsArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_ProcessSessions"); + this.SetRelatedEntities("BusinessUnitNewsArticle_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_businessunitnewsarticle + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunitnewsarticle")] + public System.Collections.Generic.IEnumerable userentityinstancedata_businessunitnewsarticle + { + get + { + return this.GetRelatedEntities("userentityinstancedata_businessunitnewsarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_businessunitnewsarticle"); + this.SetRelatedEntities("userentityinstancedata_businessunitnewsarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_businessunitnewsarticle"); + } + } + + /// + /// N:1 lk_businessunitnewsarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticle_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunitnewsarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticle_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_businessunitnewsarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticlebase_createdby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticlebase_createdby", null); + } + } + + /// + /// N:1 lk_businessunitnewsarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_businessunitnewsarticlebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_businessunitnewsarticlebase_modifiedby", null); + } + } + + /// + /// N:1 organization_business_unit_news_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_unit_news_articles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_business_unit_news_articles + { + get + { + return this.GetRelatedEntity("organization_business_unit_news_articles", null); + } + } + } + + /// + /// Calendar used by the scheduling system to define when an appointment or activity is to occur. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("calendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Calendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Calendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "calendar"; + + public const int EntityTypeCode = 4003; + + 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 business unit with which the calendar is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public System.Nullable CalendarId + { + get + { + return this.GetAttributeValue>("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CalendarId = value; + } + } + + /// + /// Unique identifier of the user who created the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the calendar 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 calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Calendar used by the scheduling system to define when an appointment or activity is to occur. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Calendar is shared by other calendars, such as the organization calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isshared")] + public System.Nullable IsShared + { + get + { + return this.GetAttributeValue>("isshared"); + } + set + { + this.OnPropertyChanging("IsShared"); + this.SetAttributeValue("isshared", value); + this.OnPropertyChanged("IsShared"); + } + } + + /// + /// Unique identifier of the user who last modified the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the calendar 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 calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the calendar is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the primary user of this calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryuserid")] + public System.Nullable PrimaryUserId + { + get + { + return this.GetAttributeValue>("primaryuserid"); + } + set + { + this.OnPropertyChanging("PrimaryUserId"); + this.SetAttributeValue("primaryuserid", value); + this.OnPropertyChanged("PrimaryUserId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N BusinessUnit_Calendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Calendar")] + public System.Collections.Generic.IEnumerable BusinessUnit_Calendar + { + get + { + return this.GetRelatedEntities("BusinessUnit_Calendar", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_Calendar"); + this.SetRelatedEntities("BusinessUnit_Calendar", null, value); + this.OnPropertyChanged("BusinessUnit_Calendar"); + } + } + + /// + /// 1:N Calendar_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_Annotation")] + public System.Collections.Generic.IEnumerable Calendar_Annotation + { + get + { + return this.GetRelatedEntities("Calendar_Annotation", null); + } + set + { + this.OnPropertyChanging("Calendar_Annotation"); + this.SetRelatedEntities("Calendar_Annotation", null, value); + this.OnPropertyChanged("Calendar_Annotation"); + } + } + + /// + /// 1:N Calendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable Calendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("Calendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Calendar_AsyncOperations"); + this.SetRelatedEntities("Calendar_AsyncOperations", null, value); + this.OnPropertyChanged("Calendar_AsyncOperations"); + } + } + + /// + /// 1:N Calendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Calendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Calendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Calendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Calendar_BulkDeleteFailures"); + this.SetRelatedEntities("Calendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Calendar_BulkDeleteFailures"); + } + } + + /// + /// 1:N calendar_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarrules")] + public System.Collections.Generic.IEnumerable CalendarRules + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("calendarrules"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("CalendarRules"); + if ((value == null)) + { + this.SetAttributeValue("calendarrules", value); + } + else + { + this.SetAttributeValue("calendarrules", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("CalendarRules"); + } + } + + /// + /// 1:N calendar_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_equipment")] + public System.Collections.Generic.IEnumerable calendar_equipment + { + get + { + return this.GetRelatedEntities("calendar_equipment", null); + } + set + { + this.OnPropertyChanging("calendar_equipment"); + this.SetRelatedEntities("calendar_equipment", null, value); + this.OnPropertyChanged("calendar_equipment"); + } + } + + /// + /// 1:N calendar_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_organization")] + public System.Collections.Generic.IEnumerable calendar_organization + { + get + { + return this.GetRelatedEntities("calendar_organization", null); + } + set + { + this.OnPropertyChanging("calendar_organization"); + this.SetRelatedEntities("calendar_organization", null, value); + this.OnPropertyChanged("calendar_organization"); + } + } + + /// + /// 1:N calendar_services + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_services")] + public System.Collections.Generic.IEnumerable calendar_services + { + get + { + return this.GetRelatedEntities("calendar_services", null); + } + set + { + this.OnPropertyChanging("calendar_services"); + this.SetRelatedEntities("calendar_services", null, value); + this.OnPropertyChanged("calendar_services"); + } + } + + /// + /// 1:N calendar_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_system_users")] + public System.Collections.Generic.IEnumerable calendar_system_users + { + get + { + return this.GetRelatedEntities("calendar_system_users", null); + } + set + { + this.OnPropertyChanging("calendar_system_users"); + this.SetRelatedEntities("calendar_system_users", null, value); + this.OnPropertyChanged("calendar_system_users"); + } + } + + /// + /// 1:N userentityinstancedata_calendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_calendar")] + public System.Collections.Generic.IEnumerable userentityinstancedata_calendar + { + get + { + return this.GetRelatedEntities("userentityinstancedata_calendar", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_calendar"); + this.SetRelatedEntities("userentityinstancedata_calendar", null, value); + this.OnPropertyChanged("userentityinstancedata_calendar"); + } + } + + /// + /// N:1 business_unit_calendars + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_calendars")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_calendars + { + get + { + return this.GetRelatedEntity("business_unit_calendars", null); + } + set + { + this.OnPropertyChanging("business_unit_calendars"); + this.SetRelatedEntity("business_unit_calendars", null, value); + this.OnPropertyChanged("business_unit_calendars"); + } + } + + /// + /// N:1 lk_calendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_createdby + { + get + { + return this.GetRelatedEntity("lk_calendar_createdby", null); + } + } + + /// + /// N:1 lk_calendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_calendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_calendar_modifiedby", null); + } + } + + /// + /// N:1 lk_calendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_calendars + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_calendars")] + public Xrm.Framework.CI.Common.Entities.Organization organization_calendars + { + get + { + return this.GetRelatedEntity("organization_calendars", null); + } + } + } + + /// + /// Defines free/busy times for a service and for resources or resource groups, such as working, non-working, vacation, and blocked. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("calendarrule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CalendarRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CalendarRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "calendarrule"; + + public const int EntityTypeCode = 4004; + + 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 business unit with which the calendar rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public System.Nullable BusinessUnitId + { + get + { + return this.GetAttributeValue>("businessunitid"); + } + } + + /// + /// Unique identifier of the calendar with which the calendar rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Unique identifier of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarruleid")] + public System.Nullable CalendarRuleId + { + get + { + return this.GetAttributeValue>("calendarruleid"); + } + set + { + this.OnPropertyChanging("CalendarRuleId"); + this.SetAttributeValue("calendarruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CalendarRuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CalendarRuleId = value; + } + } + + /// + /// Unique identifier of the user who created the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the calendar rule 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 calendarrule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Defines free/busy times for a service and for resources or resource groups, such as working, non-working, vacation, and blocked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Duration of the calendar rule in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// Effective interval end of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveintervalend")] + public System.Nullable EffectiveIntervalEnd + { + get + { + return this.GetAttributeValue>("effectiveintervalend"); + } + set + { + this.OnPropertyChanging("EffectiveIntervalEnd"); + this.SetAttributeValue("effectiveintervalend", value); + this.OnPropertyChanged("EffectiveIntervalEnd"); + } + } + + /// + /// Effective interval start of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveintervalstart")] + public System.Nullable EffectiveIntervalStart + { + get + { + return this.GetAttributeValue>("effectiveintervalstart"); + } + set + { + this.OnPropertyChanging("EffectiveIntervalStart"); + this.SetAttributeValue("effectiveintervalstart", value); + this.OnPropertyChanged("EffectiveIntervalStart"); + } + } + + /// + /// Effort available for a resource during the time described by the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effort")] + public System.Nullable Effort + { + get + { + return this.GetAttributeValue>("effort"); + } + set + { + this.OnPropertyChanging("Effort"); + this.SetAttributeValue("effort", value); + this.OnPropertyChanged("Effort"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endtime")] + public System.Nullable EndTime + { + get + { + return this.GetAttributeValue>("endtime"); + } + set + { + this.OnPropertyChanging("EndTime"); + this.SetAttributeValue("endtime", value); + this.OnPropertyChanged("EndTime"); + } + } + + /// + /// Extent of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extentcode")] + public System.Nullable ExtentCode + { + get + { + return this.GetAttributeValue>("extentcode"); + } + set + { + this.OnPropertyChanging("ExtentCode"); + this.SetAttributeValue("extentcode", value); + this.OnPropertyChanged("ExtentCode"); + } + } + + /// + /// Unique identifier of the group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupdesignator")] + public string GroupDesignator + { + get + { + return this.GetAttributeValue("groupdesignator"); + } + set + { + this.OnPropertyChanging("GroupDesignator"); + this.SetAttributeValue("groupdesignator", value); + this.OnPropertyChanged("GroupDesignator"); + } + } + + /// + /// Unique identifier of the inner calendar for non-leaf calendar rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("innercalendarid")] + public Microsoft.Xrm.Sdk.EntityReference InnerCalendarId + { + get + { + return this.GetAttributeValue("innercalendarid"); + } + set + { + this.OnPropertyChanging("InnerCalendarId"); + this.SetAttributeValue("innercalendarid", value); + this.OnPropertyChanged("InnerCalendarId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismodified")] + public System.Nullable IsModified + { + get + { + return this.GetAttributeValue>("ismodified"); + } + set + { + this.OnPropertyChanging("IsModified"); + this.SetAttributeValue("ismodified", value); + this.OnPropertyChanged("IsModified"); + } + } + + /// + /// Flag used in vary-by-day calendar rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isselected")] + public System.Nullable IsSelected + { + get + { + return this.GetAttributeValue>("isselected"); + } + set + { + this.OnPropertyChanging("IsSelected"); + this.SetAttributeValue("isselected", value); + this.OnPropertyChanged("IsSelected"); + } + } + + /// + /// Flag used in vary-by-day calendar rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issimple")] + public System.Nullable IsSimple + { + get + { + return this.GetAttributeValue>("issimple"); + } + set + { + this.OnPropertyChanging("IsSimple"); + this.SetAttributeValue("issimple", value); + this.OnPropertyChanged("IsSimple"); + } + } + + /// + /// Flag used in leaf nonrecurring rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvaried")] + public System.Nullable IsVaried + { + get + { + return this.GetAttributeValue>("isvaried"); + } + set + { + this.OnPropertyChanging("IsVaried"); + this.SetAttributeValue("isvaried", value); + this.OnPropertyChanged("IsVaried"); + } + } + + /// + /// Unique identifier of the user who last modified the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the calendar rule 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 calendarrule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Start offset for leaf nonrecurring rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("offset")] + public System.Nullable Offset + { + get + { + return this.GetAttributeValue>("offset"); + } + set + { + this.OnPropertyChanging("Offset"); + this.SetAttributeValue("offset", value); + this.OnPropertyChanged("Offset"); + } + } + + /// + /// Unique identifier of the organization with which the calendar rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Pattern of the rule recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pattern")] + public string Pattern + { + get + { + return this.GetAttributeValue("pattern"); + } + set + { + this.OnPropertyChanging("Pattern"); + this.SetAttributeValue("pattern", value); + this.OnPropertyChanged("Pattern"); + } + } + + /// + /// Rank of the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// Unique identifier of the service with which the calendar rule 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"); + } + } + + /// + /// Start time for the rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// Sub-type of calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcode")] + public System.Nullable SubCode + { + get + { + return this.GetAttributeValue>("subcode"); + } + set + { + this.OnPropertyChanging("SubCode"); + this.SetAttributeValue("subcode", value); + this.OnPropertyChanged("SubCode"); + } + } + + /// + /// Type of calendar rule such as working hours, break, holiday, or time off. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timecode")] + public System.Nullable TimeCode + { + get + { + return this.GetAttributeValue>("timecode"); + } + set + { + this.OnPropertyChanging("TimeCode"); + this.SetAttributeValue("timecode", value); + this.OnPropertyChanged("TimeCode"); + } + } + + /// + /// Local time zone for the calendar rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_calendarrule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_calendarrule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_calendarrule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_calendarrule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_calendarrule"); + this.SetRelatedEntities("userentityinstancedata_calendarrule", null, value); + this.OnPropertyChanged("userentityinstancedata_calendarrule"); + } + } + + /// + /// N:1 calendar_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_calendar_rules")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_calendar_rules + { + get + { + return this.GetRelatedEntity("calendar_calendar_rules", null); + } + set + { + this.OnPropertyChanging("calendar_calendar_rules"); + this.SetRelatedEntity("calendar_calendar_rules", null, value); + this.OnPropertyChanged("calendar_calendar_rules"); + } + } + + /// + /// N:1 inner_calendar_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("innercalendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("inner_calendar_calendar_rules")] + public Xrm.Framework.CI.Common.Entities.Calendar inner_calendar_calendar_rules + { + get + { + return this.GetRelatedEntity("inner_calendar_calendar_rules", null); + } + set + { + this.OnPropertyChanging("inner_calendar_calendar_rules"); + this.SetRelatedEntity("inner_calendar_calendar_rules", null, value); + this.OnPropertyChanged("inner_calendar_calendar_rules"); + } + } + + /// + /// N:1 lk_calendarrule_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_createdby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_createdby", null); + } + } + + /// + /// N:1 lk_calendarrule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_calendarrule_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_modifiedby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_modifiedby", null); + } + } + + /// + /// N:1 lk_calendarrule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendarrule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_calendarrule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_calendarrule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 service_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_calendar_rules")] + public Xrm.Framework.CI.Common.Entities.Service service_calendar_rules + { + get + { + return this.GetRelatedEntity("service_calendar_rules", null); + } + set + { + this.OnPropertyChanging("service_calendar_rules"); + this.SetRelatedEntity("service_calendar_rules", null, value); + this.OnPropertyChanged("service_calendar_rules"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum CampaignState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Container for campaign activities and responses, sales literature, products, and lists to create, plan, execute, and track the results of a specific marketing campaign through its life. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaign")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Campaign : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Campaign() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaign"; + + public const int EntityTypeCode = 4400; + + 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)); + } + } + + /// + /// Enter the date when the campaign was closed or completed. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the campaign. + /// + [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"); + } + } + + /// + /// Type the amount budgeted for the campaign to define a limit for how much you can spend. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost")] + public Microsoft.Xrm.Sdk.Money BudgetedCost + { + get + { + return this.GetAttributeValue("budgetedcost"); + } + set + { + this.OnPropertyChanging("BudgetedCost"); + this.SetAttributeValue("budgetedcost", value); + this.OnPropertyChanged("BudgetedCost"); + } + } + + /// + /// Shows the Budget Allocated field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost_base")] + public Microsoft.Xrm.Sdk.Money BudgetedCost_Base + { + get + { + return this.GetAttributeValue("budgetedcost_base"); + } + } + + /// + /// Unique identifier of the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + public System.Nullable CampaignId + { + get + { + return this.GetAttributeValue>("campaignid"); + } + set + { + this.OnPropertyChanging("CampaignId"); + this.SetAttributeValue("campaignid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CampaignId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CampaignId = value; + } + } + + /// + /// Type a number or other tracking code to identify the campaign. If no value is entered, a code will be generated automatically. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("codename")] + public string CodeName + { + get + { + return this.GetAttributeValue("codename"); + } + set + { + this.OnPropertyChanging("CodeName"); + this.SetAttributeValue("codename", value); + this.OnPropertyChanged("CodeName"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the campaign, such as the products or services offered or the targeted audience. + /// + [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 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"); + } + } + + /// + /// 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 expected response rate for the campaign as a full number between 0 and 100. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expectedresponse")] + public System.Nullable ExpectedResponse + { + get + { + return this.GetAttributeValue>("expectedresponse"); + } + set + { + this.OnPropertyChanging("ExpectedResponse"); + this.SetAttributeValue("expectedresponse", value); + this.OnPropertyChanged("ExpectedResponse"); + } + } + + /// + /// Type the expected revenue for the campaign for return on investment projections and post-campaign reporting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expectedrevenue")] + public Microsoft.Xrm.Sdk.Money ExpectedRevenue + { + get + { + return this.GetAttributeValue("expectedrevenue"); + } + set + { + this.OnPropertyChanging("ExpectedRevenue"); + this.SetAttributeValue("expectedrevenue", value); + this.OnPropertyChanged("ExpectedRevenue"); + } + } + + /// + /// Shows the estimated revenue converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expectedrevenue_base")] + public Microsoft.Xrm.Sdk.Money ExpectedRevenue_Base + { + get + { + return this.GetAttributeValue("expectedrevenue_base"); + } + } + + /// + /// 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 campaign is a template that can be copied when you create future campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("istemplate")] + public System.Nullable IsTemplate + { + get + { + return this.GetAttributeValue>("istemplate"); + } + set + { + this.OnPropertyChanging("IsTemplate"); + this.SetAttributeValue("istemplate", value); + this.OnPropertyChanged("IsTemplate"); + } + } + + /// + /// Type the promotional message or marketing copy for the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + set + { + this.OnPropertyChanging("Message"); + this.SetAttributeValue("message", value); + this.OnPropertyChanged("Message"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a name for the campaign so that it is identified correctly in lists. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type the objective of the campaign, including products, services, discounts, and pricing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objective")] + public string Objective + { + get + { + return this.GetAttributeValue("objective"); + } + set + { + this.OnPropertyChanging("Objective"); + this.SetAttributeValue("objective", value); + this.OnPropertyChanged("Objective"); + } + } + + /// + /// Type the sum of any miscellaneous campaign costs not included in the campaign activities to make sure the actual cost of the campaign is calculated correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("othercost")] + public Microsoft.Xrm.Sdk.Money OtherCost + { + get + { + return this.GetAttributeValue("othercost"); + } + set + { + this.OnPropertyChanging("OtherCost"); + this.SetAttributeValue("othercost", value); + this.OnPropertyChanged("OtherCost"); + } + } + + /// + /// Shows the Miscellaneous Costs 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("othercost_base")] + public Microsoft.Xrm.Sdk.Money OtherCost_Base + { + get + { + return this.GetAttributeValue("othercost_base"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the price list associated with this item to make sure the products associated with the campaign are offered at the correct prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelistid")] + public Microsoft.Xrm.Sdk.EntityReference PriceListId + { + get + { + return this.GetAttributeValue("pricelistid"); + } + set + { + this.OnPropertyChanging("PriceListId"); + this.SetAttributeValue("pricelistid", value); + this.OnPropertyChanged("PriceListId"); + } + } + + /// + /// 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 a promotional code to track sales related to the campaign or allow customers to redeem a discount offer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("promotioncodename")] + public string PromotionCodeName + { + get + { + return this.GetAttributeValue("promotioncodename"); + } + set + { + this.OnPropertyChanging("PromotionCodeName"); + this.SetAttributeValue("promotioncodename", value); + this.OnPropertyChanged("PromotionCodeName"); + } + } + + /// + /// Enter the date when the campaign is scheduled to end. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("proposedend")] + public System.Nullable ProposedEnd + { + get + { + return this.GetAttributeValue>("proposedend"); + } + set + { + this.OnPropertyChanging("ProposedEnd"); + this.SetAttributeValue("proposedend", value); + this.OnPropertyChanged("ProposedEnd"); + } + } + + /// + /// Enter the date when the campaign is scheduled to start. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("proposedstart")] + public System.Nullable ProposedStart + { + get + { + return this.GetAttributeValue>("proposedstart"); + } + set + { + this.OnPropertyChanging("ProposedStart"); + this.SetAttributeValue("proposedstart", value); + this.OnPropertyChanged("ProposedStart"); + } + } + + /// + /// 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 the status of the campaign. By default, campaigns are active and can't be deactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.CampaignState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.CampaignState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the campaign'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 sum of the amounts entered in the Total Cost of Campaign Activities and Miscellaneous Costs fields. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalactualcost")] + public Microsoft.Xrm.Sdk.Money TotalActualCost + { + get + { + return this.GetAttributeValue("totalactualcost"); + } + } + + /// + /// Shows the Total Cost of Campaign 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("totalactualcost_base")] + public Microsoft.Xrm.Sdk.Money TotalActualCost_Base + { + get + { + return this.GetAttributeValue("totalactualcost_base"); + } + } + + /// + /// Shows the sum of the values entered in the Actual Cost field on all campaign activities related to the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalcampaignactivityactualcost")] + public Microsoft.Xrm.Sdk.Money TotalCampaignActivityActualCost + { + get + { + return this.GetAttributeValue("totalcampaignactivityactualcost"); + } + } + + /// + /// Shows the Total Cost of Campaign Activities field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalcampaignactivityactualcost_base")] + public Microsoft.Xrm.Sdk.Money TotalCampaignActivityActualCost_Base + { + get + { + return this.GetAttributeValue("totalcampaignactivityactualcost_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"); + } + } + + /// + /// Select the type of the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typecode")] + public Microsoft.Xrm.Sdk.OptionSetValue TypeCode + { + get + { + return this.GetAttributeValue("typecode"); + } + set + { + this.OnPropertyChanging("TypeCode"); + this.SetAttributeValue("typecode", value); + this.OnPropertyChanged("TypeCode"); + } + } + + /// + /// 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 campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N campaign_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_activity_parties")] + public System.Collections.Generic.IEnumerable campaign_activity_parties + { + get + { + return this.GetRelatedEntities("campaign_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaign_activity_parties"); + this.SetRelatedEntities("campaign_activity_parties", null, value); + this.OnPropertyChanged("campaign_activity_parties"); + } + } + + /// + /// 1:N Campaign_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ActivityPointers")] + public System.Collections.Generic.IEnumerable Campaign_ActivityPointers + { + get + { + return this.GetRelatedEntities("Campaign_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Campaign_ActivityPointers"); + this.SetRelatedEntities("Campaign_ActivityPointers", null, value); + this.OnPropertyChanged("Campaign_ActivityPointers"); + } + } + + /// + /// 1:N Campaign_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Annotation")] + public System.Collections.Generic.IEnumerable Campaign_Annotation + { + get + { + return this.GetRelatedEntities("Campaign_Annotation", null); + } + set + { + this.OnPropertyChanging("Campaign_Annotation"); + this.SetRelatedEntities("Campaign_Annotation", null, value); + this.OnPropertyChanged("Campaign_Annotation"); + } + } + + /// + /// 1:N Campaign_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Appointments")] + public System.Collections.Generic.IEnumerable Campaign_Appointments + { + get + { + return this.GetRelatedEntities("Campaign_Appointments", null); + } + set + { + this.OnPropertyChanging("Campaign_Appointments"); + this.SetRelatedEntities("Campaign_Appointments", null, value); + this.OnPropertyChanged("Campaign_Appointments"); + } + } + + /// + /// 1:N Campaign_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_AsyncOperations")] + public System.Collections.Generic.IEnumerable Campaign_AsyncOperations + { + get + { + return this.GetRelatedEntities("Campaign_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Campaign_AsyncOperations"); + this.SetRelatedEntities("Campaign_AsyncOperations", null, value); + this.OnPropertyChanged("Campaign_AsyncOperations"); + } + } + + /// + /// 1:N Campaign_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Campaign_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Campaign_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Campaign_BulkDeleteFailures"); + this.SetRelatedEntities("Campaign_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Campaign_BulkDeleteFailures"); + } + } + + /// + /// 1:N Campaign_CampaignActivities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignActivities")] + public System.Collections.Generic.IEnumerable Campaign_CampaignActivities + { + get + { + return this.GetRelatedEntities("Campaign_CampaignActivities", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignActivities"); + this.SetRelatedEntities("Campaign_CampaignActivities", null, value); + this.OnPropertyChanged("Campaign_CampaignActivities"); + } + } + + /// + /// 1:N Campaign_CampaignResponses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignResponses")] + public System.Collections.Generic.IEnumerable Campaign_CampaignResponses + { + get + { + return this.GetRelatedEntities("Campaign_CampaignResponses", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignResponses"); + this.SetRelatedEntities("Campaign_CampaignResponses", null, value); + this.OnPropertyChanged("Campaign_CampaignResponses"); + } + } + + /// + /// 1:N campaign_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections1")] + public System.Collections.Generic.IEnumerable campaign_connections1 + { + get + { + return this.GetRelatedEntities("campaign_connections1", null); + } + set + { + this.OnPropertyChanging("campaign_connections1"); + this.SetRelatedEntities("campaign_connections1", null, value); + this.OnPropertyChanged("campaign_connections1"); + } + } + + /// + /// 1:N campaign_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections2")] + public System.Collections.Generic.IEnumerable campaign_connections2 + { + get + { + return this.GetRelatedEntities("campaign_connections2", null); + } + set + { + this.OnPropertyChanging("campaign_connections2"); + this.SetRelatedEntities("campaign_connections2", null, value); + this.OnPropertyChanged("campaign_connections2"); + } + } + + /// + /// 1:N Campaign_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Campaign_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Campaign_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Campaign_DuplicateBaseRecord"); + this.SetRelatedEntities("Campaign_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Campaign_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Campaign_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Campaign_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Campaign_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Campaign_DuplicateMatchingRecord"); + this.SetRelatedEntities("Campaign_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Campaign_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Campaign_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Emails")] + public System.Collections.Generic.IEnumerable Campaign_Emails + { + get + { + return this.GetRelatedEntities("Campaign_Emails", null); + } + set + { + this.OnPropertyChanging("Campaign_Emails"); + this.SetRelatedEntities("Campaign_Emails", null, value); + this.OnPropertyChanged("Campaign_Emails"); + } + } + + /// + /// 1:N Campaign_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Faxes")] + public System.Collections.Generic.IEnumerable Campaign_Faxes + { + get + { + return this.GetRelatedEntities("Campaign_Faxes", null); + } + set + { + this.OnPropertyChanging("Campaign_Faxes"); + this.SetRelatedEntities("Campaign_Faxes", null, value); + this.OnPropertyChanged("Campaign_Faxes"); + } + } + + /// + /// 1:N campaign_leads + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_leads")] + public System.Collections.Generic.IEnumerable campaign_leads + { + get + { + return this.GetRelatedEntities("campaign_leads", null); + } + set + { + this.OnPropertyChanging("campaign_leads"); + this.SetRelatedEntities("campaign_leads", null, value); + this.OnPropertyChanged("campaign_leads"); + } + } + + /// + /// 1:N Campaign_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Letters")] + public System.Collections.Generic.IEnumerable Campaign_Letters + { + get + { + return this.GetRelatedEntities("Campaign_Letters", null); + } + set + { + this.OnPropertyChanging("Campaign_Letters"); + this.SetRelatedEntities("Campaign_Letters", null, value); + this.OnPropertyChanged("Campaign_Letters"); + } + } + + /// + /// 1:N campaign_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_opportunities")] + public System.Collections.Generic.IEnumerable campaign_opportunities + { + get + { + return this.GetRelatedEntities("campaign_opportunities", null); + } + set + { + this.OnPropertyChanging("campaign_opportunities"); + this.SetRelatedEntities("campaign_opportunities", null, value); + this.OnPropertyChanged("campaign_opportunities"); + } + } + + /// + /// 1:N campaign_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_orders")] + public System.Collections.Generic.IEnumerable campaign_orders + { + get + { + return this.GetRelatedEntities("campaign_orders", null); + } + set + { + this.OnPropertyChanging("campaign_orders"); + this.SetRelatedEntities("campaign_orders", null, value); + this.OnPropertyChanged("campaign_orders"); + } + } + + /// + /// 1:N Campaign_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Phonecalls")] + public System.Collections.Generic.IEnumerable Campaign_Phonecalls + { + get + { + return this.GetRelatedEntities("Campaign_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Campaign_Phonecalls"); + this.SetRelatedEntities("Campaign_Phonecalls", null, value); + this.OnPropertyChanged("Campaign_Phonecalls"); + } + } + + /// + /// 1:N campaign_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable campaign_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("campaign_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaign_principalobjectattributeaccess"); + this.SetRelatedEntities("campaign_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaign_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Campaign_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ProcessSessions")] + public System.Collections.Generic.IEnumerable Campaign_ProcessSessions + { + get + { + return this.GetRelatedEntities("Campaign_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Campaign_ProcessSessions"); + this.SetRelatedEntities("Campaign_ProcessSessions", null, value); + this.OnPropertyChanged("Campaign_ProcessSessions"); + } + } + + /// + /// 1:N campaign_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_quotes")] + public System.Collections.Generic.IEnumerable campaign_quotes + { + get + { + return this.GetRelatedEntities("campaign_quotes", null); + } + set + { + this.OnPropertyChanging("campaign_quotes"); + this.SetRelatedEntities("campaign_quotes", null, value); + this.OnPropertyChanged("campaign_quotes"); + } + } + + /// + /// 1:N Campaign_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Campaign_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Campaign_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Campaign_RecurringAppointmentMasters"); + this.SetRelatedEntities("Campaign_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Campaign_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Campaign_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Campaign_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Campaign_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Campaign_ServiceAppointments"); + this.SetRelatedEntities("Campaign_ServiceAppointments", null, value); + this.OnPropertyChanged("Campaign_ServiceAppointments"); + } + } + + /// + /// 1:N Campaign_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Tasks")] + public System.Collections.Generic.IEnumerable Campaign_Tasks + { + get + { + return this.GetRelatedEntities("Campaign_Tasks", null); + } + set + { + this.OnPropertyChanging("Campaign_Tasks"); + this.SetRelatedEntities("Campaign_Tasks", null, value); + this.OnPropertyChanged("Campaign_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_campaign + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaign")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaign + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaign", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaign"); + this.SetRelatedEntities("userentityinstancedata_campaign", null, value); + this.OnPropertyChanged("userentityinstancedata_campaign"); + } + } + + /// + /// N:N campaigncampaign_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingcampaigncampaign_association + { + get + { + return this.GetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcampaigncampaign_association"); + this.SetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcampaigncampaign_association"); + } + } + + /// + /// N:N campaigncampaign_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcampaigncampaign_association + { + get + { + return this.GetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcampaigncampaign_association"); + this.SetRelatedEntities("campaigncampaign_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcampaigncampaign_association"); + } + } + + /// + /// N:N campaignlist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignlist_association")] + public System.Collections.Generic.IEnumerable campaignlist_association + { + get + { + return this.GetRelatedEntities("campaignlist_association", null); + } + set + { + this.OnPropertyChanging("campaignlist_association"); + this.SetRelatedEntities("campaignlist_association", null, value); + this.OnPropertyChanged("campaignlist_association"); + } + } + + /// + /// N:N campaignproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignproduct_association")] + public System.Collections.Generic.IEnumerable campaignproduct_association + { + get + { + return this.GetRelatedEntities("campaignproduct_association", null); + } + set + { + this.OnPropertyChanging("campaignproduct_association"); + this.SetRelatedEntities("campaignproduct_association", null, value); + this.OnPropertyChanged("campaignproduct_association"); + } + } + + /// + /// N:N campaignsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignsalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignsalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignsalesliterature_association"); + this.SetRelatedEntities("campaignsalesliterature_association", null, value); + this.OnPropertyChanged("campaignsalesliterature_association"); + } + } + + /// + /// N:1 BusinessUnit_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Campaigns")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_Campaigns + { + get + { + return this.GetRelatedEntity("BusinessUnit_Campaigns", null); + } + } + + /// + /// N:1 lk_campaign_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_createdby + { + get + { + return this.GetRelatedEntity("lk_campaign_createdby", null); + } + } + + /// + /// N:1 lk_campaign_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaign_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_campaign_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_modifiedby + { + get + { + return this.GetRelatedEntity("lk_campaign_modifiedby", null); + } + } + + /// + /// N:1 lk_campaign_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaign_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaign_modifiedonbehalfby", null); + } + } + + /// + /// N:1 PriceList_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelistid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceList_Campaigns")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceList_Campaigns + { + get + { + return this.GetRelatedEntity("PriceList_Campaigns", null); + } + set + { + this.OnPropertyChanging("PriceList_Campaigns"); + this.SetRelatedEntity("PriceList_Campaigns", null, value); + this.OnPropertyChanged("PriceList_Campaigns"); + } + } + + /// + /// N:1 processstage_campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaigns")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_campaigns + { + get + { + return this.GetRelatedEntity("processstage_campaigns", null); + } + set + { + this.OnPropertyChanging("processstage_campaigns"); + this.SetRelatedEntity("processstage_campaigns", null, value); + this.OnPropertyChanged("processstage_campaigns"); + } + } + + /// + /// N:1 SystemUser_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Campaigns")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_Campaigns + { + get + { + return this.GetRelatedEntity("SystemUser_Campaigns", null); + } + } + + /// + /// N:1 team_Campaigns + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Campaigns")] + public Xrm.Framework.CI.Common.Entities.Team team_Campaigns + { + get + { + return this.GetRelatedEntity("team_Campaigns", null); + } + } + + /// + /// N:1 transactioncurrency_campaign + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaign")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_campaign + { + get + { + return this.GetRelatedEntity("transactioncurrency_campaign", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_campaign"); + this.SetRelatedEntity("transactioncurrency_campaign", null, value); + this.OnPropertyChanged("transactioncurrency_campaign"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum CampaignActivityState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Task performed, or to be performed, by a user for planning or running a campaign. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignactivity")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignActivity : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignActivity() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignactivity"; + + public const int EntityTypeCode = 4402; + + 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 campaign 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"); + } + } + + /// + /// Type the actual cost of the campaign activity. The value entered is rolled up to the related campaign in the total cost calculations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualcost")] + public Microsoft.Xrm.Sdk.Money ActualCost + { + get + { + return this.GetAttributeValue("actualcost"); + } + set + { + this.OnPropertyChanging("ActualCost"); + this.SetAttributeValue("actualcost", value); + this.OnPropertyChanged("ActualCost"); + } + } + + /// + /// Shows the Actual Cost 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("actualcost_base")] + public Microsoft.Xrm.Sdk.Money ActualCost_Base + { + get + { + return this.GetAttributeValue("actualcost_base"); + } + } + + /// + /// Shows the value selected in the Duration field on the campaign activity. The duration is used to report the time spent on the activity. + /// + [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"); + } + } + + /// + /// Enter the date when the campaign activity was actually completed. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the campaign activity to determine if the campaign activity started on the scheduled time. + /// + [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"); + } + } + + /// + /// Type the allocated budget of the campaign activity for estimated versus actual cost reporting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost")] + public Microsoft.Xrm.Sdk.Money BudgetedCost + { + get + { + return this.GetAttributeValue("budgetedcost"); + } + set + { + this.OnPropertyChanging("BudgetedCost"); + this.SetAttributeValue("budgetedcost", value); + this.OnPropertyChanged("BudgetedCost"); + } + } + + /// + /// Shows the Budget Allocated field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetedcost_base")] + public Microsoft.Xrm.Sdk.Money BudgetedCost_Base + { + get + { + return this.GetAttributeValue("budgetedcost_base"); + } + } + + /// + /// Type a category to identify the campaign activity type, such as new business development or customer retention, to tie the campaign activity to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Select how communications for this activity will be sent, such as phone, letter, fax, or email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channeltypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ChannelTypeCode + { + get + { + return this.GetAttributeValue("channeltypecode"); + } + set + { + this.OnPropertyChanging("ChannelTypeCode"); + this.SetAttributeValue("channeltypecode", value); + this.OnPropertyChanged("ChannelTypeCode"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the campaign activity, such as key talking points, objectives, or details about the target audience. + /// + [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 to override the opt-out settings on leads, contacts, and accounts for the members of the target marketing lists of the campaign activity. If No is selected, marketing materials will be sent to members who have opted out. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotsendonoptout")] + public System.Nullable DoNotSendOnOptOut + { + get + { + return this.GetAttributeValue>("donotsendonoptout"); + } + set + { + this.OnPropertyChanging("DoNotSendOnOptOut"); + this.SetAttributeValue("donotsendonoptout", value); + this.OnPropertyChanged("DoNotSendOnOptOut"); + } + } + + /// + /// 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 minimum number of days that must be passed before a marketing list member can be contacted in a campaign again. The campaign activity will not be applied to members contacted within the specified time period. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("excludeifcontactedinxdays")] + public System.Nullable ExcludeIfContactedInXDays + { + get + { + return this.GetAttributeValue>("excludeifcontactedinxdays"); + } + set + { + this.OnPropertyChanging("ExcludeIfContactedInXDays"); + this.SetAttributeValue("excludeifcontactedinxdays", value); + this.OnPropertyChanged("ExcludeIfContactedInXDays"); + } + } + + /// + /// For system use only. + /// + [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"); + } + } + + /// + /// Select whether inactive marketing list members will be excluded from the campaign activity distribution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreinactivelistmembers")] + public System.Nullable IgnoreInactiveListMembers + { + get + { + return this.GetAttributeValue>("ignoreinactivelistmembers"); + } + set + { + this.OnPropertyChanging("IgnoreInactiveListMembers"); + this.SetAttributeValue("ignoreinactivelistmembers", value); + this.OnPropertyChanged("IgnoreInactiveListMembers"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information regarding whether the campaign 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"); + } + } + + /// + /// 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 about whether the campaign activity is created by 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Enter the vendor accounts or contacts to capture any third-party suppliers used for the campaign activity. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the parent campaign so that the campaign activity costs reflect in the correct campaign for reporting. + /// + [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"); + } + } + + /// + /// Scheduled duration, specified in minutes, of the campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about the timing of the campaign 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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about timing of the campaign 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 associated service. + /// + [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"); + } + } + + /// + /// 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 campaign activity is open, completed, or canceled. Completed and canceled campaign activities are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.CampaignActivityState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.CampaignActivityState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the campaign activity'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"); + } + } + + /// + /// Type a subcategory to identify the campaign activity type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the campaign 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the type of campaign activity to indicate the purpose of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typecode")] + public Microsoft.Xrm.Sdk.OptionSetValue TypeCode + { + get + { + return this.GetAttributeValue("typecode"); + } + set + { + this.OnPropertyChanging("TypeCode"); + this.SetAttributeValue("typecode", value); + this.OnPropertyChanged("TypeCode"); + } + } + + /// + /// 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 campaign activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N campaignactivity_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activity_parties")] + public System.Collections.Generic.IEnumerable campaignactivity_activity_parties + { + get + { + return this.GetRelatedEntities("campaignactivity_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activity_parties"); + this.SetRelatedEntities("campaignactivity_activity_parties", null, value); + this.OnPropertyChanged("campaignactivity_activity_parties"); + } + } + + /// + /// 1:N campaignactivity_activityparties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_activityparties")] + public System.Collections.Generic.IEnumerable campaignactivity_activityparties + { + get + { + return this.GetRelatedEntities("campaignactivity_activityparties", null); + } + set + { + this.OnPropertyChanging("campaignactivity_activityparties"); + this.SetRelatedEntities("campaignactivity_activityparties", null, value); + this.OnPropertyChanged("campaignactivity_activityparties"); + } + } + + /// + /// 1:N CampaignActivity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ActivityPointers")] + public System.Collections.Generic.IEnumerable CampaignActivity_ActivityPointers + { + get + { + return this.GetRelatedEntities("CampaignActivity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ActivityPointers"); + this.SetRelatedEntities("CampaignActivity_ActivityPointers", null, value); + this.OnPropertyChanged("CampaignActivity_ActivityPointers"); + } + } + + /// + /// 1:N CampaignActivity_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Annotation")] + public System.Collections.Generic.IEnumerable CampaignActivity_Annotation + { + get + { + return this.GetRelatedEntities("CampaignActivity_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Annotation"); + this.SetRelatedEntities("CampaignActivity_Annotation", null, value); + this.OnPropertyChanged("CampaignActivity_Annotation"); + } + } + + /// + /// 1:N CampaignActivity_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Appointments")] + public System.Collections.Generic.IEnumerable CampaignActivity_Appointments + { + get + { + return this.GetRelatedEntities("CampaignActivity_Appointments", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Appointments"); + this.SetRelatedEntities("CampaignActivity_Appointments", null, value); + this.OnPropertyChanged("CampaignActivity_Appointments"); + } + } + + /// + /// 1:N CampaignActivity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_AsyncOperations")] + public System.Collections.Generic.IEnumerable CampaignActivity_AsyncOperations + { + get + { + return this.GetRelatedEntities("CampaignActivity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_AsyncOperations"); + this.SetRelatedEntities("CampaignActivity_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignActivity_AsyncOperations"); + } + } + + /// + /// 1:N CampaignActivity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CampaignActivity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CampaignActivity_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_BulkDeleteFailures"); + this.SetRelatedEntities("CampaignActivity_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CampaignActivity_BulkDeleteFailures"); + } + } + + /// + /// 1:N CampaignActivity_BulkOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_BulkOperations")] + public System.Collections.Generic.IEnumerable CampaignActivity_BulkOperations + { + get + { + return this.GetRelatedEntities("CampaignActivity_BulkOperations", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_BulkOperations"); + this.SetRelatedEntities("CampaignActivity_BulkOperations", null, value); + this.OnPropertyChanged("CampaignActivity_BulkOperations"); + } + } + + /// + /// 1:N campaignactivity_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections1")] + public System.Collections.Generic.IEnumerable campaignactivity_connections1 + { + get + { + return this.GetRelatedEntities("campaignactivity_connections1", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections1"); + this.SetRelatedEntities("campaignactivity_connections1", null, value); + this.OnPropertyChanged("campaignactivity_connections1"); + } + } + + /// + /// 1:N campaignactivity_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections2")] + public System.Collections.Generic.IEnumerable campaignactivity_connections2 + { + get + { + return this.GetRelatedEntities("campaignactivity_connections2", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections2"); + this.SetRelatedEntities("campaignactivity_connections2", null, value); + this.OnPropertyChanged("campaignactivity_connections2"); + } + } + + /// + /// 1:N CampaignActivity_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Emails")] + public System.Collections.Generic.IEnumerable CampaignActivity_Emails + { + get + { + return this.GetRelatedEntities("CampaignActivity_Emails", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Emails"); + this.SetRelatedEntities("CampaignActivity_Emails", null, value); + this.OnPropertyChanged("CampaignActivity_Emails"); + } + } + + /// + /// 1:N CampaignActivity_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Faxes")] + public System.Collections.Generic.IEnumerable CampaignActivity_Faxes + { + get + { + return this.GetRelatedEntities("CampaignActivity_Faxes", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Faxes"); + this.SetRelatedEntities("CampaignActivity_Faxes", null, value); + this.OnPropertyChanged("CampaignActivity_Faxes"); + } + } + + /// + /// 1:N CampaignActivity_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Letters")] + public System.Collections.Generic.IEnumerable CampaignActivity_Letters + { + get + { + return this.GetRelatedEntities("CampaignActivity_Letters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Letters"); + this.SetRelatedEntities("CampaignActivity_Letters", null, value); + this.OnPropertyChanged("CampaignActivity_Letters"); + } + } + + /// + /// 1:N CampaignActivity_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Phonecalls")] + public System.Collections.Generic.IEnumerable CampaignActivity_Phonecalls + { + get + { + return this.GetRelatedEntities("CampaignActivity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Phonecalls"); + this.SetRelatedEntities("CampaignActivity_Phonecalls", null, value); + this.OnPropertyChanged("CampaignActivity_Phonecalls"); + } + } + + /// + /// 1:N campaignactivity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable campaignactivity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("campaignactivity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignactivity_principalobjectattributeaccess"); + this.SetRelatedEntities("campaignactivity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignactivity_principalobjectattributeaccess"); + } + } + + /// + /// 1:N CampaignActivity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ProcessSessions")] + public System.Collections.Generic.IEnumerable CampaignActivity_ProcessSessions + { + get + { + return this.GetRelatedEntities("CampaignActivity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ProcessSessions"); + this.SetRelatedEntities("CampaignActivity_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignActivity_ProcessSessions"); + } + } + + /// + /// 1:N CampaignActivity_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_QueueItem")] + public System.Collections.Generic.IEnumerable CampaignActivity_QueueItem + { + get + { + return this.GetRelatedEntities("CampaignActivity_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_QueueItem"); + this.SetRelatedEntities("CampaignActivity_QueueItem", null, value); + this.OnPropertyChanged("CampaignActivity_QueueItem"); + } + } + + /// + /// 1:N CampaignActivity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable CampaignActivity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("CampaignActivity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_RecurringAppointmentMasters"); + this.SetRelatedEntities("CampaignActivity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("CampaignActivity_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N CampaignActivity_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Tasks")] + public System.Collections.Generic.IEnumerable CampaignActivity_Tasks + { + get + { + return this.GetRelatedEntities("CampaignActivity_Tasks", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Tasks"); + this.SetRelatedEntities("CampaignActivity_Tasks", null, value); + this.OnPropertyChanged("CampaignActivity_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivity")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignactivity + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignactivity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivity"); + this.SetRelatedEntities("userentityinstancedata_campaignactivity", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivity"); + } + } + + /// + /// N:N campaignactivitylist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitylist_association")] + public System.Collections.Generic.IEnumerable campaignactivitylist_association + { + get + { + return this.GetRelatedEntities("campaignactivitylist_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitylist_association"); + this.SetRelatedEntities("campaignactivitylist_association", null, value); + this.OnPropertyChanged("campaignactivitylist_association"); + } + } + + /// + /// N:N campaignactivitysalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitysalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignactivitysalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignactivitysalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitysalesliterature_association"); + this.SetRelatedEntities("campaignactivitysalesliterature_association", null, value); + this.OnPropertyChanged("campaignactivitysalesliterature_association"); + } + } + + /// + /// N:1 activity_pointer_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_campaignactivity + { + get + { + return this.GetRelatedEntity("activity_pointer_campaignactivity", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignactivity"); + this.SetRelatedEntity("activity_pointer_campaignactivity", null, value); + this.OnPropertyChanged("activity_pointer_campaignactivity"); + } + } + + /// + /// N:1 business_unit_campaignactivity_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignactivity_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_campaignactivity_activities + { + get + { + return this.GetRelatedEntity("business_unit_campaignactivity_activities", null); + } + } + + /// + /// N:1 Campaign_CampaignActivities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignActivities")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_CampaignActivities + { + get + { + return this.GetRelatedEntity("Campaign_CampaignActivities", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignActivities"); + this.SetRelatedEntity("Campaign_CampaignActivities", null, value); + this.OnPropertyChanged("Campaign_CampaignActivities"); + } + } + + /// + /// N:1 lk_campaignactivity_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_createdby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_createdby", null); + } + } + + /// + /// N:1 lk_campaignactivity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_campaignactivity_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_modifiedby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_modifiedby", null); + } + } + + /// + /// N:1 lk_campaignactivity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignactivity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignactivity_modifiedonbehalfby", null); + } + } + + /// + /// N:1 processstage_campaignactivities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignactivities")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_campaignactivities + { + get + { + return this.GetRelatedEntity("processstage_campaignactivities", null); + } + set + { + this.OnPropertyChanging("processstage_campaignactivities"); + this.SetRelatedEntity("processstage_campaignactivities", null, value); + this.OnPropertyChanged("processstage_campaignactivities"); + } + } + + /// + /// N:1 team_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.Team team_campaignactivity + { + get + { + return this.GetRelatedEntity("team_campaignactivity", null); + } + } + + /// + /// N:1 transactioncurrency_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_campaignactivity + { + get + { + return this.GetRelatedEntity("transactioncurrency_campaignactivity", null); + } + } + + /// + /// N:1 user_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_campaignactivity + { + get + { + return this.GetRelatedEntity("user_campaignactivity", null); + } + } + } + + /// + /// Work item of a campaign activity, such as a list or sales literature. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignactivityitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignActivityItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignActivityItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignactivityitem"; + + public const int EntityTypeCode = 4404; + + 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 campaign activity for the item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityid")] + public Microsoft.Xrm.Sdk.EntityReference CampaignActivityId + { + get + { + return this.GetAttributeValue("campaignactivityid"); + } + set + { + this.OnPropertyChanging("CampaignActivityId"); + this.SetAttributeValue("campaignactivityid", value); + this.OnPropertyChanged("CampaignActivityId"); + } + } + + /// + /// Unique identifier of the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityitemid")] + public System.Nullable CampaignActivityItemId + { + get + { + return this.GetAttributeValue>("campaignactivityitemid"); + } + set + { + this.OnPropertyChanging("CampaignActivityItemId"); + this.SetAttributeValue("campaignactivityitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CampaignActivityItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CampaignActivityItemId = value; + } + } + + /// + /// Unique identifier of the item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("itemid")] + public System.Nullable ItemId + { + get + { + return this.GetAttributeValue>("itemid"); + } + set + { + this.OnPropertyChanging("ItemId"); + this.SetAttributeValue("itemid", value); + this.OnPropertyChanged("ItemId"); + } + } + + /// + /// Identification of the type of the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("itemobjecttypecode")] + public string ItemObjectTypeCode + { + get + { + return this.GetAttributeValue("itemobjecttypecode"); + } + set + { + this.OnPropertyChanging("ItemObjectTypeCode"); + this.SetAttributeValue("itemobjecttypecode", value); + this.OnPropertyChanged("ItemObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user or team who owns the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user that owns the campaign activity item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_campaignactivityitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivityitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignactivityitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignactivityitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivityitem"); + this.SetRelatedEntities("userentityinstancedata_campaignactivityitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivityitem"); + } + } + + /// + /// N:N campaignactivitylist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitylist_association")] + public System.Collections.Generic.IEnumerable campaignactivitylist_association + { + get + { + return this.GetRelatedEntities("campaignactivitylist_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitylist_association"); + this.SetRelatedEntities("campaignactivitylist_association", null, value); + this.OnPropertyChanged("campaignactivitylist_association"); + } + } + + /// + /// N:N campaignactivitysalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitysalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignactivitysalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignactivitysalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitysalesliterature_association"); + this.SetRelatedEntities("campaignactivitysalesliterature_association", null, value); + this.OnPropertyChanged("campaignactivitysalesliterature_association"); + } + } + + /// + /// N:1 ActivityPointer_CampaignActivityItems + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_CampaignActivityItems")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_CampaignActivityItems + { + get + { + return this.GetRelatedEntity("ActivityPointer_CampaignActivityItems", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_CampaignActivityItems"); + this.SetRelatedEntity("ActivityPointer_CampaignActivityItems", null, value); + this.OnPropertyChanged("ActivityPointer_CampaignActivityItems"); + } + } + } + + /// + /// Work item in a campaign, a list or sales literature. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignitem"; + + public const int EntityTypeCode = 4403; + + 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 campaign that is associated with the individual item. + /// + [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"); + } + } + + /// + /// Unique identifier of the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignitemid")] + public System.Nullable CampaignItemId + { + get + { + return this.GetAttributeValue>("campaignitemid"); + } + set + { + this.OnPropertyChanging("CampaignItemId"); + this.SetAttributeValue("campaignitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CampaignItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CampaignItemId = value; + } + } + + /// + /// Unique identifier of the entity for the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityid")] + public System.Nullable EntityId + { + get + { + return this.GetAttributeValue>("entityid"); + } + set + { + this.OnPropertyChanging("EntityId"); + this.SetAttributeValue("entityid", value); + this.OnPropertyChanged("EntityId"); + } + } + + /// + /// Object type of entity for the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitytype")] + public string EntityType + { + get + { + return this.GetAttributeValue("entitytype"); + } + set + { + this.OnPropertyChanging("EntityType"); + this.SetAttributeValue("entitytype", value); + this.OnPropertyChanged("EntityType"); + } + } + + /// + /// Unique identifier of the user or team who owns the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user that owns the campaign item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_campaignitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignitem"); + this.SetRelatedEntities("userentityinstancedata_campaignitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignitem"); + } + } + + /// + /// N:N campaigncampaign_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaigncampaign_association")] + public System.Collections.Generic.IEnumerable campaigncampaign_association + { + get + { + return this.GetRelatedEntities("campaigncampaign_association", null); + } + set + { + this.OnPropertyChanging("campaigncampaign_association"); + this.SetRelatedEntities("campaigncampaign_association", null, value); + this.OnPropertyChanged("campaigncampaign_association"); + } + } + + /// + /// N:N campaignlist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignlist_association")] + public System.Collections.Generic.IEnumerable campaignlist_association + { + get + { + return this.GetRelatedEntities("campaignlist_association", null); + } + set + { + this.OnPropertyChanging("campaignlist_association"); + this.SetRelatedEntities("campaignlist_association", null, value); + this.OnPropertyChanged("campaignlist_association"); + } + } + + /// + /// N:N campaignproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignproduct_association")] + public System.Collections.Generic.IEnumerable campaignproduct_association + { + get + { + return this.GetRelatedEntities("campaignproduct_association", null); + } + set + { + this.OnPropertyChanging("campaignproduct_association"); + this.SetRelatedEntities("campaignproduct_association", null, value); + this.OnPropertyChanged("campaignproduct_association"); + } + } + + /// + /// N:N campaignsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignsalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignsalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignsalesliterature_association"); + this.SetRelatedEntities("campaignsalesliterature_association", null, value); + this.OnPropertyChanged("campaignsalesliterature_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum CampaignResponseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Response from an existing or a potential new customer for a campaign. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("campaignresponse")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CampaignResponse : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CampaignResponse() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "campaignresponse"; + + public const int EntityTypeCode = 4401; + + 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 campaign response. + /// + [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"); + } + } + + /// + /// Type the number of minutes spent on this activity. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the date when the campaign response was actually completed. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the campaign response. + /// + [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"); + } + } + + /// + /// Type a category to identify the campaign response type, such as new business development or customer retention, to tie the campaign response to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Select how the response was received, such as phone, letter, fax, or email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channeltypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ChannelTypeCode + { + get + { + return this.GetAttributeValue("channeltypecode"); + } + set + { + this.OnPropertyChanging("ChannelTypeCode"); + this.SetAttributeValue("channeltypecode", value); + this.OnPropertyChanged("ChannelTypeCode"); + } + } + + /// + /// Type the name of the company if the campaign response was received from a new prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("companyname")] + public string CompanyName + { + get + { + return this.GetAttributeValue("companyname"); + } + set + { + this.OnPropertyChanging("CompanyName"); + this.SetAttributeValue("companyname", value); + this.OnPropertyChanged("CompanyName"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Enter the account, contact, or lead that submitted the campaign response, if it was received from an existing prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customer")] + public System.Collections.Generic.IEnumerable Customer + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("customer"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Customer"); + if ((value == null)) + { + this.SetAttributeValue("customer", value); + } + else + { + this.SetAttributeValue("customer", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Customer"); + } + } + + /// + /// Type additional information to describe the campaign response, such as key discussion points or objectives. + /// + [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 responder's email address. + /// + [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"); + } + } + + /// + /// Type the responder's fax number. + /// + [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 responder's first name if the campaign response was received from a new prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] + public string FirstName + { + get + { + return this.GetAttributeValue("firstname"); + } + set + { + this.OnPropertyChanging("FirstName"); + this.SetAttributeValue("firstname", value); + this.OnPropertyChanged("FirstName"); + } + } + + /// + /// For system use only. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the campaign response 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the campaign response is created by 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"); + } + } + + /// + /// Type the responder's last name if the campaign response was received from a new prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] + public string LastName + { + get + { + return this.GetAttributeValue("lastname"); + } + set + { + this.OnPropertyChanging("LastName"); + this.SetAttributeValue("lastname", value); + this.OnPropertyChanged("LastName"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Choose the phone call, email, fax, letter, or appointment activity that led the prospect or customer to respond to the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingActivityId + { + get + { + return this.GetAttributeValue("originatingactivityid"); + } + set + { + this.OnPropertyChanging("OriginatingActivityId"); + this.SetAttributeValue("originatingactivityid", value); + this.OnPropertyChanged("OriginatingActivityId"); + } + } + + /// + /// 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 for the business unit that owns the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Enter the vendor account or contact to capture any third-party used to obtain the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partner")] + public System.Collections.Generic.IEnumerable Partner + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("partner"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Partner"); + if ((value == null)) + { + this.SetAttributeValue("partner", value); + } + else + { + this.SetAttributeValue("partner", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Partner"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 a promotional code to track sales related to the campaign response or to allow the responder to redeem a discount offer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("promotioncodename")] + public string PromotionCodeName + { + get + { + return this.GetAttributeValue("promotioncodename"); + } + set + { + this.OnPropertyChanging("PromotionCodeName"); + this.SetAttributeValue("promotioncodename", value); + this.OnPropertyChanged("PromotionCodeName"); + } + } + + /// + /// Enter the date when the campaign response was received. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("receivedon")] + public System.Nullable ReceivedOn + { + get + { + return this.GetAttributeValue>("receivedon"); + } + set + { + this.OnPropertyChanging("ReceivedOn"); + this.SetAttributeValue("receivedon", value); + this.OnPropertyChanged("ReceivedOn"); + } + } + + /// + /// Choose the parent campaign so that the campaign's response rate is tracked correctly. + /// + [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"); + } + } + + /// + /// Select the type of response from the prospect or customer to indicate their interest in the campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("responsecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ResponseCode + { + get + { + return this.GetAttributeValue("responsecode"); + } + set + { + this.OnPropertyChanging("ResponseCode"); + this.SetAttributeValue("responsecode", value); + this.OnPropertyChanged("ResponseCode"); + } + } + + /// + /// Scheduled duration of the campaign response in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about the timing of the campaign response. + /// + [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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about the timing of the campaign response. + /// + [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 for the associated service. + /// + [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"); + } + } + + /// + /// 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 campaign response is open, closed, or canceled. Closed and canceled campaign responses are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.CampaignResponseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.CampaignResponseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the campaign response'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"); + } + } + + /// + /// Type a subcategory to identify the campaign response type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Type the responder's primary phone number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone")] + public string Telephone + { + get + { + return this.GetAttributeValue("telephone"); + } + set + { + this.OnPropertyChanging("Telephone"); + this.SetAttributeValue("telephone", value); + this.OnPropertyChanged("Telephone"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 campaign response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 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("yomicompanyname")] + public string YomiCompanyName + { + get + { + return this.GetAttributeValue("yomicompanyname"); + } + set + { + this.OnPropertyChanging("YomiCompanyName"); + this.SetAttributeValue("yomicompanyname", value); + this.OnPropertyChanged("YomiCompanyName"); + } + } + + /// + /// Type the phonetic spelling of the campaign responder's first name, if specified in Japanese, to make sure the name is pronounced correctly in phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Type the phonetic spelling of the campaign responder's last name, if specified in Japanese, to make sure the name is pronounced correctly in phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] + public string YomiLastName + { + get + { + return this.GetAttributeValue("yomilastname"); + } + set + { + this.OnPropertyChanging("YomiLastName"); + this.SetAttributeValue("yomilastname", value); + this.OnPropertyChanged("YomiLastName"); + } + } + + /// + /// 1:N campaignresponse_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_activity_parties")] + public System.Collections.Generic.IEnumerable campaignresponse_activity_parties + { + get + { + return this.GetRelatedEntities("campaignresponse_activity_parties", null); + } + set + { + this.OnPropertyChanging("campaignresponse_activity_parties"); + this.SetRelatedEntities("campaignresponse_activity_parties", null, value); + this.OnPropertyChanged("campaignresponse_activity_parties"); + } + } + + /// + /// 1:N CampaignResponse_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Annotation")] + public System.Collections.Generic.IEnumerable CampaignResponse_Annotation + { + get + { + return this.GetRelatedEntities("CampaignResponse_Annotation", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Annotation"); + this.SetRelatedEntities("CampaignResponse_Annotation", null, value); + this.OnPropertyChanged("CampaignResponse_Annotation"); + } + } + + /// + /// 1:N CampaignResponse_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_AsyncOperations")] + public System.Collections.Generic.IEnumerable CampaignResponse_AsyncOperations + { + get + { + return this.GetRelatedEntities("CampaignResponse_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_AsyncOperations"); + this.SetRelatedEntities("CampaignResponse_AsyncOperations", null, value); + this.OnPropertyChanged("CampaignResponse_AsyncOperations"); + } + } + + /// + /// 1:N CampaignResponse_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CampaignResponse_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CampaignResponse_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_BulkDeleteFailures"); + this.SetRelatedEntities("CampaignResponse_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CampaignResponse_BulkDeleteFailures"); + } + } + + /// + /// 1:N CampaignResponse_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable CampaignResponse_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("CampaignResponse_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_DuplicateBaseRecord"); + this.SetRelatedEntities("CampaignResponse_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("CampaignResponse_DuplicateBaseRecord"); + } + } + + /// + /// 1:N CampaignResponse_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable CampaignResponse_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("CampaignResponse_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_DuplicateMatchingRecord"); + this.SetRelatedEntities("CampaignResponse_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("CampaignResponse_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N CampaignResponse_Lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Lead")] + public System.Collections.Generic.IEnumerable CampaignResponse_Lead + { + get + { + return this.GetRelatedEntities("CampaignResponse_Lead", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Lead"); + this.SetRelatedEntities("CampaignResponse_Lead", null, value); + this.OnPropertyChanged("CampaignResponse_Lead"); + } + } + + /// + /// 1:N campaignresponse_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable campaignresponse_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("campaignresponse_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignresponse_principalobjectattributeaccess"); + this.SetRelatedEntities("campaignresponse_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignresponse_principalobjectattributeaccess"); + } + } + + /// + /// 1:N CampaignResponse_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_ProcessSessions")] + public System.Collections.Generic.IEnumerable CampaignResponse_ProcessSessions + { + get + { + return this.GetRelatedEntities("CampaignResponse_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_ProcessSessions"); + this.SetRelatedEntities("CampaignResponse_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignResponse_ProcessSessions"); + } + } + + /// + /// 1:N CampaignResponse_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_QueueItem")] + public System.Collections.Generic.IEnumerable CampaignResponse_QueueItem + { + get + { + return this.GetRelatedEntities("CampaignResponse_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_QueueItem"); + this.SetRelatedEntities("CampaignResponse_QueueItem", null, value); + this.OnPropertyChanged("CampaignResponse_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignresponse")] + public System.Collections.Generic.IEnumerable userentityinstancedata_campaignresponse + { + get + { + return this.GetRelatedEntities("userentityinstancedata_campaignresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignresponse"); + this.SetRelatedEntities("userentityinstancedata_campaignresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignresponse"); + } + } + + /// + /// N:1 activity_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_campaignresponse + { + get + { + return this.GetRelatedEntity("activity_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_campaignresponse"); + this.SetRelatedEntity("activity_campaignresponse", null, value); + this.OnPropertyChanged("activity_campaignresponse"); + } + } + + /// + /// N:1 activity_pointer_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_campaignresponse + { + get + { + return this.GetRelatedEntity("activity_pointer_campaignresponse", null); + } + set + { + this.OnPropertyChanging("activity_pointer_campaignresponse"); + this.SetRelatedEntity("activity_pointer_campaignresponse", null, value); + this.OnPropertyChanged("activity_pointer_campaignresponse"); + } + } + + /// + /// N:1 appointment_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_campaignresponse + { + get + { + return this.GetRelatedEntity("appointment_campaignresponse", null); + } + set + { + this.OnPropertyChanging("appointment_campaignresponse"); + this.SetRelatedEntity("appointment_campaignresponse", null, value); + this.OnPropertyChanged("appointment_campaignresponse"); + } + } + + /// + /// N:1 BulkOperation_CampaignResponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_CampaignResponse")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_CampaignResponse + { + get + { + return this.GetRelatedEntity("BulkOperation_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("BulkOperation_CampaignResponse"); + this.SetRelatedEntity("BulkOperation_CampaignResponse", null, value); + this.OnPropertyChanged("BulkOperation_CampaignResponse"); + } + } + + /// + /// N:1 business_unit_campaignresponse_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_campaignresponse_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_campaignresponse_activities + { + get + { + return this.GetRelatedEntity("business_unit_campaignresponse_activities", null); + } + } + + /// + /// N:1 Campaign_CampaignResponses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_CampaignResponses")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_CampaignResponses + { + get + { + return this.GetRelatedEntity("Campaign_CampaignResponses", null); + } + set + { + this.OnPropertyChanging("Campaign_CampaignResponses"); + this.SetRelatedEntity("Campaign_CampaignResponses", null, value); + this.OnPropertyChanged("Campaign_CampaignResponses"); + } + } + + /// + /// N:1 email_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Email email_campaignresponse + { + get + { + return this.GetRelatedEntity("email_campaignresponse", null); + } + set + { + this.OnPropertyChanging("email_campaignresponse"); + this.SetRelatedEntity("email_campaignresponse", null, value); + this.OnPropertyChanged("email_campaignresponse"); + } + } + + /// + /// N:1 fax_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Fax fax_campaignresponse + { + get + { + return this.GetRelatedEntity("fax_campaignresponse", null); + } + set + { + this.OnPropertyChanging("fax_campaignresponse"); + this.SetRelatedEntity("fax_campaignresponse", null, value); + this.OnPropertyChanged("fax_campaignresponse"); + } + } + + /// + /// N:1 letter_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Letter letter_campaignresponse + { + get + { + return this.GetRelatedEntity("letter_campaignresponse", null); + } + set + { + this.OnPropertyChanging("letter_campaignresponse"); + this.SetRelatedEntity("letter_campaignresponse", null, value); + this.OnPropertyChanged("letter_campaignresponse"); + } + } + + /// + /// N:1 lk_campaignresponse_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_createdby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_createdby", null); + } + } + + /// + /// N:1 lk_campaignresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_campaignresponse_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_modifiedby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_modifiedby", null); + } + } + + /// + /// N:1 lk_campaignresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_campaignresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_campaignresponse_modifiedonbehalfby", null); + } + } + + /// + /// N:1 phonecall_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_campaignresponse + { + get + { + return this.GetRelatedEntity("phonecall_campaignresponse", null); + } + set + { + this.OnPropertyChanging("phonecall_campaignresponse"); + this.SetRelatedEntity("phonecall_campaignresponse", null, value); + this.OnPropertyChanged("phonecall_campaignresponse"); + } + } + + /// + /// N:1 processstage_campaignresponses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignresponses")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_campaignresponses + { + get + { + return this.GetRelatedEntity("processstage_campaignresponses", null); + } + set + { + this.OnPropertyChanging("processstage_campaignresponses"); + this.SetRelatedEntity("processstage_campaignresponses", null, value); + this.OnPropertyChanged("processstage_campaignresponses"); + } + } + + /// + /// N:1 recurringappointmentmaster_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_campaignresponse + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_campaignresponse", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_campaignresponse"); + this.SetRelatedEntity("recurringappointmentmaster_campaignresponse", null, value); + this.OnPropertyChanged("recurringappointmentmaster_campaignresponse"); + } + } + + /// + /// N:1 team_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.Team team_campaignresponse + { + get + { + return this.GetRelatedEntity("team_campaignresponse", null); + } + } + + /// + /// N:1 TransactionCurrency_CampaignResponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CampaignResponse")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_CampaignResponse + { + get + { + return this.GetRelatedEntity("TransactionCurrency_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CampaignResponse"); + this.SetRelatedEntity("TransactionCurrency_CampaignResponse", null, value); + this.OnPropertyChanged("TransactionCurrency_CampaignResponse"); + } + } + + /// + /// N:1 user_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_campaignresponse + { + get + { + return this.GetRelatedEntity("user_campaignresponse", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ColumnMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Mapping for columns in a data map. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("columnmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ColumnMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ColumnMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "columnmapping"; + + public const int EntityTypeCode = 4417; + + 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 column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public System.Nullable ColumnMappingId + { + get + { + return this.GetAttributeValue>("columnmappingid"); + } + set + { + this.OnPropertyChanging("ColumnMappingId"); + this.SetAttributeValue("columnmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ColumnMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ColumnMappingId = value; + } + } + + /// + /// Unique identifier of the user who created the column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the column mapping 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 columnmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the associated data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the column mapping 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 columnmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the column mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Name of the source attribute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceattributename")] + public string SourceAttributeName + { + get + { + return this.GetAttributeValue("sourceattributename"); + } + set + { + this.OnPropertyChanging("SourceAttributeName"); + this.SetAttributeValue("sourceattributename", value); + this.OnPropertyChanged("SourceAttributeName"); + } + } + + /// + /// Name of the source entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Status of the column mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ColumnMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ColumnMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the column mapping. + /// + [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"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM attribute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetattributename")] + public string TargetAttributeName + { + get + { + return this.GetAttributeValue("targetattributename"); + } + set + { + this.OnPropertyChanging("TargetAttributeName"); + this.SetAttributeValue("targetattributename", value); + this.OnPropertyChanged("TargetAttributeName"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// 1:N LookUpMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_ColumnMapping")] + public System.Collections.Generic.IEnumerable LookUpMapping_ColumnMapping + { + get + { + return this.GetRelatedEntities("LookUpMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_ColumnMapping"); + this.SetRelatedEntities("LookUpMapping_ColumnMapping", null, value); + this.OnPropertyChanged("LookUpMapping_ColumnMapping"); + } + } + + /// + /// 1:N PickListMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PickListMapping_ColumnMapping")] + public System.Collections.Generic.IEnumerable PickListMapping_ColumnMapping + { + get + { + return this.GetRelatedEntities("PickListMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("PickListMapping_ColumnMapping"); + this.SetRelatedEntities("PickListMapping_ColumnMapping", null, value); + this.OnPropertyChanged("PickListMapping_ColumnMapping"); + } + } + + /// + /// 1:N userentityinstancedata_columnmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_columnmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_columnmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_columnmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_columnmapping"); + this.SetRelatedEntities("userentityinstancedata_columnmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_columnmapping"); + } + } + + /// + /// N:1 ColumnMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ColumnMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap ColumnMapping_ImportMap + { + get + { + return this.GetRelatedEntity("ColumnMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ColumnMapping_ImportMap"); + this.SetRelatedEntity("ColumnMapping_ImportMap", null, value); + this.OnPropertyChanged("ColumnMapping_ImportMap"); + } + } + + /// + /// N:1 lk_columnmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_createdby", null); + } + } + + /// + /// N:1 lk_columnmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_columnmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_columnmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_columnmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_columnmapping_modifiedonbehalfby", null); + } + } + } + + /// + /// Business competing for the sale represented by a lead or opportunity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("competitor")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Competitor : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Competitor() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "competitor"; + + public const int EntityTypeCode = 123; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 of the competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + set + { + this.OnPropertyChanging("CompetitorId"); + this.SetAttributeValue("competitorid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CompetitorId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CompetitorId = value; + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the competitor's primary product, service, or specialty. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keyproduct")] + public string KeyProduct + { + get + { + return this.GetAttributeValue("keyproduct"); + } + set + { + this.OnPropertyChanging("KeyProduct"); + this.SetAttributeValue("keyproduct", value); + this.OnPropertyChanged("KeyProduct"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type the company or business name used to identify the competitor in data views and related records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type notes or other information about the competitive opportunities or selling points you can make. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunities")] + public string Opportunities + { + get + { + return this.GetAttributeValue("opportunities"); + } + set + { + this.OnPropertyChanging("Opportunities"); + this.SetAttributeValue("opportunities", value); + this.OnPropertyChanged("Opportunities"); + } + } + + /// + /// Unique identifier of the associated 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"); + } + } + + /// + /// Type notes or other information about the competitor's business, such as location, revenue, or distribution channel. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overview")] + public string Overview + { + get + { + return this.GetAttributeValue("overview"); + } + set + { + this.OnPropertyChanging("Overview"); + this.SetAttributeValue("overview", value); + this.OnPropertyChanged("Overview"); + } + } + + /// + /// 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 URL for the website used to obtain reference information about the competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("referenceinfourl")] + public string ReferenceInfoUrl + { + get + { + return this.GetAttributeValue("referenceinfourl"); + } + set + { + this.OnPropertyChanging("ReferenceInfoUrl"); + this.SetAttributeValue("referenceinfourl", value); + this.OnPropertyChanged("ReferenceInfoUrl"); + } + } + + /// + /// Type the amount of revenue reported in the competitor's annual report or other source. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportedrevenue")] + public Microsoft.Xrm.Sdk.Money ReportedRevenue + { + get + { + return this.GetAttributeValue("reportedrevenue"); + } + set + { + this.OnPropertyChanging("ReportedRevenue"); + this.SetAttributeValue("reportedrevenue", value); + this.OnPropertyChanged("ReportedRevenue"); + } + } + + /// + /// Shows the Reported Revenue 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("reportedrevenue_base")] + public Microsoft.Xrm.Sdk.Money ReportedRevenue_Base + { + get + { + return this.GetAttributeValue("reportedrevenue_base"); + } + } + + /// + /// Type the quarter number during which the competitor's reported revenue was recorded or announced for use in reporting and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportingquarter")] + public System.Nullable ReportingQuarter + { + get + { + return this.GetAttributeValue>("reportingquarter"); + } + set + { + this.OnPropertyChanging("ReportingQuarter"); + this.SetAttributeValue("reportingquarter", value); + this.OnPropertyChanged("ReportingQuarter"); + } + } + + /// + /// Type the fiscal year during which the competitor's reported revenue was announced for use in reporting and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportingyear")] + public System.Nullable ReportingYear + { + get + { + return this.GetAttributeValue>("reportingyear"); + } + set + { + this.OnPropertyChanging("ReportingYear"); + this.SetAttributeValue("reportingyear", value); + this.OnPropertyChanged("ReportingYear"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the stock exchange at which the competitor 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"); + } + } + + /// + /// Type notes or other information about the competitor's strengths, such as top-selling products and targeted industries or markets. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("strengths")] + public string Strengths + { + get + { + return this.GetAttributeValue("strengths"); + } + set + { + this.OnPropertyChanging("Strengths"); + this.SetAttributeValue("strengths", value); + this.OnPropertyChanged("Strengths"); + } + } + + /// + /// Type notes or other information about the competitor's threats to your organization when you sell to the same prospect or customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("threats")] + public string Threats + { + get + { + return this.GetAttributeValue("threats"); + } + set + { + this.OnPropertyChanging("Threats"); + this.SetAttributeValue("threats", value); + this.OnPropertyChanged("Threats"); + } + } + + /// + /// Type the stock exchange symbol for the competitor 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type notes or other information about the competitor's weaknesses or areas in which your organization outperforms the competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("weaknesses")] + public string Weaknesses + { + get + { + return this.GetAttributeValue("weaknesses"); + } + set + { + this.OnPropertyChanging("Weaknesses"); + this.SetAttributeValue("weaknesses", value); + this.OnPropertyChanged("Weaknesses"); + } + } + + /// + /// Type the website URL for the competitor. + /// + [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 percentage of your organization's lost opportunities that are won by the competitor to identify your strongest competitors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("winpercentage")] + public System.Nullable WinPercentage + { + get + { + return this.GetAttributeValue>("winpercentage"); + } + set + { + this.OnPropertyChanging("WinPercentage"); + this.SetAttributeValue("winpercentage", value); + this.OnPropertyChanged("WinPercentage"); + } + } + + /// + /// Type the phonetic spelling of the competitor's 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"); + } + } + + /// + /// 1:N Competitor_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_Annotation")] + public System.Collections.Generic.IEnumerable Competitor_Annotation + { + get + { + return this.GetRelatedEntities("Competitor_Annotation", null); + } + set + { + this.OnPropertyChanging("Competitor_Annotation"); + this.SetRelatedEntities("Competitor_Annotation", null, value); + this.OnPropertyChanged("Competitor_Annotation"); + } + } + + /// + /// 1:N Competitor_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_AsyncOperations")] + public System.Collections.Generic.IEnumerable Competitor_AsyncOperations + { + get + { + return this.GetRelatedEntities("Competitor_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Competitor_AsyncOperations"); + this.SetRelatedEntities("Competitor_AsyncOperations", null, value); + this.OnPropertyChanged("Competitor_AsyncOperations"); + } + } + + /// + /// 1:N Competitor_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Competitor_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Competitor_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Competitor_BulkDeleteFailures"); + this.SetRelatedEntities("Competitor_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Competitor_BulkDeleteFailures"); + } + } + + /// + /// 1:N competitor_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections1")] + public System.Collections.Generic.IEnumerable competitor_connections1 + { + get + { + return this.GetRelatedEntities("competitor_connections1", null); + } + set + { + this.OnPropertyChanging("competitor_connections1"); + this.SetRelatedEntities("competitor_connections1", null, value); + this.OnPropertyChanged("competitor_connections1"); + } + } + + /// + /// 1:N competitor_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections2")] + public System.Collections.Generic.IEnumerable competitor_connections2 + { + get + { + return this.GetRelatedEntities("competitor_connections2", null); + } + set + { + this.OnPropertyChanging("competitor_connections2"); + this.SetRelatedEntities("competitor_connections2", null, value); + this.OnPropertyChanged("competitor_connections2"); + } + } + + /// + /// 1:N Competitor_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Competitor_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Competitor_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Competitor_DuplicateBaseRecord"); + this.SetRelatedEntities("Competitor_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Competitor_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Competitor_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Competitor_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Competitor_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Competitor_DuplicateMatchingRecord"); + this.SetRelatedEntities("Competitor_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Competitor_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N competitor_opportunity_activities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_opportunity_activities")] + public System.Collections.Generic.IEnumerable competitor_opportunity_activities + { + get + { + return this.GetRelatedEntities("competitor_opportunity_activities", null); + } + set + { + this.OnPropertyChanging("competitor_opportunity_activities"); + this.SetRelatedEntities("competitor_opportunity_activities", null, value); + this.OnPropertyChanged("competitor_opportunity_activities"); + } + } + + /// + /// 1:N competitor_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_PostFollows")] + public System.Collections.Generic.IEnumerable competitor_PostFollows + { + get + { + return this.GetRelatedEntities("competitor_PostFollows", null); + } + set + { + this.OnPropertyChanging("competitor_PostFollows"); + this.SetRelatedEntities("competitor_PostFollows", null, value); + this.OnPropertyChanged("competitor_PostFollows"); + } + } + + /// + /// 1:N competitor_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable competitor_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("competitor_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("competitor_principalobjectattributeaccess"); + this.SetRelatedEntities("competitor_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("competitor_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Competitor_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_ProcessSessions")] + public System.Collections.Generic.IEnumerable Competitor_ProcessSessions + { + get + { + return this.GetRelatedEntities("Competitor_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Competitor_ProcessSessions"); + this.SetRelatedEntities("Competitor_ProcessSessions", null, value); + this.OnPropertyChanged("Competitor_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_competitor + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitor")] + public System.Collections.Generic.IEnumerable userentityinstancedata_competitor + { + get + { + return this.GetRelatedEntities("userentityinstancedata_competitor", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitor"); + this.SetRelatedEntities("userentityinstancedata_competitor", null, value); + this.OnPropertyChanged("userentityinstancedata_competitor"); + } + } + + /// + /// N:N competitorproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorproduct_association")] + public System.Collections.Generic.IEnumerable competitorproduct_association + { + get + { + return this.GetRelatedEntities("competitorproduct_association", null); + } + set + { + this.OnPropertyChanging("competitorproduct_association"); + this.SetRelatedEntities("competitorproduct_association", null, value); + this.OnPropertyChanged("competitorproduct_association"); + } + } + + /// + /// N:N competitorsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorsalesliterature_association")] + public System.Collections.Generic.IEnumerable competitorsalesliterature_association + { + get + { + return this.GetRelatedEntities("competitorsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("competitorsalesliterature_association"); + this.SetRelatedEntities("competitorsalesliterature_association", null, value); + this.OnPropertyChanged("competitorsalesliterature_association"); + } + } + + /// + /// N:N leadcompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadcompetitors_association")] + public System.Collections.Generic.IEnumerable leadcompetitors_association + { + get + { + return this.GetRelatedEntities("leadcompetitors_association", null); + } + set + { + this.OnPropertyChanging("leadcompetitors_association"); + this.SetRelatedEntities("leadcompetitors_association", null, value); + this.OnPropertyChanged("leadcompetitors_association"); + } + } + + /// + /// N:N opportunitycompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunitycompetitors_association")] + public System.Collections.Generic.IEnumerable opportunitycompetitors_association + { + get + { + return this.GetRelatedEntities("opportunitycompetitors_association", null); + } + set + { + this.OnPropertyChanging("opportunitycompetitors_association"); + this.SetRelatedEntities("opportunitycompetitors_association", null, value); + this.OnPropertyChanged("opportunitycompetitors_association"); + } + } + + /// + /// N:1 lk_competitor_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitor_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_competitor_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_competitor_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitor_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_competitor_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_competitorbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitorbase_createdby + { + get + { + return this.GetRelatedEntity("lk_competitorbase_createdby", null); + } + } + + /// + /// N:1 lk_competitorbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_competitorbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_competitorbase_modifiedby", null); + } + } + + /// + /// N:1 organization_competitors + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_competitors")] + public Xrm.Framework.CI.Common.Entities.Organization organization_competitors + { + get + { + return this.GetRelatedEntity("organization_competitors", null); + } + } + + /// + /// N:1 processstage_competitors + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_competitors")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_competitors + { + get + { + return this.GetRelatedEntity("processstage_competitors", null); + } + set + { + this.OnPropertyChanging("processstage_competitors"); + this.SetRelatedEntity("processstage_competitors", null, value); + this.OnPropertyChanged("processstage_competitors"); + } + } + + /// + /// N:1 transactioncurrency_competitor + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_competitor")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_competitor + { + get + { + return this.GetRelatedEntity("transactioncurrency_competitor", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_competitor"); + this.SetRelatedEntity("transactioncurrency_competitor", null, value); + this.OnPropertyChanged("transactioncurrency_competitor"); + } + } + } + + /// + /// Association between a competitor and a product offered by the competitor. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("competitorproduct")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CompetitorProduct : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CompetitorProduct() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "competitorproduct"; + + public const int EntityTypeCode = 1006; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the competitor product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorproductid")] + public System.Nullable CompetitorProductId + { + get + { + return this.GetAttributeValue>("competitorproductid"); + } + set + { + this.OnPropertyChanging("CompetitorProductId"); + this.SetAttributeValue("competitorproductid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CompetitorProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorproductid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CompetitorProductId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_competitorproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorproduct")] + public System.Collections.Generic.IEnumerable userentityinstancedata_competitorproduct + { + get + { + return this.GetRelatedEntities("userentityinstancedata_competitorproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorproduct"); + this.SetRelatedEntities("userentityinstancedata_competitorproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorproduct"); + } + } + + /// + /// N:N competitorproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorproduct_association")] + public System.Collections.Generic.IEnumerable competitorproduct_association + { + get + { + return this.GetRelatedEntities("competitorproduct_association", null); + } + set + { + this.OnPropertyChanging("competitorproduct_association"); + this.SetRelatedEntities("competitorproduct_association", null, value); + this.OnPropertyChanged("competitorproduct_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("competitorsalesliterature")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CompetitorSalesLiterature : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CompetitorSalesLiterature() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "competitorsalesliterature"; + + public const int EntityTypeCode = 26; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the sales literature for the competitor product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorsalesliteratureid")] + public System.Nullable CompetitorSalesLiteratureId + { + get + { + return this.GetAttributeValue>("competitorsalesliteratureid"); + } + set + { + this.OnPropertyChanging("CompetitorSalesLiteratureId"); + this.SetAttributeValue("competitorsalesliteratureid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CompetitorSalesLiteratureId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorsalesliteratureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CompetitorSalesLiteratureId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public System.Nullable SalesLiteratureId + { + get + { + return this.GetAttributeValue>("salesliteratureid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_competitorsalesliterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorsalesliterature")] + public System.Collections.Generic.IEnumerable userentityinstancedata_competitorsalesliterature + { + get + { + return this.GetRelatedEntities("userentityinstancedata_competitorsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorsalesliterature"); + this.SetRelatedEntities("userentityinstancedata_competitorsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorsalesliterature"); + } + } + + /// + /// N:N competitorsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorsalesliterature_association")] + public System.Collections.Generic.IEnumerable competitorsalesliterature_association + { + get + { + return this.GetRelatedEntities("competitorsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("competitorsalesliterature_association"); + this.SetRelatedEntities("competitorsalesliterature_association", null, value); + this.OnPropertyChanged("competitorsalesliterature_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ConnectionState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Relationship between two entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connection")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Connection : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Connection() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connection"; + + public const int EntityTypeCode = 3234; + + 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 connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionid")] + public System.Nullable ConnectionId + { + get + { + return this.GetAttributeValue>("connectionid"); + } + set + { + this.OnPropertyChanging("ConnectionId"); + this.SetAttributeValue("connectionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionId = value; + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the connection, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Enter the end date of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveend")] + public System.Nullable EffectiveEnd + { + get + { + return this.GetAttributeValue>("effectiveend"); + } + set + { + this.OnPropertyChanging("EffectiveEnd"); + this.SetAttributeValue("effectiveend", value); + this.OnPropertyChanged("EffectiveEnd"); + } + } + + /// + /// Enter the start date of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivestart")] + public System.Nullable EffectiveStart + { + get + { + return this.GetAttributeValue>("effectivestart"); + } + set + { + this.OnPropertyChanging("EffectiveStart"); + this.SetAttributeValue("effectivestart", value); + this.OnPropertyChanged("EffectiveStart"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indicates that this is the master record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismaster")] + public System.Nullable IsMaster + { + get + { + return this.GetAttributeValue>("ismaster"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Name of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the source record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + public Microsoft.Xrm.Sdk.EntityReference Record1Id + { + get + { + return this.GetAttributeValue("record1id"); + } + set + { + this.OnPropertyChanging("Record1Id"); + this.SetAttributeValue("record1id", value); + this.OnPropertyChanged("Record1Id"); + } + } + + /// + /// Shows the record type of the source record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1objecttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Record1ObjectTypeCode + { + get + { + return this.GetAttributeValue("record1objecttypecode"); + } + } + + /// + /// Choose the primary party's role or relationship with the second party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1roleid")] + public Microsoft.Xrm.Sdk.EntityReference Record1RoleId + { + get + { + return this.GetAttributeValue("record1roleid"); + } + set + { + this.OnPropertyChanging("Record1RoleId"); + this.SetAttributeValue("record1roleid", value); + this.OnPropertyChanged("Record1RoleId"); + } + } + + /// + /// Unique identifier of the target record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + public Microsoft.Xrm.Sdk.EntityReference Record2Id + { + get + { + return this.GetAttributeValue("record2id"); + } + set + { + this.OnPropertyChanging("Record2Id"); + this.SetAttributeValue("record2id", value); + this.OnPropertyChanged("Record2Id"); + } + } + + /// + /// Shows the record type of the target record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2objecttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Record2ObjectTypeCode + { + get + { + return this.GetAttributeValue("record2objecttypecode"); + } + } + + /// + /// Choose the secondary party's role or relationship with the primary party. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2roleid")] + public Microsoft.Xrm.Sdk.EntityReference Record2RoleId + { + get + { + return this.GetAttributeValue("record2roleid"); + } + set + { + this.OnPropertyChanging("Record2RoleId"); + this.SetAttributeValue("record2roleid", value); + this.OnPropertyChanged("Record2RoleId"); + } + } + + /// + /// Unique identifier for the reciprocal connection record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedconnectionid")] + public Microsoft.Xrm.Sdk.EntityReference RelatedConnectionId + { + get + { + return this.GetAttributeValue("relatedconnectionid"); + } + } + + /// + /// Shows whether the connection is active or inactive. Inactive connections 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 ((Xrm.Framework.CI.Common.Entities.ConnectionState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ConnectionState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the connection. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version number of the connection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Connection_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_AsyncOperations")] + public System.Collections.Generic.IEnumerable Connection_AsyncOperations + { + get + { + return this.GetRelatedEntities("Connection_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_AsyncOperations"); + this.SetRelatedEntities("Connection_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_AsyncOperations"); + } + } + + /// + /// 1:N connection_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable connection_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("connection_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("connection_principalobjectattributeaccess"); + this.SetRelatedEntities("connection_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("connection_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Connection_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_ProcessSessions")] + public System.Collections.Generic.IEnumerable Connection_ProcessSessions + { + get + { + return this.GetRelatedEntities("Connection_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Connection_ProcessSessions"); + this.SetRelatedEntities("Connection_ProcessSessions", null, value); + this.OnPropertyChanged("Connection_ProcessSessions"); + } + } + + /// + /// 1:N connection_related_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedconnection_related_connection + { + get + { + return this.GetRelatedEntities("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedconnection_related_connection"); + this.SetRelatedEntities("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedconnection_related_connection"); + } + } + + /// + /// 1:N userentityinstancedata_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connection")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connection + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connection", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connection"); + this.SetRelatedEntities("userentityinstancedata_connection", null, value); + this.OnPropertyChanged("userentityinstancedata_connection"); + } + } + + /// + /// N:1 account_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections1")] + public Xrm.Framework.CI.Common.Entities.Account account_connections1 + { + get + { + return this.GetRelatedEntity("account_connections1", null); + } + set + { + this.OnPropertyChanging("account_connections1"); + this.SetRelatedEntity("account_connections1", null, value); + this.OnPropertyChanged("account_connections1"); + } + } + + /// + /// N:1 account_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_connections2")] + public Xrm.Framework.CI.Common.Entities.Account account_connections2 + { + get + { + return this.GetRelatedEntity("account_connections2", null); + } + set + { + this.OnPropertyChanging("account_connections2"); + this.SetRelatedEntity("account_connections2", null, value); + this.OnPropertyChanged("account_connections2"); + } + } + + /// + /// N:1 activitypointer_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections1")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activitypointer_connections1 + { + get + { + return this.GetRelatedEntity("activitypointer_connections1", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections1"); + this.SetRelatedEntity("activitypointer_connections1", null, value); + this.OnPropertyChanged("activitypointer_connections1"); + } + } + + /// + /// N:1 activitypointer_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_connections2")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activitypointer_connections2 + { + get + { + return this.GetRelatedEntity("activitypointer_connections2", null); + } + set + { + this.OnPropertyChanging("activitypointer_connections2"); + this.SetRelatedEntity("activitypointer_connections2", null, value); + this.OnPropertyChanged("activitypointer_connections2"); + } + } + + /// + /// N:1 appointment_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections1")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_connections1 + { + get + { + return this.GetRelatedEntity("appointment_connections1", null); + } + set + { + this.OnPropertyChanging("appointment_connections1"); + this.SetRelatedEntity("appointment_connections1", null, value); + this.OnPropertyChanged("appointment_connections1"); + } + } + + /// + /// N:1 appointment_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_connections2")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_connections2 + { + get + { + return this.GetRelatedEntity("appointment_connections2", null); + } + set + { + this.OnPropertyChanging("appointment_connections2"); + this.SetRelatedEntity("appointment_connections2", null, value); + this.OnPropertyChanged("appointment_connections2"); + } + } + + /// + /// N:1 business_unit_connections + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_connections")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_connections + { + get + { + return this.GetRelatedEntity("business_unit_connections", null); + } + } + + /// + /// N:1 campaign_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections1")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_connections1 + { + get + { + return this.GetRelatedEntity("campaign_connections1", null); + } + set + { + this.OnPropertyChanging("campaign_connections1"); + this.SetRelatedEntity("campaign_connections1", null, value); + this.OnPropertyChanged("campaign_connections1"); + } + } + + /// + /// N:1 campaign_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_connections2")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_connections2 + { + get + { + return this.GetRelatedEntity("campaign_connections2", null); + } + set + { + this.OnPropertyChanging("campaign_connections2"); + this.SetRelatedEntity("campaign_connections2", null, value); + this.OnPropertyChanged("campaign_connections2"); + } + } + + /// + /// N:1 campaignactivity_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections1")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_connections1 + { + get + { + return this.GetRelatedEntity("campaignactivity_connections1", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections1"); + this.SetRelatedEntity("campaignactivity_connections1", null, value); + this.OnPropertyChanged("campaignactivity_connections1"); + } + } + + /// + /// N:1 campaignactivity_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_connections2")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_connections2 + { + get + { + return this.GetRelatedEntity("campaignactivity_connections2", null); + } + set + { + this.OnPropertyChanging("campaignactivity_connections2"); + this.SetRelatedEntity("campaignactivity_connections2", null, value); + this.OnPropertyChanged("campaignactivity_connections2"); + } + } + + /// + /// N:1 competitor_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections1")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_connections1 + { + get + { + return this.GetRelatedEntity("competitor_connections1", null); + } + set + { + this.OnPropertyChanging("competitor_connections1"); + this.SetRelatedEntity("competitor_connections1", null, value); + this.OnPropertyChanged("competitor_connections1"); + } + } + + /// + /// N:1 competitor_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_connections2")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_connections2 + { + get + { + return this.GetRelatedEntity("competitor_connections2", null); + } + set + { + this.OnPropertyChanging("competitor_connections2"); + this.SetRelatedEntity("competitor_connections2", null, value); + this.OnPropertyChanged("competitor_connections2"); + } + } + + /// + /// N:1 connection_related_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedconnectionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Connection Referencingconnection_related_connection + { + get + { + return this.GetRelatedEntity("connection_related_connection", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 connection_role_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1roleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections1")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole connection_role_connections1 + { + get + { + return this.GetRelatedEntity("connection_role_connections1", null); + } + set + { + this.OnPropertyChanging("connection_role_connections1"); + this.SetRelatedEntity("connection_role_connections1", null, value); + this.OnPropertyChanged("connection_role_connections1"); + } + } + + /// + /// N:1 connection_role_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2roleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections2")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole connection_role_connections2 + { + get + { + return this.GetRelatedEntity("connection_role_connections2", null); + } + set + { + this.OnPropertyChanging("connection_role_connections2"); + this.SetRelatedEntity("connection_role_connections2", null, value); + this.OnPropertyChanged("connection_role_connections2"); + } + } + + /// + /// N:1 constraintbasedgroup_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections1")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraintbasedgroup_connections1 + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_connections1", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections1"); + this.SetRelatedEntity("constraintbasedgroup_connections1", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections1"); + } + } + + /// + /// N:1 constraintbasedgroup_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections2")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraintbasedgroup_connections2 + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_connections2", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections2"); + this.SetRelatedEntity("constraintbasedgroup_connections2", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections2"); + } + } + + /// + /// N:1 contact_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections1")] + public Xrm.Framework.CI.Common.Entities.Contact contact_connections1 + { + get + { + return this.GetRelatedEntity("contact_connections1", null); + } + set + { + this.OnPropertyChanging("contact_connections1"); + this.SetRelatedEntity("contact_connections1", null, value); + this.OnPropertyChanged("contact_connections1"); + } + } + + /// + /// N:1 contact_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections2")] + public Xrm.Framework.CI.Common.Entities.Contact contact_connections2 + { + get + { + return this.GetRelatedEntity("contact_connections2", null); + } + set + { + this.OnPropertyChanging("contact_connections2"); + this.SetRelatedEntity("contact_connections2", null, value); + this.OnPropertyChanged("contact_connections2"); + } + } + + /// + /// N:1 contract_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections1")] + public Xrm.Framework.CI.Common.Entities.Contract contract_connections1 + { + get + { + return this.GetRelatedEntity("contract_connections1", null); + } + set + { + this.OnPropertyChanging("contract_connections1"); + this.SetRelatedEntity("contract_connections1", null, value); + this.OnPropertyChanged("contract_connections1"); + } + } + + /// + /// N:1 contract_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections2")] + public Xrm.Framework.CI.Common.Entities.Contract contract_connections2 + { + get + { + return this.GetRelatedEntity("contract_connections2", null); + } + set + { + this.OnPropertyChanging("contract_connections2"); + this.SetRelatedEntity("contract_connections2", null, value); + this.OnPropertyChanged("contract_connections2"); + } + } + + /// + /// N:1 createdby_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_connection + { + get + { + return this.GetRelatedEntity("createdby_connection", null); + } + } + + /// + /// N:1 email_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections1")] + public Xrm.Framework.CI.Common.Entities.Email email_connections1 + { + get + { + return this.GetRelatedEntity("email_connections1", null); + } + set + { + this.OnPropertyChanging("email_connections1"); + this.SetRelatedEntity("email_connections1", null, value); + this.OnPropertyChanged("email_connections1"); + } + } + + /// + /// N:1 email_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections2")] + public Xrm.Framework.CI.Common.Entities.Email email_connections2 + { + get + { + return this.GetRelatedEntity("email_connections2", null); + } + set + { + this.OnPropertyChanging("email_connections2"); + this.SetRelatedEntity("email_connections2", null, value); + this.OnPropertyChanged("email_connections2"); + } + } + + /// + /// N:1 equipment_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections1")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_connections1 + { + get + { + return this.GetRelatedEntity("equipment_connections1", null); + } + set + { + this.OnPropertyChanging("equipment_connections1"); + this.SetRelatedEntity("equipment_connections1", null, value); + this.OnPropertyChanged("equipment_connections1"); + } + } + + /// + /// N:1 equipment_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections2")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_connections2 + { + get + { + return this.GetRelatedEntity("equipment_connections2", null); + } + set + { + this.OnPropertyChanging("equipment_connections2"); + this.SetRelatedEntity("equipment_connections2", null, value); + this.OnPropertyChanged("equipment_connections2"); + } + } + + /// + /// N:1 fax_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections1")] + public Xrm.Framework.CI.Common.Entities.Fax fax_connections1 + { + get + { + return this.GetRelatedEntity("fax_connections1", null); + } + set + { + this.OnPropertyChanging("fax_connections1"); + this.SetRelatedEntity("fax_connections1", null, value); + this.OnPropertyChanged("fax_connections1"); + } + } + + /// + /// N:1 fax_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections2")] + public Xrm.Framework.CI.Common.Entities.Fax fax_connections2 + { + get + { + return this.GetRelatedEntity("fax_connections2", null); + } + set + { + this.OnPropertyChanging("fax_connections2"); + this.SetRelatedEntity("fax_connections2", null, value); + this.OnPropertyChanged("fax_connections2"); + } + } + + /// + /// N:1 goal_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections1")] + public Xrm.Framework.CI.Common.Entities.Goal goal_connections1 + { + get + { + return this.GetRelatedEntity("goal_connections1", null); + } + set + { + this.OnPropertyChanging("goal_connections1"); + this.SetRelatedEntity("goal_connections1", null, value); + this.OnPropertyChanged("goal_connections1"); + } + } + + /// + /// N:1 goal_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections2")] + public Xrm.Framework.CI.Common.Entities.Goal goal_connections2 + { + get + { + return this.GetRelatedEntity("goal_connections2", null); + } + set + { + this.OnPropertyChanging("goal_connections2"); + this.SetRelatedEntity("goal_connections2", null, value); + this.OnPropertyChanged("goal_connections2"); + } + } + + /// + /// N:1 incident_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections1")] + public Xrm.Framework.CI.Common.Entities.Incident incident_connections1 + { + get + { + return this.GetRelatedEntity("incident_connections1", null); + } + set + { + this.OnPropertyChanging("incident_connections1"); + this.SetRelatedEntity("incident_connections1", null, value); + this.OnPropertyChanged("incident_connections1"); + } + } + + /// + /// N:1 incident_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections2")] + public Xrm.Framework.CI.Common.Entities.Incident incident_connections2 + { + get + { + return this.GetRelatedEntity("incident_connections2", null); + } + set + { + this.OnPropertyChanging("incident_connections2"); + this.SetRelatedEntity("incident_connections2", null, value); + this.OnPropertyChanged("incident_connections2"); + } + } + + /// + /// N:1 invoice_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections1")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_connections1 + { + get + { + return this.GetRelatedEntity("invoice_connections1", null); + } + set + { + this.OnPropertyChanging("invoice_connections1"); + this.SetRelatedEntity("invoice_connections1", null, value); + this.OnPropertyChanged("invoice_connections1"); + } + } + + /// + /// N:1 invoice_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections2")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_connections2 + { + get + { + return this.GetRelatedEntity("invoice_connections2", null); + } + set + { + this.OnPropertyChanging("invoice_connections2"); + this.SetRelatedEntity("invoice_connections2", null, value); + this.OnPropertyChanged("invoice_connections2"); + } + } + + /// + /// N:1 lead_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections1")] + public Xrm.Framework.CI.Common.Entities.Lead lead_connections1 + { + get + { + return this.GetRelatedEntity("lead_connections1", null); + } + set + { + this.OnPropertyChanging("lead_connections1"); + this.SetRelatedEntity("lead_connections1", null, value); + this.OnPropertyChanged("lead_connections1"); + } + } + + /// + /// N:1 lead_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections2")] + public Xrm.Framework.CI.Common.Entities.Lead lead_connections2 + { + get + { + return this.GetRelatedEntity("lead_connections2", null); + } + set + { + this.OnPropertyChanging("lead_connections2"); + this.SetRelatedEntity("lead_connections2", null, value); + this.OnPropertyChanged("lead_connections2"); + } + } + + /// + /// N:1 letter_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections1")] + public Xrm.Framework.CI.Common.Entities.Letter letter_connections1 + { + get + { + return this.GetRelatedEntity("letter_connections1", null); + } + set + { + this.OnPropertyChanging("letter_connections1"); + this.SetRelatedEntity("letter_connections1", null, value); + this.OnPropertyChanged("letter_connections1"); + } + } + + /// + /// N:1 letter_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections2")] + public Xrm.Framework.CI.Common.Entities.Letter letter_connections2 + { + get + { + return this.GetRelatedEntity("letter_connections2", null); + } + set + { + this.OnPropertyChanging("letter_connections2"); + this.SetRelatedEntity("letter_connections2", null, value); + this.OnPropertyChanged("letter_connections2"); + } + } + + /// + /// N:1 list_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections1")] + public Xrm.Framework.CI.Common.Entities.List list_connections1 + { + get + { + return this.GetRelatedEntity("list_connections1", null); + } + set + { + this.OnPropertyChanging("list_connections1"); + this.SetRelatedEntity("list_connections1", null, value); + this.OnPropertyChanged("list_connections1"); + } + } + + /// + /// N:1 list_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections2")] + public Xrm.Framework.CI.Common.Entities.List list_connections2 + { + get + { + return this.GetRelatedEntity("list_connections2", null); + } + set + { + this.OnPropertyChanging("list_connections2"); + this.SetRelatedEntity("list_connections2", null, value); + this.OnPropertyChanged("list_connections2"); + } + } + + /// + /// N:1 lk_connectionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_connectionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_connection + { + get + { + return this.GetRelatedEntity("modifiedby_connection", null); + } + } + + /// + /// N:1 msdyn_postalbum_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections1")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_connections1 + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_connections1", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections1"); + this.SetRelatedEntity("msdyn_postalbum_connections1", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections1"); + } + } + + /// + /// N:1 msdyn_postalbum_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections2")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_connections2 + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_connections2", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections2"); + this.SetRelatedEntity("msdyn_postalbum_connections2", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections2"); + } + } + + /// + /// N:1 opportunity_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections1")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_connections1 + { + get + { + return this.GetRelatedEntity("opportunity_connections1", null); + } + set + { + this.OnPropertyChanging("opportunity_connections1"); + this.SetRelatedEntity("opportunity_connections1", null, value); + this.OnPropertyChanged("opportunity_connections1"); + } + } + + /// + /// N:1 opportunity_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections2")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_connections2 + { + get + { + return this.GetRelatedEntity("opportunity_connections2", null); + } + set + { + this.OnPropertyChanging("opportunity_connections2"); + this.SetRelatedEntity("opportunity_connections2", null, value); + this.OnPropertyChanged("opportunity_connections2"); + } + } + + /// + /// N:1 phonecall_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections1")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_connections1 + { + get + { + return this.GetRelatedEntity("phonecall_connections1", null); + } + set + { + this.OnPropertyChanging("phonecall_connections1"); + this.SetRelatedEntity("phonecall_connections1", null, value); + this.OnPropertyChanged("phonecall_connections1"); + } + } + + /// + /// N:1 phonecall_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections2")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_connections2 + { + get + { + return this.GetRelatedEntity("phonecall_connections2", null); + } + set + { + this.OnPropertyChanging("phonecall_connections2"); + this.SetRelatedEntity("phonecall_connections2", null, value); + this.OnPropertyChanged("phonecall_connections2"); + } + } + + /// + /// N:1 processsession_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections1")] + public Xrm.Framework.CI.Common.Entities.ProcessSession processsession_connections1 + { + get + { + return this.GetRelatedEntity("processsession_connections1", null); + } + set + { + this.OnPropertyChanging("processsession_connections1"); + this.SetRelatedEntity("processsession_connections1", null, value); + this.OnPropertyChanged("processsession_connections1"); + } + } + + /// + /// N:1 processsession_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections2")] + public Xrm.Framework.CI.Common.Entities.ProcessSession processsession_connections2 + { + get + { + return this.GetRelatedEntity("processsession_connections2", null); + } + set + { + this.OnPropertyChanging("processsession_connections2"); + this.SetRelatedEntity("processsession_connections2", null, value); + this.OnPropertyChanged("processsession_connections2"); + } + } + + /// + /// N:1 quote_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections1")] + public Xrm.Framework.CI.Common.Entities.Quote quote_connections1 + { + get + { + return this.GetRelatedEntity("quote_connections1", null); + } + set + { + this.OnPropertyChanging("quote_connections1"); + this.SetRelatedEntity("quote_connections1", null, value); + this.OnPropertyChanged("quote_connections1"); + } + } + + /// + /// N:1 quote_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections2")] + public Xrm.Framework.CI.Common.Entities.Quote quote_connections2 + { + get + { + return this.GetRelatedEntity("quote_connections2", null); + } + set + { + this.OnPropertyChanging("quote_connections2"); + this.SetRelatedEntity("quote_connections2", null, value); + this.OnPropertyChanged("quote_connections2"); + } + } + + /// + /// N:1 recurringappointmentmaster_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections1")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_connections1 + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_connections1", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections1"); + this.SetRelatedEntity("recurringappointmentmaster_connections1", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections1"); + } + } + + /// + /// N:1 recurringappointmentmaster_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections2")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_connections2 + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_connections2", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections2"); + this.SetRelatedEntity("recurringappointmentmaster_connections2", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections2"); + } + } + + /// + /// N:1 resourcegroup_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections1")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup resourcegroup_connections1 + { + get + { + return this.GetRelatedEntity("resourcegroup_connections1", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections1"); + this.SetRelatedEntity("resourcegroup_connections1", null, value); + this.OnPropertyChanged("resourcegroup_connections1"); + } + } + + /// + /// N:1 resourcegroup_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections2")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup resourcegroup_connections2 + { + get + { + return this.GetRelatedEntity("resourcegroup_connections2", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections2"); + this.SetRelatedEntity("resourcegroup_connections2", null, value); + this.OnPropertyChanged("resourcegroup_connections2"); + } + } + + /// + /// N:1 salesorder_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections1")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_connections1 + { + get + { + return this.GetRelatedEntity("salesorder_connections1", null); + } + set + { + this.OnPropertyChanging("salesorder_connections1"); + this.SetRelatedEntity("salesorder_connections1", null, value); + this.OnPropertyChanged("salesorder_connections1"); + } + } + + /// + /// N:1 salesorder_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections2")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_connections2 + { + get + { + return this.GetRelatedEntity("salesorder_connections2", null); + } + set + { + this.OnPropertyChanging("salesorder_connections2"); + this.SetRelatedEntity("salesorder_connections2", null, value); + this.OnPropertyChanged("salesorder_connections2"); + } + } + + /// + /// N:1 serviceappointment_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections1")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_connections1 + { + get + { + return this.GetRelatedEntity("serviceappointment_connections1", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections1"); + this.SetRelatedEntity("serviceappointment_connections1", null, value); + this.OnPropertyChanged("serviceappointment_connections1"); + } + } + + /// + /// N:1 serviceappointment_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections2")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_connections2 + { + get + { + return this.GetRelatedEntity("serviceappointment_connections2", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections2"); + this.SetRelatedEntity("serviceappointment_connections2", null, value); + this.OnPropertyChanged("serviceappointment_connections2"); + } + } + + /// + /// N:1 systemuser_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections1")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_connections1 + { + get + { + return this.GetRelatedEntity("systemuser_connections1", null); + } + set + { + this.OnPropertyChanging("systemuser_connections1"); + this.SetRelatedEntity("systemuser_connections1", null, value); + this.OnPropertyChanged("systemuser_connections1"); + } + } + + /// + /// N:1 systemuser_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections2")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_connections2 + { + get + { + return this.GetRelatedEntity("systemuser_connections2", null); + } + set + { + this.OnPropertyChanging("systemuser_connections2"); + this.SetRelatedEntity("systemuser_connections2", null, value); + this.OnPropertyChanged("systemuser_connections2"); + } + } + + /// + /// N:1 task_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections1")] + public Xrm.Framework.CI.Common.Entities.Task task_connections1 + { + get + { + return this.GetRelatedEntity("task_connections1", null); + } + set + { + this.OnPropertyChanging("task_connections1"); + this.SetRelatedEntity("task_connections1", null, value); + this.OnPropertyChanged("task_connections1"); + } + } + + /// + /// N:1 task_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections2")] + public Xrm.Framework.CI.Common.Entities.Task task_connections2 + { + get + { + return this.GetRelatedEntity("task_connections2", null); + } + set + { + this.OnPropertyChanging("task_connections2"); + this.SetRelatedEntity("task_connections2", null, value); + this.OnPropertyChanged("task_connections2"); + } + } + + /// + /// N:1 team_connections1 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record1id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections1")] + public Xrm.Framework.CI.Common.Entities.Team team_connections1 + { + get + { + return this.GetRelatedEntity("team_connections1", null); + } + set + { + this.OnPropertyChanging("team_connections1"); + this.SetRelatedEntity("team_connections1", null, value); + this.OnPropertyChanged("team_connections1"); + } + } + + /// + /// N:1 team_connections2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("record2id")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections2")] + public Xrm.Framework.CI.Common.Entities.Team team_connections2 + { + get + { + return this.GetRelatedEntity("team_connections2", null); + } + set + { + this.OnPropertyChanging("team_connections2"); + this.SetRelatedEntity("team_connections2", null, value); + this.OnPropertyChanged("team_connections2"); + } + } + + /// + /// N:1 TransactionCurrency_Connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Connection")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Connection + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Connection", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Connection"); + this.SetRelatedEntity("TransactionCurrency_Connection", null, value); + this.OnPropertyChanged("TransactionCurrency_Connection"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ConnectionRoleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Role describing a relationship between a two records. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connectionrole")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConnectionRole : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConnectionRole() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connectionrole"; + + public const int EntityTypeCode = 3231; + + 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)); + } + } + + /// + /// Categories for connection roles. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public Microsoft.Xrm.Sdk.OptionSetValue Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// State of the component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public System.Nullable ConnectionRoleId + { + get + { + return this.GetAttributeValue>("connectionroleid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleId"); + this.SetAttributeValue("connectionroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionRoleId = value; + } + } + + /// + /// Unique identifier of the published or unpublished connection role record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleidunique")] + public System.Nullable ConnectionRoleIdUnique + { + get + { + return this.GetAttributeValue>("connectionroleidunique"); + } + } + + /// + /// Unique identifier of the user who created the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the connection role 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 relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the connection role was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization that this connection role belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time when the record was last overwritten. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ConnectionRoleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ConnectionRoleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the connection role. + /// + [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"); + } + } + + /// + /// Version number of the connection role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Connection_Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_Role_AsyncOperations")] + public System.Collections.Generic.IEnumerable Connection_Role_AsyncOperations + { + get + { + return this.GetRelatedEntities("Connection_Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Connection_Role_AsyncOperations"); + this.SetRelatedEntities("Connection_Role_AsyncOperations", null, value); + this.OnPropertyChanged("Connection_Role_AsyncOperations"); + } + } + + /// + /// 1:N connection_role_connection_role_object_type_codes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connection_role_object_type_codes")] + public System.Collections.Generic.IEnumerable connection_role_connection_role_object_type_codes + { + get + { + return this.GetRelatedEntities("connection_role_connection_role_object_type_codes", null); + } + set + { + this.OnPropertyChanging("connection_role_connection_role_object_type_codes"); + this.SetRelatedEntities("connection_role_connection_role_object_type_codes", null, value); + this.OnPropertyChanged("connection_role_connection_role_object_type_codes"); + } + } + + /// + /// 1:N connection_role_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections1")] + public System.Collections.Generic.IEnumerable connection_role_connections1 + { + get + { + return this.GetRelatedEntities("connection_role_connections1", null); + } + set + { + this.OnPropertyChanging("connection_role_connections1"); + this.SetRelatedEntities("connection_role_connections1", null, value); + this.OnPropertyChanged("connection_role_connections1"); + } + } + + /// + /// 1:N connection_role_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connections2")] + public System.Collections.Generic.IEnumerable connection_role_connections2 + { + get + { + return this.GetRelatedEntities("connection_role_connections2", null); + } + set + { + this.OnPropertyChanging("connection_role_connections2"); + this.SetRelatedEntities("connection_role_connections2", null, value); + this.OnPropertyChanged("connection_role_connections2"); + } + } + + /// + /// 1:N ConnectionRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConnectionRole_ProcessSessions")] + public System.Collections.Generic.IEnumerable ConnectionRole_ProcessSessions + { + get + { + return this.GetRelatedEntities("ConnectionRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConnectionRole_ProcessSessions"); + this.SetRelatedEntities("ConnectionRole_ProcessSessions", null, value); + this.OnPropertyChanged("ConnectionRole_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_connectionrole + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionrole")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connectionrole + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connectionrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionrole"); + this.SetRelatedEntities("userentityinstancedata_connectionrole", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionrole"); + } + } + + /// + /// N:N connectionroleassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingconnectionroleassociation_association + { + get + { + return this.GetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingconnectionroleassociation_association"); + this.SetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingconnectionroleassociation_association"); + } + } + + /// + /// N:N connectionroleassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedconnectionroleassociation_association + { + get + { + return this.GetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedconnectionroleassociation_association"); + this.SetRelatedEntities("connectionroleassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedconnectionroleassociation_association"); + } + } + + /// + /// N:1 createdby_connection_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_connection_role + { + get + { + return this.GetRelatedEntity("createdby_connection_role", null); + } + } + + /// + /// N:1 lk_connectionrolebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionrolebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionrolebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_connectionrolebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_connectionrolebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_connectionrolebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_connection_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_connection_role + { + get + { + return this.GetRelatedEntity("modifiedby_connection_role", null); + } + } + + /// + /// N:1 organization_connection_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_connection_roles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_connection_roles + { + get + { + return this.GetRelatedEntity("organization_connection_roles", null); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connectionroleassociation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConnectionRoleAssociation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConnectionRoleAssociation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connectionroleassociation"; + + public const int EntityTypeCode = 3232; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedconnectionroleid")] + public System.Nullable AssociatedConnectionRoleId + { + get + { + return this.GetAttributeValue>("associatedconnectionroleid"); + } + set + { + this.OnPropertyChanging("AssociatedConnectionRoleId"); + this.SetAttributeValue("associatedconnectionroleid", value); + this.OnPropertyChanged("AssociatedConnectionRoleId"); + } + } + + /// + /// Unique identifier of the connection role association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleassociationid")] + public System.Nullable ConnectionRoleAssociationId + { + get + { + return this.GetAttributeValue>("connectionroleassociationid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleAssociationId"); + this.SetAttributeValue("connectionroleassociationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionRoleAssociationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleassociationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionRoleAssociationId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public System.Nullable ConnectionRoleId + { + get + { + return this.GetAttributeValue>("connectionroleid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleId"); + this.SetAttributeValue("connectionroleid", value); + this.OnPropertyChanged("ConnectionRoleId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_connectionroleassociation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleassociation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connectionroleassociation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connectionroleassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleassociation"); + this.SetRelatedEntities("userentityinstancedata_connectionroleassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleassociation"); + } + } + + /// + /// N:N connectionroleassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connectionroleassociation_association")] + public System.Collections.Generic.IEnumerable connectionroleassociation_association + { + get + { + return this.GetRelatedEntities("connectionroleassociation_association", null); + } + set + { + this.OnPropertyChanging("connectionroleassociation_association"); + this.SetRelatedEntities("connectionroleassociation_association", null, value); + this.OnPropertyChanged("connectionroleassociation_association"); + } + } + } + + /// + /// Specifies the entity type that can play specific role in a connection. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("connectionroleobjecttypecode")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConnectionRoleObjectTypeCode : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConnectionRoleObjectTypeCode() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "connectionroleobjecttypecode"; + + public const int EntityTypeCode = 3233; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedobjecttypecode")] + public string AssociatedObjectTypeCode + { + get + { + return this.GetAttributeValue("associatedobjecttypecode"); + } + set + { + this.OnPropertyChanging("AssociatedObjectTypeCode"); + this.SetAttributeValue("associatedobjecttypecode", value); + this.OnPropertyChanged("AssociatedObjectTypeCode"); + } + } + + /// + /// Unique identifier of the connection role associated with the Connection Role Object Type Code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + public Microsoft.Xrm.Sdk.EntityReference ConnectionRoleId + { + get + { + return this.GetAttributeValue("connectionroleid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleId"); + this.SetAttributeValue("connectionroleid", value); + this.OnPropertyChanged("ConnectionRoleId"); + } + } + + /// + /// Unique identifier of the connection role object type association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleobjecttypecodeid")] + public System.Nullable ConnectionRoleObjectTypeCodeId + { + get + { + return this.GetAttributeValue>("connectionroleobjecttypecodeid"); + } + set + { + this.OnPropertyChanging("ConnectionRoleObjectTypeCodeId"); + this.SetAttributeValue("connectionroleobjecttypecodeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConnectionRoleObjectTypeCodeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleobjecttypecodeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConnectionRoleObjectTypeCodeId = value; + } + } + + /// + /// Unique identifier of the organization associated with the connectionroleobjecttypecode. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_connectionroleobjecttypecode + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleobjecttypecode")] + public System.Collections.Generic.IEnumerable userentityinstancedata_connectionroleobjecttypecode + { + get + { + return this.GetRelatedEntities("userentityinstancedata_connectionroleobjecttypecode", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleobjecttypecode"); + this.SetRelatedEntities("userentityinstancedata_connectionroleobjecttypecode", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleobjecttypecode"); + } + } + + /// + /// N:1 connection_role_connection_role_object_type_codes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_role_connection_role_object_type_codes")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole connection_role_connection_role_object_type_codes + { + get + { + return this.GetRelatedEntity("connection_role_connection_role_object_type_codes", null); + } + set + { + this.OnPropertyChanging("connection_role_connection_role_object_type_codes"); + this.SetRelatedEntity("connection_role_connection_role_object_type_codes", null, value); + this.OnPropertyChanged("connection_role_connection_role_object_type_codes"); + } + } + } + + /// + /// Group or collection of people, equipment, and/or facilities that can be scheduled. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("constraintbasedgroup")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ConstraintBasedGroup : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ConstraintBasedGroup() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "constraintbasedgroup"; + + public const int EntityTypeCode = 4007; + + 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 business unit that the record owner belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraintbasedgroupid")] + public System.Nullable ConstraintBasedGroupId + { + get + { + return this.GetAttributeValue>("constraintbasedgroupid"); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroupId"); + this.SetAttributeValue("constraintbasedgroupid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ConstraintBasedGroupId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraintbasedgroupid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ConstraintBasedGroupId = value; + } + } + + /// + /// Shows the constraints defined for the users, equipment, teams, and other resource groups included as resources for the group, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraints")] + public string Constraints + { + get + { + return this.GetAttributeValue("constraints"); + } + set + { + this.OnPropertyChanging("Constraints"); + this.SetAttributeValue("constraints", value); + this.OnPropertyChanged("Constraints"); + } + } + + /// + /// Unique identifier of the user who created the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the resource group 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 constraintbasedgroup. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Type additional information to describe the resource group, such as the intended use or associated resource types. + /// + [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 whether the resource group is static, dynamic or hidden. Hidden groups are for system use only and are not viewable in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("grouptypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue GroupTypeCode + { + get + { + return this.GetAttributeValue("grouptypecode"); + } + set + { + this.OnPropertyChanging("GroupTypeCode"); + this.SetAttributeValue("grouptypecode", value); + this.OnPropertyChanged("GroupTypeCode"); + } + } + + /// + /// Unique identifier of the user who last modified the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the resource group 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 constraintbasedgroup. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Type a title or name that describes the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the resource group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N constraint_based_group_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraint_based_group_resource_specs")] + public System.Collections.Generic.IEnumerable constraint_based_group_resource_specs + { + get + { + return this.GetRelatedEntities("constraint_based_group_resource_specs", null); + } + set + { + this.OnPropertyChanging("constraint_based_group_resource_specs"); + this.SetRelatedEntities("constraint_based_group_resource_specs", null, value); + this.OnPropertyChanged("constraint_based_group_resource_specs"); + } + } + + /// + /// 1:N ConstraintBasedGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_AsyncOperations")] + public System.Collections.Generic.IEnumerable ConstraintBasedGroup_AsyncOperations + { + get + { + return this.GetRelatedEntities("ConstraintBasedGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_AsyncOperations"); + this.SetRelatedEntities("ConstraintBasedGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_AsyncOperations"); + } + } + + /// + /// 1:N ConstraintBasedGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ConstraintBasedGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ConstraintBasedGroup_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_BulkDeleteFailures"); + this.SetRelatedEntities("ConstraintBasedGroup_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_BulkDeleteFailures"); + } + } + + /// + /// 1:N constraintbasedgroup_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections1")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_connections1 + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_connections1", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections1"); + this.SetRelatedEntities("constraintbasedgroup_connections1", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections1"); + } + } + + /// + /// 1:N constraintbasedgroup_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_connections2")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_connections2 + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_connections2", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_connections2"); + this.SetRelatedEntities("constraintbasedgroup_connections2", null, value); + this.OnPropertyChanged("constraintbasedgroup_connections2"); + } + } + + /// + /// 1:N ConstraintBasedGroup_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_ProcessSessions")] + public System.Collections.Generic.IEnumerable ConstraintBasedGroup_ProcessSessions + { + get + { + return this.GetRelatedEntities("ConstraintBasedGroup_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_ProcessSessions"); + this.SetRelatedEntities("ConstraintBasedGroup_ProcessSessions", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_ProcessSessions"); + } + } + + /// + /// 1:N constraintbasedgroup_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_resource_groups")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_resource_groups + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_resource_groups", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_resource_groups"); + this.SetRelatedEntities("constraintbasedgroup_resource_groups", null, value); + this.OnPropertyChanged("constraintbasedgroup_resource_groups"); + } + } + + /// + /// 1:N userentityinstancedata_constraintbasedgroup + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_constraintbasedgroup")] + public System.Collections.Generic.IEnumerable userentityinstancedata_constraintbasedgroup + { + get + { + return this.GetRelatedEntities("userentityinstancedata_constraintbasedgroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_constraintbasedgroup"); + this.SetRelatedEntities("userentityinstancedata_constraintbasedgroup", null, value); + this.OnPropertyChanged("userentityinstancedata_constraintbasedgroup"); + } + } + + /// + /// N:1 business_unit_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_constraint_based_groups")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_constraint_based_groups + { + get + { + return this.GetRelatedEntity("business_unit_constraint_based_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_constraint_based_groups"); + this.SetRelatedEntity("business_unit_constraint_based_groups", null, value); + this.OnPropertyChanged("business_unit_constraint_based_groups"); + } + } + + /// + /// N:1 constraintbasedgroup_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser constraintbasedgroup_systemuser + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_systemuser", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_systemuser"); + this.SetRelatedEntity("constraintbasedgroup_systemuser", null, value); + this.OnPropertyChanged("constraintbasedgroup_systemuser"); + } + } + + /// + /// N:1 lk_constraintbasedgroup_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_createdby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_createdby", null); + } + } + + /// + /// N:1 lk_constraintbasedgroup_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_constraintbasedgroup_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_modifiedby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_modifiedby", null); + } + } + + /// + /// N:1 lk_constraintbasedgroup_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_constraintbasedgroup_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_constraintbasedgroup_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_constraint_based_groups")] + public Xrm.Framework.CI.Common.Entities.Organization organization_constraint_based_groups + { + get + { + return this.GetRelatedEntity("organization_constraint_based_groups", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Contact : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Contact() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contact"; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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; + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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 CRM. If Do Not Allow is selected, Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 the lead that the contact was created if the contact was created by converting a lead in Microsoft Dynamics CRM. 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 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 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 ((Xrm.Framework.CI.Common.Entities.ContactState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ContactState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N account_primary_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_primary_contact")] + public System.Collections.Generic.IEnumerable account_primary_contact + { + get + { + return this.GetRelatedEntities("account_primary_contact", null); + } + set + { + this.OnPropertyChanging("account_primary_contact"); + this.SetRelatedEntities("account_primary_contact", null, value); + this.OnPropertyChanged("account_primary_contact"); + } + } + + /// + /// 1:N contact_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_activity_parties")] + public System.Collections.Generic.IEnumerable contact_activity_parties + { + get + { + return this.GetRelatedEntities("contact_activity_parties", null); + } + set + { + this.OnPropertyChanging("contact_activity_parties"); + this.SetRelatedEntities("contact_activity_parties", null, value); + this.OnPropertyChanged("contact_activity_parties"); + } + } + + /// + /// 1:N Contact_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ActivityPointers")] + public System.Collections.Generic.IEnumerable Contact_ActivityPointers + { + get + { + return this.GetRelatedEntities("Contact_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contact_ActivityPointers"); + this.SetRelatedEntities("Contact_ActivityPointers", null, value); + this.OnPropertyChanged("Contact_ActivityPointers"); + } + } + + /// + /// 1:N Contact_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Annotation")] + public System.Collections.Generic.IEnumerable Contact_Annotation + { + get + { + return this.GetRelatedEntities("Contact_Annotation", null); + } + set + { + this.OnPropertyChanging("Contact_Annotation"); + this.SetRelatedEntities("Contact_Annotation", null, value); + this.OnPropertyChanged("Contact_Annotation"); + } + } + + /// + /// 1:N Contact_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Appointments")] + public System.Collections.Generic.IEnumerable Contact_Appointments + { + get + { + return this.GetRelatedEntities("Contact_Appointments", null); + } + set + { + this.OnPropertyChanging("Contact_Appointments"); + this.SetRelatedEntities("Contact_Appointments", null, value); + this.OnPropertyChanged("Contact_Appointments"); + } + } + + /// + /// 1:N contact_as_responsible_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_as_responsible_contact")] + public System.Collections.Generic.IEnumerable contact_as_responsible_contact + { + get + { + return this.GetRelatedEntities("contact_as_responsible_contact", null); + } + set + { + this.OnPropertyChanging("contact_as_responsible_contact"); + this.SetRelatedEntities("contact_as_responsible_contact", null, value); + this.OnPropertyChanged("contact_as_responsible_contact"); + } + } + + /// + /// 1:N Contact_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_AsyncOperations")] + public System.Collections.Generic.IEnumerable Contact_AsyncOperations + { + get + { + return this.GetRelatedEntities("Contact_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contact_AsyncOperations"); + this.SetRelatedEntities("Contact_AsyncOperations", null, value); + this.OnPropertyChanged("Contact_AsyncOperations"); + } + } + + /// + /// 1:N Contact_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Contact_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Contact_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Contact_BulkDeleteFailures"); + this.SetRelatedEntities("Contact_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Contact_BulkDeleteFailures"); + } + } + + /// + /// 1:N contact_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections1")] + public System.Collections.Generic.IEnumerable contact_connections1 + { + get + { + return this.GetRelatedEntities("contact_connections1", null); + } + set + { + this.OnPropertyChanging("contact_connections1"); + this.SetRelatedEntities("contact_connections1", null, value); + this.OnPropertyChanged("contact_connections1"); + } + } + + /// + /// 1:N contact_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_connections2")] + public System.Collections.Generic.IEnumerable contact_connections2 + { + get + { + return this.GetRelatedEntities("contact_connections2", null); + } + set + { + this.OnPropertyChanging("contact_connections2"); + this.SetRelatedEntities("contact_connections2", null, value); + this.OnPropertyChanged("contact_connections2"); + } + } + + /// + /// 1:N contact_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcontact_customer_contacts + { + get + { + return this.GetRelatedEntities("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcontact_customer_contacts"); + this.SetRelatedEntities("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcontact_customer_contacts"); + } + } + + /// + /// 1:N contact_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable contact_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("contact_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("contact_customer_opportunity_roles"); + this.SetRelatedEntities("contact_customer_opportunity_roles", null, value); + this.OnPropertyChanged("contact_customer_opportunity_roles"); + } + } + + /// + /// 1:N contact_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_customer")] + public System.Collections.Generic.IEnumerable contact_customer_relationship_customer + { + get + { + return this.GetRelatedEntities("contact_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_customer"); + this.SetRelatedEntities("contact_customer_relationship_customer", null, value); + this.OnPropertyChanged("contact_customer_relationship_customer"); + } + } + + /// + /// 1:N contact_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_partner")] + public System.Collections.Generic.IEnumerable contact_customer_relationship_partner + { + get + { + return this.GetRelatedEntities("contact_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_partner"); + this.SetRelatedEntities("contact_customer_relationship_partner", null, value); + this.OnPropertyChanged("contact_customer_relationship_partner"); + } + } + + /// + /// 1:N Contact_CustomerAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_CustomerAddress")] + public System.Collections.Generic.IEnumerable Contact_CustomerAddress + { + get + { + return this.GetRelatedEntities("Contact_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Contact_CustomerAddress"); + this.SetRelatedEntities("Contact_CustomerAddress", null, value); + this.OnPropertyChanged("Contact_CustomerAddress"); + } + } + + /// + /// 1:N Contact_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Contact_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Contact_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Contact_DuplicateBaseRecord"); + this.SetRelatedEntities("Contact_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Contact_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Contact_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Contact_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Contact_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Contact_DuplicateMatchingRecord"); + this.SetRelatedEntities("Contact_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Contact_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Contact_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Emails")] + public System.Collections.Generic.IEnumerable Contact_Emails + { + get + { + return this.GetRelatedEntities("Contact_Emails", null); + } + set + { + this.OnPropertyChanging("Contact_Emails"); + this.SetRelatedEntities("Contact_Emails", null, value); + this.OnPropertyChanged("Contact_Emails"); + } + } + + /// + /// 1:N Contact_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Faxes")] + public System.Collections.Generic.IEnumerable Contact_Faxes + { + get + { + return this.GetRelatedEntities("Contact_Faxes", null); + } + set + { + this.OnPropertyChanging("Contact_Faxes"); + this.SetRelatedEntities("Contact_Faxes", null, value); + this.OnPropertyChanged("Contact_Faxes"); + } + } + + /// + /// 1:N Contact_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Letters")] + public System.Collections.Generic.IEnumerable Contact_Letters + { + get + { + return this.GetRelatedEntities("Contact_Letters", null); + } + set + { + this.OnPropertyChanging("Contact_Letters"); + this.SetRelatedEntities("Contact_Letters", null, value); + this.OnPropertyChanged("Contact_Letters"); + } + } + + /// + /// 1:N contact_master_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcontact_master_contact + { + get + { + return this.GetRelatedEntities("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcontact_master_contact"); + this.SetRelatedEntities("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcontact_master_contact"); + } + } + + /// + /// 1:N Contact_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Phonecalls")] + public System.Collections.Generic.IEnumerable Contact_Phonecalls + { + get + { + return this.GetRelatedEntities("Contact_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contact_Phonecalls"); + this.SetRelatedEntities("Contact_Phonecalls", null, value); + this.OnPropertyChanged("Contact_Phonecalls"); + } + } + + /// + /// 1:N contact_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_PostFollows")] + public System.Collections.Generic.IEnumerable contact_PostFollows + { + get + { + return this.GetRelatedEntities("contact_PostFollows", null); + } + set + { + this.OnPropertyChanging("contact_PostFollows"); + this.SetRelatedEntities("contact_PostFollows", null, value); + this.OnPropertyChanged("contact_PostFollows"); + } + } + + /// + /// 1:N contact_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable contact_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("contact_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contact_principalobjectattributeaccess"); + this.SetRelatedEntities("contact_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contact_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Contact_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ProcessSessions")] + public System.Collections.Generic.IEnumerable Contact_ProcessSessions + { + get + { + return this.GetRelatedEntities("Contact_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contact_ProcessSessions"); + this.SetRelatedEntities("Contact_ProcessSessions", null, value); + this.OnPropertyChanged("Contact_ProcessSessions"); + } + } + + /// + /// 1:N Contact_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Contact_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Contact_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contact_RecurringAppointmentMasters"); + this.SetRelatedEntities("Contact_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contact_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Contact_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Contact_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Contact_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contact_ServiceAppointments"); + this.SetRelatedEntities("Contact_ServiceAppointments", null, value); + this.OnPropertyChanged("Contact_ServiceAppointments"); + } + } + + /// + /// 1:N Contact_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Tasks")] + public System.Collections.Generic.IEnumerable Contact_Tasks + { + get + { + return this.GetRelatedEntities("Contact_Tasks", null); + } + set + { + this.OnPropertyChanging("Contact_Tasks"); + this.SetRelatedEntities("Contact_Tasks", null, value); + this.OnPropertyChanged("Contact_Tasks"); + } + } + + /// + /// 1:N contract_billingcustomer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_contacts")] + public System.Collections.Generic.IEnumerable contract_billingcustomer_contacts + { + get + { + return this.GetRelatedEntities("contract_billingcustomer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_contacts"); + this.SetRelatedEntities("contract_billingcustomer_contacts", null, value); + this.OnPropertyChanged("contract_billingcustomer_contacts"); + } + } + + /// + /// 1:N contract_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_contacts")] + public System.Collections.Generic.IEnumerable contract_customer_contacts + { + get + { + return this.GetRelatedEntities("contract_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_customer_contacts"); + this.SetRelatedEntities("contract_customer_contacts", null, value); + this.OnPropertyChanged("contract_customer_contacts"); + } + } + + /// + /// 1:N contractlineitem_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_contacts")] + public System.Collections.Generic.IEnumerable contractlineitem_customer_contacts + { + get + { + return this.GetRelatedEntities("contractlineitem_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_contacts"); + this.SetRelatedEntities("contractlineitem_customer_contacts", null, value); + this.OnPropertyChanged("contractlineitem_customer_contacts"); + } + } + + /// + /// 1:N CreatedContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedContact_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedContact_BulkOperationLogs"); + this.SetRelatedEntities("CreatedContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedContact_BulkOperationLogs"); + } + } + + /// + /// 1:N incident_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_contacts")] + public System.Collections.Generic.IEnumerable incident_customer_contacts + { + get + { + return this.GetRelatedEntities("incident_customer_contacts", null); + } + set + { + this.OnPropertyChanging("incident_customer_contacts"); + this.SetRelatedEntities("incident_customer_contacts", null, value); + this.OnPropertyChanged("incident_customer_contacts"); + } + } + + /// + /// 1:N invoice_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_contacts")] + public System.Collections.Generic.IEnumerable invoice_customer_contacts + { + get + { + return this.GetRelatedEntities("invoice_customer_contacts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_contacts"); + this.SetRelatedEntities("invoice_customer_contacts", null, value); + this.OnPropertyChanged("invoice_customer_contacts"); + } + } + + /// + /// 1:N lead_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_contacts")] + public System.Collections.Generic.IEnumerable lead_customer_contacts + { + get + { + return this.GetRelatedEntities("lead_customer_contacts", null); + } + set + { + this.OnPropertyChanging("lead_customer_contacts"); + this.SetRelatedEntities("lead_customer_contacts", null, value); + this.OnPropertyChanged("lead_customer_contacts"); + } + } + + /// + /// 1:N lead_parent_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_contact")] + public System.Collections.Generic.IEnumerable lead_parent_contact + { + get + { + return this.GetRelatedEntities("lead_parent_contact", null); + } + set + { + this.OnPropertyChanging("lead_parent_contact"); + this.SetRelatedEntities("lead_parent_contact", null, value); + this.OnPropertyChanged("lead_parent_contact"); + } + } + + /// + /// 1:N opportunity_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_contacts")] + public System.Collections.Generic.IEnumerable opportunity_customer_contacts + { + get + { + return this.GetRelatedEntities("opportunity_customer_contacts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_contacts"); + this.SetRelatedEntities("opportunity_customer_contacts", null, value); + this.OnPropertyChanged("opportunity_customer_contacts"); + } + } + + /// + /// 1:N opportunity_parent_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_contact")] + public System.Collections.Generic.IEnumerable opportunity_parent_contact + { + get + { + return this.GetRelatedEntities("opportunity_parent_contact", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_contact"); + this.SetRelatedEntities("opportunity_parent_contact", null, value); + this.OnPropertyChanged("opportunity_parent_contact"); + } + } + + /// + /// 1:N order_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_contacts")] + public System.Collections.Generic.IEnumerable order_customer_contacts + { + get + { + return this.GetRelatedEntities("order_customer_contacts", null); + } + set + { + this.OnPropertyChanging("order_customer_contacts"); + this.SetRelatedEntities("order_customer_contacts", null, value); + this.OnPropertyChanged("order_customer_contacts"); + } + } + + /// + /// 1:N quote_customer_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_contacts")] + public System.Collections.Generic.IEnumerable quote_customer_contacts + { + get + { + return this.GetRelatedEntities("quote_customer_contacts", null); + } + set + { + this.OnPropertyChanging("quote_customer_contacts"); + this.SetRelatedEntities("quote_customer_contacts", null, value); + this.OnPropertyChanged("quote_customer_contacts"); + } + } + + /// + /// 1:N SourceContact_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceContact_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable SourceContact_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("SourceContact_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceContact_BulkOperationLogs"); + this.SetRelatedEntities("SourceContact_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceContact_BulkOperationLogs"); + } + } + + /// + /// 1:N userentityinstancedata_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contact")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contact + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contact", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contact"); + this.SetRelatedEntities("userentityinstancedata_contact", null, value); + this.OnPropertyChanged("userentityinstancedata_contact"); + } + } + + /// + /// N:N contactinvoices_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactinvoices_association")] + public System.Collections.Generic.IEnumerable contactinvoices_association + { + get + { + return this.GetRelatedEntities("contactinvoices_association", null); + } + set + { + this.OnPropertyChanging("contactinvoices_association"); + this.SetRelatedEntities("contactinvoices_association", null, value); + this.OnPropertyChanged("contactinvoices_association"); + } + } + + /// + /// N:N contactleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactleads_association")] + public System.Collections.Generic.IEnumerable contactleads_association + { + get + { + return this.GetRelatedEntities("contactleads_association", null); + } + set + { + this.OnPropertyChanging("contactleads_association"); + this.SetRelatedEntities("contactleads_association", null, value); + this.OnPropertyChanged("contactleads_association"); + } + } + + /// + /// N:N contactorders_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactorders_association")] + public System.Collections.Generic.IEnumerable contactorders_association + { + get + { + return this.GetRelatedEntities("contactorders_association", null); + } + set + { + this.OnPropertyChanging("contactorders_association"); + this.SetRelatedEntities("contactorders_association", null, value); + this.OnPropertyChanged("contactorders_association"); + } + } + + /// + /// N:N contactquotes_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactquotes_association")] + public System.Collections.Generic.IEnumerable contactquotes_association + { + get + { + return this.GetRelatedEntities("contactquotes_association", null); + } + set + { + this.OnPropertyChanging("contactquotes_association"); + this.SetRelatedEntities("contactquotes_association", null, value); + this.OnPropertyChanged("contactquotes_association"); + } + } + + /// + /// N:N listcontact_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listcontact_association")] + public System.Collections.Generic.IEnumerable listcontact_association + { + get + { + return this.GetRelatedEntities("listcontact_association", null); + } + set + { + this.OnPropertyChanging("listcontact_association"); + this.SetRelatedEntities("listcontact_association", null, value); + this.OnPropertyChanged("listcontact_association"); + } + } + + /// + /// N:N servicecontractcontacts_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("servicecontractcontacts_association")] + public System.Collections.Generic.IEnumerable servicecontractcontacts_association + { + get + { + return this.GetRelatedEntities("servicecontractcontacts_association", null); + } + set + { + this.OnPropertyChanging("servicecontractcontacts_association"); + this.SetRelatedEntities("servicecontractcontacts_association", null, value); + this.OnPropertyChanged("servicecontractcontacts_association"); + } + } + + /// + /// N:1 business_unit_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_contacts")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_contacts + { + get + { + return this.GetRelatedEntity("business_unit_contacts", null); + } + } + + /// + /// N:1 contact_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contact_customer_accounts + { + get + { + return this.GetRelatedEntity("contact_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contact_customer_accounts"); + this.SetRelatedEntity("contact_customer_accounts", null, value); + this.OnPropertyChanged("contact_customer_accounts"); + } + } + + /// + /// N:1 contact_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Contact Referencingcontact_customer_contacts + { + get + { + return this.GetRelatedEntity("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcontact_customer_contacts"); + this.SetRelatedEntity("contact_customer_contacts", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcontact_customer_contacts"); + } + } + + /// + /// N:1 contact_master_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Contact Referencingcontact_master_contact + { + get + { + return this.GetRelatedEntity("contact_master_contact", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 contact_originating_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_originating_lead")] + public Xrm.Framework.CI.Common.Entities.Lead contact_originating_lead + { + get + { + return this.GetRelatedEntity("contact_originating_lead", null); + } + set + { + this.OnPropertyChanging("contact_originating_lead"); + this.SetRelatedEntity("contact_originating_lead", null, value); + this.OnPropertyChanged("contact_originating_lead"); + } + } + + /// + /// N:1 contact_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser contact_owning_user + { + get + { + return this.GetRelatedEntity("contact_owning_user", null); + } + } + + /// + /// N:1 equipment_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredequipmentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_contacts")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_contacts + { + get + { + return this.GetRelatedEntity("equipment_contacts", null); + } + set + { + this.OnPropertyChanging("equipment_contacts"); + this.SetRelatedEntity("equipment_contacts", null, value); + this.OnPropertyChanged("equipment_contacts"); + } + } + + /// + /// N:1 lk_contact_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contact_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contact_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contact_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contact_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contact_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contactbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contactbase_createdby + { + get + { + return this.GetRelatedEntity("lk_contactbase_createdby", null); + } + } + + /// + /// N:1 lk_contactbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contactbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contactbase_modifiedby", null); + } + } + + /// + /// N:1 price_level_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultpricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_contacts")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_contacts + { + get + { + return this.GetRelatedEntity("price_level_contacts", null); + } + set + { + this.OnPropertyChanging("price_level_contacts"); + this.SetRelatedEntity("price_level_contacts", null, value); + this.OnPropertyChanged("price_level_contacts"); + } + } + + /// + /// N:1 processstage_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_contact")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_contact + { + get + { + return this.GetRelatedEntity("processstage_contact", null); + } + set + { + this.OnPropertyChanging("processstage_contact"); + this.SetRelatedEntity("processstage_contact", null, value); + this.OnPropertyChanged("processstage_contact"); + } + } + + /// + /// N:1 service_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredserviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_contacts")] + public Xrm.Framework.CI.Common.Entities.Service service_contacts + { + get + { + return this.GetRelatedEntity("service_contacts", null); + } + set + { + this.OnPropertyChanging("service_contacts"); + this.SetRelatedEntity("service_contacts", null, value); + this.OnPropertyChanged("service_contacts"); + } + } + + /// + /// N:1 system_user_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_contacts")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_contacts + { + get + { + return this.GetRelatedEntity("system_user_contacts", null); + } + set + { + this.OnPropertyChanging("system_user_contacts"); + this.SetRelatedEntity("system_user_contacts", null, value); + this.OnPropertyChanged("system_user_contacts"); + } + } + + /// + /// N:1 team_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_contacts")] + public Xrm.Framework.CI.Common.Entities.Team team_contacts + { + get + { + return this.GetRelatedEntity("team_contacts", null); + } + } + + /// + /// N:1 transactioncurrency_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contact")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_contact + { + get + { + return this.GetRelatedEntity("transactioncurrency_contact", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contact"); + this.SetRelatedEntity("transactioncurrency_contact", null, value); + this.OnPropertyChanged("transactioncurrency_contact"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactinvoices")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactInvoices : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactInvoices() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactinvoices"; + + public const int EntityTypeCode = 17; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the invoices for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactinvoiceid")] + public System.Nullable ContactInvoiceId + { + get + { + return this.GetAttributeValue>("contactinvoiceid"); + } + set + { + this.OnPropertyChanging("ContactInvoiceId"); + this.SetAttributeValue("contactinvoiceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactInvoiceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactinvoiceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactInvoiceId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public System.Nullable InvoiceId + { + get + { + return this.GetAttributeValue>("invoiceid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactinvoices_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactinvoices_association")] + public System.Collections.Generic.IEnumerable contactinvoices_association + { + get + { + return this.GetRelatedEntities("contactinvoices_association", null); + } + set + { + this.OnPropertyChanging("contactinvoices_association"); + this.SetRelatedEntities("contactinvoices_association", null, value); + this.OnPropertyChanged("contactinvoices_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactleads")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactLeads : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactLeads() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactleads"; + + public const int EntityTypeCode = 22; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the leads for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactleadid")] + public System.Nullable ContactLeadId + { + get + { + return this.GetAttributeValue>("contactleadid"); + } + set + { + this.OnPropertyChanging("ContactLeadId"); + this.SetAttributeValue("contactleadid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactLeadId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactleadid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactLeadId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactleads_association")] + public System.Collections.Generic.IEnumerable contactleads_association + { + get + { + return this.GetRelatedEntities("contactleads_association", null); + } + set + { + this.OnPropertyChanging("contactleads_association"); + this.SetRelatedEntities("contactleads_association", null, value); + this.OnPropertyChanged("contactleads_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactorders")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactOrders : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactOrders() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactorders"; + + public const int EntityTypeCode = 19; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the orders for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactorderid")] + public System.Nullable ContactOrderId + { + get + { + return this.GetAttributeValue>("contactorderid"); + } + set + { + this.OnPropertyChanging("ContactOrderId"); + this.SetAttributeValue("contactorderid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactOrderId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactorderid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactOrderId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + public System.Nullable SalesOrderId + { + get + { + return this.GetAttributeValue>("salesorderid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactorders_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactorders_association")] + public System.Collections.Generic.IEnumerable contactorders_association + { + get + { + return this.GetRelatedEntities("contactorders_association", null); + } + set + { + this.OnPropertyChanging("contactorders_association"); + this.SetRelatedEntities("contactorders_association", null, value); + this.OnPropertyChanged("contactorders_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contactquotes")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContactQuotes : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContactQuotes() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contactquotes"; + + public const int EntityTypeCode = 18; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// Unique identifier of the quotes for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactquoteid")] + public System.Nullable ContactQuoteId + { + get + { + return this.GetAttributeValue>("contactquoteid"); + } + set + { + this.OnPropertyChanging("ContactQuoteId"); + this.SetAttributeValue("contactquoteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactQuoteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactquoteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactQuoteId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + public System.Nullable QuoteId + { + get + { + return this.GetAttributeValue>("quoteid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N contactquotes_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactquotes_association")] + public System.Collections.Generic.IEnumerable contactquotes_association + { + get + { + return this.GetRelatedEntities("contactquotes_association", null); + } + set + { + this.OnPropertyChanging("contactquotes_association"); + this.SetRelatedEntities("contactquotes_association", null, value); + this.OnPropertyChanged("contactquotes_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ContractState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Invoiced = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OnHold = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Expired = 5, + } + + /// + /// Agreement to provide customer service during a specified amount of time or number of cases. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contract")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Contract : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Contract() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contract"; + + public const int EntityTypeCode = 1010; + + 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 contract is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Enter the date when the contract becomes active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeon")] + public System.Nullable ActiveOn + { + get + { + return this.GetAttributeValue>("activeon"); + } + set + { + this.OnPropertyChanging("ActiveOn"); + this.SetAttributeValue("activeon", value); + this.OnPropertyChanged("ActiveOn"); + } + } + + /// + /// Type of allotment that the contract supports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmenttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AllotmentTypeCode + { + get + { + return this.GetAttributeValue("allotmenttypecode"); + } + set + { + this.OnPropertyChanging("AllotmentTypeCode"); + this.SetAttributeValue("allotmenttypecode", value); + this.OnPropertyChanged("AllotmentTypeCode"); + } + } + + /// + /// Unique identifier of the account to which the contract is to be billed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingaccountid")] + public Microsoft.Xrm.Sdk.EntityReference BillingAccountId + { + get + { + return this.GetAttributeValue("billingaccountid"); + } + } + + /// + /// Unique identifier of the contact to whom the contract is to be billed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcontactid")] + public Microsoft.Xrm.Sdk.EntityReference BillingContactId + { + get + { + return this.GetAttributeValue("billingcontactid"); + } + } + + /// + /// Select the customer account or contact to which the contract should be billed to provide a quick link to address and other customer details. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcustomerid")] + public Microsoft.Xrm.Sdk.EntityReference BillingCustomerId + { + get + { + return this.GetAttributeValue("billingcustomerid"); + } + set + { + this.OnPropertyChanging("BillingCustomerId"); + this.SetAttributeValue("billingcustomerid", value); + this.OnPropertyChanged("BillingCustomerId"); + } + } + + /// + /// Enter the end date for the contract's billing period to indicate the period for which the customer must pay for a service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingendon")] + public System.Nullable BillingEndOn + { + get + { + return this.GetAttributeValue>("billingendon"); + } + set + { + this.OnPropertyChanging("BillingEndOn"); + this.SetAttributeValue("billingendon", value); + this.OnPropertyChanged("BillingEndOn"); + } + } + + /// + /// Select the billing schedule of the contract to indicate how often the customer should be invoiced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingfrequencycode")] + public Microsoft.Xrm.Sdk.OptionSetValue BillingFrequencyCode + { + get + { + return this.GetAttributeValue("billingfrequencycode"); + } + set + { + this.OnPropertyChanging("BillingFrequencyCode"); + this.SetAttributeValue("billingfrequencycode", value); + this.OnPropertyChanged("BillingFrequencyCode"); + } + } + + /// + /// Enter the start date for the contract's billing period to indicate the period for which the customer must pay for a service. This defaults to the same date that is selected in the Contract Start Date field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingstarton")] + public System.Nullable BillingStartOn + { + get + { + return this.GetAttributeValue>("billingstarton"); + } + set + { + this.OnPropertyChanging("BillingStartOn"); + this.SetAttributeValue("billingstarton", value); + this.OnPropertyChanged("BillingStartOn"); + } + } + + /// + /// Choose which address to send the invoice to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billtoaddress")] + public Microsoft.Xrm.Sdk.EntityReference BillToAddress + { + get + { + return this.GetAttributeValue("billtoaddress"); + } + set + { + this.OnPropertyChanging("BillToAddress"); + this.SetAttributeValue("billtoaddress", value); + this.OnPropertyChanged("BillToAddress"); + } + } + + /// + /// Shows the date and time when the contract was canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cancelon")] + public System.Nullable CancelOn + { + get + { + return this.GetAttributeValue>("cancelon"); + } + } + + /// + /// Unique identifier of the contact specified for the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Unique identifier of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public System.Nullable ContractId + { + get + { + return this.GetAttributeValue>("contractid"); + } + set + { + this.OnPropertyChanging("ContractId"); + this.SetAttributeValue("contractid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContractId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContractId = value; + } + } + + /// + /// Type additional information about the contract, such as the products or services provided to the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractlanguage")] + public string ContractLanguage + { + get + { + return this.GetAttributeValue("contractlanguage"); + } + set + { + this.OnPropertyChanging("ContractLanguage"); + this.SetAttributeValue("contractlanguage", value); + this.OnPropertyChanged("ContractLanguage"); + } + } + + /// + /// Shows the number for the contract for customer reference and searching capabilities. You cannot modify this number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractnumber")] + public string ContractNumber + { + get + { + return this.GetAttributeValue("contractnumber"); + } + set + { + this.OnPropertyChanging("ContractNumber"); + this.SetAttributeValue("contractnumber", value); + this.OnPropertyChanged("ContractNumber"); + } + } + + /// + /// Select the level of service that should be provided for the contract based on your company's definition of bronze, silver, or gold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractservicelevelcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractServiceLevelCode + { + get + { + return this.GetAttributeValue("contractservicelevelcode"); + } + set + { + this.OnPropertyChanging("ContractServiceLevelCode"); + this.SetAttributeValue("contractservicelevelcode", value); + this.OnPropertyChanged("ContractServiceLevelCode"); + } + } + + /// + /// Shows the abbreviation of the contract template selected when the contract is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateabbreviation")] + public string ContractTemplateAbbreviation + { + get + { + return this.GetAttributeValue("contracttemplateabbreviation"); + } + } + + /// + /// Choose the contract template that should be used to determine the terms of the contract, such as allotment type, available hours, and billing frequency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + public Microsoft.Xrm.Sdk.EntityReference ContractTemplateId + { + get + { + return this.GetAttributeValue("contracttemplateid"); + } + set + { + this.OnPropertyChanging("ContractTemplateId"); + this.SetAttributeValue("contracttemplateid", value); + this.OnPropertyChanged("ContractTemplateId"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders. + /// + [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"); + } + } + + /// + /// Shows for the duration of the contract, in days, based on the contract start and end dates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + } + + /// + /// Days of the week and times during which customer service support is available for the duration of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivitycalendar")] + public string EffectivityCalendar + { + get + { + return this.GetAttributeValue("effectivitycalendar"); + } + set + { + this.OnPropertyChanging("EffectivityCalendar"); + this.SetAttributeValue("effectivitycalendar", value); + this.OnPropertyChanged("EffectivityCalendar"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the date when the contract expires. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the total charge to the customer for the service contract, calculated as the sum of values in the Net field for each existing contract line related to the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("netprice")] + public Microsoft.Xrm.Sdk.Money NetPrice + { + get + { + return this.GetAttributeValue("netprice"); + } + } + + /// + /// Shows the Net Price 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("netprice_base")] + public Microsoft.Xrm.Sdk.Money NetPrice_Base + { + get + { + return this.GetAttributeValue("netprice_base"); + } + } + + /// + /// Choose the original contract that this contract was created from. This information is used to track renewal history. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcontract")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingContract + { + get + { + return this.GetAttributeValue("originatingcontract"); + } + set + { + this.OnPropertyChanging("OriginatingContract"); + this.SetAttributeValue("originatingcontract", value); + this.OnPropertyChanged("OriginatingContract"); + } + } + + /// + /// 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 contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the address for the customer account or contact where the services are provided. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + public Microsoft.Xrm.Sdk.EntityReference ServiceAddress + { + get + { + return this.GetAttributeValue("serviceaddress"); + } + set + { + this.OnPropertyChanging("ServiceAddress"); + this.SetAttributeValue("serviceaddress", value); + this.OnPropertyChanged("ServiceAddress"); + } + } + + /// + /// Shows whether the contract is in draft, invoiced, active, on hold, canceled, or expired. You can edit only the contracts that are in draft status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ContractState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ContractState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the contract'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"); + } + } + + /// + /// Type a title or name for the contract that indicates the purpose of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Shows the total discount applied to the contract's service charges, calculated as the sum of values in the Discount fields for each existing contract line related to the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscount")] + public Microsoft.Xrm.Sdk.Money TotalDiscount + { + get + { + return this.GetAttributeValue("totaldiscount"); + } + } + + /// + /// Shows the Total Discount 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("totaldiscount_base")] + public Microsoft.Xrm.Sdk.Money TotalDiscount_Base + { + get + { + return this.GetAttributeValue("totaldiscount_base"); + } + } + + /// + /// Shows the total service charge for the contract, before any discounts are credited. This is calculated as the sum of values in the Total Price field for each existing contract line related to the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalprice")] + public Microsoft.Xrm.Sdk.Money TotalPrice + { + get + { + return this.GetAttributeValue("totalprice"); + } + } + + /// + /// Shows the Total Price 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("totalprice_base")] + public Microsoft.Xrm.Sdk.Money TotalPrice_Base + { + get + { + return this.GetAttributeValue("totalprice_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"); + } + } + + /// + /// Select whether the discounts entered on contract lines for this contract should be entered as a percentage or a fixed dollar value. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usediscountaspercentage")] + public System.Nullable UseDiscountAsPercentage + { + get + { + return this.GetAttributeValue>("usediscountaspercentage"); + } + set + { + this.OnPropertyChanging("UseDiscountAsPercentage"); + this.SetAttributeValue("usediscountaspercentage", value); + this.OnPropertyChanged("UseDiscountAsPercentage"); + } + } + + /// + /// 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 contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_activity_parties")] + public System.Collections.Generic.IEnumerable contract_activity_parties + { + get + { + return this.GetRelatedEntities("contract_activity_parties", null); + } + set + { + this.OnPropertyChanging("contract_activity_parties"); + this.SetRelatedEntities("contract_activity_parties", null, value); + this.OnPropertyChanged("contract_activity_parties"); + } + } + + /// + /// 1:N Contract_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ActivityPointers")] + public System.Collections.Generic.IEnumerable Contract_ActivityPointers + { + get + { + return this.GetRelatedEntities("Contract_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Contract_ActivityPointers"); + this.SetRelatedEntities("Contract_ActivityPointers", null, value); + this.OnPropertyChanged("Contract_ActivityPointers"); + } + } + + /// + /// 1:N Contract_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Annotation")] + public System.Collections.Generic.IEnumerable Contract_Annotation + { + get + { + return this.GetRelatedEntities("Contract_Annotation", null); + } + set + { + this.OnPropertyChanging("Contract_Annotation"); + this.SetRelatedEntities("Contract_Annotation", null, value); + this.OnPropertyChanged("Contract_Annotation"); + } + } + + /// + /// 1:N Contract_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Appointments")] + public System.Collections.Generic.IEnumerable Contract_Appointments + { + get + { + return this.GetRelatedEntities("Contract_Appointments", null); + } + set + { + this.OnPropertyChanging("Contract_Appointments"); + this.SetRelatedEntities("Contract_Appointments", null, value); + this.OnPropertyChanged("Contract_Appointments"); + } + } + + /// + /// 1:N Contract_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_AsyncOperations")] + public System.Collections.Generic.IEnumerable Contract_AsyncOperations + { + get + { + return this.GetRelatedEntities("Contract_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Contract_AsyncOperations"); + this.SetRelatedEntities("Contract_AsyncOperations", null, value); + this.OnPropertyChanged("Contract_AsyncOperations"); + } + } + + /// + /// 1:N Contract_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Contract_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Contract_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Contract_BulkDeleteFailures"); + this.SetRelatedEntities("Contract_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Contract_BulkDeleteFailures"); + } + } + + /// + /// 1:N contract_cases + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_cases")] + public System.Collections.Generic.IEnumerable contract_cases + { + get + { + return this.GetRelatedEntities("contract_cases", null); + } + set + { + this.OnPropertyChanging("contract_cases"); + this.SetRelatedEntities("contract_cases", null, value); + this.OnPropertyChanged("contract_cases"); + } + } + + /// + /// 1:N contract_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections1")] + public System.Collections.Generic.IEnumerable contract_connections1 + { + get + { + return this.GetRelatedEntities("contract_connections1", null); + } + set + { + this.OnPropertyChanging("contract_connections1"); + this.SetRelatedEntities("contract_connections1", null, value); + this.OnPropertyChanged("contract_connections1"); + } + } + + /// + /// 1:N contract_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_connections2")] + public System.Collections.Generic.IEnumerable contract_connections2 + { + get + { + return this.GetRelatedEntities("contract_connections2", null); + } + set + { + this.OnPropertyChanging("contract_connections2"); + this.SetRelatedEntities("contract_connections2", null, value); + this.OnPropertyChanged("contract_connections2"); + } + } + + /// + /// 1:N Contract_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Contract_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Contract_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Contract_DuplicateBaseRecord"); + this.SetRelatedEntities("Contract_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Contract_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Contract_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Contract_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Contract_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Contract_DuplicateMatchingRecord"); + this.SetRelatedEntities("Contract_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Contract_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Contract_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Emails")] + public System.Collections.Generic.IEnumerable Contract_Emails + { + get + { + return this.GetRelatedEntities("Contract_Emails", null); + } + set + { + this.OnPropertyChanging("Contract_Emails"); + this.SetRelatedEntities("Contract_Emails", null, value); + this.OnPropertyChanged("Contract_Emails"); + } + } + + /// + /// 1:N Contract_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Faxes")] + public System.Collections.Generic.IEnumerable Contract_Faxes + { + get + { + return this.GetRelatedEntities("Contract_Faxes", null); + } + set + { + this.OnPropertyChanging("Contract_Faxes"); + this.SetRelatedEntities("Contract_Faxes", null, value); + this.OnPropertyChanged("Contract_Faxes"); + } + } + + /// + /// 1:N Contract_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Letters")] + public System.Collections.Generic.IEnumerable Contract_Letters + { + get + { + return this.GetRelatedEntities("Contract_Letters", null); + } + set + { + this.OnPropertyChanging("Contract_Letters"); + this.SetRelatedEntities("Contract_Letters", null, value); + this.OnPropertyChanged("Contract_Letters"); + } + } + + /// + /// 1:N contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_line_items")] + public System.Collections.Generic.IEnumerable contract_line_items + { + get + { + return this.GetRelatedEntities("contract_line_items", null); + } + set + { + this.OnPropertyChanging("contract_line_items"); + this.SetRelatedEntities("contract_line_items", null, value); + this.OnPropertyChanged("contract_line_items"); + } + } + + /// + /// 1:N contract_originating_contract + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcontract_originating_contract + { + get + { + return this.GetRelatedEntities("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcontract_originating_contract"); + this.SetRelatedEntities("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcontract_originating_contract"); + } + } + + /// + /// 1:N Contract_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Phonecalls")] + public System.Collections.Generic.IEnumerable Contract_Phonecalls + { + get + { + return this.GetRelatedEntities("Contract_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contract_Phonecalls"); + this.SetRelatedEntities("Contract_Phonecalls", null, value); + this.OnPropertyChanged("Contract_Phonecalls"); + } + } + + /// + /// 1:N contract_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable contract_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("contract_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contract_principalobjectattributeaccess"); + this.SetRelatedEntities("contract_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contract_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Contract_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ProcessSessions")] + public System.Collections.Generic.IEnumerable Contract_ProcessSessions + { + get + { + return this.GetRelatedEntities("Contract_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contract_ProcessSessions"); + this.SetRelatedEntities("Contract_ProcessSessions", null, value); + this.OnPropertyChanged("Contract_ProcessSessions"); + } + } + + /// + /// 1:N Contract_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Contract_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Contract_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contract_RecurringAppointmentMasters"); + this.SetRelatedEntities("Contract_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contract_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Contract_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Contract_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Contract_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contract_ServiceAppointments"); + this.SetRelatedEntities("Contract_ServiceAppointments", null, value); + this.OnPropertyChanged("Contract_ServiceAppointments"); + } + } + + /// + /// 1:N Contract_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Tasks")] + public System.Collections.Generic.IEnumerable Contract_Tasks + { + get + { + return this.GetRelatedEntities("Contract_Tasks", null); + } + set + { + this.OnPropertyChanging("Contract_Tasks"); + this.SetRelatedEntities("Contract_Tasks", null, value); + this.OnPropertyChanged("Contract_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_contract + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contract")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contract + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contract", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contract"); + this.SetRelatedEntities("userentityinstancedata_contract", null, value); + this.OnPropertyChanged("userentityinstancedata_contract"); + } + } + + /// + /// N:N servicecontractcontacts_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("servicecontractcontacts_association")] + public System.Collections.Generic.IEnumerable servicecontractcontacts_association + { + get + { + return this.GetRelatedEntities("servicecontractcontacts_association", null); + } + set + { + this.OnPropertyChanging("servicecontractcontacts_association"); + this.SetRelatedEntities("servicecontractcontacts_association", null, value); + this.OnPropertyChanged("servicecontractcontacts_association"); + } + } + + /// + /// N:1 business_unit_service_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_contracts")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_service_contracts + { + get + { + return this.GetRelatedEntity("business_unit_service_contracts", null); + } + } + + /// + /// N:1 contract_billingcustomer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contract_billingcustomer_accounts + { + get + { + return this.GetRelatedEntity("contract_billingcustomer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_accounts"); + this.SetRelatedEntity("contract_billingcustomer_accounts", null, value); + this.OnPropertyChanged("contract_billingcustomer_accounts"); + } + } + + /// + /// N:1 contract_billingcustomer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcustomerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_billingcustomer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact contract_billingcustomer_contacts + { + get + { + return this.GetRelatedEntity("contract_billingcustomer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_billingcustomer_contacts"); + this.SetRelatedEntity("contract_billingcustomer_contacts", null, value); + this.OnPropertyChanged("contract_billingcustomer_contacts"); + } + } + + /// + /// N:1 contract_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contract_customer_accounts + { + get + { + return this.GetRelatedEntity("contract_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contract_customer_accounts"); + this.SetRelatedEntity("contract_customer_accounts", null, value); + this.OnPropertyChanged("contract_customer_accounts"); + } + } + + /// + /// N:1 contract_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact contract_customer_contacts + { + get + { + return this.GetRelatedEntity("contract_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contract_customer_contacts"); + this.SetRelatedEntity("contract_customer_contacts", null, value); + this.OnPropertyChanged("contract_customer_contacts"); + } + } + + /// + /// N:1 contract_originating_contract + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcontract")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Contract Referencingcontract_originating_contract + { + get + { + return this.GetRelatedEntity("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcontract_originating_contract"); + this.SetRelatedEntity("contract_originating_contract", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcontract_originating_contract"); + } + } + + /// + /// N:1 contract_template_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_template_contracts")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate contract_template_contracts + { + get + { + return this.GetRelatedEntity("contract_template_contracts", null); + } + set + { + this.OnPropertyChanging("contract_template_contracts"); + this.SetRelatedEntity("contract_template_contracts", null, value); + this.OnPropertyChanged("contract_template_contracts"); + } + } + + /// + /// N:1 customer_address_contracts_as_billing_address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billtoaddress")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_billing_address")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customer_address_contracts_as_billing_address + { + get + { + return this.GetRelatedEntity("customer_address_contracts_as_billing_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_billing_address"); + this.SetRelatedEntity("customer_address_contracts_as_billing_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_billing_address"); + } + } + + /// + /// N:1 customer_address_contracts_as_service_address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_service_address")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customer_address_contracts_as_service_address + { + get + { + return this.GetRelatedEntity("customer_address_contracts_as_service_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_service_address"); + this.SetRelatedEntity("customer_address_contracts_as_service_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_service_address"); + } + } + + /// + /// N:1 lk_contract_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contract_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contract_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contract_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contract_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contract_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contractbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractbase_createdby + { + get + { + return this.GetRelatedEntity("lk_contractbase_createdby", null); + } + } + + /// + /// N:1 lk_contractbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contractbase_modifiedby", null); + } + } + + /// + /// N:1 system_user_service_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_contracts")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_service_contracts + { + get + { + return this.GetRelatedEntity("system_user_service_contracts", null); + } + } + + /// + /// N:1 team_service_contracts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_contracts")] + public Xrm.Framework.CI.Common.Entities.Team team_service_contracts + { + get + { + return this.GetRelatedEntity("team_service_contracts", null); + } + } + + /// + /// N:1 transactioncurrency_contract + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contract")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_contract + { + get + { + return this.GetRelatedEntity("transactioncurrency_contract", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contract"); + this.SetRelatedEntity("transactioncurrency_contract", null, value); + this.OnPropertyChanged("transactioncurrency_contract"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ContractDetailState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Existing = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Renewed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Expired = 3, + } + + /// + /// Line item in a contract that specifies the type of service a customer is entitled to. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contractdetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContractDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContractDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contractdetail"; + + public const int EntityTypeCode = 1011; + + 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 contract is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Enter the date when the contract line becomes active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeon")] + public System.Nullable ActiveOn + { + get + { + return this.GetAttributeValue>("activeon"); + } + set + { + this.OnPropertyChanging("ActiveOn"); + this.SetAttributeValue("activeon", value); + this.OnPropertyChanged("ActiveOn"); + } + } + + /// + /// Shows the number of minutes over the Total Allotments field that have been spent on resolved cases related to the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmentsoverage")] + public System.Nullable AllotmentsOverage + { + get + { + return this.GetAttributeValue>("allotmentsoverage"); + } + } + + /// + /// Shows the number of cases or minutes remaining, based on the resolved cases logged to the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmentsremaining")] + public System.Nullable AllotmentsRemaining + { + get + { + return this.GetAttributeValue>("allotmentsremaining"); + } + } + + /// + /// Shows the number of cases or minutes used in the resolved cases on the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmentsused")] + public System.Nullable AllotmentsUsed + { + get + { + return this.GetAttributeValue>("allotmentsused"); + } + } + + /// + /// Unique identifier for the contact associated with the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Unique identifier of the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + public System.Nullable ContractDetailId + { + get + { + return this.GetAttributeValue>("contractdetailid"); + } + set + { + this.OnPropertyChanging("ContractDetailId"); + this.SetAttributeValue("contractdetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContractDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContractDetailId = value; + } + } + + /// + /// Unique identifier of the contract associated with the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public Microsoft.Xrm.Sdk.EntityReference ContractId + { + get + { + return this.GetAttributeValue("contractid"); + } + set + { + this.OnPropertyChanging("ContractId"); + this.SetAttributeValue("contractid", value); + this.OnPropertyChanged("ContractId"); + } + } + + /// + /// Status of the contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractstatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractStateCode + { + get + { + return this.GetAttributeValue("contractstatecode"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders. + /// + [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 the discount amount for the contract line to deduct any negotiated or other savings from the net amount due. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discount")] + public Microsoft.Xrm.Sdk.Money Discount + { + get + { + return this.GetAttributeValue("discount"); + } + set + { + this.OnPropertyChanging("Discount"); + this.SetAttributeValue("discount", value); + this.OnPropertyChanged("Discount"); + } + } + + /// + /// Shows the Discount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discount_base")] + public Microsoft.Xrm.Sdk.Money Discount_Base + { + get + { + return this.GetAttributeValue("discount_base"); + } + } + + /// + /// Type the discount rate that should be applied to the Total Price, for use in calculating the net amount due for the contract line. + /// + [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"); + } + } + + /// + /// Days of the week and times for which the contract line item is effective. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivitycalendar")] + public string EffectivityCalendar + { + get + { + return this.GetAttributeValue("effectivitycalendar"); + } + set + { + this.OnPropertyChanging("EffectivityCalendar"); + this.SetAttributeValue("effectivitycalendar", value); + this.OnPropertyChanged("EffectivityCalendar"); + } + } + + /// + /// 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 when the contract line expires. The date is automatically filled with the contract date, but you can change it if required. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the number of units of the specified product or service that are eligible for support on the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialquantity")] + public System.Nullable InitialQuantity + { + get + { + return this.GetAttributeValue>("initialquantity"); + } + set + { + this.OnPropertyChanging("InitialQuantity"); + this.SetAttributeValue("initialquantity", value); + this.OnPropertyChanged("InitialQuantity"); + } + } + + /// + /// Type the line item number for the contract line to easily identify the contract line and make sure it's listed in the correct order in the parent contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lineitemorder")] + public System.Nullable LineItemOrder + { + get + { + return this.GetAttributeValue>("lineitemorder"); + } + set + { + this.OnPropertyChanging("LineItemOrder"); + this.SetAttributeValue("lineitemorder", value); + this.OnPropertyChanged("LineItemOrder"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the total charge to the customer for the contract line, calculated as the Total Price minus any discounts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("net")] + public Microsoft.Xrm.Sdk.Money Net + { + get + { + return this.GetAttributeValue("net"); + } + } + + /// + /// Shows the Net field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("net_base")] + public Microsoft.Xrm.Sdk.Money Net_Base + { + get + { + return this.GetAttributeValue("net_base"); + } + } + + /// + /// 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 contract detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Type the total service charge for the contract line before any discounts are credited. + /// + [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"); + } + } + + /// + /// Shows the Total Price field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("price_base")] + public Microsoft.Xrm.Sdk.Money Price_Base + { + get + { + return this.GetAttributeValue("price_base"); + } + } + + /// + /// Choose the product that is eligible for services on the contract line. + /// + [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"); + } + } + + /// + /// Type the serial number for the product that is eligible for services on the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productserialnumber")] + public string ProductSerialNumber + { + get + { + return this.GetAttributeValue("productserialnumber"); + } + set + { + this.OnPropertyChanging("ProductSerialNumber"); + this.SetAttributeValue("productserialnumber", value); + this.OnPropertyChanged("ProductSerialNumber"); + } + } + + /// + /// Shows the cost per case or minute, calculated by dividing the Total Price value by the total number of cases or minutes allocated to the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rate")] + public Microsoft.Xrm.Sdk.Money Rate + { + get + { + return this.GetAttributeValue("rate"); + } + } + + /// + /// Shows the Rate field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rate_base")] + public Microsoft.Xrm.Sdk.Money Rate_Base + { + get + { + return this.GetAttributeValue("rate_base"); + } + } + + /// + /// Choose the address for the customer account or contact where the services are provided. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + public Microsoft.Xrm.Sdk.EntityReference ServiceAddress + { + get + { + return this.GetAttributeValue("serviceaddress"); + } + set + { + this.OnPropertyChanging("ServiceAddress"); + this.SetAttributeValue("serviceaddress", value); + this.OnPropertyChanged("ServiceAddress"); + } + } + + /// + /// Select the unit type allotted in the contract line, such as cases or minutes, to determine the level of support. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicecontractunitscode")] + public Microsoft.Xrm.Sdk.OptionSetValue ServiceContractUnitsCode + { + get + { + return this.GetAttributeValue("servicecontractunitscode"); + } + set + { + this.OnPropertyChanging("ServiceContractUnitsCode"); + this.SetAttributeValue("servicecontractunitscode", value); + this.OnPropertyChanged("ServiceContractUnitsCode"); + } + } + + /// + /// Shows whether the contract line is existing, renewed, canceled, or expired. You can't edit a contract line after it is saved, regardless of the status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ContractDetailState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ContractDetailState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the contract line'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"); + } + } + + /// + /// Type a title or name that describes the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Type the total number of minutes or cases allowed for the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalallotments")] + public System.Nullable TotalAllotments + { + get + { + return this.GetAttributeValue>("totalallotments"); + } + set + { + this.OnPropertyChanging("TotalAllotments"); + this.SetAttributeValue("totalallotments", value); + this.OnPropertyChanged("TotalAllotments"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the unit group associated with the contract line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference UoMScheduleId + { + get + { + return this.GetAttributeValue("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + this.OnPropertyChanged("UoMScheduleId"); + } + } + + /// + /// 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 contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_detail_cases + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_cases")] + public System.Collections.Generic.IEnumerable contract_detail_cases + { + get + { + return this.GetRelatedEntities("contract_detail_cases", null); + } + set + { + this.OnPropertyChanging("contract_detail_cases"); + this.SetRelatedEntities("contract_detail_cases", null, value); + this.OnPropertyChanged("contract_detail_cases"); + } + } + + /// + /// 1:N ContractDetail_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_Annotation")] + public System.Collections.Generic.IEnumerable ContractDetail_Annotation + { + get + { + return this.GetRelatedEntities("ContractDetail_Annotation", null); + } + set + { + this.OnPropertyChanging("ContractDetail_Annotation"); + this.SetRelatedEntities("ContractDetail_Annotation", null, value); + this.OnPropertyChanged("ContractDetail_Annotation"); + } + } + + /// + /// 1:N ContractDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable ContractDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("ContractDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractDetail_AsyncOperations"); + this.SetRelatedEntities("ContractDetail_AsyncOperations", null, value); + this.OnPropertyChanged("ContractDetail_AsyncOperations"); + } + } + + /// + /// 1:N ContractDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ContractDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ContractDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ContractDetail_BulkDeleteFailures"); + this.SetRelatedEntities("ContractDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ContractDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N contractdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractdetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable contractdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("contractdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contractdetail_principalobjectattributeaccess"); + this.SetRelatedEntities("contractdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contractdetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N ContractDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable ContractDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("ContractDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractDetail_ProcessSessions"); + this.SetRelatedEntities("ContractDetail_ProcessSessions", null, value); + this.OnPropertyChanged("ContractDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_contractdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contractdetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contractdetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contractdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contractdetail"); + this.SetRelatedEntities("userentityinstancedata_contractdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_contractdetail"); + } + } + + /// + /// N:1 contract_detail_unit_of_measure_schedule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_unit_of_measure_schedule")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule contract_detail_unit_of_measure_schedule + { + get + { + return this.GetRelatedEntity("contract_detail_unit_of_measure_schedule", null); + } + set + { + this.OnPropertyChanging("contract_detail_unit_of_measure_schedule"); + this.SetRelatedEntity("contract_detail_unit_of_measure_schedule", null, value); + this.OnPropertyChanged("contract_detail_unit_of_measure_schedule"); + } + } + + /// + /// N:1 contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_line_items")] + public Xrm.Framework.CI.Common.Entities.Contract contract_line_items + { + get + { + return this.GetRelatedEntity("contract_line_items", null); + } + set + { + this.OnPropertyChanging("contract_line_items"); + this.SetRelatedEntity("contract_line_items", null, value); + this.OnPropertyChanged("contract_line_items"); + } + } + + /// + /// N:1 contractlineitem_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account contractlineitem_customer_accounts + { + get + { + return this.GetRelatedEntity("contractlineitem_customer_accounts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_accounts"); + this.SetRelatedEntity("contractlineitem_customer_accounts", null, value); + this.OnPropertyChanged("contractlineitem_customer_accounts"); + } + } + + /// + /// N:1 contractlineitem_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractlineitem_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact contractlineitem_customer_contacts + { + get + { + return this.GetRelatedEntity("contractlineitem_customer_contacts", null); + } + set + { + this.OnPropertyChanging("contractlineitem_customer_contacts"); + this.SetRelatedEntity("contractlineitem_customer_contacts", null, value); + this.OnPropertyChanged("contractlineitem_customer_contacts"); + } + } + + /// + /// N:1 customer_address_contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceaddress")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contract_line_items")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customer_address_contract_line_items + { + get + { + return this.GetRelatedEntity("customer_address_contract_line_items", null); + } + set + { + this.OnPropertyChanging("customer_address_contract_line_items"); + this.SetRelatedEntity("customer_address_contract_line_items", null, value); + this.OnPropertyChanged("customer_address_contract_line_items"); + } + } + + /// + /// N:1 lk_contractdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contractdetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contractdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contractdetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contractdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_contractdetailbase_createdby", null); + } + } + + /// + /// N:1 lk_contractdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contractdetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contractdetailbase_modifiedby", null); + } + } + + /// + /// N:1 product_contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_contract_line_items")] + public Xrm.Framework.CI.Common.Entities.Product product_contract_line_items + { + get + { + return this.GetRelatedEntity("product_contract_line_items", null); + } + set + { + this.OnPropertyChanging("product_contract_line_items"); + this.SetRelatedEntity("product_contract_line_items", null, value); + this.OnPropertyChanged("product_contract_line_items"); + } + } + + /// + /// N:1 transactioncurrency_contractdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contractdetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_contractdetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_contractdetail", null); + } + } + + /// + /// N:1 unit_of_measurement_contract_line_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_contract_line_items")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_contract_line_items + { + get + { + return this.GetRelatedEntity("unit_of_measurement_contract_line_items", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_contract_line_items"); + this.SetRelatedEntity("unit_of_measurement_contract_line_items", null, value); + this.OnPropertyChanged("unit_of_measurement_contract_line_items"); + } + } + } + + /// + /// Template for a contract containing the standard attributes of a contract. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contracttemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ContractTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ContractTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "contracttemplate"; + + public const int EntityTypeCode = 2011; + + 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)); + } + } + + /// + /// Abbreviation of the contract template name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("abbreviation")] + public string Abbreviation + { + get + { + return this.GetAttributeValue("abbreviation"); + } + set + { + this.OnPropertyChanging("Abbreviation"); + this.SetAttributeValue("abbreviation", value); + this.OnPropertyChanged("Abbreviation"); + } + } + + /// + /// Criteria for the contracts based on the template, such as number of cases, time, or coverage dates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allotmenttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AllotmentTypeCode + { + get + { + return this.GetAttributeValue("allotmenttypecode"); + } + set + { + this.OnPropertyChanging("AllotmentTypeCode"); + this.SetAttributeValue("allotmenttypecode", value); + this.OnPropertyChanged("AllotmentTypeCode"); + } + } + + /// + /// How often the customer or account is to be billed in contracts that are based on the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingfrequencycode")] + public Microsoft.Xrm.Sdk.OptionSetValue BillingFrequencyCode + { + get + { + return this.GetAttributeValue("billingfrequencycode"); + } + set + { + this.OnPropertyChanging("BillingFrequencyCode"); + this.SetAttributeValue("billingfrequencycode", value); + this.OnPropertyChanged("BillingFrequencyCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the level of service specified in contracts that are based on the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractservicelevelcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractServiceLevelCode + { + get + { + return this.GetAttributeValue("contractservicelevelcode"); + } + set + { + this.OnPropertyChanging("ContractServiceLevelCode"); + this.SetAttributeValue("contractservicelevelcode", value); + this.OnPropertyChanged("ContractServiceLevelCode"); + } + } + + /// + /// Unique identifier of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + public System.Nullable ContractTemplateId + { + get + { + return this.GetAttributeValue>("contracttemplateid"); + } + set + { + this.OnPropertyChanging("ContractTemplateId"); + this.SetAttributeValue("contracttemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContractTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContractTemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contracttemplateidunique")] + public System.Nullable ContractTemplateIdUnique + { + get + { + return this.GetAttributeValue>("contracttemplateidunique"); + } + } + + /// + /// Unique identifier of the user who created the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the contract template 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 contracttemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Days of the week and times for which contracts based on the template are effective. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivitycalendar")] + public string EffectivityCalendar + { + get + { + return this.GetAttributeValue("effectivitycalendar"); + } + set + { + this.OnPropertyChanging("EffectivityCalendar"); + this.SetAttributeValue("effectivitycalendar", value); + this.OnPropertyChanged("EffectivityCalendar"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the contract template 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 contracttemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Specifies whether the discount is a percentage or a monetary amount in contracts based on the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usediscountaspercentage")] + public System.Nullable UseDiscountAsPercentage + { + get + { + return this.GetAttributeValue>("usediscountaspercentage"); + } + set + { + this.OnPropertyChanging("UseDiscountAsPercentage"); + this.SetAttributeValue("usediscountaspercentage", value); + this.OnPropertyChanged("UseDiscountAsPercentage"); + } + } + + /// + /// Version number of the contract template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_template_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_template_contracts")] + public System.Collections.Generic.IEnumerable contract_template_contracts + { + get + { + return this.GetRelatedEntities("contract_template_contracts", null); + } + set + { + this.OnPropertyChanging("contract_template_contracts"); + this.SetRelatedEntities("contract_template_contracts", null, value); + this.OnPropertyChanged("contract_template_contracts"); + } + } + + /// + /// 1:N ContractTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_AsyncOperations")] + public System.Collections.Generic.IEnumerable ContractTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntities("ContractTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_AsyncOperations"); + this.SetRelatedEntities("ContractTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("ContractTemplate_AsyncOperations"); + } + } + + /// + /// 1:N ContractTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ContractTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ContractTemplate_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_BulkDeleteFailures"); + this.SetRelatedEntities("ContractTemplate_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ContractTemplate_BulkDeleteFailures"); + } + } + + /// + /// 1:N ContractTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_ProcessSessions")] + public System.Collections.Generic.IEnumerable ContractTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntities("ContractTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_ProcessSessions"); + this.SetRelatedEntities("ContractTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("ContractTemplate_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_contracttemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contracttemplate")] + public System.Collections.Generic.IEnumerable userentityinstancedata_contracttemplate + { + get + { + return this.GetRelatedEntities("userentityinstancedata_contracttemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contracttemplate"); + this.SetRelatedEntities("userentityinstancedata_contracttemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_contracttemplate"); + } + } + + /// + /// N:1 lk_contracttemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contracttemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_contracttemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_contracttemplate_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_contracttemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_contracttemplatebase_createdby", null); + } + } + + /// + /// N:1 lk_contracttemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_contracttemplatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_contracttemplatebase_modifiedby", null); + } + } + + /// + /// N:1 organization_contract_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_contract_templates")] + public Xrm.Framework.CI.Common.Entities.Organization organization_contract_templates + { + get + { + return this.GetRelatedEntity("organization_contract_templates", null); + } + } + } + + /// + /// Address and shipping information. Used to store additional addresses for an account or contact. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customeraddress")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CustomerAddress : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CustomerAddress() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "customeraddress"; + + public const int EntityTypeCode = 1071; + + 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 number of the address, to indicate whether the address is the primary, secondary, or other address for the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressnumber")] + public System.Nullable AddressNumber + { + get + { + return this.GetAttributeValue>("addressnumber"); + } + set + { + this.OnPropertyChanging("AddressNumber"); + this.SetAttributeValue("addressnumber", value); + this.OnPropertyChanged("AddressNumber"); + } + } + + /// + /// Select the address type, such as primary or billing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AddressTypeCode + { + get + { + return this.GetAttributeValue("addresstypecode"); + } + set + { + this.OnPropertyChanging("AddressTypeCode"); + this.SetAttributeValue("addresstypecode", value); + this.OnPropertyChanged("AddressTypeCode"); + } + } + + /// + /// Type the city for the customer's address to help identify the location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("city")] + public string City + { + get + { + return this.GetAttributeValue("city"); + } + set + { + this.OnPropertyChanging("City"); + this.SetAttributeValue("city", value); + this.OnPropertyChanged("City"); + } + } + + /// + /// Shows the complete address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("composite")] + public string Composite + { + get + { + return this.GetAttributeValue("composite"); + } + } + + /// + /// Type the country or region for the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("country")] + public string Country + { + get + { + return this.GetAttributeValue("country"); + } + set + { + this.OnPropertyChanging("Country"); + this.SetAttributeValue("country", value); + this.OnPropertyChanged("Country"); + } + } + + /// + /// Type the county for the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("county")] + public string County + { + get + { + return this.GetAttributeValue("county"); + } + set + { + this.OnPropertyChanging("County"); + this.SetAttributeValue("county", value); + this.OnPropertyChanged("County"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Unique identifier of the customer address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeraddressid")] + public System.Nullable CustomerAddressId + { + get + { + return this.GetAttributeValue>("customeraddressid"); + } + set + { + this.OnPropertyChanging("CustomerAddressId"); + this.SetAttributeValue("customeraddressid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CustomerAddressId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeraddressid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CustomerAddressId = 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"); + } + } + + /// + /// Type the fax number associated with the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the latitude value for the customer's address, for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("latitude")] + public System.Nullable Latitude + { + get + { + return this.GetAttributeValue>("latitude"); + } + set + { + this.OnPropertyChanging("Latitude"); + this.SetAttributeValue("latitude", value); + this.OnPropertyChanged("Latitude"); + } + } + + /// + /// Type the first line of the customer's address to help identify the location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line1")] + public string Line1 + { + get + { + return this.GetAttributeValue("line1"); + } + set + { + this.OnPropertyChanging("Line1"); + this.SetAttributeValue("line1", value); + this.OnPropertyChanged("Line1"); + } + } + + /// + /// Type the second line of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line2")] + public string Line2 + { + get + { + return this.GetAttributeValue("line2"); + } + set + { + this.OnPropertyChanging("Line2"); + this.SetAttributeValue("line2", value); + this.OnPropertyChanged("Line2"); + } + } + + /// + /// Type the third line of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line3")] + public string Line3 + { + get + { + return this.GetAttributeValue("line3"); + } + set + { + this.OnPropertyChanging("Line3"); + this.SetAttributeValue("line3", value); + this.OnPropertyChanged("Line3"); + } + } + + /// + /// Type the longitude value for the customer's address, for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longitude")] + public System.Nullable Longitude + { + get + { + return this.GetAttributeValue>("longitude"); + } + set + { + this.OnPropertyChanging("Longitude"); + this.SetAttributeValue("longitude", value); + this.OnPropertyChanged("Longitude"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the customer's address, such as Corporate Headquarters. + /// + [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 type code of the customer record to indicate whether the address belongs to a customer account or contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 user who owns the customer address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + public Microsoft.Xrm.Sdk.EntityReference ParentId + { + get + { + return this.GetAttributeValue("parentid"); + } + set + { + this.OnPropertyChanging("ParentId"); + this.SetAttributeValue("parentid", value); + this.OnPropertyChanged("ParentId"); + } + } + + /// + /// Type the ZIP Code or postal code for the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postalcode")] + public string PostalCode + { + get + { + return this.GetAttributeValue("postalcode"); + } + set + { + this.OnPropertyChanging("PostalCode"); + this.SetAttributeValue("postalcode", value); + this.OnPropertyChanged("PostalCode"); + } + } + + /// + /// Type the post office box number of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postofficebox")] + public string PostOfficeBox + { + get + { + return this.GetAttributeValue("postofficebox"); + } + set + { + this.OnPropertyChanging("PostOfficeBox"); + this.SetAttributeValue("postofficebox", value); + this.OnPropertyChanged("PostOfficeBox"); + } + } + + /// + /// Type the name of the primary contact person for the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactname")] + public string PrimaryContactName + { + get + { + return this.GetAttributeValue("primarycontactname"); + } + set + { + this.OnPropertyChanging("PrimaryContactName"); + this.SetAttributeValue("primarycontactname", value); + this.OnPropertyChanged("PrimaryContactName"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the state or province of the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stateorprovince")] + public string StateOrProvince + { + get + { + return this.GetAttributeValue("stateorprovince"); + } + set + { + this.OnPropertyChanging("StateOrProvince"); + this.SetAttributeValue("stateorprovince", value); + this.OnPropertyChanged("StateOrProvince"); + } + } + + /// + /// Type the primary phone number for the customer's address. + /// + [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 the customer's address. + /// + [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 the customer's address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the UPS zone of the customer's address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upszone")] + public string UPSZone + { + get + { + return this.GetAttributeValue("upszone"); + } + set + { + this.OnPropertyChanging("UPSZone"); + this.SetAttributeValue("upszone", value); + this.OnPropertyChanged("UPSZone"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the time zone for the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// Version number of the customer address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N customer_address_contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contract_line_items")] + public System.Collections.Generic.IEnumerable customer_address_contract_line_items + { + get + { + return this.GetRelatedEntities("customer_address_contract_line_items", null); + } + set + { + this.OnPropertyChanging("customer_address_contract_line_items"); + this.SetRelatedEntities("customer_address_contract_line_items", null, value); + this.OnPropertyChanged("customer_address_contract_line_items"); + } + } + + /// + /// 1:N customer_address_contracts_as_billing_address + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_billing_address")] + public System.Collections.Generic.IEnumerable customer_address_contracts_as_billing_address + { + get + { + return this.GetRelatedEntities("customer_address_contracts_as_billing_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_billing_address"); + this.SetRelatedEntities("customer_address_contracts_as_billing_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_billing_address"); + } + } + + /// + /// 1:N customer_address_contracts_as_service_address + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_address_contracts_as_service_address")] + public System.Collections.Generic.IEnumerable customer_address_contracts_as_service_address + { + get + { + return this.GetRelatedEntities("customer_address_contracts_as_service_address", null); + } + set + { + this.OnPropertyChanging("customer_address_contracts_as_service_address"); + this.SetRelatedEntities("customer_address_contracts_as_service_address", null, value); + this.OnPropertyChanged("customer_address_contracts_as_service_address"); + } + } + + /// + /// 1:N CustomerAddress_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_AsyncOperations")] + public System.Collections.Generic.IEnumerable CustomerAddress_AsyncOperations + { + get + { + return this.GetRelatedEntities("CustomerAddress_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_AsyncOperations"); + this.SetRelatedEntities("CustomerAddress_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerAddress_AsyncOperations"); + } + } + + /// + /// 1:N CustomerAddress_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CustomerAddress_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CustomerAddress_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_BulkDeleteFailures"); + this.SetRelatedEntities("CustomerAddress_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CustomerAddress_BulkDeleteFailures"); + } + } + + /// + /// 1:N customeraddress_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customeraddress_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable customeraddress_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("customeraddress_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("customeraddress_principalobjectattributeaccess"); + this.SetRelatedEntities("customeraddress_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("customeraddress_principalobjectattributeaccess"); + } + } + + /// + /// 1:N CustomerAddress_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_ProcessSessions")] + public System.Collections.Generic.IEnumerable CustomerAddress_ProcessSessions + { + get + { + return this.GetRelatedEntities("CustomerAddress_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_ProcessSessions"); + this.SetRelatedEntities("CustomerAddress_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerAddress_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_customeraddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeraddress")] + public System.Collections.Generic.IEnumerable userentityinstancedata_customeraddress + { + get + { + return this.GetRelatedEntities("userentityinstancedata_customeraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeraddress"); + this.SetRelatedEntities("userentityinstancedata_customeraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_customeraddress"); + } + } + + /// + /// N:1 Account_CustomerAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_CustomerAddress")] + public Xrm.Framework.CI.Common.Entities.Account Account_CustomerAddress + { + get + { + return this.GetRelatedEntity("Account_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Account_CustomerAddress"); + this.SetRelatedEntity("Account_CustomerAddress", null, value); + this.OnPropertyChanged("Account_CustomerAddress"); + } + } + + /// + /// N:1 Contact_CustomerAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_CustomerAddress")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_CustomerAddress + { + get + { + return this.GetRelatedEntity("Contact_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("Contact_CustomerAddress"); + this.SetRelatedEntity("Contact_CustomerAddress", null, value); + this.OnPropertyChanged("Contact_CustomerAddress"); + } + } + + /// + /// N:1 lk_customeraddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddress_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeraddress_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_customeraddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeraddress_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_customeraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddressbase_createdby + { + get + { + return this.GetRelatedEntity("lk_customeraddressbase_createdby", null); + } + } + + /// + /// N:1 lk_customeraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeraddressbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_customeraddressbase_modifiedby", null); + } + } + + /// + /// N:1 TransactionCurrency_CustomerAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CustomerAddress")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_CustomerAddress + { + get + { + return this.GetRelatedEntity("TransactionCurrency_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CustomerAddress"); + this.SetRelatedEntity("TransactionCurrency_CustomerAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_CustomerAddress"); + } + } + } + + /// + /// Relationship between an account or contact and an opportunity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customeropportunityrole")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CustomerOpportunityRole : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CustomerOpportunityRole() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "customeropportunityrole"; + + public const int EntityTypeCode = 4503; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the account or contact associated to the opportunity, such as a strategic partner, third-party vendor, or key decision maker. + /// + [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"); + } + } + + /// + /// Unique identifier of the opportunity relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeropportunityroleid")] + public System.Nullable CustomerOpportunityRoleId + { + get + { + return this.GetAttributeValue>("customeropportunityroleid"); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRoleId"); + this.SetAttributeValue("customeropportunityroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CustomerOpportunityRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customeropportunityroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CustomerOpportunityRoleId = value; + } + } + + /// + /// Type additional information to describe the opportunity relationship, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Choose the opportunity that the specified account or contact is related to. The opportunity relationship will be displayed in the Relationships view on the selected opportunity. + /// + [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"); + } + } + + /// + /// Choose the role or nature of the relationship that the customer has with the opportunity. The field is read-only until a customer has been selected. Administrators can configure role values under Business Management in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityroleid")] + public Microsoft.Xrm.Sdk.EntityReference OpportunityRoleId + { + get + { + return this.GetAttributeValue("opportunityroleid"); + } + set + { + this.OnPropertyChanging("OpportunityRoleId"); + this.SetAttributeValue("opportunityroleid", value); + this.OnPropertyChanged("OpportunityRoleId"); + } + } + + /// + /// Status of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitystatecode")] + public System.Nullable OpportunityStateCode + { + get + { + return this.GetAttributeValue>("opportunitystatecode"); + } + } + + /// + /// Reason for the status of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitystatuscode")] + public System.Nullable OpportunityStatusCode + { + get + { + return this.GetAttributeValue>("opportunitystatuscode"); + } + } + + /// + /// 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 customer opportunity role. + /// + [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 customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Version number of the customer opportunity role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N CustomerOpportunityRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_AsyncOperations")] + public System.Collections.Generic.IEnumerable CustomerOpportunityRole_AsyncOperations + { + get + { + return this.GetRelatedEntities("CustomerOpportunityRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_AsyncOperations"); + this.SetRelatedEntities("CustomerOpportunityRole_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_AsyncOperations"); + } + } + + /// + /// 1:N CustomerOpportunityRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CustomerOpportunityRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CustomerOpportunityRole_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_BulkDeleteFailures"); + this.SetRelatedEntities("CustomerOpportunityRole_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_BulkDeleteFailures"); + } + } + + /// + /// 1:N CustomerOpportunityRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_ProcessSessions")] + public System.Collections.Generic.IEnumerable CustomerOpportunityRole_ProcessSessions + { + get + { + return this.GetRelatedEntities("CustomerOpportunityRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_ProcessSessions"); + this.SetRelatedEntities("CustomerOpportunityRole_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_customeropportunityrole + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeropportunityrole")] + public System.Collections.Generic.IEnumerable userentityinstancedata_customeropportunityrole + { + get + { + return this.GetRelatedEntities("userentityinstancedata_customeropportunityrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeropportunityrole"); + this.SetRelatedEntities("userentityinstancedata_customeropportunityrole", null, value); + this.OnPropertyChanged("userentityinstancedata_customeropportunityrole"); + } + } + + /// + /// N:1 account_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Account account_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("account_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("account_customer_opportunity_roles"); + this.SetRelatedEntity("account_customer_opportunity_roles", null, value); + this.OnPropertyChanged("account_customer_opportunity_roles"); + } + } + + /// + /// N:1 business_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("business_customer_opportunity_roles", null); + } + } + + /// + /// N:1 contact_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Contact contact_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("contact_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("contact_customer_opportunity_roles"); + this.SetRelatedEntity("contact_customer_opportunity_roles", null, value); + this.OnPropertyChanged("contact_customer_opportunity_roles"); + } + } + + /// + /// N:1 lk_customeropportunityrole_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_createdby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_createdby", null); + } + } + + /// + /// N:1 lk_customeropportunityrole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_customeropportunityrole_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_modifiedby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_modifiedby", null); + } + } + + /// + /// N:1 lk_customeropportunityrole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_customeropportunityrole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_customeropportunityrole_modifiedonbehalfby", null); + } + } + + /// + /// N:1 opportunity_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("opportunity_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_opportunity_roles"); + this.SetRelatedEntity("opportunity_customer_opportunity_roles", null, value); + this.OnPropertyChanged("opportunity_customer_opportunity_roles"); + } + } + + /// + /// N:1 relationship_role_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("relationship_role_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_opportunity_roles"); + this.SetRelatedEntity("relationship_role_customer_opportunity_roles", null, value); + this.OnPropertyChanged("relationship_role_customer_opportunity_roles"); + } + } + + /// + /// N:1 team_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.Team team_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("team_customer_opportunity_roles", null); + } + } + + /// + /// N:1 user_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_opportunity_roles")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_customer_opportunity_roles + { + get + { + return this.GetRelatedEntity("user_customer_opportunity_roles", null); + } + } + } + + /// + /// Relationship between a customer and a partner in which either can be an account or contact. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customerrelationship")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CustomerRelationship : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public CustomerRelationship() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "customerrelationship"; + + public const int EntityTypeCode = 4502; + + 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 converse relationship of the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("converserelationshipid")] + public Microsoft.Xrm.Sdk.EntityReference ConverseRelationshipId + { + get + { + return this.GetAttributeValue("converserelationshipid"); + } + set + { + this.OnPropertyChanging("ConverseRelationshipId"); + this.SetAttributeValue("converserelationshipid", value); + this.OnPropertyChanged("ConverseRelationshipId"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the customer relationship was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the primary account or contact involved in the customer relationship. + /// + [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"); + } + } + + /// + /// Unique identifier of the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerrelationshipid")] + public System.Nullable CustomerRelationshipId + { + get + { + return this.GetAttributeValue>("customerrelationshipid"); + } + set + { + this.OnPropertyChanging("CustomerRelationshipId"); + this.SetAttributeValue("customerrelationshipid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("CustomerRelationshipId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerrelationshipid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.CustomerRelationshipId = value; + } + } + + /// + /// Type additional information about the primary party's role in the customer relationship, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerroledescription")] + public string CustomerRoleDescription + { + get + { + return this.GetAttributeValue("customerroledescription"); + } + set + { + this.OnPropertyChanging("CustomerRoleDescription"); + this.SetAttributeValue("customerroledescription", value); + this.OnPropertyChanged("CustomerRoleDescription"); + } + } + + /// + /// Choose the primary party's role or nature of the relationship the customer has with the second party. The field is read-only until both parties have been selected. Administrators can configure role values under Business Management in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerroleid")] + public Microsoft.Xrm.Sdk.EntityReference CustomerRoleId + { + get + { + return this.GetAttributeValue("customerroleid"); + } + set + { + this.OnPropertyChanging("CustomerRoleId"); + this.SetAttributeValue("customerroleid", value); + this.OnPropertyChanged("CustomerRoleId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the secondary account or contact involved in the customer relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerid")] + public Microsoft.Xrm.Sdk.EntityReference PartnerId + { + get + { + return this.GetAttributeValue("partnerid"); + } + set + { + this.OnPropertyChanging("PartnerId"); + this.SetAttributeValue("partnerid", value); + this.OnPropertyChanged("PartnerId"); + } + } + + /// + /// Type additional information about the secondary party's role in the customer relationship, such as the length or quality of the relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerroledescription")] + public string PartnerRoleDescription + { + get + { + return this.GetAttributeValue("partnerroledescription"); + } + set + { + this.OnPropertyChanging("PartnerRoleDescription"); + this.SetAttributeValue("partnerroledescription", value); + this.OnPropertyChanged("PartnerRoleDescription"); + } + } + + /// + /// Choose the secondary party's role or nature of the relationship the customer has with the primary party. The field is read-only until both parties have been selected. Administrators can configure role values under Business Management in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerroleid")] + public Microsoft.Xrm.Sdk.EntityReference PartnerRoleId + { + get + { + return this.GetAttributeValue("partnerroleid"); + } + set + { + this.OnPropertyChanging("PartnerRoleId"); + this.SetAttributeValue("partnerroleid", value); + this.OnPropertyChanged("PartnerRoleId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N customer_relationship_converse_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedcustomer_relationship_converse_relationship + { + get + { + return this.GetRelatedEntities("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedcustomer_relationship_converse_relationship"); + this.SetRelatedEntities("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedcustomer_relationship_converse_relationship"); + } + } + + /// + /// 1:N CustomerRelationship_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_AsyncOperations")] + public System.Collections.Generic.IEnumerable CustomerRelationship_AsyncOperations + { + get + { + return this.GetRelatedEntities("CustomerRelationship_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_AsyncOperations"); + this.SetRelatedEntities("CustomerRelationship_AsyncOperations", null, value); + this.OnPropertyChanged("CustomerRelationship_AsyncOperations"); + } + } + + /// + /// 1:N CustomerRelationship_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable CustomerRelationship_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("CustomerRelationship_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_BulkDeleteFailures"); + this.SetRelatedEntities("CustomerRelationship_BulkDeleteFailures", null, value); + this.OnPropertyChanged("CustomerRelationship_BulkDeleteFailures"); + } + } + + /// + /// 1:N CustomerRelationship_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_ProcessSessions")] + public System.Collections.Generic.IEnumerable CustomerRelationship_ProcessSessions + { + get + { + return this.GetRelatedEntities("CustomerRelationship_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_ProcessSessions"); + this.SetRelatedEntities("CustomerRelationship_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerRelationship_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_customerrelationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customerrelationship")] + public System.Collections.Generic.IEnumerable userentityinstancedata_customerrelationship + { + get + { + return this.GetRelatedEntities("userentityinstancedata_customerrelationship", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customerrelationship"); + this.SetRelatedEntities("userentityinstancedata_customerrelationship", null, value); + this.OnPropertyChanged("userentityinstancedata_customerrelationship"); + } + } + + /// + /// N:1 account_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_customer")] + public Xrm.Framework.CI.Common.Entities.Account account_customer_relationship_customer + { + get + { + return this.GetRelatedEntity("account_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_customer"); + this.SetRelatedEntity("account_customer_relationship_customer", null, value); + this.OnPropertyChanged("account_customer_relationship_customer"); + } + } + + /// + /// N:1 account_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_customer_relationship_partner")] + public Xrm.Framework.CI.Common.Entities.Account account_customer_relationship_partner + { + get + { + return this.GetRelatedEntity("account_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("account_customer_relationship_partner"); + this.SetRelatedEntity("account_customer_relationship_partner", null, value); + this.OnPropertyChanged("account_customer_relationship_partner"); + } + } + + /// + /// N:1 business_unit_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_customer_relationship + { + get + { + return this.GetRelatedEntity("business_unit_customer_relationship", null); + } + } + + /// + /// N:1 contact_customer_relationship_customer + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_customer")] + public Xrm.Framework.CI.Common.Entities.Contact contact_customer_relationship_customer + { + get + { + return this.GetRelatedEntity("contact_customer_relationship_customer", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_customer"); + this.SetRelatedEntity("contact_customer_relationship_customer", null, value); + this.OnPropertyChanged("contact_customer_relationship_customer"); + } + } + + /// + /// N:1 contact_customer_relationship_partner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_customer_relationship_partner")] + public Xrm.Framework.CI.Common.Entities.Contact contact_customer_relationship_partner + { + get + { + return this.GetRelatedEntity("contact_customer_relationship_partner", null); + } + set + { + this.OnPropertyChanging("contact_customer_relationship_partner"); + this.SetRelatedEntity("contact_customer_relationship_partner", null, value); + this.OnPropertyChanged("contact_customer_relationship_partner"); + } + } + + /// + /// N:1 createdby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_customer_relationship + { + get + { + return this.GetRelatedEntity("createdby_customer_relationship", null); + } + } + + /// + /// N:1 createdonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntity("createdonbehalfby_customer_relationship", null); + } + } + + /// + /// N:1 customer_relationship_converse_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("converserelationshipid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship Referencingcustomer_relationship_converse_relationship + { + get + { + return this.GetRelatedEntity("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingcustomer_relationship_converse_relationship"); + this.SetRelatedEntity("customer_relationship_converse_relationship", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingcustomer_relationship_converse_relationship"); + } + } + + /// + /// N:1 modifiedby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_customer_relationship + { + get + { + return this.GetRelatedEntity("modifiedby_customer_relationship", null); + } + } + + /// + /// N:1 modifiedonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntity("modifiedonbehalfby_customer_relationship", null); + } + } + + /// + /// N:1 relationship_role_customer_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_role")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_customer_role + { + get + { + return this.GetRelatedEntity("relationship_role_customer_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_role"); + this.SetRelatedEntity("relationship_role_customer_role", null, value); + this.OnPropertyChanged("relationship_role_customer_role"); + } + } + + /// + /// N:1 relationship_role_partner_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partnerroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_partner_role")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_partner_role + { + get + { + return this.GetRelatedEntity("relationship_role_partner_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_partner_role"); + this.SetRelatedEntity("relationship_role_partner_role", null, value); + this.OnPropertyChanged("relationship_role_partner_role"); + } + } + + /// + /// N:1 team_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.Team team_customer_relationship + { + get + { + return this.GetRelatedEntity("team_customer_relationship", null); + } + } + + /// + /// N:1 user_customer_relationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_relationship")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_customer_relationship + { + get + { + return this.GetRelatedEntity("user_customer_relationship", null); + } + } + } + + /// + /// A component dependency in CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dependency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Dependency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Dependency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "dependency"; + + public const int EntityTypeCode = 7105; + + 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 a dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyid")] + public System.Nullable DependencyId + { + get + { + return this.GetAttributeValue>("dependencyid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// The dependency type of the dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytype")] + public Microsoft.Xrm.Sdk.OptionSetValue DependencyType + { + get + { + return this.GetAttributeValue("dependencytype"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentbasesolutionid")] + public System.Nullable DependentComponentBaseSolutionId + { + get + { + return this.GetAttributeValue>("dependentcomponentbasesolutionid"); + } + } + + /// + /// Unique identifier of the dependent component's node. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentnodeid")] + public Microsoft.Xrm.Sdk.EntityReference DependentComponentNodeId + { + get + { + return this.GetAttributeValue("dependentcomponentnodeid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentobjectid")] + public System.Nullable DependentComponentObjectId + { + get + { + return this.GetAttributeValue>("dependentcomponentobjectid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentparentid")] + public System.Nullable DependentComponentParentId + { + get + { + return this.GetAttributeValue>("dependentcomponentparentid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue DependentComponentType + { + get + { + return this.GetAttributeValue("dependentcomponenttype"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentbasesolutionid")] + public System.Nullable RequiredComponentBaseSolutionId + { + get + { + return this.GetAttributeValue>("requiredcomponentbasesolutionid"); + } + } + + /// + /// Unique identifier of the required component's node + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentnodeid")] + public Microsoft.Xrm.Sdk.EntityReference RequiredComponentNodeId + { + get + { + return this.GetAttributeValue("requiredcomponentnodeid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentobjectid")] + public System.Nullable RequiredComponentObjectId + { + get + { + return this.GetAttributeValue>("requiredcomponentobjectid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentparentid")] + public System.Nullable RequiredComponentParentId + { + get + { + return this.GetAttributeValue>("requiredcomponentparentid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue RequiredComponentType + { + get + { + return this.GetAttributeValue("requiredcomponenttype"); + } + } + + /// + /// 1:N userentityinstancedata_dependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_dependency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_dependency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_dependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_dependency"); + this.SetRelatedEntities("userentityinstancedata_dependency", null, value); + this.OnPropertyChanged("userentityinstancedata_dependency"); + } + } + } + + /// + /// Price reduction made from the list price of a product or service based on the quantity purchased. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("discount")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Discount : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Discount() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "discount"; + + public const int EntityTypeCode = 1013; + + 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)); + } + } + + /// + /// Amount of the discount, specified either as a percentage or as a monetary amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount")] + public Microsoft.Xrm.Sdk.Money Amount + { + get + { + return this.GetAttributeValue("amount"); + } + set + { + this.OnPropertyChanging("Amount"); + this.SetAttributeValue("amount", value); + this.OnPropertyChanged("Amount"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency, if specified as a fixed amount. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount_base")] + public Microsoft.Xrm.Sdk.Money Amount_Base + { + get + { + return this.GetAttributeValue("amount_base"); + } + } + + /// + /// Unique identifier of the user who created the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the discount 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 discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountid")] + public System.Nullable DiscountId + { + get + { + return this.GetAttributeValue>("discountid"); + } + set + { + this.OnPropertyChanging("DiscountId"); + this.SetAttributeValue("discountid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DiscountId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DiscountId = value; + } + } + + /// + /// Unique identifier of the discount list associated with the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public Microsoft.Xrm.Sdk.EntityReference DiscountTypeId + { + get + { + return this.GetAttributeValue("discounttypeid"); + } + set + { + this.OnPropertyChanging("DiscountTypeId"); + this.SetAttributeValue("discounttypeid", value); + this.OnPropertyChanged("DiscountTypeId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Upper boundary for the quantity range to which a particular discount can be applied. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("highquantity")] + public System.Nullable HighQuantity + { + get + { + return this.GetAttributeValue>("highquantity"); + } + set + { + this.OnPropertyChanging("HighQuantity"); + this.SetAttributeValue("highquantity", value); + this.OnPropertyChanged("HighQuantity"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies whether the discount is specified as a monetary amount or a percentage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamounttype")] + public System.Nullable IsAmountType + { + get + { + return this.GetAttributeValue>("isamounttype"); + } + } + + /// + /// Lower boundary for the quantity range to which a particular discount is applied. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lowquantity")] + public System.Nullable LowQuantity + { + get + { + return this.GetAttributeValue>("lowquantity"); + } + set + { + this.OnPropertyChanging("LowQuantity"); + this.SetAttributeValue("lowquantity", value); + this.OnPropertyChanged("LowQuantity"); + } + } + + /// + /// Unique identifier of the user who last modified the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the discount 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 discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Percentage discount value. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentage")] + public System.Nullable Percentage + { + get + { + return this.GetAttributeValue>("percentage"); + } + set + { + this.OnPropertyChanging("Percentage"); + this.SetAttributeValue("percentage", value); + this.OnPropertyChanged("Percentage"); + } + } + + /// + /// Select the discount's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version number of the discount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Discount_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_AsyncOperations")] + public System.Collections.Generic.IEnumerable Discount_AsyncOperations + { + get + { + return this.GetRelatedEntities("Discount_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Discount_AsyncOperations"); + this.SetRelatedEntities("Discount_AsyncOperations", null, value); + this.OnPropertyChanged("Discount_AsyncOperations"); + } + } + + /// + /// 1:N Discount_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Discount_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Discount_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Discount_BulkDeleteFailures"); + this.SetRelatedEntities("Discount_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Discount_BulkDeleteFailures"); + } + } + + /// + /// 1:N Discount_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_ProcessSessions")] + public System.Collections.Generic.IEnumerable Discount_ProcessSessions + { + get + { + return this.GetRelatedEntities("Discount_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Discount_ProcessSessions"); + this.SetRelatedEntities("Discount_ProcessSessions", null, value); + this.OnPropertyChanged("Discount_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_discount + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discount")] + public System.Collections.Generic.IEnumerable userentityinstancedata_discount + { + get + { + return this.GetRelatedEntities("userentityinstancedata_discount", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discount"); + this.SetRelatedEntities("userentityinstancedata_discount", null, value); + this.OnPropertyChanged("userentityinstancedata_discount"); + } + } + + /// + /// N:1 discount_type_discounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_discounts")] + public Xrm.Framework.CI.Common.Entities.DiscountType discount_type_discounts + { + get + { + return this.GetRelatedEntity("discount_type_discounts", null); + } + set + { + this.OnPropertyChanging("discount_type_discounts"); + this.SetRelatedEntity("discount_type_discounts", null, value); + this.OnPropertyChanged("discount_type_discounts"); + } + } + + /// + /// N:1 lk_discount_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discount_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discount_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_discount_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discount_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discount_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_discountbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discountbase_createdby + { + get + { + return this.GetRelatedEntity("lk_discountbase_createdby", null); + } + } + + /// + /// N:1 lk_discountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discountbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_discountbase_modifiedby", null); + } + } + + /// + /// N:1 transactioncurrency_discount + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discount")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_discount + { + get + { + return this.GetRelatedEntity("transactioncurrency_discount", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum DiscountTypeState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Type of discount specified as either a percentage or an amount. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("discounttype")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DiscountType : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DiscountType() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "discounttype"; + + public const int EntityTypeCode = 1080; + + 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 discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the discount list 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 discounttype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public System.Nullable DiscountTypeId + { + get + { + return this.GetAttributeValue>("discounttypeid"); + } + set + { + this.OnPropertyChanging("DiscountTypeId"); + this.SetAttributeValue("discounttypeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DiscountTypeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DiscountTypeId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the discount list amounts are specified as monetary amounts or percentages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamounttype")] + public System.Nullable IsAmountType + { + get + { + return this.GetAttributeValue>("isamounttype"); + } + set + { + this.OnPropertyChanging("IsAmountType"); + this.SetAttributeValue("isamounttype", value); + this.OnPropertyChanged("IsAmountType"); + } + } + + /// + /// Unique identifier of the user who last modified the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the discount list 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 discounttype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the discount list. + /// + [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"); + } + } + + /// + /// Status of the discount list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.DiscountTypeState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.DiscountTypeState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the discount list. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the discount type. + /// + [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"); + } + } + + /// + /// Version number of the discount type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N discount_type_discounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_discounts")] + public System.Collections.Generic.IEnumerable discount_type_discounts + { + get + { + return this.GetRelatedEntities("discount_type_discounts", null); + } + set + { + this.OnPropertyChanging("discount_type_discounts"); + this.SetRelatedEntities("discount_type_discounts", null, value); + this.OnPropertyChanged("discount_type_discounts"); + } + } + + /// + /// 1:N discount_type_product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_product_price_levels")] + public System.Collections.Generic.IEnumerable discount_type_product_price_levels + { + get + { + return this.GetRelatedEntities("discount_type_product_price_levels", null); + } + set + { + this.OnPropertyChanging("discount_type_product_price_levels"); + this.SetRelatedEntities("discount_type_product_price_levels", null, value); + this.OnPropertyChanged("discount_type_product_price_levels"); + } + } + + /// + /// 1:N DiscountType_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_AsyncOperations")] + public System.Collections.Generic.IEnumerable DiscountType_AsyncOperations + { + get + { + return this.GetRelatedEntities("DiscountType_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DiscountType_AsyncOperations"); + this.SetRelatedEntities("DiscountType_AsyncOperations", null, value); + this.OnPropertyChanged("DiscountType_AsyncOperations"); + } + } + + /// + /// 1:N DiscountType_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable DiscountType_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("DiscountType_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("DiscountType_BulkDeleteFailures"); + this.SetRelatedEntities("DiscountType_BulkDeleteFailures", null, value); + this.OnPropertyChanged("DiscountType_BulkDeleteFailures"); + } + } + + /// + /// 1:N DiscountType_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_ProcessSessions")] + public System.Collections.Generic.IEnumerable DiscountType_ProcessSessions + { + get + { + return this.GetRelatedEntities("DiscountType_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("DiscountType_ProcessSessions"); + this.SetRelatedEntities("DiscountType_ProcessSessions", null, value); + this.OnPropertyChanged("DiscountType_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_discounttype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discounttype")] + public System.Collections.Generic.IEnumerable userentityinstancedata_discounttype + { + get + { + return this.GetRelatedEntities("userentityinstancedata_discounttype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discounttype"); + this.SetRelatedEntities("userentityinstancedata_discounttype", null, value); + this.OnPropertyChanged("userentityinstancedata_discounttype"); + } + } + + /// + /// N:1 lk_discounttype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttype_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discounttype_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_discounttype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_discounttype_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_discounttypebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttypebase_createdby + { + get + { + return this.GetRelatedEntity("lk_discounttypebase_createdby", null); + } + } + + /// + /// N:1 lk_discounttypebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_discounttypebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_discounttypebase_modifiedby", null); + } + } + + /// + /// N:1 organization_discount_types + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_discount_types")] + public Xrm.Framework.CI.Common.Entities.Organization organization_discount_types + { + get + { + return this.GetRelatedEntity("organization_discount_types", null); + } + } + + /// + /// N:1 transactioncurrency_discounttype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discounttype")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_discounttype + { + get + { + return this.GetRelatedEntity("transactioncurrency_discounttype", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_discounttype"); + this.SetRelatedEntity("transactioncurrency_discounttype", null, value); + this.OnPropertyChanged("transactioncurrency_discounttype"); + } + } + } + + /// + /// Customized messages for an entity that has been renamed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("displaystring")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DisplayString : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DisplayString() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "displaystring"; + + public const int EntityTypeCode = 4102; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the display string 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 displaystring. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Comment for a customized display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customcomment")] + public string CustomComment + { + get + { + return this.GetAttributeValue("customcomment"); + } + set + { + this.OnPropertyChanging("CustomComment"); + this.SetAttributeValue("customcomment", value); + this.OnPropertyChanged("CustomComment"); + } + } + + /// + /// Customized display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customdisplaystring")] + public string CustomDisplayString + { + get + { + return this.GetAttributeValue("customdisplaystring"); + } + set + { + this.OnPropertyChanging("CustomDisplayString"); + this.SetAttributeValue("customdisplaystring", value); + this.OnPropertyChanged("CustomDisplayString"); + } + } + + /// + /// Unique identifier of the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringid")] + public System.Nullable DisplayStringId + { + get + { + return this.GetAttributeValue>("displaystringid"); + } + set + { + this.OnPropertyChanging("DisplayStringId"); + this.SetAttributeValue("displaystringid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DisplayStringId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DisplayStringId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringidunique")] + public System.Nullable DisplayStringIdUnique + { + get + { + return this.GetAttributeValue>("displaystringidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displaystringkey")] + public string DisplayStringKey + { + get + { + return this.GetAttributeValue("displaystringkey"); + } + } + + /// + /// Parameters used for formatting the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formatparameters")] + public System.Nullable FormatParameters + { + get + { + return this.GetAttributeValue>("formatparameters"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Language code of the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the display string 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 displaystring. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Published display string. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheddisplaystring")] + public string PublishedDisplayString + { + get + { + return this.GetAttributeValue("publisheddisplaystring"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N DisplayString_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_AsyncOperations")] + public System.Collections.Generic.IEnumerable DisplayString_AsyncOperations + { + get + { + return this.GetRelatedEntities("DisplayString_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("DisplayString_AsyncOperations"); + this.SetRelatedEntities("DisplayString_AsyncOperations", null, value); + this.OnPropertyChanged("DisplayString_AsyncOperations"); + } + } + + /// + /// 1:N DisplayString_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DisplayString_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable DisplayString_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("DisplayString_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("DisplayString_BulkDeleteFailures"); + this.SetRelatedEntities("DisplayString_BulkDeleteFailures", null, value); + this.OnPropertyChanged("DisplayString_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_displaystring + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_displaystring")] + public System.Collections.Generic.IEnumerable userentityinstancedata_displaystring + { + get + { + return this.GetRelatedEntities("userentityinstancedata_displaystring", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_displaystring"); + this.SetRelatedEntities("userentityinstancedata_displaystring", null, value); + this.OnPropertyChanged("userentityinstancedata_displaystring"); + } + } + + /// + /// N:1 lk_DisplayStringbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_createdby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_createdby", null); + } + } + + /// + /// N:1 lk_DisplayStringbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_DisplayStringbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_modifiedby", null); + } + } + + /// + /// N:1 lk_DisplayStringbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_DisplayStringbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_DisplayStringbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_custom_displaystrings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_custom_displaystrings")] + public Xrm.Framework.CI.Common.Entities.Organization organization_custom_displaystrings + { + get + { + return this.GetRelatedEntity("organization_custom_displaystrings", null); + } + } + } + + /// + /// Potential duplicate record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterecord")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DuplicateRecord : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DuplicateRecord() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "duplicaterecord"; + + public const int EntityTypeCode = 4415; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + } + + /// + /// Unique identifier of the base record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + public Microsoft.Xrm.Sdk.EntityReference BaseRecordId + { + get + { + return this.GetAttributeValue("baserecordid"); + } + } + + /// + /// Date and time when the duplicate record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateid")] + public System.Nullable DuplicateId + { + get + { + return this.GetAttributeValue>("duplicateid"); + } + set + { + this.OnPropertyChanging("DuplicateId"); + this.SetAttributeValue("duplicateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DuplicateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DuplicateId = value; + } + } + + /// + /// Unique identifier of the potential duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + public Microsoft.Xrm.Sdk.EntityReference DuplicateRecordId + { + get + { + return this.GetAttributeValue("duplicaterecordid"); + } + } + + /// + /// Unique identifier of the duplicate rule against which this duplicate was found. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + public Microsoft.Xrm.Sdk.EntityReference DuplicateRuleId + { + get + { + return this.GetAttributeValue("duplicateruleid"); + } + } + + /// + /// Unique identifier of the user or team who owns the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the duplicate record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// 1:N userentityinstancedata_duplicaterecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterecord")] + public System.Collections.Generic.IEnumerable userentityinstancedata_duplicaterecord + { + get + { + return this.GetRelatedEntities("userentityinstancedata_duplicaterecord", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterecord"); + this.SetRelatedEntities("userentityinstancedata_duplicaterecord", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterecord"); + } + } + + /// + /// N:1 Account_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Account Account_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Account_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Account_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Account Account_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Account_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Appointment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Appointment_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Appointment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Appointment_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 AsyncOperation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation AsyncOperation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("AsyncOperation_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Campaign_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Campaign_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Campaign_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Campaign_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 CampaignResponse_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("CampaignResponse_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 CampaignResponse_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("CampaignResponse_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Competitor_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Competitor_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Competitor_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Competitor_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Contact_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Contact_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Contact_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Contact_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Contract_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Contract_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Contract_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Contract_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 DuplicateRule_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule DuplicateRule_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("DuplicateRule_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Email_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Email Email_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Email_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Email_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Email Email_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Email_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 emailserverprofile_duplicatebaserecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatebaserecord")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_duplicatebaserecord + { + get + { + return this.GetRelatedEntity("emailserverprofile_duplicatebaserecord", null); + } + } + + /// + /// N:1 emailserverprofile_duplicatematchingrecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatematchingrecord")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_duplicatematchingrecord + { + get + { + return this.GetRelatedEntity("emailserverprofile_duplicatematchingrecord", null); + } + } + + /// + /// N:1 Equipment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Equipment_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Equipment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Equipment_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Fax_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Fax_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Fax_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Fax_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Incident_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Incident_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Incident_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Incident_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 KbArticle_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("KbArticle_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 KbArticle_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("KbArticle_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Lead_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Lead_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Lead_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Lead_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Letter_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Letter_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Letter_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Letter_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 List_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.List List_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("List_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 List_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.List List_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("List_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 msdyn_postalbum_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 msdyn_postalbum_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Opportunity_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Opportunity_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Opportunity_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Opportunity_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 PhoneCall_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("PhoneCall_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 PhoneCall_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("PhoneCall_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Queue_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Queue_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Queue_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Queue_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Quote_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Quote_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Quote_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Quote_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 RecurringAppointmentMaster_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 RecurringAppointmentMaster_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 ResourceGroup_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("ResourceGroup_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 ResourceGroup_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup ResourceGroup_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("ResourceGroup_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Service_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Service Service_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Service_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Service_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Service Service_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Service_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 SharePointDocumentLocation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 SharePointDocumentLocation_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 SharePointSite_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("SharePointSite_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 SharePointSite_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("SharePointSite_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 SystemUser_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("SystemUser_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 SystemUser_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("SystemUser_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Task_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Task Task_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Task_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Task_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Task Task_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Task_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Team_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Team Team_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Team_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Team_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Team Team_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Team_DuplicateMatchingRecord", null); + } + } + + /// + /// N:1 Territory_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateBaseRecord")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntity("Territory_DuplicateBaseRecord", null); + } + } + + /// + /// N:1 Territory_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateMatchingRecord")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntity("Territory_DuplicateMatchingRecord", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum DuplicateRuleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + } + + /// + /// Rule used to identify potential duplicates. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DuplicateRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DuplicateRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "duplicaterule"; + + public const int EntityTypeCode = 4414; + + 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)); + } + } + + /// + /// Database table that stores match codes for the record type being evaluated for potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseentitymatchcodetable")] + public string BaseEntityMatchCodeTable + { + get + { + return this.GetAttributeValue("baseentitymatchcodetable"); + } + } + + /// + /// Record type of the record being evaluated for potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseentityname")] + public string BaseEntityName + { + get + { + return this.GetAttributeValue("baseentityname"); + } + set + { + this.OnPropertyChanging("BaseEntityName"); + this.SetAttributeValue("baseentityname", value); + this.OnPropertyChanged("BaseEntityName"); + } + } + + /// + /// Record type of the record being evaluated for potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseentitytypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue BaseEntityTypeCode + { + get + { + return this.GetAttributeValue("baseentitytypecode"); + } + } + + /// + /// Unique identifier of the user who created the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the duplicate detection rule 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 duplicaterule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + public System.Nullable DuplicateRuleId + { + get + { + return this.GetAttributeValue>("duplicateruleid"); + } + set + { + this.OnPropertyChanging("DuplicateRuleId"); + this.SetAttributeValue("duplicateruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DuplicateRuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DuplicateRuleId = value; + } + } + + /// + /// Determines whether to flag inactive records as duplicates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("excludeinactiverecords")] + public System.Nullable ExcludeInactiveRecords + { + get + { + return this.GetAttributeValue>("excludeinactiverecords"); + } + set + { + this.OnPropertyChanging("ExcludeInactiveRecords"); + this.SetAttributeValue("excludeinactiverecords", value); + this.OnPropertyChanged("ExcludeInactiveRecords"); + } + } + + /// + /// Indicates if the operator is case-sensitive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscasesensitive")] + public System.Nullable IsCaseSensitive + { + get + { + return this.GetAttributeValue>("iscasesensitive"); + } + set + { + this.OnPropertyChanging("IsCaseSensitive"); + this.SetAttributeValue("iscasesensitive", value); + this.OnPropertyChanged("IsCaseSensitive"); + } + } + + /// + /// Database table that stores match codes for potential duplicate records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingentitymatchcodetable")] + public string MatchingEntityMatchCodeTable + { + get + { + return this.GetAttributeValue("matchingentitymatchcodetable"); + } + } + + /// + /// Record type of the records being evaluated as potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingentityname")] + public string MatchingEntityName + { + get + { + return this.GetAttributeValue("matchingentityname"); + } + set + { + this.OnPropertyChanging("MatchingEntityName"); + this.SetAttributeValue("matchingentityname", value); + this.OnPropertyChanged("MatchingEntityName"); + } + } + + /// + /// Record type of the records being evaluated as potential duplicates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingentitytypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue MatchingEntityTypeCode + { + get + { + return this.GetAttributeValue("matchingentitytypecode"); + } + } + + /// + /// Unique identifier of the user who last modified the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the duplicate detection rule 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 duplicaterule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the user or team who owns the duplicate detection rule. + /// + [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 duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the duplicate detection rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.DuplicateRuleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.DuplicateRuleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the duplicate detection rule. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N DuplicateRule_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_Annotation")] + public System.Collections.Generic.IEnumerable DuplicateRule_Annotation + { + get + { + return this.GetRelatedEntities("DuplicateRule_Annotation", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_Annotation"); + this.SetRelatedEntities("DuplicateRule_Annotation", null, value); + this.OnPropertyChanged("DuplicateRule_Annotation"); + } + } + + /// + /// 1:N DuplicateRule_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable DuplicateRule_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("DuplicateRule_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_DuplicateBaseRecord"); + this.SetRelatedEntities("DuplicateRule_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("DuplicateRule_DuplicateBaseRecord"); + } + } + + /// + /// 1:N DuplicateRule_DuplicateRuleConditions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateRuleConditions")] + public System.Collections.Generic.IEnumerable DuplicateRule_DuplicateRuleConditions + { + get + { + return this.GetRelatedEntities("DuplicateRule_DuplicateRuleConditions", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_DuplicateRuleConditions"); + this.SetRelatedEntities("DuplicateRule_DuplicateRuleConditions", null, value); + this.OnPropertyChanged("DuplicateRule_DuplicateRuleConditions"); + } + } + + /// + /// 1:N userentityinstancedata_duplicaterule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_duplicaterule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_duplicaterule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterule"); + this.SetRelatedEntities("userentityinstancedata_duplicaterule", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterule"); + } + } + + /// + /// N:1 BusinessUnit_DuplicateRules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_DuplicateRules")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_DuplicateRules + { + get + { + return this.GetRelatedEntity("BusinessUnit_DuplicateRules", null); + } + } + + /// + /// N:1 lk_duplicaterule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicaterule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicaterulebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulebase_createdby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulebase_createdby", null); + } + } + + /// + /// N:1 lk_duplicaterulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulebase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_DuplicateRules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateRules")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_DuplicateRules + { + get + { + return this.GetRelatedEntity("SystemUser_DuplicateRules", null); + } + } + + /// + /// N:1 team_DuplicateRules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_DuplicateRules")] + public Xrm.Framework.CI.Common.Entities.Team team_DuplicateRules + { + get + { + return this.GetRelatedEntity("team_DuplicateRules", null); + } + } + } + + /// + /// Condition of a duplicate detection rule. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterulecondition")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class DuplicateRuleCondition : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public DuplicateRuleCondition() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "duplicaterulecondition"; + + public const int EntityTypeCode = 4416; + + 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)); + } + } + + /// + /// Field that is being compared. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseattributename")] + public string BaseAttributeName + { + get + { + return this.GetAttributeValue("baseattributename"); + } + set + { + this.OnPropertyChanging("BaseAttributeName"); + this.SetAttributeValue("baseattributename", value); + this.OnPropertyChanged("BaseAttributeName"); + } + } + + /// + /// Unique identifier of the user who created the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the condition 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 duplicate rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleconditionid")] + public System.Nullable DuplicateRuleConditionId + { + get + { + return this.GetAttributeValue>("duplicateruleconditionid"); + } + set + { + this.OnPropertyChanging("DuplicateRuleConditionId"); + this.SetAttributeValue("duplicateruleconditionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DuplicateRuleConditionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleconditionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DuplicateRuleConditionId = value; + } + } + + /// + /// Determines whether to consider blank values as non-duplicate values + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreblankvalues")] + public System.Nullable IgnoreBlankValues + { + get + { + return this.GetAttributeValue>("ignoreblankvalues"); + } + set + { + this.OnPropertyChanging("IgnoreBlankValues"); + this.SetAttributeValue("ignoreblankvalues", value); + this.OnPropertyChanged("IgnoreBlankValues"); + } + } + + /// + /// Field that is being compared with the base field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("matchingattributename")] + public string MatchingAttributeName + { + get + { + return this.GetAttributeValue("matchingattributename"); + } + set + { + this.OnPropertyChanging("MatchingAttributeName"); + this.SetAttributeValue("matchingattributename", value); + this.OnPropertyChanged("MatchingAttributeName"); + } + } + + /// + /// Unique identifier of the user who last modified the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the condition 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 duplicate rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Operator for this rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operatorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue OperatorCode + { + get + { + return this.GetAttributeValue("operatorcode"); + } + set + { + this.OnPropertyChanging("OperatorCode"); + this.SetAttributeValue("operatorcode", value); + this.OnPropertyChanged("OperatorCode"); + } + } + + /// + /// Parameter value of N if the operator is Same First Characters or Same Last Characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operatorparam")] + public System.Nullable OperatorParam + { + get + { + return this.GetAttributeValue>("operatorparam"); + } + set + { + this.OnPropertyChanging("OperatorParam"); + this.SetAttributeValue("operatorparam", value); + this.OnPropertyChanged("OperatorParam"); + } + } + + /// + /// Unique identifier of the user or team who owns the duplicate rule condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the condition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the object with which the condition 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"); + } + } + + /// + /// 1:N userentityinstancedata_duplicaterulecondition + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterulecondition")] + public System.Collections.Generic.IEnumerable userentityinstancedata_duplicaterulecondition + { + get + { + return this.GetRelatedEntities("userentityinstancedata_duplicaterulecondition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterulecondition"); + this.SetRelatedEntities("userentityinstancedata_duplicaterulecondition", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterulecondition"); + } + } + + /// + /// N:1 DuplicateRule_DuplicateRuleConditions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateRuleConditions")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule DuplicateRule_DuplicateRuleConditions + { + get + { + return this.GetRelatedEntity("DuplicateRule_DuplicateRuleConditions", null); + } + set + { + this.OnPropertyChanging("DuplicateRule_DuplicateRuleConditions"); + this.SetRelatedEntity("DuplicateRule_DuplicateRuleConditions", null, value); + this.OnPropertyChanged("DuplicateRule_DuplicateRuleConditions"); + } + } + + /// + /// N:1 lk_duplicaterulecondition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulecondition_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulecondition_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicaterulecondition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicaterulecondition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_duplicaterulecondition_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_duplicateruleconditionbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicateruleconditionbase_createdby + { + get + { + return this.GetRelatedEntity("lk_duplicateruleconditionbase_createdby", null); + } + } + + /// + /// N:1 lk_duplicateruleconditionbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_duplicateruleconditionbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_duplicateruleconditionbase_modifiedby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum EmailState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that is delivered using email protocols. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("email")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Email : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Email() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "email"; + + public const int EntityTypeCode = 4202; + + 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 email 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Type the number of minutes spent creating and sending the email. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the email. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual time to create and send the email. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the email. By default, it displays the date and time when the activity was created, but can be edited to capture the actual time to create and send the email. + /// + [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"); + } + } + + /// + /// Shows the umber of attachments of the email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attachmentcount")] + public System.Nullable AttachmentCount + { + get + { + return this.GetAttributeValue>("attachmentcount"); + } + } + + /// + /// Enter the recipients that are included on the email distribution, but are not displayed to other recipients. + /// + [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"); + } + } + + /// + /// Type a category to identify the email type, such as lead outreach, customer follow-up, or service alert, to tie the email to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Enter the recipients that should be copied on the email. + /// + [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"); + } + } + + /// + /// Indicates if the body is compressed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("compressed")] + public System.Nullable Compressed + { + get + { + return this.GetAttributeValue>("compressed"); + } + } + + /// + /// Identifier for all the email responses for this conversation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("conversationindex")] + public string ConversationIndex + { + get + { + return this.GetAttributeValue("conversationindex"); + } + } + + /// + /// Shows how an email is matched to an existing email in Microsoft Dynamics CRM. For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue CorrelationMethod + { + get + { + return this.GetAttributeValue("correlationmethod"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Shows the count of the number of attempts made to send the email. The count is used as an indicator of email routing issues. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliveryattempts")] + public System.Nullable DeliveryAttempts + { + get + { + return this.GetAttributeValue>("deliveryattempts"); + } + set + { + this.OnPropertyChanging("DeliveryAttempts"); + this.SetAttributeValue("deliveryattempts", value); + this.OnPropertyChanged("DeliveryAttempts"); + } + } + + /// + /// Select the priority of delivery of the email 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"); + } + } + + /// + /// Select whether the sender should receive confirmation that the email was delivered. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliveryreceiptrequested")] + public System.Nullable DeliveryReceiptRequested + { + get + { + return this.GetAttributeValue>("deliveryreceiptrequested"); + } + set + { + this.OnPropertyChanging("DeliveryReceiptRequested"); + this.SetAttributeValue("deliveryreceiptrequested", value); + this.OnPropertyChanged("DeliveryReceiptRequested"); + } + } + + /// + /// Type the greeting and message text of the email. + /// + [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 the direction of the email as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 sender of the email. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the ID of the email message that this email activity is a response to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inreplyto")] + public string InReplyTo + { + get + { + return this.GetAttributeValue("inreplyto"); + } + } + + /// + /// Information regarding whether the email 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indication if the email was created by 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"); + } + } + + /// + /// Unique identifier of the email message. Used only for email that is received. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messageid")] + public string MessageId + { + get + { + return this.GetAttributeValue("messageid"); + } + set + { + this.OnPropertyChanging("MessageId"); + this.SetAttributeValue("messageid", value); + this.OnPropertyChanged("MessageId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messageiddupcheck")] + [System.ObsoleteAttribute()] + public System.Nullable MessageIdDupCheck + { + get + { + return this.GetAttributeValue>("messageiddupcheck"); + } + set + { + this.OnPropertyChanging("MessageIdDupCheck"); + this.SetAttributeValue("messageiddupcheck", value); + this.OnPropertyChanged("MessageIdDupCheck"); + } + } + + /// + /// MIME type of the email message data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Select the notification code to identify issues with the email recipients or attachments, such as blocked attachments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("notifications")] + public Microsoft.Xrm.Sdk.OptionSetValue Notifications + { + get + { + return this.GetAttributeValue("notifications"); + } + set + { + this.OnPropertyChanging("Notifications"); + this.SetAttributeValue("notifications", value); + this.OnPropertyChanged("Notifications"); + } + } + + /// + /// 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 email activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the email activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the email activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the activity that the email is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentactivityid")] + public Microsoft.Xrm.Sdk.EntityReference ParentActivityId + { + get + { + return this.GetAttributeValue("parentactivityid"); + } + set + { + this.OnPropertyChanging("ParentActivityId"); + this.SetAttributeValue("parentactivityid", value); + this.OnPropertyChanged("ParentActivityId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponeemailprocessinguntil")] + public System.Nullable PostponeEmailProcessingUntil + { + get + { + return this.GetAttributeValue>("postponeemailprocessinguntil"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indicates that a read receipt is requested. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("readreceiptrequested")] + public System.Nullable ReadReceiptRequested + { + get + { + return this.GetAttributeValue>("readreceiptrequested"); + } + set + { + this.OnPropertyChanging("ReadReceiptRequested"); + this.SetAttributeValue("readreceiptrequested", value); + this.OnPropertyChanged("ReadReceiptRequested"); + } + } + + /// + /// Unique identifier of the object with which the e-mail 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"); + } + } + + /// + /// Scheduled duration of the email activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time for the activity to be completed to provide details about when the email will be sent. + /// + [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"); + } + } + + /// + /// Enter the expected start date and time for the activity to provide details about the tentative time when the email activity must be initiated. + /// + [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"); + } + } + + /// + /// Sender of the email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sender")] + public string Sender + { + get + { + return this.GetAttributeValue("sender"); + } + set + { + this.OnPropertyChanging("Sender"); + this.SetAttributeValue("sender", value); + this.OnPropertyChanged("Sender"); + } + } + + /// + /// Select 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"); + } + } + + /// + /// Shows the date and time that the email was sent. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("senton")] + public System.Nullable SentOn + { + get + { + return this.GetAttributeValue>("senton"); + } + } + + /// + /// Unique identifier for the associated service. + /// + [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"); + } + } + + /// + /// 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 email is open, completed, or canceled. Completed and canceled email is read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.EmailState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.EmailState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the email'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"); + } + } + + /// + /// Type a subcategory to identify the email type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Shows the Microsoft Office Outlook account for the user who submitted the email to Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("submittedby")] + public string SubmittedBy + { + get + { + return this.GetAttributeValue("submittedby"); + } + set + { + this.OnPropertyChanging("SubmittedBy"); + this.SetAttributeValue("submittedby", value); + this.OnPropertyChanged("SubmittedBy"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, queue, or user recipients for the email. + /// + [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"); + } + } + + /// + /// Shows the email addresses corresponding to the recipients. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("torecipients")] + public string ToRecipients + { + get + { + return this.GetAttributeValue("torecipients"); + } + set + { + this.OnPropertyChanging("ToRecipients"); + this.SetAttributeValue("torecipients", value); + this.OnPropertyChanged("ToRecipients"); + } + } + + /// + /// Shows the tracking token assigned to the email to make sure responses are automatically tracked in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtoken")] + public string TrackingToken + { + get + { + return this.GetAttributeValue("trackingtoken"); + } + set + { + this.OnPropertyChanging("TrackingToken"); + this.SetAttributeValue("trackingtoken", value); + this.OnPropertyChanged("TrackingToken"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N email_activity_mime_attachment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_mime_attachment")] + public System.Collections.Generic.IEnumerable email_activity_mime_attachment + { + get + { + return this.GetRelatedEntities("email_activity_mime_attachment", null); + } + set + { + this.OnPropertyChanging("email_activity_mime_attachment"); + this.SetRelatedEntities("email_activity_mime_attachment", null, value); + this.OnPropertyChanged("email_activity_mime_attachment"); + } + } + + /// + /// 1:N email_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_activity_parties")] + public System.Collections.Generic.IEnumerable email_activity_parties + { + get + { + return this.GetRelatedEntities("email_activity_parties", null); + } + set + { + this.OnPropertyChanging("email_activity_parties"); + this.SetRelatedEntities("email_activity_parties", null, value); + this.OnPropertyChanged("email_activity_parties"); + } + } + + /// + /// 1:N Email_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_Annotation")] + public System.Collections.Generic.IEnumerable Email_Annotation + { + get + { + return this.GetRelatedEntities("Email_Annotation", null); + } + set + { + this.OnPropertyChanging("Email_Annotation"); + this.SetRelatedEntities("Email_Annotation", null, value); + this.OnPropertyChanged("Email_Annotation"); + } + } + + /// + /// 1:N Email_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_AsyncOperations")] + public System.Collections.Generic.IEnumerable Email_AsyncOperations + { + get + { + return this.GetRelatedEntities("Email_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Email_AsyncOperations"); + this.SetRelatedEntities("Email_AsyncOperations", null, value); + this.OnPropertyChanged("Email_AsyncOperations"); + } + } + + /// + /// 1:N Email_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Email_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Email_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Email_BulkDeleteFailures"); + this.SetRelatedEntities("Email_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Email_BulkDeleteFailures"); + } + } + + /// + /// 1:N email_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_campaignresponse")] + public System.Collections.Generic.IEnumerable email_campaignresponse + { + get + { + return this.GetRelatedEntities("email_campaignresponse", null); + } + set + { + this.OnPropertyChanging("email_campaignresponse"); + this.SetRelatedEntities("email_campaignresponse", null, value); + this.OnPropertyChanged("email_campaignresponse"); + } + } + + /// + /// 1:N email_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections1")] + public System.Collections.Generic.IEnumerable email_connections1 + { + get + { + return this.GetRelatedEntities("email_connections1", null); + } + set + { + this.OnPropertyChanging("email_connections1"); + this.SetRelatedEntities("email_connections1", null, value); + this.OnPropertyChanged("email_connections1"); + } + } + + /// + /// 1:N email_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_connections2")] + public System.Collections.Generic.IEnumerable email_connections2 + { + get + { + return this.GetRelatedEntities("email_connections2", null); + } + set + { + this.OnPropertyChanging("email_connections2"); + this.SetRelatedEntities("email_connections2", null, value); + this.OnPropertyChanged("email_connections2"); + } + } + + /// + /// 1:N Email_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Email_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Email_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Email_DuplicateBaseRecord"); + this.SetRelatedEntities("Email_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Email_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Email_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Email_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Email_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Email_DuplicateMatchingRecord"); + this.SetRelatedEntities("Email_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Email_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N email_email_parentactivityid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedemail_email_parentactivityid + { + get + { + return this.GetRelatedEntities("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedemail_email_parentactivityid"); + this.SetRelatedEntities("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedemail_email_parentactivityid"); + } + } + + /// + /// 1:N email_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable email_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("email_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("email_principalobjectattributeaccess"); + this.SetRelatedEntities("email_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("email_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Email_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_ProcessSessions")] + public System.Collections.Generic.IEnumerable Email_ProcessSessions + { + get + { + return this.GetRelatedEntities("Email_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Email_ProcessSessions"); + this.SetRelatedEntities("Email_ProcessSessions", null, value); + this.OnPropertyChanged("Email_ProcessSessions"); + } + } + + /// + /// 1:N Email_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_QueueItem")] + public System.Collections.Generic.IEnumerable Email_QueueItem + { + get + { + return this.GetRelatedEntities("Email_QueueItem", null); + } + set + { + this.OnPropertyChanging("Email_QueueItem"); + this.SetRelatedEntities("Email_QueueItem", null, value); + this.OnPropertyChanged("Email_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_email")] + public System.Collections.Generic.IEnumerable userentityinstancedata_email + { + get + { + return this.GetRelatedEntities("userentityinstancedata_email", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_email"); + this.SetRelatedEntities("userentityinstancedata_email", null, value); + this.OnPropertyChanged("userentityinstancedata_email"); + } + } + + /// + /// N:1 Account_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Emails")] + public Xrm.Framework.CI.Common.Entities.Account Account_Emails + { + get + { + return this.GetRelatedEntity("Account_Emails", null); + } + set + { + this.OnPropertyChanging("Account_Emails"); + this.SetRelatedEntity("Account_Emails", null, value); + this.OnPropertyChanged("Account_Emails"); + } + } + + /// + /// N:1 activity_pointer_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_email")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_email + { + get + { + return this.GetRelatedEntity("activity_pointer_email", null); + } + set + { + this.OnPropertyChanging("activity_pointer_email"); + this.SetRelatedEntity("activity_pointer_email", null, value); + this.OnPropertyChanged("activity_pointer_email"); + } + } + + /// + /// N:1 AsyncOperation_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_Emails")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation AsyncOperation_Emails + { + get + { + return this.GetRelatedEntity("AsyncOperation_Emails", null); + } + set + { + this.OnPropertyChanging("AsyncOperation_Emails"); + this.SetRelatedEntity("AsyncOperation_Emails", null, value); + this.OnPropertyChanged("AsyncOperation_Emails"); + } + } + + /// + /// N:1 BulkOperation_Email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Email")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Email + { + get + { + return this.GetRelatedEntity("BulkOperation_Email", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Email"); + this.SetRelatedEntity("BulkOperation_Email", null, value); + this.OnPropertyChanged("BulkOperation_Email"); + } + } + + /// + /// N:1 business_unit_email_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_email_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_email_activities + { + get + { + return this.GetRelatedEntity("business_unit_email_activities", null); + } + } + + /// + /// N:1 Campaign_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Emails")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Emails + { + get + { + return this.GetRelatedEntity("Campaign_Emails", null); + } + set + { + this.OnPropertyChanging("Campaign_Emails"); + this.SetRelatedEntity("Campaign_Emails", null, value); + this.OnPropertyChanged("Campaign_Emails"); + } + } + + /// + /// N:1 CampaignActivity_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Emails")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Emails + { + get + { + return this.GetRelatedEntity("CampaignActivity_Emails", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Emails"); + this.SetRelatedEntity("CampaignActivity_Emails", null, value); + this.OnPropertyChanged("CampaignActivity_Emails"); + } + } + + /// + /// N:1 Contact_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Emails")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Emails + { + get + { + return this.GetRelatedEntity("Contact_Emails", null); + } + set + { + this.OnPropertyChanging("Contact_Emails"); + this.SetRelatedEntity("Contact_Emails", null, value); + this.OnPropertyChanged("Contact_Emails"); + } + } + + /// + /// N:1 Contract_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Emails")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Emails + { + get + { + return this.GetRelatedEntity("Contract_Emails", null); + } + set + { + this.OnPropertyChanging("Contract_Emails"); + this.SetRelatedEntity("Contract_Emails", null, value); + this.OnPropertyChanged("Contract_Emails"); + } + } + + /// + /// N:1 email_email_parentactivityid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentactivityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Email Referencingemail_email_parentactivityid + { + get + { + return this.GetRelatedEntity("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingemail_email_parentactivityid"); + this.SetRelatedEntity("email_email_parentactivityid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingemail_email_parentactivityid"); + } + } + + /// + /// N:1 email_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendermailboxid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_sendermailboxid_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox email_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntity("email_sendermailboxid_mailbox", null); + } + } + + /// + /// N:1 Incident_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Emails")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Emails + { + get + { + return this.GetRelatedEntity("Incident_Emails", null); + } + set + { + this.OnPropertyChanging("Incident_Emails"); + this.SetRelatedEntity("Incident_Emails", null, value); + this.OnPropertyChanged("Incident_Emails"); + } + } + + /// + /// N:1 Invoice_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Emails")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Emails + { + get + { + return this.GetRelatedEntity("Invoice_Emails", null); + } + set + { + this.OnPropertyChanging("Invoice_Emails"); + this.SetRelatedEntity("Invoice_Emails", null, value); + this.OnPropertyChanged("Invoice_Emails"); + } + } + + /// + /// N:1 Lead_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Emails")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Emails + { + get + { + return this.GetRelatedEntity("Lead_Emails", null); + } + set + { + this.OnPropertyChanging("Lead_Emails"); + this.SetRelatedEntity("Lead_Emails", null, value); + this.OnPropertyChanged("Lead_Emails"); + } + } + + /// + /// N:1 lk_email_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_createdby + { + get + { + return this.GetRelatedEntity("lk_email_createdby", null); + } + } + + /// + /// N:1 lk_email_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_email_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_email_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_modifiedby + { + get + { + return this.GetRelatedEntity("lk_email_modifiedby", null); + } + } + + /// + /// N:1 lk_email_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_email_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_email_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Emails")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Emails + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Emails", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Emails"); + this.SetRelatedEntity("msdyn_postalbum_Emails", null, value); + this.OnPropertyChanged("msdyn_postalbum_Emails"); + } + } + + /// + /// N:1 Opportunity_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Emails")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Emails + { + get + { + return this.GetRelatedEntity("Opportunity_Emails", null); + } + set + { + this.OnPropertyChanging("Opportunity_Emails"); + this.SetRelatedEntity("Opportunity_Emails", null, value); + this.OnPropertyChanged("Opportunity_Emails"); + } + } + + /// + /// N:1 processstage_emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_emails")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_emails + { + get + { + return this.GetRelatedEntity("processstage_emails", null); + } + set + { + this.OnPropertyChanging("processstage_emails"); + this.SetRelatedEntity("processstage_emails", null, value); + this.OnPropertyChanged("processstage_emails"); + } + } + + /// + /// N:1 Quote_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Emails")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Emails + { + get + { + return this.GetRelatedEntity("Quote_Emails", null); + } + set + { + this.OnPropertyChanging("Quote_Emails"); + this.SetRelatedEntity("Quote_Emails", null, value); + this.OnPropertyChanged("Quote_Emails"); + } + } + + /// + /// N:1 SalesOrder_Emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Emails")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Emails + { + get + { + return this.GetRelatedEntity("SalesOrder_Emails", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Emails"); + this.SetRelatedEntity("SalesOrder_Emails", null, value); + this.OnPropertyChanged("SalesOrder_Emails"); + } + } + + /// + /// N:1 service_emails + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_emails")] + public Xrm.Framework.CI.Common.Entities.Service service_emails + { + get + { + return this.GetRelatedEntity("service_emails", null); + } + set + { + this.OnPropertyChanging("service_emails"); + this.SetRelatedEntity("service_emails", null, value); + this.OnPropertyChanged("service_emails"); + } + } + + /// + /// N:1 team_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email")] + public Xrm.Framework.CI.Common.Entities.Team team_email + { + get + { + return this.GetRelatedEntity("team_email", null); + } + } + + /// + /// N:1 TransactionCurrency_Email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Email")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Email + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Email", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Email"); + this.SetRelatedEntity("TransactionCurrency_Email", null, value); + this.OnPropertyChanged("TransactionCurrency_Email"); + } + } + + /// + /// N:1 user_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_email")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_email + { + get + { + return this.GetRelatedEntity("user_email", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum EmailServerProfileState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Holds the Email Server Profiles of an organization + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("emailserverprofile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class EmailServerProfile : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public EmailServerProfile() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "emailserverprofile"; + + public const int EntityTypeCode = 9605; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information that describes the email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofileid")] + public System.Nullable EmailServerProfileId + { + get + { + return this.GetAttributeValue>("emailserverprofileid"); + } + set + { + this.OnPropertyChanging("EmailServerProfileId"); + this.SetAttributeValue("emailserverprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("EmailServerProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.EmailServerProfileId = value; + } + } + + /// + /// Indicates the code page to use when encoding email content. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("encodingcodepage")] + public string EncodingCodePage + { + get + { + return this.GetAttributeValue("encodingcodepage"); + } + set + { + this.OnPropertyChanging("EncodingCodePage"); + this.SetAttributeValue("encodingcodepage", value); + this.OnPropertyChanged("EncodingCodePage"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Select the version of Exchange that is on the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeversion")] + public Microsoft.Xrm.Sdk.OptionSetValue ExchangeVersion + { + get + { + return this.GetAttributeValue("exchangeversion"); + } + set + { + this.OnPropertyChanging("ExchangeVersion"); + this.SetAttributeValue("exchangeversion", value); + this.OnPropertyChanged("ExchangeVersion"); + } + } + + /// + /// Select the incoming email authentication protocol that is used for connecting to the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingauthenticationprotocol")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingAuthenticationProtocol + { + get + { + return this.GetAttributeValue("incomingauthenticationprotocol"); + } + set + { + this.OnPropertyChanging("IncomingAuthenticationProtocol"); + this.SetAttributeValue("incomingauthenticationprotocol", value); + this.OnPropertyChanged("IncomingAuthenticationProtocol"); + } + } + + /// + /// Select how credentials will be retrieved for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingcredentialretrieval")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingCredentialRetrieval + { + get + { + return this.GetAttributeValue("incomingcredentialretrieval"); + } + set + { + this.OnPropertyChanging("IncomingCredentialRetrieval"); + this.SetAttributeValue("incomingcredentialretrieval", value); + this.OnPropertyChanged("IncomingCredentialRetrieval"); + } + } + + /// + /// Indicates the incoming partner application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingpartnerapplication")] + public Microsoft.Xrm.Sdk.EntityReference IncomingPartnerApplication + { + get + { + return this.GetAttributeValue("incomingpartnerapplication"); + } + } + + /// + /// Type the password for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingpassword")] + public string IncomingPassword + { + get + { + return this.GetAttributeValue("incomingpassword"); + } + set + { + this.OnPropertyChanging("IncomingPassword"); + this.SetAttributeValue("incomingpassword", value); + this.OnPropertyChanged("IncomingPassword"); + } + } + + /// + /// Type the port number for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingportnumber")] + public System.Nullable IncomingPortNumber + { + get + { + return this.GetAttributeValue>("incomingportnumber"); + } + set + { + this.OnPropertyChanging("IncomingPortNumber"); + this.SetAttributeValue("incomingportnumber", value); + this.OnPropertyChanged("IncomingPortNumber"); + } + } + + /// + /// Type the location of the server for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingserverlocation")] + public string IncomingServerLocation + { + get + { + return this.GetAttributeValue("incomingserverlocation"); + } + set + { + this.OnPropertyChanging("IncomingServerLocation"); + this.SetAttributeValue("incomingserverlocation", value); + this.OnPropertyChanged("IncomingServerLocation"); + } + } + + /// + /// Select whether to use impersonation to access the mailbox to process incoming emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incominguseimpersonation")] + public System.Nullable IncomingUseImpersonation + { + get + { + return this.GetAttributeValue>("incominguseimpersonation"); + } + set + { + this.OnPropertyChanging("IncomingUseImpersonation"); + this.SetAttributeValue("incominguseimpersonation", value); + this.OnPropertyChanged("IncomingUseImpersonation"); + } + } + + /// + /// Type the user name for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingusername")] + public string IncomingUserName + { + get + { + return this.GetAttributeValue("incomingusername"); + } + set + { + this.OnPropertyChanging("IncomingUserName"); + this.SetAttributeValue("incomingusername", value); + this.OnPropertyChanged("IncomingUserName"); + } + } + + /// + /// Select whether to use the Secure Sockets Layer (SSL) protocol for incoming email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingusessl")] + public System.Nullable IncomingUseSSL + { + get + { + return this.GetAttributeValue>("incomingusessl"); + } + set + { + this.OnPropertyChanging("IncomingUseSSL"); + this.SetAttributeValue("incomingusessl", value); + this.OnPropertyChanged("IncomingUseSSL"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isincomingpasswordset")] + public System.Nullable IsIncomingPasswordSet + { + get + { + return this.GetAttributeValue>("isincomingpasswordset"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoutgoingpasswordset")] + public System.Nullable IsOutgoingPasswordSet + { + get + { + return this.GetAttributeValue>("isoutgoingpasswordset"); + } + } + + /// + /// Maximum number of concurrent connections allowed to the email server per authenticated user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxconcurrentconnections")] + public System.Nullable MaxConcurrentConnections + { + get + { + return this.GetAttributeValue>("maxconcurrentconnections"); + } + set + { + this.OnPropertyChanging("MaxConcurrentConnections"); + this.SetAttributeValue("maxconcurrentconnections", value); + this.OnPropertyChanged("MaxConcurrentConnections"); + } + } + + /// + /// Minimum polling interval, in minutes, for mailboxes that are associated with this email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minpollingintervalinminutes")] + public System.Nullable MinPollingIntervalInMinutes + { + get + { + return this.GetAttributeValue>("minpollingintervalinminutes"); + } + set + { + this.OnPropertyChanging("MinPollingIntervalInMinutes"); + this.SetAttributeValue("minpollingintervalinminutes", value); + this.OnPropertyChanged("MinPollingIntervalInMinutes"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Indicates whether to move undelivered incoming emails to the Undeliverable folder in Microsoft Exchange. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("moveundeliveredemails")] + public System.Nullable MoveUndeliveredEmails + { + get + { + return this.GetAttributeValue>("moveundeliveredemails"); + } + set + { + this.OnPropertyChanging("MoveUndeliveredEmails"); + this.SetAttributeValue("moveundeliveredemails", value); + this.OnPropertyChanged("MoveUndeliveredEmails"); + } + } + + /// + /// Type the name of the email server profile record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Select the outgoing email authentication protocol that is used for connecting to the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingauthenticationprotocol")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingAuthenticationProtocol + { + get + { + return this.GetAttributeValue("outgoingauthenticationprotocol"); + } + set + { + this.OnPropertyChanging("OutgoingAuthenticationProtocol"); + this.SetAttributeValue("outgoingauthenticationprotocol", value); + this.OnPropertyChanged("OutgoingAuthenticationProtocol"); + } + } + + /// + /// Indicates whether the email connector will grant delegate access permissions to the accessing user when required while processing outgoing emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingautograntdelegateaccess")] + public System.Nullable OutgoingAutoGrantDelegateAccess + { + get + { + return this.GetAttributeValue>("outgoingautograntdelegateaccess"); + } + set + { + this.OnPropertyChanging("OutgoingAutoGrantDelegateAccess"); + this.SetAttributeValue("outgoingautograntdelegateaccess", value); + this.OnPropertyChanged("OutgoingAutoGrantDelegateAccess"); + } + } + + /// + /// Select how credentials will be retrieved for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingcredentialretrieval")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingCredentialRetrieval + { + get + { + return this.GetAttributeValue("outgoingcredentialretrieval"); + } + set + { + this.OnPropertyChanging("OutgoingCredentialRetrieval"); + this.SetAttributeValue("outgoingcredentialretrieval", value); + this.OnPropertyChanged("OutgoingCredentialRetrieval"); + } + } + + /// + /// Indicates the outgoing partner application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingpartnerapplication")] + public Microsoft.Xrm.Sdk.EntityReference OutgoingPartnerApplication + { + get + { + return this.GetAttributeValue("outgoingpartnerapplication"); + } + } + + /// + /// Type the password for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingpassword")] + public string OutgoingPassword + { + get + { + return this.GetAttributeValue("outgoingpassword"); + } + set + { + this.OnPropertyChanging("OutgoingPassword"); + this.SetAttributeValue("outgoingpassword", value); + this.OnPropertyChanged("OutgoingPassword"); + } + } + + /// + /// Type the port number for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingportnumber")] + public System.Nullable OutgoingPortNumber + { + get + { + return this.GetAttributeValue>("outgoingportnumber"); + } + set + { + this.OnPropertyChanging("OutgoingPortNumber"); + this.SetAttributeValue("outgoingportnumber", value); + this.OnPropertyChanged("OutgoingPortNumber"); + } + } + + /// + /// Type the location of the server for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingserverlocation")] + public string OutgoingServerLocation + { + get + { + return this.GetAttributeValue("outgoingserverlocation"); + } + set + { + this.OnPropertyChanging("OutgoingServerLocation"); + this.SetAttributeValue("outgoingserverlocation", value); + this.OnPropertyChanged("OutgoingServerLocation"); + } + } + + /// + /// Select whether to use impersonation for accessing the mailbox to process outgoing emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoinguseimpersonation")] + public System.Nullable OutgoingUseImpersonation + { + get + { + return this.GetAttributeValue>("outgoinguseimpersonation"); + } + set + { + this.OnPropertyChanging("OutgoingUseImpersonation"); + this.SetAttributeValue("outgoinguseimpersonation", value); + this.OnPropertyChanged("OutgoingUseImpersonation"); + } + } + + /// + /// Type the user name for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingusername")] + public string OutgoingUsername + { + get + { + return this.GetAttributeValue("outgoingusername"); + } + set + { + this.OnPropertyChanging("OutgoingUsername"); + this.SetAttributeValue("outgoingusername", value); + this.OnPropertyChanged("OutgoingUsername"); + } + } + + /// + /// Select whether to use the Secure Sockets Layer (SSL) protocol for outgoing email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingusessl")] + public System.Nullable OutgoingUseSSL + { + get + { + return this.GetAttributeValue>("outgoingusessl"); + } + set + { + this.OnPropertyChanging("OutgoingUseSSL"); + this.SetAttributeValue("outgoingusessl", value); + this.OnPropertyChanged("OutgoingUseSSL"); + } + } + + /// + /// 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 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 date and time after which email messages that are received will be processed for mailboxes associated with the email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processemailsreceivedafter")] + public System.Nullable ProcessEmailsReceivedAfter + { + get + { + return this.GetAttributeValue>("processemailsreceivedafter"); + } + set + { + this.OnPropertyChanging("ProcessEmailsReceivedAfter"); + this.SetAttributeValue("processemailsreceivedafter", value); + this.OnPropertyChanged("ProcessEmailsReceivedAfter"); + } + } + + /// + /// Select the profile's email server type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servertype")] + public Microsoft.Xrm.Sdk.OptionSetValue ServerType + { + get + { + return this.GetAttributeValue("servertype"); + } + set + { + this.OnPropertyChanging("ServerType"); + this.SetAttributeValue("servertype", value); + this.OnPropertyChanged("ServerType"); + } + } + + /// + /// Shows whether the email server profile 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 ((Xrm.Framework.CI.Common.Entities.EmailServerProfileState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.EmailServerProfileState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the email server profile'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"); + } + } + + /// + /// Select whether to automatically discover the server location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useautodiscover")] + public System.Nullable UseAutoDiscover + { + get + { + return this.GetAttributeValue>("useautodiscover"); + } + set + { + this.OnPropertyChanging("UseAutoDiscover"); + this.SetAttributeValue("useautodiscover", value); + this.OnPropertyChanged("UseAutoDiscover"); + } + } + + /// + /// Select whether to use the same settings for incoming and outgoing connections. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usesamesettingsforoutgoingconnections")] + public System.Nullable UseSameSettingsForOutgoingConnections + { + get + { + return this.GetAttributeValue>("usesamesettingsforoutgoingconnections"); + } + set + { + this.OnPropertyChanging("UseSameSettingsForOutgoingConnections"); + this.SetAttributeValue("usesamesettingsforoutgoingconnections", value); + this.OnPropertyChanged("UseSameSettingsForOutgoingConnections"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N EmailServerProfile_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Annotation")] + public System.Collections.Generic.IEnumerable EmailServerProfile_Annotation + { + get + { + return this.GetRelatedEntities("EmailServerProfile_Annotation", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Annotation"); + this.SetRelatedEntities("EmailServerProfile_Annotation", null, value); + this.OnPropertyChanged("EmailServerProfile_Annotation"); + } + } + + /// + /// 1:N emailserverprofile_asyncoperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_asyncoperations")] + public System.Collections.Generic.IEnumerable emailserverprofile_asyncoperations + { + get + { + return this.GetRelatedEntities("emailserverprofile_asyncoperations", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_asyncoperations"); + this.SetRelatedEntities("emailserverprofile_asyncoperations", null, value); + this.OnPropertyChanged("emailserverprofile_asyncoperations"); + } + } + + /// + /// 1:N emailserverprofile_bulkdeletefailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_bulkdeletefailures")] + public System.Collections.Generic.IEnumerable emailserverprofile_bulkdeletefailures + { + get + { + return this.GetRelatedEntities("emailserverprofile_bulkdeletefailures", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_bulkdeletefailures"); + this.SetRelatedEntities("emailserverprofile_bulkdeletefailures", null, value); + this.OnPropertyChanged("emailserverprofile_bulkdeletefailures"); + } + } + + /// + /// 1:N emailserverprofile_duplicatebaserecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatebaserecord")] + public System.Collections.Generic.IEnumerable emailserverprofile_duplicatebaserecord + { + get + { + return this.GetRelatedEntities("emailserverprofile_duplicatebaserecord", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_duplicatebaserecord"); + this.SetRelatedEntities("emailserverprofile_duplicatebaserecord", null, value); + this.OnPropertyChanged("emailserverprofile_duplicatebaserecord"); + } + } + + /// + /// 1:N emailserverprofile_duplicatematchingrecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatematchingrecord")] + public System.Collections.Generic.IEnumerable emailserverprofile_duplicatematchingrecord + { + get + { + return this.GetRelatedEntities("emailserverprofile_duplicatematchingrecord", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_duplicatematchingrecord"); + this.SetRelatedEntities("emailserverprofile_duplicatematchingrecord", null, value); + this.OnPropertyChanged("emailserverprofile_duplicatematchingrecord"); + } + } + + /// + /// 1:N emailserverprofile_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_mailbox")] + public System.Collections.Generic.IEnumerable emailserverprofile_mailbox + { + get + { + return this.GetRelatedEntities("emailserverprofile_mailbox", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_mailbox"); + this.SetRelatedEntities("emailserverprofile_mailbox", null, value); + this.OnPropertyChanged("emailserverprofile_mailbox"); + } + } + + /// + /// 1:N EmailServerProfile_Organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Organization")] + public System.Collections.Generic.IEnumerable EmailServerProfile_Organization + { + get + { + return this.GetRelatedEntities("EmailServerProfile_Organization", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Organization"); + this.SetRelatedEntities("EmailServerProfile_Organization", null, value); + this.OnPropertyChanged("EmailServerProfile_Organization"); + } + } + + /// + /// 1:N tracelog_EmailServerProfile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_EmailServerProfile")] + public System.Collections.Generic.IEnumerable tracelog_EmailServerProfile + { + get + { + return this.GetRelatedEntities("tracelog_EmailServerProfile", null); + } + set + { + this.OnPropertyChanging("tracelog_EmailServerProfile"); + this.SetRelatedEntities("tracelog_EmailServerProfile", null, value); + this.OnPropertyChanged("tracelog_EmailServerProfile"); + } + } + + /// + /// N:1 business_unit_emailserverprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_emailserverprofile")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_emailserverprofile + { + get + { + return this.GetRelatedEntity("business_unit_emailserverprofile", null); + } + } + + /// + /// N:1 lk_emailserverprofile_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_createdby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_createdby", null); + } + } + + /// + /// N:1 lk_emailserverprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_emailserverprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_modifiedby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_modifiedby", null); + } + } + + /// + /// N:1 lk_emailserverprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_emailserverprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_emailserverprofile_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_emailserverprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_emailserverprofile")] + public Xrm.Framework.CI.Common.Entities.Organization organization_emailserverprofile + { + get + { + return this.GetRelatedEntity("organization_emailserverprofile", null); + } + } + + /// + /// N:1 team_emailserverprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_emailserverprofile")] + public Xrm.Framework.CI.Common.Entities.Team team_emailserverprofile + { + get + { + return this.GetRelatedEntity("team_emailserverprofile", null); + } + } + } + + /// + /// Represents a mapping between two related entities so that data from one record can be copied into the form of a new related record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("entitymap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class EntityMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public EntityMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "entitymap"; + + public const int EntityTypeCode = 4600; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the entity map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the entity map 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 entitymap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the entity map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + public System.Nullable EntityMapId + { + get + { + return this.GetAttributeValue>("entitymapid"); + } + set + { + this.OnPropertyChanging("EntityMapId"); + this.SetAttributeValue("entitymapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("EntityMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.EntityMapId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitymapidunique")] + public System.Nullable EntityMapIdUnique + { + get + { + return this.GetAttributeValue>("entitymapidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the entity map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the entity map 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 entitymap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the entity map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Name of the source entity for the entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N entity_map_attribute_maps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entity_map_attribute_maps")] + public System.Collections.Generic.IEnumerable entity_map_attribute_maps + { + get + { + return this.GetRelatedEntities("entity_map_attribute_maps", null); + } + set + { + this.OnPropertyChanging("entity_map_attribute_maps"); + this.SetRelatedEntities("entity_map_attribute_maps", null, value); + this.OnPropertyChanged("entity_map_attribute_maps"); + } + } + + /// + /// 1:N EntityMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable EntityMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("EntityMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("EntityMap_AsyncOperations"); + this.SetRelatedEntities("EntityMap_AsyncOperations", null, value); + this.OnPropertyChanged("EntityMap_AsyncOperations"); + } + } + + /// + /// 1:N EntityMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EntityMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable EntityMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("EntityMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("EntityMap_BulkDeleteFailures"); + this.SetRelatedEntities("EntityMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("EntityMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_entitymap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_entitymap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_entitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_entitymap"); + this.SetRelatedEntities("userentityinstancedata_entitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_entitymap"); + } + } + + /// + /// N:1 createdby_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_entitymap")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_entitymap + { + get + { + return this.GetRelatedEntity("createdby_entitymap", null); + } + } + + /// + /// N:1 lk_entitymap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_entitymap_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_entitymap_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_entitymap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_entitymap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_entitymap_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_entitymap")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_entitymap + { + get + { + return this.GetRelatedEntity("modifiedby_entitymap", null); + } + } + + /// + /// N:1 organization_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_entitymap")] + public Xrm.Framework.CI.Common.Entities.Organization organization_entitymap + { + get + { + return this.GetRelatedEntity("organization_entitymap", null); + } + } + } + + /// + /// Resource that can be scheduled. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("equipment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Equipment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Equipment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "equipment"; + + public const int EntityTypeCode = 4000; + + 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 associated business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Fiscal calendar associated with the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Unique identifier of the user who created the facility/equipment entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the facility/equipment entry 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 equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// Email address of person to contact about the use of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Unique identifier of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("equipmentid")] + public System.Nullable EquipmentId + { + get + { + return this.GetAttributeValue>("equipmentid"); + } + set + { + this.OnPropertyChanging("EquipmentId"); + this.SetAttributeValue("equipmentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("EquipmentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("equipmentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.EquipmentId = value; + } + } + + /// + /// Exchange rate for the currency associated with the equipment with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Whether the facility/equipment is disabled or operational. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + set + { + this.OnPropertyChanging("IsDisabled"); + this.SetAttributeValue("isdisabled", value); + this.OnPropertyChanged("IsDisabled"); + } + } + + /// + /// Unique identifier of the user who last modified the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the facility/equipment entry 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 equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the parent business unit. + /// + [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"); + } + } + + /// + /// Site where the facility/equipment is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Skills needed to operate the facility/equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] + public string Skills + { + get + { + return this.GetAttributeValue("skills"); + } + set + { + this.OnPropertyChanging("Skills"); + this.SetAttributeValue("skills", value); + this.OnPropertyChanged("Skills"); + } + } + + /// + /// Local time zone where the facility/equipment is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// 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 equipment. + /// + [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 of the equipment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N equipment_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_accounts")] + public System.Collections.Generic.IEnumerable equipment_accounts + { + get + { + return this.GetRelatedEntities("equipment_accounts", null); + } + set + { + this.OnPropertyChanging("equipment_accounts"); + this.SetRelatedEntities("equipment_accounts", null, value); + this.OnPropertyChanged("equipment_accounts"); + } + } + + /// + /// 1:N equipment_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_activity_parties")] + public System.Collections.Generic.IEnumerable equipment_activity_parties + { + get + { + return this.GetRelatedEntities("equipment_activity_parties", null); + } + set + { + this.OnPropertyChanging("equipment_activity_parties"); + this.SetRelatedEntities("equipment_activity_parties", null, value); + this.OnPropertyChanged("equipment_activity_parties"); + } + } + + /// + /// 1:N Equipment_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_Annotation")] + public System.Collections.Generic.IEnumerable Equipment_Annotation + { + get + { + return this.GetRelatedEntities("Equipment_Annotation", null); + } + set + { + this.OnPropertyChanging("Equipment_Annotation"); + this.SetRelatedEntities("Equipment_Annotation", null, value); + this.OnPropertyChanged("Equipment_Annotation"); + } + } + + /// + /// 1:N Equipment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_AsyncOperations")] + public System.Collections.Generic.IEnumerable Equipment_AsyncOperations + { + get + { + return this.GetRelatedEntities("Equipment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Equipment_AsyncOperations"); + this.SetRelatedEntities("Equipment_AsyncOperations", null, value); + this.OnPropertyChanged("Equipment_AsyncOperations"); + } + } + + /// + /// 1:N Equipment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Equipment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Equipment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Equipment_BulkDeleteFailures"); + this.SetRelatedEntities("Equipment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Equipment_BulkDeleteFailures"); + } + } + + /// + /// 1:N equipment_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections1")] + public System.Collections.Generic.IEnumerable equipment_connections1 + { + get + { + return this.GetRelatedEntities("equipment_connections1", null); + } + set + { + this.OnPropertyChanging("equipment_connections1"); + this.SetRelatedEntities("equipment_connections1", null, value); + this.OnPropertyChanged("equipment_connections1"); + } + } + + /// + /// 1:N equipment_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_connections2")] + public System.Collections.Generic.IEnumerable equipment_connections2 + { + get + { + return this.GetRelatedEntities("equipment_connections2", null); + } + set + { + this.OnPropertyChanging("equipment_connections2"); + this.SetRelatedEntities("equipment_connections2", null, value); + this.OnPropertyChanged("equipment_connections2"); + } + } + + /// + /// 1:N equipment_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_contacts")] + public System.Collections.Generic.IEnumerable equipment_contacts + { + get + { + return this.GetRelatedEntities("equipment_contacts", null); + } + set + { + this.OnPropertyChanging("equipment_contacts"); + this.SetRelatedEntities("equipment_contacts", null, value); + this.OnPropertyChanged("equipment_contacts"); + } + } + + /// + /// 1:N Equipment_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Equipment_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Equipment_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Equipment_DuplicateBaseRecord"); + this.SetRelatedEntities("Equipment_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Equipment_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Equipment_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Equipment_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Equipment_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Equipment_DuplicateMatchingRecord"); + this.SetRelatedEntities("Equipment_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Equipment_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N equipment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable equipment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("equipment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("equipment_principalobjectattributeaccess"); + this.SetRelatedEntities("equipment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("equipment_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Equipment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_ProcessSessions")] + public System.Collections.Generic.IEnumerable Equipment_ProcessSessions + { + get + { + return this.GetRelatedEntities("Equipment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Equipment_ProcessSessions"); + this.SetRelatedEntities("Equipment_ProcessSessions", null, value); + this.OnPropertyChanged("Equipment_ProcessSessions"); + } + } + + /// + /// 1:N equipment_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_resources")] + public System.Collections.Generic.IEnumerable equipment_resources + { + get + { + return this.GetRelatedEntities("equipment_resources", null); + } + set + { + this.OnPropertyChanging("equipment_resources"); + this.SetRelatedEntities("equipment_resources", null, value); + this.OnPropertyChanged("equipment_resources"); + } + } + + /// + /// 1:N userentityinstancedata_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_equipment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_equipment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_equipment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_equipment"); + this.SetRelatedEntities("userentityinstancedata_equipment", null, value); + this.OnPropertyChanged("userentityinstancedata_equipment"); + } + } + + /// + /// N:1 business_unit_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_equipment")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_equipment + { + get + { + return this.GetRelatedEntity("business_unit_equipment", null); + } + set + { + this.OnPropertyChanging("business_unit_equipment"); + this.SetRelatedEntity("business_unit_equipment", null, value); + this.OnPropertyChanged("business_unit_equipment"); + } + } + + /// + /// N:1 calendar_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_equipment")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_equipment + { + get + { + return this.GetRelatedEntity("calendar_equipment", null); + } + set + { + this.OnPropertyChanging("calendar_equipment"); + this.SetRelatedEntity("calendar_equipment", null, value); + this.OnPropertyChanged("calendar_equipment"); + } + } + + /// + /// N:1 equipment_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser equipment_systemuser + { + get + { + return this.GetRelatedEntity("equipment_systemuser", null); + } + set + { + this.OnPropertyChanging("equipment_systemuser"); + this.SetRelatedEntity("equipment_systemuser", null, value); + this.OnPropertyChanged("equipment_systemuser"); + } + } + + /// + /// N:1 lk_equipment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_createdby + { + get + { + return this.GetRelatedEntity("lk_equipment_createdby", null); + } + } + + /// + /// N:1 lk_equipment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_equipment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_equipment_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_modifiedby + { + get + { + return this.GetRelatedEntity("lk_equipment_modifiedby", null); + } + } + + /// + /// N:1 lk_equipment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_equipment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_equipment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_equipment")] + public Xrm.Framework.CI.Common.Entities.Organization organization_equipment + { + get + { + return this.GetRelatedEntity("organization_equipment", null); + } + } + + /// + /// N:1 site_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_equipment")] + public Xrm.Framework.CI.Common.Entities.Site site_equipment + { + get + { + return this.GetRelatedEntity("site_equipment", null); + } + set + { + this.OnPropertyChanging("site_equipment"); + this.SetRelatedEntity("site_equipment", null, value); + this.OnPropertyChanged("site_equipment"); + } + } + + /// + /// N:1 TransactionCurrency_Equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Equipment")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Equipment + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Equipment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Equipment"); + this.SetRelatedEntity("TransactionCurrency_Equipment", null, value); + this.OnPropertyChanged("TransactionCurrency_Equipment"); + } + } + } + + /// + /// The mapping used to keep track of the IDs for items synced between CRM and Exchange. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("exchangesyncidmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ExchangeSyncIdMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ExchangeSyncIdMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "exchangesyncidmapping"; + + public const int EntityTypeCode = 4120; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeentryid")] + public string ExchangeEntryId + { + get + { + return this.GetAttributeValue("exchangeentryid"); + } + set + { + this.OnPropertyChanging("ExchangeEntryId"); + this.SetAttributeValue("exchangeentryid", value); + this.OnPropertyChanged("ExchangeEntryId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangesyncidmappingid")] + public System.Nullable ExchangeSyncIdmappingId + { + get + { + return this.GetAttributeValue>("exchangesyncidmappingid"); + } + set + { + this.OnPropertyChanging("ExchangeSyncIdmappingId"); + this.SetAttributeValue("exchangesyncidmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ExchangeSyncIdmappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangesyncidmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ExchangeSyncIdmappingId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fromcrmchangetype")] + public System.Nullable FromCrmChangeType + { + get + { + return this.GetAttributeValue>("fromcrmchangetype"); + } + set + { + this.OnPropertyChanging("FromCrmChangeType"); + this.SetAttributeValue("fromcrmchangetype", value); + this.OnPropertyChanged("FromCrmChangeType"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdeletedinexchange")] + public System.Nullable IsDeletedInExchange + { + get + { + return this.GetAttributeValue>("isdeletedinexchange"); + } + set + { + this.OnPropertyChanging("IsDeletedInExchange"); + this.SetAttributeValue("isdeletedinexchange", value); + this.OnPropertyChanged("IsDeletedInExchange"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isunlinkedincrm")] + public System.Nullable IsUnlinkedInCRM + { + get + { + return this.GetAttributeValue>("isunlinkedincrm"); + } + set + { + this.OnPropertyChanging("IsUnlinkedInCRM"); + this.SetAttributeValue("isunlinkedincrm", value); + this.OnPropertyChanged("IsUnlinkedInCRM"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastsyncerror")] + public string LastSyncError + { + get + { + return this.GetAttributeValue("lastsyncerror"); + } + set + { + this.OnPropertyChanging("LastSyncError"); + this.SetAttributeValue("lastsyncerror", value); + this.OnPropertyChanged("LastSyncError"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastsyncerrorcode")] + public System.Nullable LastSyncErrorCode + { + get + { + return this.GetAttributeValue>("lastsyncerrorcode"); + } + set + { + this.OnPropertyChanging("LastSyncErrorCode"); + this.SetAttributeValue("lastsyncerrorcode", value); + this.OnPropertyChanged("LastSyncErrorCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// + /// + [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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retries")] + public System.Nullable Retries + { + get + { + return this.GetAttributeValue>("retries"); + } + set + { + this.OnPropertyChanging("Retries"); + this.SetAttributeValue("retries", value); + this.OnPropertyChanged("Retries"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tocrmchangetype")] + public System.Nullable ToCrmChangeType + { + get + { + return this.GetAttributeValue>("tocrmchangetype"); + } + set + { + this.OnPropertyChanging("ToCrmChangeType"); + this.SetAttributeValue("tocrmchangetype", value); + this.OnPropertyChanged("ToCrmChangeType"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userdecision")] + public System.Nullable UserDecision + { + get + { + return this.GetAttributeValue>("userdecision"); + } + set + { + this.OnPropertyChanging("UserDecision"); + this.SetAttributeValue("userdecision", value); + this.OnPropertyChanged("UserDecision"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 business_unit_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_exchangesyncidmapping")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_exchangesyncidmapping + { + get + { + return this.GetRelatedEntity("business_unit_exchangesyncidmapping", null); + } + } + + /// + /// N:1 team_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_exchangesyncidmapping")] + public Xrm.Framework.CI.Common.Entities.Team team_exchangesyncidmapping + { + get + { + return this.GetRelatedEntity("team_exchangesyncidmapping", null); + } + } + + /// + /// N:1 user_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_exchangesyncidmapping")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_exchangesyncidmapping + { + get + { + return this.GetRelatedEntity("user_exchangesyncidmapping", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum FaxState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that tracks call outcome and number of pages for a fax and optionally stores an electronic copy of the document. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fax")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Fax : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Fax() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fax"; + + public const int EntityTypeCode = 4204; + + 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 fax 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"); + } + } + + /// + /// Type the number of minutes spent creating and sending the fax. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the fax. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual time to create and send the fax. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the fax. By default, it displays the date and time when the activity was created, but can be edited to capture the actual time to create and send the fax. + /// + [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"); + } + } + + /// + /// Type the billing code for the fax to make sure the fax is charged to the correct sender or customer account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billingcode")] + public string BillingCode + { + get + { + return this.GetAttributeValue("billingcode"); + } + set + { + this.OnPropertyChanging("BillingCode"); + this.SetAttributeValue("billingcode", value); + this.OnPropertyChanged("BillingCode"); + } + } + + /// + /// Type a category to identify the fax type, such as sales offer or press release, to tie the fax to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Type the name of the cover page to use when sending the fax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("coverpagename")] + public string CoverPageName + { + get + { + return this.GetAttributeValue("coverpagename"); + } + set + { + this.OnPropertyChanging("CoverPageName"); + this.SetAttributeValue("coverpagename", value); + this.OnPropertyChanged("CoverPageName"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the fax, such as the primary message or the products and services featured. + /// + [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 the direction of the fax as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 recipient's fax number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("faxnumber")] + public string FaxNumber + { + get + { + return this.GetAttributeValue("faxnumber"); + } + set + { + this.OnPropertyChanging("FaxNumber"); + this.SetAttributeValue("faxnumber", value); + this.OnPropertyChanged("FaxNumber"); + } + } + + /// + /// Enter the account, contact, lead, queue, or user who sent the fax. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information regarding whether the fax 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indication of whether the fax activity was created by 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type the number of pages included in the fax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberofpages")] + public System.Nullable NumberOfPages + { + get + { + return this.GetAttributeValue>("numberofpages"); + } + set + { + this.OnPropertyChanging("NumberOfPages"); + this.SetAttributeValue("numberofpages", value); + this.OnPropertyChanged("NumberOfPages"); + } + } + + /// + /// 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 fax 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 fax 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 fax activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the fax 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"); + } + } + + /// + /// Shows the expected duration of the fax activity, in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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 for an associated service. + /// + [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"); + } + } + + /// + /// 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 fax activity is open, completed, or canceled. Completed and canceled fax activities are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.FaxState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.FaxState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the fax'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"); + } + } + + /// + /// Type a subcategory to identify the fax type to relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the fax. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, queue, or user recipients for the fax. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the Transmitting Subscriber ID (TSID) associated with a send action. This is typically a combination of the recipient's fax or phone number and company name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tsid")] + public string Tsid + { + get + { + return this.GetAttributeValue("tsid"); + } + set + { + this.OnPropertyChanging("Tsid"); + this.SetAttributeValue("tsid", value); + this.OnPropertyChanged("Tsid"); + } + } + + /// + /// 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 fax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N fax_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_activity_parties")] + public System.Collections.Generic.IEnumerable fax_activity_parties + { + get + { + return this.GetRelatedEntities("fax_activity_parties", null); + } + set + { + this.OnPropertyChanging("fax_activity_parties"); + this.SetRelatedEntities("fax_activity_parties", null, value); + this.OnPropertyChanged("fax_activity_parties"); + } + } + + /// + /// 1:N Fax_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_Annotation")] + public System.Collections.Generic.IEnumerable Fax_Annotation + { + get + { + return this.GetRelatedEntities("Fax_Annotation", null); + } + set + { + this.OnPropertyChanging("Fax_Annotation"); + this.SetRelatedEntities("Fax_Annotation", null, value); + this.OnPropertyChanged("Fax_Annotation"); + } + } + + /// + /// 1:N Fax_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_AsyncOperations")] + public System.Collections.Generic.IEnumerable Fax_AsyncOperations + { + get + { + return this.GetRelatedEntities("Fax_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Fax_AsyncOperations"); + this.SetRelatedEntities("Fax_AsyncOperations", null, value); + this.OnPropertyChanged("Fax_AsyncOperations"); + } + } + + /// + /// 1:N Fax_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Fax_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Fax_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Fax_BulkDeleteFailures"); + this.SetRelatedEntities("Fax_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Fax_BulkDeleteFailures"); + } + } + + /// + /// 1:N fax_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_campaignresponse")] + public System.Collections.Generic.IEnumerable fax_campaignresponse + { + get + { + return this.GetRelatedEntities("fax_campaignresponse", null); + } + set + { + this.OnPropertyChanging("fax_campaignresponse"); + this.SetRelatedEntities("fax_campaignresponse", null, value); + this.OnPropertyChanged("fax_campaignresponse"); + } + } + + /// + /// 1:N fax_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections1")] + public System.Collections.Generic.IEnumerable fax_connections1 + { + get + { + return this.GetRelatedEntities("fax_connections1", null); + } + set + { + this.OnPropertyChanging("fax_connections1"); + this.SetRelatedEntities("fax_connections1", null, value); + this.OnPropertyChanged("fax_connections1"); + } + } + + /// + /// 1:N fax_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_connections2")] + public System.Collections.Generic.IEnumerable fax_connections2 + { + get + { + return this.GetRelatedEntities("fax_connections2", null); + } + set + { + this.OnPropertyChanging("fax_connections2"); + this.SetRelatedEntities("fax_connections2", null, value); + this.OnPropertyChanged("fax_connections2"); + } + } + + /// + /// 1:N Fax_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Fax_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Fax_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Fax_DuplicateBaseRecord"); + this.SetRelatedEntities("Fax_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Fax_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Fax_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Fax_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Fax_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Fax_DuplicateMatchingRecord"); + this.SetRelatedEntities("Fax_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Fax_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N fax_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable fax_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("fax_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("fax_principalobjectattributeaccess"); + this.SetRelatedEntities("fax_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("fax_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Fax_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_ProcessSessions")] + public System.Collections.Generic.IEnumerable Fax_ProcessSessions + { + get + { + return this.GetRelatedEntities("Fax_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Fax_ProcessSessions"); + this.SetRelatedEntities("Fax_ProcessSessions", null, value); + this.OnPropertyChanged("Fax_ProcessSessions"); + } + } + + /// + /// 1:N Fax_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_QueueItem")] + public System.Collections.Generic.IEnumerable Fax_QueueItem + { + get + { + return this.GetRelatedEntities("Fax_QueueItem", null); + } + set + { + this.OnPropertyChanging("Fax_QueueItem"); + this.SetRelatedEntities("Fax_QueueItem", null, value); + this.OnPropertyChanged("Fax_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fax")] + public System.Collections.Generic.IEnumerable userentityinstancedata_fax + { + get + { + return this.GetRelatedEntities("userentityinstancedata_fax", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fax"); + this.SetRelatedEntities("userentityinstancedata_fax", null, value); + this.OnPropertyChanged("userentityinstancedata_fax"); + } + } + + /// + /// N:1 Account_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Faxes")] + public Xrm.Framework.CI.Common.Entities.Account Account_Faxes + { + get + { + return this.GetRelatedEntity("Account_Faxes", null); + } + set + { + this.OnPropertyChanging("Account_Faxes"); + this.SetRelatedEntity("Account_Faxes", null, value); + this.OnPropertyChanged("Account_Faxes"); + } + } + + /// + /// N:1 activity_pointer_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_fax")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_fax + { + get + { + return this.GetRelatedEntity("activity_pointer_fax", null); + } + set + { + this.OnPropertyChanging("activity_pointer_fax"); + this.SetRelatedEntity("activity_pointer_fax", null, value); + this.OnPropertyChanged("activity_pointer_fax"); + } + } + + /// + /// N:1 BulkOperation_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Faxes")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Faxes + { + get + { + return this.GetRelatedEntity("BulkOperation_Faxes", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Faxes"); + this.SetRelatedEntity("BulkOperation_Faxes", null, value); + this.OnPropertyChanged("BulkOperation_Faxes"); + } + } + + /// + /// N:1 business_unit_fax_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_fax_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_fax_activities + { + get + { + return this.GetRelatedEntity("business_unit_fax_activities", null); + } + } + + /// + /// N:1 Campaign_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Faxes")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Faxes + { + get + { + return this.GetRelatedEntity("Campaign_Faxes", null); + } + set + { + this.OnPropertyChanging("Campaign_Faxes"); + this.SetRelatedEntity("Campaign_Faxes", null, value); + this.OnPropertyChanged("Campaign_Faxes"); + } + } + + /// + /// N:1 CampaignActivity_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Faxes")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Faxes + { + get + { + return this.GetRelatedEntity("CampaignActivity_Faxes", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Faxes"); + this.SetRelatedEntity("CampaignActivity_Faxes", null, value); + this.OnPropertyChanged("CampaignActivity_Faxes"); + } + } + + /// + /// N:1 Contact_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Faxes")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Faxes + { + get + { + return this.GetRelatedEntity("Contact_Faxes", null); + } + set + { + this.OnPropertyChanging("Contact_Faxes"); + this.SetRelatedEntity("Contact_Faxes", null, value); + this.OnPropertyChanged("Contact_Faxes"); + } + } + + /// + /// N:1 Contract_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Faxes")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Faxes + { + get + { + return this.GetRelatedEntity("Contract_Faxes", null); + } + set + { + this.OnPropertyChanging("Contract_Faxes"); + this.SetRelatedEntity("Contract_Faxes", null, value); + this.OnPropertyChanged("Contract_Faxes"); + } + } + + /// + /// N:1 Incident_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Faxes")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Faxes + { + get + { + return this.GetRelatedEntity("Incident_Faxes", null); + } + set + { + this.OnPropertyChanging("Incident_Faxes"); + this.SetRelatedEntity("Incident_Faxes", null, value); + this.OnPropertyChanged("Incident_Faxes"); + } + } + + /// + /// N:1 Invoice_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Faxes")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Faxes + { + get + { + return this.GetRelatedEntity("Invoice_Faxes", null); + } + set + { + this.OnPropertyChanging("Invoice_Faxes"); + this.SetRelatedEntity("Invoice_Faxes", null, value); + this.OnPropertyChanged("Invoice_Faxes"); + } + } + + /// + /// N:1 Lead_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Faxes")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Faxes + { + get + { + return this.GetRelatedEntity("Lead_Faxes", null); + } + set + { + this.OnPropertyChanging("Lead_Faxes"); + this.SetRelatedEntity("Lead_Faxes", null, value); + this.OnPropertyChanged("Lead_Faxes"); + } + } + + /// + /// N:1 lk_fax_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_createdby + { + get + { + return this.GetRelatedEntity("lk_fax_createdby", null); + } + } + + /// + /// N:1 lk_fax_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fax_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_fax_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_modifiedby + { + get + { + return this.GetRelatedEntity("lk_fax_modifiedby", null); + } + } + + /// + /// N:1 lk_fax_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fax_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fax_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Faxes")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Faxes + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Faxes", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Faxes"); + this.SetRelatedEntity("msdyn_postalbum_Faxes", null, value); + this.OnPropertyChanged("msdyn_postalbum_Faxes"); + } + } + + /// + /// N:1 Opportunity_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Faxes")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Faxes + { + get + { + return this.GetRelatedEntity("Opportunity_Faxes", null); + } + set + { + this.OnPropertyChanging("Opportunity_Faxes"); + this.SetRelatedEntity("Opportunity_Faxes", null, value); + this.OnPropertyChanged("Opportunity_Faxes"); + } + } + + /// + /// N:1 processstage_faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_faxes")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_faxes + { + get + { + return this.GetRelatedEntity("processstage_faxes", null); + } + set + { + this.OnPropertyChanging("processstage_faxes"); + this.SetRelatedEntity("processstage_faxes", null, value); + this.OnPropertyChanged("processstage_faxes"); + } + } + + /// + /// N:1 Quote_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Faxes")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Faxes + { + get + { + return this.GetRelatedEntity("Quote_Faxes", null); + } + set + { + this.OnPropertyChanging("Quote_Faxes"); + this.SetRelatedEntity("Quote_Faxes", null, value); + this.OnPropertyChanged("Quote_Faxes"); + } + } + + /// + /// N:1 SalesOrder_Faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Faxes")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Faxes + { + get + { + return this.GetRelatedEntity("SalesOrder_Faxes", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Faxes"); + this.SetRelatedEntity("SalesOrder_Faxes", null, value); + this.OnPropertyChanged("SalesOrder_Faxes"); + } + } + + /// + /// N:1 service_faxes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_faxes")] + public Xrm.Framework.CI.Common.Entities.Service service_faxes + { + get + { + return this.GetRelatedEntity("service_faxes", null); + } + set + { + this.OnPropertyChanging("service_faxes"); + this.SetRelatedEntity("service_faxes", null, value); + this.OnPropertyChanged("service_faxes"); + } + } + + /// + /// N:1 team_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_fax")] + public Xrm.Framework.CI.Common.Entities.Team team_fax + { + get + { + return this.GetRelatedEntity("team_fax", null); + } + } + + /// + /// N:1 TransactionCurrency_Fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Fax")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Fax + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Fax", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Fax"); + this.SetRelatedEntity("TransactionCurrency_Fax", null, value); + this.OnPropertyChanged("TransactionCurrency_Fax"); + } + } + + /// + /// N:1 user_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_fax")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_fax + { + get + { + return this.GetRelatedEntity("user_fax", null); + } + } + } + + /// + /// Group of privileges used to categorize users to provide appropriate access to secured columns. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fieldpermission")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class FieldPermission : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public FieldPermission() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fieldpermission"; + + public const int EntityTypeCode = 1201; + + 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)); + } + } + + /// + /// Attribute Name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributelogicalname")] + public string AttributeLogicalName + { + get + { + return this.GetAttributeValue("attributelogicalname"); + } + set + { + this.OnPropertyChanging("AttributeLogicalName"); + this.SetAttributeValue("attributelogicalname", value); + this.OnPropertyChanged("AttributeLogicalName"); + } + } + + /// + /// Can this Profile create the attribute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cancreate")] + public Microsoft.Xrm.Sdk.OptionSetValue CanCreate + { + get + { + return this.GetAttributeValue("cancreate"); + } + set + { + this.OnPropertyChanging("CanCreate"); + this.SetAttributeValue("cancreate", value); + this.OnPropertyChanged("CanCreate"); + } + } + + /// + /// Can this Profile read the attribute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canread")] + public Microsoft.Xrm.Sdk.OptionSetValue CanRead + { + get + { + return this.GetAttributeValue("canread"); + } + set + { + this.OnPropertyChanging("CanRead"); + this.SetAttributeValue("canread", value); + this.OnPropertyChanged("CanRead"); + } + } + + /// + /// Can this Profile update the attribute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canupdate")] + public Microsoft.Xrm.Sdk.OptionSetValue CanUpdate + { + get + { + return this.GetAttributeValue("canupdate"); + } + set + { + this.OnPropertyChanging("CanUpdate"); + this.SetAttributeValue("canupdate", value); + this.OnPropertyChanged("CanUpdate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Entity name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityname")] + public string EntityName + { + get + { + return this.GetAttributeValue("entityname"); + } + set + { + this.OnPropertyChanging("EntityName"); + this.SetAttributeValue("entityname", value); + this.OnPropertyChanged("EntityName"); + } + } + + /// + /// Unique identifier of the Field Permission. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldpermissionid")] + public System.Nullable FieldPermissionId + { + get + { + return this.GetAttributeValue>("fieldpermissionid"); + } + set + { + this.OnPropertyChanging("FieldPermissionId"); + this.SetAttributeValue("fieldpermissionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FieldPermissionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldpermissionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FieldPermissionId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldpermissionidunique")] + public System.Nullable FieldPermissionIdUnique + { + get + { + return this.GetAttributeValue>("fieldpermissionidunique"); + } + } + + /// + /// Unique identifier of profile to which this privilege belongs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public Microsoft.Xrm.Sdk.EntityReference FieldSecurityProfileId + { + get + { + return this.GetAttributeValue("fieldsecurityprofileid"); + } + set + { + this.OnPropertyChanging("FieldSecurityProfileId"); + this.SetAttributeValue("fieldsecurityprofileid", value); + this.OnPropertyChanged("FieldSecurityProfileId"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_fieldpermission + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldpermission")] + public System.Collections.Generic.IEnumerable userentityinstancedata_fieldpermission + { + get + { + return this.GetRelatedEntities("userentityinstancedata_fieldpermission", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldpermission"); + this.SetRelatedEntities("userentityinstancedata_fieldpermission", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldpermission"); + } + } + + /// + /// N:1 lk_fieldpermission_fieldsecurityprofileid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldpermission_fieldsecurityprofileid")] + public Xrm.Framework.CI.Common.Entities.FieldSecurityProfile lk_fieldpermission_fieldsecurityprofileid + { + get + { + return this.GetRelatedEntity("lk_fieldpermission_fieldsecurityprofileid", null); + } + set + { + this.OnPropertyChanging("lk_fieldpermission_fieldsecurityprofileid"); + this.SetRelatedEntity("lk_fieldpermission_fieldsecurityprofileid", null, value); + this.OnPropertyChanged("lk_fieldpermission_fieldsecurityprofileid"); + } + } + } + + /// + /// Profile which defines access level for secured attributes + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fieldsecurityprofile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class FieldSecurityProfile : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public FieldSecurityProfile() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fieldsecurityprofile"; + + public const int EntityTypeCode = 1200; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the profile 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 role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the Profile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public System.Nullable FieldSecurityProfileId + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileid"); + } + set + { + this.OnPropertyChanging("FieldSecurityProfileId"); + this.SetAttributeValue("fieldsecurityprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FieldSecurityProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FieldSecurityProfileId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileidunique")] + public System.Nullable FieldSecurityProfileIdUnique + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileidunique"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the profile 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 profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the associated organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N lk_fieldpermission_fieldsecurityprofileid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldpermission_fieldsecurityprofileid")] + public System.Collections.Generic.IEnumerable lk_fieldpermission_fieldsecurityprofileid + { + get + { + return this.GetRelatedEntities("lk_fieldpermission_fieldsecurityprofileid", null); + } + set + { + this.OnPropertyChanging("lk_fieldpermission_fieldsecurityprofileid"); + this.SetRelatedEntities("lk_fieldpermission_fieldsecurityprofileid", null, value); + this.OnPropertyChanged("lk_fieldpermission_fieldsecurityprofileid"); + } + } + + /// + /// 1:N userentityinstancedata_fieldsecurityprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldsecurityprofile")] + public System.Collections.Generic.IEnumerable userentityinstancedata_fieldsecurityprofile + { + get + { + return this.GetRelatedEntities("userentityinstancedata_fieldsecurityprofile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldsecurityprofile"); + this.SetRelatedEntities("userentityinstancedata_fieldsecurityprofile", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldsecurityprofile"); + } + } + + /// + /// N:N systemuserprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserprofiles_association")] + public System.Collections.Generic.IEnumerable systemuserprofiles_association + { + get + { + return this.GetRelatedEntities("systemuserprofiles_association", null); + } + set + { + this.OnPropertyChanging("systemuserprofiles_association"); + this.SetRelatedEntities("systemuserprofiles_association", null, value); + this.OnPropertyChanged("systemuserprofiles_association"); + } + } + + /// + /// N:N teamprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamprofiles_association")] + public System.Collections.Generic.IEnumerable teamprofiles_association + { + get + { + return this.GetRelatedEntities("teamprofiles_association", null); + } + set + { + this.OnPropertyChanging("teamprofiles_association"); + this.SetRelatedEntities("teamprofiles_association", null, value); + this.OnPropertyChanged("teamprofiles_association"); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_createdby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_createdby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_modifiedby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_modifiedby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fieldsecurityprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_fieldsecurityprofile_organizationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_organizationid")] + public Xrm.Framework.CI.Common.Entities.Organization lk_fieldsecurityprofile_organizationid + { + get + { + return this.GetRelatedEntity("lk_fieldsecurityprofile_organizationid", null); + } + } + } + + /// + /// Fixed monthly fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("fixedmonthlyfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class FixedMonthlyFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public FixedMonthlyFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "fixedmonthlyfiscalcalendar"; + + public const int EntityTypeCode = 2004; + + 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)); + } + } + + /// + /// Business unit responsible for the quota associated with this calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the fixed monthly fiscal calendar 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 fixedmonthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the fixed monthly fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the fixed monthly fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the fixed monthly fiscal calendar sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the fixed monthly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the fixed monthly fiscal calendar 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 fixedmonthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period1")] + public Microsoft.Xrm.Sdk.Money Period1 + { + get + { + return this.GetAttributeValue("period1"); + } + set + { + this.OnPropertyChanging("Period1"); + this.SetAttributeValue("period1", value); + this.OnPropertyChanged("Period1"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period1_base")] + public Microsoft.Xrm.Sdk.Money Period1_Base + { + get + { + return this.GetAttributeValue("period1_base"); + } + } + + /// + /// Sales quota for the tenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period10")] + public Microsoft.Xrm.Sdk.Money Period10 + { + get + { + return this.GetAttributeValue("period10"); + } + set + { + this.OnPropertyChanging("Period10"); + this.SetAttributeValue("period10", value); + this.OnPropertyChanged("Period10"); + } + } + + /// + /// Base currency equivalent of the sales quota for the tenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period10_base")] + public Microsoft.Xrm.Sdk.Money Period10_Base + { + get + { + return this.GetAttributeValue("period10_base"); + } + } + + /// + /// Sales quota for the eleventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period11")] + public Microsoft.Xrm.Sdk.Money Period11 + { + get + { + return this.GetAttributeValue("period11"); + } + set + { + this.OnPropertyChanging("Period11"); + this.SetAttributeValue("period11", value); + this.OnPropertyChanged("Period11"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eleventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period11_base")] + public Microsoft.Xrm.Sdk.Money Period11_Base + { + get + { + return this.GetAttributeValue("period11_base"); + } + } + + /// + /// Sales quota for the twelfth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period12")] + public Microsoft.Xrm.Sdk.Money Period12 + { + get + { + return this.GetAttributeValue("period12"); + } + set + { + this.OnPropertyChanging("Period12"); + this.SetAttributeValue("period12", value); + this.OnPropertyChanged("Period12"); + } + } + + /// + /// Base currency equivalent of the sales quota for the twelfth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period12_base")] + public Microsoft.Xrm.Sdk.Money Period12_Base + { + get + { + return this.GetAttributeValue("period12_base"); + } + } + + /// + /// Sales quota for the thirteenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period13")] + public Microsoft.Xrm.Sdk.Money Period13 + { + get + { + return this.GetAttributeValue("period13"); + } + set + { + this.OnPropertyChanging("Period13"); + this.SetAttributeValue("period13", value); + this.OnPropertyChanged("Period13"); + } + } + + /// + /// Base currency equivalent of the sales quota for the thirteenth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period13_base")] + public Microsoft.Xrm.Sdk.Money Period13_Base + { + get + { + return this.GetAttributeValue("period13_base"); + } + } + + /// + /// Sales quota for the second period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period2")] + public Microsoft.Xrm.Sdk.Money Period2 + { + get + { + return this.GetAttributeValue("period2"); + } + set + { + this.OnPropertyChanging("Period2"); + this.SetAttributeValue("period2", value); + this.OnPropertyChanged("Period2"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period2_base")] + public Microsoft.Xrm.Sdk.Money Period2_Base + { + get + { + return this.GetAttributeValue("period2_base"); + } + } + + /// + /// Sales quota for the third period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period3")] + public Microsoft.Xrm.Sdk.Money Period3 + { + get + { + return this.GetAttributeValue("period3"); + } + set + { + this.OnPropertyChanging("Period3"); + this.SetAttributeValue("period3", value); + this.OnPropertyChanged("Period3"); + } + } + + /// + /// Base currency equivalent of the sales quota for the third period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period3_base")] + public Microsoft.Xrm.Sdk.Money Period3_Base + { + get + { + return this.GetAttributeValue("period3_base"); + } + } + + /// + /// Sales quota for the fourth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period4")] + public Microsoft.Xrm.Sdk.Money Period4 + { + get + { + return this.GetAttributeValue("period4"); + } + set + { + this.OnPropertyChanging("Period4"); + this.SetAttributeValue("period4", value); + this.OnPropertyChanged("Period4"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fourth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period4_base")] + public Microsoft.Xrm.Sdk.Money Period4_Base + { + get + { + return this.GetAttributeValue("period4_base"); + } + } + + /// + /// Sales quota for the fifth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period5")] + public Microsoft.Xrm.Sdk.Money Period5 + { + get + { + return this.GetAttributeValue("period5"); + } + set + { + this.OnPropertyChanging("Period5"); + this.SetAttributeValue("period5", value); + this.OnPropertyChanged("Period5"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fifth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period5_base")] + public Microsoft.Xrm.Sdk.Money Period5_Base + { + get + { + return this.GetAttributeValue("period5_base"); + } + } + + /// + /// Sales quota for the sixth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period6")] + public Microsoft.Xrm.Sdk.Money Period6 + { + get + { + return this.GetAttributeValue("period6"); + } + set + { + this.OnPropertyChanging("Period6"); + this.SetAttributeValue("period6", value); + this.OnPropertyChanged("Period6"); + } + } + + /// + /// Base currency equivalent of the sales quota for the sixth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period6_base")] + public Microsoft.Xrm.Sdk.Money Period6_Base + { + get + { + return this.GetAttributeValue("period6_base"); + } + } + + /// + /// Sales quota for the seventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period7")] + public Microsoft.Xrm.Sdk.Money Period7 + { + get + { + return this.GetAttributeValue("period7"); + } + set + { + this.OnPropertyChanging("Period7"); + this.SetAttributeValue("period7", value); + this.OnPropertyChanged("Period7"); + } + } + + /// + /// Base currency equivalent of the sales quota for the seventh period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period7_base")] + public Microsoft.Xrm.Sdk.Money Period7_Base + { + get + { + return this.GetAttributeValue("period7_base"); + } + } + + /// + /// Sales quota for the eighth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period8")] + public Microsoft.Xrm.Sdk.Money Period8 + { + get + { + return this.GetAttributeValue("period8"); + } + set + { + this.OnPropertyChanging("Period8"); + this.SetAttributeValue("period8", value); + this.OnPropertyChanged("Period8"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eighth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period8_base")] + public Microsoft.Xrm.Sdk.Money Period8_Base + { + get + { + return this.GetAttributeValue("period8_base"); + } + } + + /// + /// Sales quota for the ninth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period9")] + public Microsoft.Xrm.Sdk.Money Period9 + { + get + { + return this.GetAttributeValue("period9"); + } + set + { + this.OnPropertyChanging("Period9"); + this.SetAttributeValue("period9", value); + this.OnPropertyChanged("Period9"); + } + } + + /// + /// Base currency equivalent of the sales quota for the ninth period in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("period9_base")] + public Microsoft.Xrm.Sdk.Money Period9_Base + { + get + { + return this.GetAttributeValue("period9_base"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 fixed monthly fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the user of the fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N FixedMonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable FixedMonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("FixedMonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("FixedMonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("FixedMonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("FixedMonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N FixedMonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("FixedMonthlyFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable FixedMonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("FixedMonthlyFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("FixedMonthlyFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("FixedMonthlyFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("FixedMonthlyFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_fixedmonthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_fixedmonthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_fixedmonthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_fixedmonthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_fixedmonthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_fixedmonthlyfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_fixedmonthlyfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_fixedmonthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_fixedmonthlyfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_fixedmonthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_fixedmonthlyfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum GoalState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Target objective for a user or a team for a specified time period. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("goal")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Goal : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Goal() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "goal"; + + public const int EntityTypeCode = 9600; + + 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 actual value (Decimal type) achieved towards the target as of the last rolled-up date. This field appears when the metric type of the goal is Amount and the amount data type is Decimal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdecimal")] + public System.Nullable ActualDecimal + { + get + { + return this.GetAttributeValue>("actualdecimal"); + } + set + { + this.OnPropertyChanging("ActualDecimal"); + this.SetAttributeValue("actualdecimal", value); + this.OnPropertyChanged("ActualDecimal"); + } + } + + /// + /// Shows the actual value (integer) achieved towards the target as of the last rolled-up date. This field appears when the metric type of the goal is Amount or Count and the amount data type is Integer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualinteger")] + public System.Nullable ActualInteger + { + get + { + return this.GetAttributeValue>("actualinteger"); + } + set + { + this.OnPropertyChanging("ActualInteger"); + this.SetAttributeValue("actualinteger", value); + this.OnPropertyChanged("ActualInteger"); + } + } + + /// + /// Shows the actual value (Money type) achieved towards the target as of the last rolled-up date. This field appears when the metric type of the goal is Amount and the amount data type is Money. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualmoney")] + public Microsoft.Xrm.Sdk.Money ActualMoney + { + get + { + return this.GetAttributeValue("actualmoney"); + } + set + { + this.OnPropertyChanging("ActualMoney"); + this.SetAttributeValue("actualmoney", value); + this.OnPropertyChanged("ActualMoney"); + } + } + + /// + /// Shows the actual value (money type) in base currency to track goal results against the target. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualmoney_base")] + public Microsoft.Xrm.Sdk.Money ActualMoney_Base + { + get + { + return this.GetAttributeValue("actualmoney_base"); + } + } + + /// + /// Actual Value of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualstring")] + public string ActualString + { + get + { + return this.GetAttributeValue("actualstring"); + } + } + + /// + /// Data type of the amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amountdatatype")] + public Microsoft.Xrm.Sdk.OptionSetValue AmountDataType + { + get + { + return this.GetAttributeValue("amountdatatype"); + } + set + { + this.OnPropertyChanging("AmountDataType"); + this.SetAttributeValue("amountdatatype", value); + this.OnPropertyChanged("AmountDataType"); + } + } + + /// + /// Shows the expected amount for actual value (decimal type) against the target goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaydecimal")] + public System.Nullable ComputedTargetAsOfTodayDecimal + { + get + { + return this.GetAttributeValue>("computedtargetasoftodaydecimal"); + } + } + + /// + /// Shows the expected amount for actual value (integer type) against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodayinteger")] + public System.Nullable ComputedTargetAsOfTodayInteger + { + get + { + return this.GetAttributeValue>("computedtargetasoftodayinteger"); + } + } + + /// + /// Shows the expected amount for actual value (money type) against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaymoney")] + public Microsoft.Xrm.Sdk.Money ComputedTargetAsOfTodayMoney + { + get + { + return this.GetAttributeValue("computedtargetasoftodaymoney"); + } + } + + /// + /// Shows the expected amount in base currency for actual value (money type) against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaymoney_base")] + public Microsoft.Xrm.Sdk.Money ComputedTargetAsOfTodayMoney_Base + { + get + { + return this.GetAttributeValue("computedtargetasoftodaymoney_base"); + } + } + + /// + /// Shows the expected value for percentage achieved against the target goal as of the current date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("computedtargetasoftodaypercentageachieved")] + public System.Nullable ComputedTargetAsOfTodayPercentageAchieved + { + get + { + return this.GetAttributeValue>("computedtargetasoftodaypercentageachieved"); + } + } + + /// + /// Select whether only the goal owner's records, or all records, should be rolled up for goal results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("consideronlygoalownersrecords")] + public System.Nullable ConsiderOnlyGoalOwnersRecords + { + get + { + return this.GetAttributeValue>("consideronlygoalownersrecords"); + } + set + { + this.OnPropertyChanging("ConsiderOnlyGoalOwnersRecords"); + this.SetAttributeValue("consideronlygoalownersrecords", value); + this.OnPropertyChanged("ConsiderOnlyGoalOwnersRecords"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Indicates a placeholder rollup field for a decimal value to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfielddecimal")] + public System.Nullable CustomRollupFieldDecimal + { + get + { + return this.GetAttributeValue>("customrollupfielddecimal"); + } + set + { + this.OnPropertyChanging("CustomRollupFieldDecimal"); + this.SetAttributeValue("customrollupfielddecimal", value); + this.OnPropertyChanged("CustomRollupFieldDecimal"); + } + } + + /// + /// Indicates a placeholder rollup field for an integer value to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldinteger")] + public System.Nullable CustomRollupFieldInteger + { + get + { + return this.GetAttributeValue>("customrollupfieldinteger"); + } + set + { + this.OnPropertyChanging("CustomRollupFieldInteger"); + this.SetAttributeValue("customrollupfieldinteger", value); + this.OnPropertyChanged("CustomRollupFieldInteger"); + } + } + + /// + /// Indicates a placeholder rollup field for a money value to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldmoney")] + public Microsoft.Xrm.Sdk.Money CustomRollupFieldMoney + { + get + { + return this.GetAttributeValue("customrollupfieldmoney"); + } + set + { + this.OnPropertyChanging("CustomRollupFieldMoney"); + this.SetAttributeValue("customrollupfieldmoney", value); + this.OnPropertyChanged("CustomRollupFieldMoney"); + } + } + + /// + /// Indicates a placeholder rollup field for a money value in base currency to track a third category of results other than actuals and in-progress results. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldmoney_base")] + public Microsoft.Xrm.Sdk.Money CustomRollupFieldMoney_Base + { + get + { + return this.GetAttributeValue("customrollupfieldmoney_base"); + } + } + + /// + /// Placeholder rollup field for the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customrollupfieldstring")] + public string CustomRollupFieldString + { + get + { + return this.GetAttributeValue("customrollupfieldstring"); + } + } + + /// + /// Depth of the goal in the tree. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("depth")] + public System.Nullable Depth + { + get + { + return this.GetAttributeValue>("depth"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the fiscal period for the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiod")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalPeriod + { + get + { + return this.GetAttributeValue("fiscalperiod"); + } + set + { + this.OnPropertyChanging("FiscalPeriod"); + this.SetAttributeValue("fiscalperiod", value); + this.OnPropertyChanged("FiscalPeriod"); + } + } + + /// + /// Select the fiscal year for the goal that's being tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyear")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYear + { + get + { + return this.GetAttributeValue("fiscalyear"); + } + set + { + this.OnPropertyChanging("FiscalYear"); + this.SetAttributeValue("fiscalyear", value); + this.OnPropertyChanged("FiscalYear"); + } + } + + /// + /// Enter the date when the goal ends. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalenddate")] + public System.Nullable GoalEndDate + { + get + { + return this.GetAttributeValue>("goalenddate"); + } + set + { + this.OnPropertyChanging("GoalEndDate"); + this.SetAttributeValue("goalenddate", value); + this.OnPropertyChanged("GoalEndDate"); + } + } + + /// + /// Unique identifier of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalid")] + public System.Nullable GoalId + { + get + { + return this.GetAttributeValue>("goalid"); + } + set + { + this.OnPropertyChanging("GoalId"); + this.SetAttributeValue("goalid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("GoalId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.GoalId = value; + } + } + + /// + /// Choose the user or team responsible for meeting the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalownerid")] + public Microsoft.Xrm.Sdk.EntityReference GoalOwnerId + { + get + { + return this.GetAttributeValue("goalownerid"); + } + set + { + this.OnPropertyChanging("GoalOwnerId"); + this.SetAttributeValue("goalownerid", value); + this.OnPropertyChanged("GoalOwnerId"); + } + } + + /// + /// Enter the date and time when the period for tracking the goal begins. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalstartdate")] + public System.Nullable GoalStartDate + { + get + { + return this.GetAttributeValue>("goalstartdate"); + } + set + { + this.OnPropertyChanging("GoalStartDate"); + this.SetAttributeValue("goalstartdate", value); + this.OnPropertyChanged("GoalStartDate"); + } + } + + /// + /// Unique identifier of the goal that caused an error in the rollup of the goal hierarchy. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalwitherrorid")] + public Microsoft.Xrm.Sdk.EntityReference GoalWithErrorId + { + get + { + return this.GetAttributeValue("goalwitherrorid"); + } + set + { + this.OnPropertyChanging("GoalWithErrorId"); + this.SetAttributeValue("goalwitherrorid", value); + this.OnPropertyChanged("GoalWithErrorId"); + } + } + + /// + /// 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 in-progress value (decimal) against the target. This value could contribute to a goal, but is not counted yet as actual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressdecimal")] + public System.Nullable InProgressDecimal + { + get + { + return this.GetAttributeValue>("inprogressdecimal"); + } + set + { + this.OnPropertyChanging("InProgressDecimal"); + this.SetAttributeValue("inprogressdecimal", value); + this.OnPropertyChanged("InProgressDecimal"); + } + } + + /// + /// Shows the in-progress value (integer) against the target. This value could contribute to a goal, but is not counted yet as actual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressinteger")] + public System.Nullable InProgressInteger + { + get + { + return this.GetAttributeValue>("inprogressinteger"); + } + set + { + this.OnPropertyChanging("InProgressInteger"); + this.SetAttributeValue("inprogressinteger", value); + this.OnPropertyChanged("InProgressInteger"); + } + } + + /// + /// Shows the in-progress value (money) against the target. This value could contribute to a goal, but is not counted yet as actual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressmoney")] + public Microsoft.Xrm.Sdk.Money InProgressMoney + { + get + { + return this.GetAttributeValue("inprogressmoney"); + } + set + { + this.OnPropertyChanging("InProgressMoney"); + this.SetAttributeValue("inprogressmoney", value); + this.OnPropertyChanged("InProgressMoney"); + } + } + + /// + /// Shows the in-progress value (money) in base currency to track goal results against the target. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressmoney_base")] + public Microsoft.Xrm.Sdk.Money InProgressMoney_Base + { + get + { + return this.GetAttributeValue("inprogressmoney_base"); + } + } + + /// + /// In-progress value of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inprogressstring")] + public string InProgressString + { + get + { + return this.GetAttributeValue("inprogressstring"); + } + } + + /// + /// Indicates whether the metric type is Count or Amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamount")] + public System.Nullable IsAmount + { + get + { + return this.GetAttributeValue>("isamount"); + } + set + { + this.OnPropertyChanging("IsAmount"); + this.SetAttributeValue("isamount", value); + this.OnPropertyChanged("IsAmount"); + } + } + + /// + /// Select whether the goal period is a fiscal period or custom period. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfiscalperiodgoal")] + public System.Nullable IsFiscalPeriodGoal + { + get + { + return this.GetAttributeValue>("isfiscalperiodgoal"); + } + set + { + this.OnPropertyChanging("IsFiscalPeriodGoal"); + this.SetAttributeValue("isfiscalperiodgoal", value); + this.OnPropertyChanged("IsFiscalPeriodGoal"); + } + } + + /// + /// Select whether the system rollup fields are updated. If set to Yes, the next system rollup will not update the values of the rollup fields with the system calculated values. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoverridden")] + public System.Nullable IsOverridden + { + get + { + return this.GetAttributeValue>("isoverridden"); + } + set + { + this.OnPropertyChanging("IsOverridden"); + this.SetAttributeValue("isoverridden", value); + this.OnPropertyChanged("IsOverridden"); + } + } + + /// + /// Indicates whether the values of system rollup fields can be updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoverride")] + public System.Nullable IsOverride + { + get + { + return this.GetAttributeValue>("isoverride"); + } + set + { + this.OnPropertyChanging("IsOverride"); + this.SetAttributeValue("isoverride", value); + this.OnPropertyChanged("IsOverride"); + } + } + + /// + /// Shows the date and time when the goal was last rolled up. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastrolledupdate")] + public System.Nullable LastRolledupDate + { + get + { + return this.GetAttributeValue>("lastrolledupdate"); + } + set + { + this.OnPropertyChanging("LastRolledupDate"); + this.SetAttributeValue("lastrolledupdate", value); + this.OnPropertyChanged("LastRolledupDate"); + } + } + + /// + /// Choose the metric for the goal. This metric determines how the goal is tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public Microsoft.Xrm.Sdk.EntityReference MetricId + { + get + { + return this.GetAttributeValue("metricid"); + } + set + { + this.OnPropertyChanging("MetricId"); + this.SetAttributeValue("metricid", value); + this.OnPropertyChanged("MetricId"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 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 of the team who owns the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose a parent goal if the current goal is a child goal. This sets up a parent-child relationship for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentgoalid")] + public Microsoft.Xrm.Sdk.EntityReference ParentGoalId + { + get + { + return this.GetAttributeValue("parentgoalid"); + } + set + { + this.OnPropertyChanging("ParentGoalId"); + this.SetAttributeValue("parentgoalid", value); + this.OnPropertyChanged("ParentGoalId"); + } + } + + /// + /// Shows the percentage achieved against the target goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentage")] + public System.Nullable Percentage + { + get + { + return this.GetAttributeValue>("percentage"); + } + set + { + this.OnPropertyChanging("Percentage"); + this.SetAttributeValue("percentage", value); + this.OnPropertyChanged("Percentage"); + } + } + + /// + /// Error code associated with rollup. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rolluperrorcode")] + public System.Nullable RollupErrorCode + { + get + { + return this.GetAttributeValue>("rolluperrorcode"); + } + set + { + this.OnPropertyChanging("RollupErrorCode"); + this.SetAttributeValue("rolluperrorcode", value); + this.OnPropertyChanged("RollupErrorCode"); + } + } + + /// + /// Select whether the data should be rolled up only from the child goals. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rolluponlyfromchildgoals")] + public System.Nullable RollupOnlyFromChildGoals + { + get + { + return this.GetAttributeValue>("rolluponlyfromchildgoals"); + } + set + { + this.OnPropertyChanging("RollupOnlyFromChildGoals"); + this.SetAttributeValue("rolluponlyfromchildgoals", value); + this.OnPropertyChanged("RollupOnlyFromChildGoals"); + } + } + + /// + /// Choose the query that will be used to calculate the actual data for the goal (decimal). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualdecimalid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryActualDecimalId + { + get + { + return this.GetAttributeValue("rollupqueryactualdecimalid"); + } + set + { + this.OnPropertyChanging("RollUpQueryActualDecimalId"); + this.SetAttributeValue("rollupqueryactualdecimalid", value); + this.OnPropertyChanged("RollUpQueryActualDecimalId"); + } + } + + /// + /// Choose the query that will be used to calculate the actual data for the goal (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualintegerid")] + public Microsoft.Xrm.Sdk.EntityReference RollupQueryActualIntegerId + { + get + { + return this.GetAttributeValue("rollupqueryactualintegerid"); + } + set + { + this.OnPropertyChanging("RollupQueryActualIntegerId"); + this.SetAttributeValue("rollupqueryactualintegerid", value); + this.OnPropertyChanged("RollupQueryActualIntegerId"); + } + } + + /// + /// Choose the query that will be used to calculate the actual data for the goal (money). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualmoneyid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryActualMoneyId + { + get + { + return this.GetAttributeValue("rollupqueryactualmoneyid"); + } + set + { + this.OnPropertyChanging("RollUpQueryActualMoneyId"); + this.SetAttributeValue("rollupqueryactualmoneyid", value); + this.OnPropertyChanged("RollUpQueryActualMoneyId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the custom rollup field (decimal). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomdecimalid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryCustomDecimalId + { + get + { + return this.GetAttributeValue("rollupquerycustomdecimalid"); + } + set + { + this.OnPropertyChanging("RollUpQueryCustomDecimalId"); + this.SetAttributeValue("rollupquerycustomdecimalid", value); + this.OnPropertyChanged("RollUpQueryCustomDecimalId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the custom rollup field (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomintegerid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryCustomIntegerId + { + get + { + return this.GetAttributeValue("rollupquerycustomintegerid"); + } + set + { + this.OnPropertyChanging("RollUpQueryCustomIntegerId"); + this.SetAttributeValue("rollupquerycustomintegerid", value); + this.OnPropertyChanged("RollUpQueryCustomIntegerId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the custom rollup field (money). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustommoneyid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryCustomMoneyId + { + get + { + return this.GetAttributeValue("rollupquerycustommoneyid"); + } + set + { + this.OnPropertyChanging("RollUpQueryCustomMoneyId"); + this.SetAttributeValue("rollupquerycustommoneyid", value); + this.OnPropertyChanged("RollUpQueryCustomMoneyId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the in-progress rollup field (decimal). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressdecimalid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryInprogressDecimalId + { + get + { + return this.GetAttributeValue("rollupqueryinprogressdecimalid"); + } + set + { + this.OnPropertyChanging("RollUpQueryInprogressDecimalId"); + this.SetAttributeValue("rollupqueryinprogressdecimalid", value); + this.OnPropertyChanged("RollUpQueryInprogressDecimalId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the in-progress rollup field (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressintegerid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryInprogressIntegerId + { + get + { + return this.GetAttributeValue("rollupqueryinprogressintegerid"); + } + set + { + this.OnPropertyChanging("RollUpQueryInprogressIntegerId"); + this.SetAttributeValue("rollupqueryinprogressintegerid", value); + this.OnPropertyChanged("RollUpQueryInprogressIntegerId"); + } + } + + /// + /// Choose the query that will be used to calculate data for the in-progress rollup field (money). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressmoneyid")] + public Microsoft.Xrm.Sdk.EntityReference RollUpQueryInprogressMoneyId + { + get + { + return this.GetAttributeValue("rollupqueryinprogressmoneyid"); + } + set + { + this.OnPropertyChanging("RollUpQueryInprogressMoneyId"); + this.SetAttributeValue("rollupqueryinprogressmoneyid", value); + this.OnPropertyChanged("RollUpQueryInprogressMoneyId"); + } + } + + /// + /// Shows whether the goal is open, completed, or canceled. Completed and canceled goals are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.GoalState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.GoalState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the goal'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 a stretch target (decimal) of the goal to define a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetdecimal")] + public System.Nullable StretchTargetDecimal + { + get + { + return this.GetAttributeValue>("stretchtargetdecimal"); + } + set + { + this.OnPropertyChanging("StretchTargetDecimal"); + this.SetAttributeValue("stretchtargetdecimal", value); + this.OnPropertyChanged("StretchTargetDecimal"); + } + } + + /// + /// Select the stretch target (integer) of the goal to define a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetinteger")] + public System.Nullable StretchTargetInteger + { + get + { + return this.GetAttributeValue>("stretchtargetinteger"); + } + set + { + this.OnPropertyChanging("StretchTargetInteger"); + this.SetAttributeValue("stretchtargetinteger", value); + this.OnPropertyChanged("StretchTargetInteger"); + } + } + + /// + /// Select stretch target (money) of the goal to define a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetmoney")] + public Microsoft.Xrm.Sdk.Money StretchTargetMoney + { + get + { + return this.GetAttributeValue("stretchtargetmoney"); + } + set + { + this.OnPropertyChanging("StretchTargetMoney"); + this.SetAttributeValue("stretchtargetmoney", value); + this.OnPropertyChanged("StretchTargetMoney"); + } + } + + /// + /// Shows the stretch target (money) in base currency to indicate a higher or difficult level of goal than the usual ones. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetmoney_base")] + public Microsoft.Xrm.Sdk.Money StretchTargetMoney_Base + { + get + { + return this.GetAttributeValue("stretchtargetmoney_base"); + } + } + + /// + /// Stretch target value for all data types. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stretchtargetstring")] + public string StretchTargetString + { + get + { + return this.GetAttributeValue("stretchtargetstring"); + } + } + + /// + /// Select a goal target of the decimal type to use for tracking data that include partial numbers, such as pounds sold of a product sold by weight. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetdecimal")] + public System.Nullable TargetDecimal + { + get + { + return this.GetAttributeValue>("targetdecimal"); + } + set + { + this.OnPropertyChanging("TargetDecimal"); + this.SetAttributeValue("targetdecimal", value); + this.OnPropertyChanged("TargetDecimal"); + } + } + + /// + /// Select a goal target of the integer type to use for tracking anything countable in whole numbers, such as units sold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetinteger")] + public System.Nullable TargetInteger + { + get + { + return this.GetAttributeValue>("targetinteger"); + } + set + { + this.OnPropertyChanging("TargetInteger"); + this.SetAttributeValue("targetinteger", value); + this.OnPropertyChanged("TargetInteger"); + } + } + + /// + /// Select a goal target (money) to track a monetary amount such as revenue from a product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetmoney")] + public Microsoft.Xrm.Sdk.Money TargetMoney + { + get + { + return this.GetAttributeValue("targetmoney"); + } + set + { + this.OnPropertyChanging("TargetMoney"); + this.SetAttributeValue("targetmoney", value); + this.OnPropertyChanged("TargetMoney"); + } + } + + /// + /// Shows the goal target of the money type in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetmoney_base")] + public Microsoft.Xrm.Sdk.Money TargetMoney_Base + { + get + { + return this.GetAttributeValue("targetmoney_base"); + } + } + + /// + /// Target value of the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetstring")] + public string TargetString + { + get + { + return this.GetAttributeValue("targetstring"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type a title or name that describes the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the goal tree. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("treeid")] + public System.Nullable TreeId + { + get + { + return this.GetAttributeValue>("treeid"); + } + } + + /// + /// 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 goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Goal_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_Annotation")] + public System.Collections.Generic.IEnumerable Goal_Annotation + { + get + { + return this.GetRelatedEntities("Goal_Annotation", null); + } + set + { + this.OnPropertyChanging("Goal_Annotation"); + this.SetRelatedEntities("Goal_Annotation", null, value); + this.OnPropertyChanged("Goal_Annotation"); + } + } + + /// + /// 1:N Goal_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_AsyncOperations")] + public System.Collections.Generic.IEnumerable Goal_AsyncOperations + { + get + { + return this.GetRelatedEntities("Goal_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Goal_AsyncOperations"); + this.SetRelatedEntities("Goal_AsyncOperations", null, value); + this.OnPropertyChanged("Goal_AsyncOperations"); + } + } + + /// + /// 1:N goal_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections1")] + public System.Collections.Generic.IEnumerable goal_connections1 + { + get + { + return this.GetRelatedEntities("goal_connections1", null); + } + set + { + this.OnPropertyChanging("goal_connections1"); + this.SetRelatedEntities("goal_connections1", null, value); + this.OnPropertyChanged("goal_connections1"); + } + } + + /// + /// 1:N goal_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_connections2")] + public System.Collections.Generic.IEnumerable goal_connections2 + { + get + { + return this.GetRelatedEntities("goal_connections2", null); + } + set + { + this.OnPropertyChanging("goal_connections2"); + this.SetRelatedEntities("goal_connections2", null, value); + this.OnPropertyChanged("goal_connections2"); + } + } + + /// + /// 1:N goal_parent_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedgoal_parent_goal + { + get + { + return this.GetRelatedEntities("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedgoal_parent_goal"); + this.SetRelatedEntities("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedgoal_parent_goal"); + } + } + + /// + /// 1:N goal_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable goal_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("goal_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("goal_principalobjectattributeaccess"); + this.SetRelatedEntities("goal_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("goal_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Goal_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_ProcessSessions")] + public System.Collections.Generic.IEnumerable Goal_ProcessSessions + { + get + { + return this.GetRelatedEntities("Goal_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Goal_ProcessSessions"); + this.SetRelatedEntities("Goal_ProcessSessions", null, value); + this.OnPropertyChanged("Goal_ProcessSessions"); + } + } + + /// + /// 1:N Goal_RollupError_Goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable ReferencedGoal_RollupError_Goal + { + get + { + return this.GetRelatedEntities("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("ReferencedGoal_RollupError_Goal"); + this.SetRelatedEntities("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("ReferencedGoal_RollupError_Goal"); + } + } + + /// + /// 1:N userentityinstancedata_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goal")] + public System.Collections.Generic.IEnumerable userentityinstancedata_goal + { + get + { + return this.GetRelatedEntities("userentityinstancedata_goal", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goal"); + this.SetRelatedEntities("userentityinstancedata_goal", null, value); + this.OnPropertyChanged("userentityinstancedata_goal"); + } + } + + /// + /// N:1 business_unit_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goal")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_goal + { + get + { + return this.GetRelatedEntity("business_unit_goal", null); + } + } + + /// + /// N:1 goal_parent_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentgoalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Goal Referencinggoal_parent_goal + { + get + { + return this.GetRelatedEntity("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinggoal_parent_goal"); + this.SetRelatedEntity("goal_parent_goal", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinggoal_parent_goal"); + } + } + + /// + /// N:1 Goal_RollupError_Goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalwitherrorid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Goal ReferencingGoal_RollupError_Goal + { + get + { + return this.GetRelatedEntity("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("ReferencingGoal_RollupError_Goal"); + this.SetRelatedEntity("Goal_RollupError_Goal", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("ReferencingGoal_RollupError_Goal"); + } + } + + /// + /// N:1 goal_rollupquery_actualdecimal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualdecimalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualdecimal")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_actualdecimal + { + get + { + return this.GetRelatedEntity("goal_rollupquery_actualdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualdecimal"); + this.SetRelatedEntity("goal_rollupquery_actualdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_actualdecimal"); + } + } + + /// + /// N:1 goal_rollupquery_actualmoney + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualmoneyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualmoney")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_actualmoney + { + get + { + return this.GetRelatedEntity("goal_rollupquery_actualmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualmoney"); + this.SetRelatedEntity("goal_rollupquery_actualmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_actualmoney"); + } + } + + /// + /// N:1 goal_rollupquery_customdecimal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomdecimalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customdecimal")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_customdecimal + { + get + { + return this.GetRelatedEntity("goal_rollupquery_customdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customdecimal"); + this.SetRelatedEntity("goal_rollupquery_customdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_customdecimal"); + } + } + + /// + /// N:1 goal_rollupquery_customint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustomintegerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customint")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_customint + { + get + { + return this.GetRelatedEntity("goal_rollupquery_customint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customint"); + this.SetRelatedEntity("goal_rollupquery_customint", null, value); + this.OnPropertyChanged("goal_rollupquery_customint"); + } + } + + /// + /// N:1 goal_rollupquery_custommoney + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupquerycustommoneyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_custommoney")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_custommoney + { + get + { + return this.GetRelatedEntity("goal_rollupquery_custommoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_custommoney"); + this.SetRelatedEntity("goal_rollupquery_custommoney", null, value); + this.OnPropertyChanged("goal_rollupquery_custommoney"); + } + } + + /// + /// N:1 goal_rollupquery_inprogressdecimal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressdecimalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressdecimal")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_inprogressdecimal + { + get + { + return this.GetRelatedEntity("goal_rollupquery_inprogressdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressdecimal"); + this.SetRelatedEntity("goal_rollupquery_inprogressdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressdecimal"); + } + } + + /// + /// N:1 goal_rollupquery_inprogressint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressintegerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressint")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_inprogressint + { + get + { + return this.GetRelatedEntity("goal_rollupquery_inprogressint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressint"); + this.SetRelatedEntity("goal_rollupquery_inprogressint", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressint"); + } + } + + /// + /// N:1 goal_rollupquery_inprogressmoney + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryinprogressmoneyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressmoney")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goal_rollupquery_inprogressmoney + { + get + { + return this.GetRelatedEntity("goal_rollupquery_inprogressmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressmoney"); + this.SetRelatedEntity("goal_rollupquery_inprogressmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressmoney"); + } + } + + /// + /// N:1 goalrollupquery_actualint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupqueryactualintegerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_actualint")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goalrollupquery_actualint + { + get + { + return this.GetRelatedEntity("goalrollupquery_actualint", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_actualint"); + this.SetRelatedEntity("goalrollupquery_actualint", null, value); + this.OnPropertyChanged("goalrollupquery_actualint"); + } + } + + /// + /// N:1 lk_goal_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_createdby + { + get + { + return this.GetRelatedEntity("lk_goal_createdby", null); + } + } + + /// + /// N:1 lk_goal_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goal_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_goal_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_modifiedby + { + get + { + return this.GetRelatedEntity("lk_goal_modifiedby", null); + } + } + + /// + /// N:1 lk_goal_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goal_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goal_modifiedonbehalfby", null); + } + } + + /// + /// N:1 metric_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_goal")] + public Xrm.Framework.CI.Common.Entities.Metric metric_goal + { + get + { + return this.GetRelatedEntity("metric_goal", null); + } + set + { + this.OnPropertyChanging("metric_goal"); + this.SetRelatedEntity("metric_goal", null, value); + this.OnPropertyChanged("metric_goal"); + } + } + + /// + /// N:1 team_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal")] + public Xrm.Framework.CI.Common.Entities.Team team_goal + { + get + { + return this.GetRelatedEntity("team_goal", null); + } + } + + /// + /// N:1 team_goal_goalowner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal_goalowner")] + public Xrm.Framework.CI.Common.Entities.Team team_goal_goalowner + { + get + { + return this.GetRelatedEntity("team_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("team_goal_goalowner"); + this.SetRelatedEntity("team_goal_goalowner", null, value); + this.OnPropertyChanged("team_goal_goalowner"); + } + } + + /// + /// N:1 TransactionCurrency_Goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Goal")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Goal + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Goal", null); + } + } + + /// + /// N:1 user_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_goal + { + get + { + return this.GetRelatedEntity("user_goal", null); + } + } + + /// + /// N:1 user_goal_goalowner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal_goalowner")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_goal_goalowner + { + get + { + return this.GetRelatedEntity("user_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("user_goal_goalowner"); + this.SetRelatedEntity("user_goal_goalowner", null, value); + this.OnPropertyChanged("user_goal_goalowner"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum GoalRollupQueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Query that is used to filter the results of the goal rollup. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("goalrollupquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class GoalRollupQuery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public GoalRollupQuery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "goalrollupquery"; + + public const int EntityTypeCode = 9602; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// String that specifies the condition criteria in FetchXML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fetchxml")] + public string FetchXml + { + get + { + return this.GetAttributeValue("fetchxml"); + } + set + { + this.OnPropertyChanging("FetchXml"); + this.SetAttributeValue("fetchxml", value); + this.OnPropertyChanged("FetchXml"); + } + } + + /// + /// Unique identifier of the rollup query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupqueryid")] + public System.Nullable GoalRollupQueryId + { + get + { + return this.GetAttributeValue>("goalrollupqueryid"); + } + set + { + this.OnPropertyChanging("GoalRollupQueryId"); + this.SetAttributeValue("goalrollupqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("GoalRollupQueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.GoalRollupQueryId = 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the goal rollup query. + /// + [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"); + } + } + + /// + /// 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 record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Enter the record type of the rollup query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryentitytype")] + public string QueryEntityType + { + get + { + return this.GetAttributeValue("queryentitytype"); + } + set + { + this.OnPropertyChanging("QueryEntityType"); + this.SetAttributeValue("queryentitytype", value); + this.OnPropertyChanged("QueryEntityType"); + } + } + + /// + /// Shows whether the goal rollup query 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 ((Xrm.Framework.CI.Common.Entities.GoalRollupQueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.GoalRollupQueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the goal rollup query'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"); + } + } + + /// + /// 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 goal rollup query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N goal_rollupquery_actualdecimal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualdecimal")] + public System.Collections.Generic.IEnumerable goal_rollupquery_actualdecimal + { + get + { + return this.GetRelatedEntities("goal_rollupquery_actualdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualdecimal"); + this.SetRelatedEntities("goal_rollupquery_actualdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_actualdecimal"); + } + } + + /// + /// 1:N goal_rollupquery_actualmoney + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_actualmoney")] + public System.Collections.Generic.IEnumerable goal_rollupquery_actualmoney + { + get + { + return this.GetRelatedEntities("goal_rollupquery_actualmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_actualmoney"); + this.SetRelatedEntities("goal_rollupquery_actualmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_actualmoney"); + } + } + + /// + /// 1:N goal_rollupquery_customdecimal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customdecimal")] + public System.Collections.Generic.IEnumerable goal_rollupquery_customdecimal + { + get + { + return this.GetRelatedEntities("goal_rollupquery_customdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customdecimal"); + this.SetRelatedEntities("goal_rollupquery_customdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_customdecimal"); + } + } + + /// + /// 1:N goal_rollupquery_customint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_customint")] + public System.Collections.Generic.IEnumerable goal_rollupquery_customint + { + get + { + return this.GetRelatedEntities("goal_rollupquery_customint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_customint"); + this.SetRelatedEntities("goal_rollupquery_customint", null, value); + this.OnPropertyChanged("goal_rollupquery_customint"); + } + } + + /// + /// 1:N goal_rollupquery_custommoney + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_custommoney")] + public System.Collections.Generic.IEnumerable goal_rollupquery_custommoney + { + get + { + return this.GetRelatedEntities("goal_rollupquery_custommoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_custommoney"); + this.SetRelatedEntities("goal_rollupquery_custommoney", null, value); + this.OnPropertyChanged("goal_rollupquery_custommoney"); + } + } + + /// + /// 1:N goal_rollupquery_inprogressdecimal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressdecimal")] + public System.Collections.Generic.IEnumerable goal_rollupquery_inprogressdecimal + { + get + { + return this.GetRelatedEntities("goal_rollupquery_inprogressdecimal", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressdecimal"); + this.SetRelatedEntities("goal_rollupquery_inprogressdecimal", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressdecimal"); + } + } + + /// + /// 1:N goal_rollupquery_inprogressint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressint")] + public System.Collections.Generic.IEnumerable goal_rollupquery_inprogressint + { + get + { + return this.GetRelatedEntities("goal_rollupquery_inprogressint", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressint"); + this.SetRelatedEntities("goal_rollupquery_inprogressint", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressint"); + } + } + + /// + /// 1:N goal_rollupquery_inprogressmoney + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_rollupquery_inprogressmoney")] + public System.Collections.Generic.IEnumerable goal_rollupquery_inprogressmoney + { + get + { + return this.GetRelatedEntities("goal_rollupquery_inprogressmoney", null); + } + set + { + this.OnPropertyChanging("goal_rollupquery_inprogressmoney"); + this.SetRelatedEntities("goal_rollupquery_inprogressmoney", null, value); + this.OnPropertyChanged("goal_rollupquery_inprogressmoney"); + } + } + + /// + /// 1:N goalrollupquery_actualint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_actualint")] + public System.Collections.Generic.IEnumerable goalrollupquery_actualint + { + get + { + return this.GetRelatedEntities("goalrollupquery_actualint", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_actualint"); + this.SetRelatedEntities("goalrollupquery_actualint", null, value); + this.OnPropertyChanged("goalrollupquery_actualint"); + } + } + + /// + /// 1:N goalrollupquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_AsyncOperations")] + public System.Collections.Generic.IEnumerable goalrollupquery_AsyncOperations + { + get + { + return this.GetRelatedEntities("goalrollupquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_AsyncOperations"); + this.SetRelatedEntities("goalrollupquery_AsyncOperations", null, value); + this.OnPropertyChanged("goalrollupquery_AsyncOperations"); + } + } + + /// + /// 1:N goalrollupquery_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_ProcessSessions")] + public System.Collections.Generic.IEnumerable goalrollupquery_ProcessSessions + { + get + { + return this.GetRelatedEntities("goalrollupquery_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_ProcessSessions"); + this.SetRelatedEntities("goalrollupquery_ProcessSessions", null, value); + this.OnPropertyChanged("goalrollupquery_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_goalrollupquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goalrollupquery")] + public System.Collections.Generic.IEnumerable userentityinstancedata_goalrollupquery + { + get + { + return this.GetRelatedEntities("userentityinstancedata_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goalrollupquery"); + this.SetRelatedEntities("userentityinstancedata_goalrollupquery", null, value); + this.OnPropertyChanged("userentityinstancedata_goalrollupquery"); + } + } + + /// + /// N:1 business_unit_goalrollupquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_goalrollupquery")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_goalrollupquery + { + get + { + return this.GetRelatedEntity("business_unit_goalrollupquery", null); + } + } + + /// + /// N:1 lk_goalrollupquery_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_createdby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_createdby", null); + } + } + + /// + /// N:1 lk_goalrollupquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_goalrollupquery_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_modifiedby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_modifiedby", null); + } + } + + /// + /// N:1 lk_goalrollupquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_goalrollupquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_goalrollupquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_goalrollupquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goalrollupquery")] + public Xrm.Framework.CI.Common.Entities.Team team_goalrollupquery + { + get + { + return this.GetRelatedEntity("team_goalrollupquery", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Status and ownership information for an import job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("import")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Import : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Import() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "import"; + + public const int EntityTypeCode = 4410; + + 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"); + } + } + + /// + /// Shows the date and time when the import was initiated. + /// + [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"); + } + } + + /// + /// Type the email address that the import completion notification must be sent to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Unique identifier of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + public System.Nullable ImportId + { + get + { + return this.GetAttributeValue>("importid"); + } + set + { + this.OnPropertyChanging("ImportId"); + this.SetAttributeValue("importid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportId = value; + } + } + + /// + /// Information about whether the source of this import job is data import or data migration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isimport")] + [System.ObsoleteAttribute()] + public System.Nullable IsImport + { + get + { + return this.GetAttributeValue>("isimport"); + } + set + { + this.OnPropertyChanging("IsImport"); + this.SetAttributeValue("isimport", value); + this.OnPropertyChanged("IsImport"); + } + } + + /// + /// Select whether to create or update records in Microsoft Dynamics CRM during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ModeCode + { + get + { + return this.GetAttributeValue("modecode"); + } + set + { + this.OnPropertyChanging("ModeCode"); + this.SetAttributeValue("modecode", value); + this.OnPropertyChanged("ModeCode"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the name of the import job, based on the import file and the entity being imported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// Business unit that owns the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select whether to send a notification email message to a selected user after the import is completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendnotification")] + public System.Nullable SendNotification + { + get + { + return this.GetAttributeValue>("sendnotification"); + } + set + { + this.OnPropertyChanging("SendNotification"); + this.SetAttributeValue("sendnotification", value); + this.OnPropertyChanged("SendNotification"); + } + } + + /// + /// Order in which the import was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequence")] + public System.Nullable Sequence + { + get + { + return this.GetAttributeValue>("sequence"); + } + } + + /// + /// Shows the status of the import job. By default, import jobs are active and can't be deactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows the reason code that explains the import job's status to identify the job's stage of the import processes, from transforming the data to completed. + /// + [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"); + } + } + + /// + /// 1:N Import_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_AsyncOperations")] + public System.Collections.Generic.IEnumerable Import_AsyncOperations + { + get + { + return this.GetRelatedEntities("Import_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Import_AsyncOperations"); + this.SetRelatedEntities("Import_AsyncOperations", null, value); + this.OnPropertyChanged("Import_AsyncOperations"); + } + } + + /// + /// 1:N Import_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Import_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Import_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Import_BulkDeleteFailures"); + this.SetRelatedEntities("Import_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Import_BulkDeleteFailures"); + } + } + + /// + /// 1:N Import_ImportFile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_ImportFile")] + public System.Collections.Generic.IEnumerable Import_ImportFile + { + get + { + return this.GetRelatedEntities("Import_ImportFile", null); + } + set + { + this.OnPropertyChanging("Import_ImportFile"); + this.SetRelatedEntities("Import_ImportFile", null, value); + this.OnPropertyChanged("Import_ImportFile"); + } + } + + /// + /// 1:N userentityinstancedata_import + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_import")] + public System.Collections.Generic.IEnumerable userentityinstancedata_import + { + get + { + return this.GetRelatedEntities("userentityinstancedata_import", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_import"); + this.SetRelatedEntities("userentityinstancedata_import", null, value); + this.OnPropertyChanged("userentityinstancedata_import"); + } + } + + /// + /// N:1 BusinessUnit_Imports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_Imports")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_Imports + { + get + { + return this.GetRelatedEntity("BusinessUnit_Imports", null); + } + } + + /// + /// N:1 lk_import_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_import_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_import_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_import_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_import_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_import_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_importbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importbase_createdby", null); + } + } + + /// + /// N:1 lk_importbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importbase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_Imports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Imports")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_Imports + { + get + { + return this.GetRelatedEntity("SystemUser_Imports", null); + } + } + + /// + /// N:1 team_Imports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Imports")] + public Xrm.Framework.CI.Common.Entities.Team team_Imports + { + get + { + return this.GetRelatedEntity("team_Imports", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportEntityMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Mapping for entities in a data map. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importentitymapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportEntityMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportEntityMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importentitymapping"; + + public const int EntityTypeCode = 4428; + + 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 import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import entity mapping 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 importentitymapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Information about whether the entity needs to be processed to find and delete duplicate records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dedupe")] + public Microsoft.Xrm.Sdk.OptionSetValue DeDupe + { + get + { + return this.GetAttributeValue("dedupe"); + } + set + { + this.OnPropertyChanging("DeDupe"); + this.SetAttributeValue("dedupe", value); + this.OnPropertyChanged("DeDupe"); + } + } + + /// + /// Unique identifier of the import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importentitymappingid")] + public System.Nullable ImportEntityMappingId + { + get + { + return this.GetAttributeValue>("importentitymappingid"); + } + set + { + this.OnPropertyChanging("ImportEntityMappingId"); + this.SetAttributeValue("importentitymappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportEntityMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importentitymappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportEntityMappingId = value; + } + } + + /// + /// Unique identifier of the associated data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import entity mapping 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 importentitymapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the import entity mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Name of the source entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Status of the import entity mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportEntityMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportEntityMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the import entity mapping. + /// + [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"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// 1:N userentityinstancedata_importentitymapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importentitymapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importentitymapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importentitymapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importentitymapping"); + this.SetRelatedEntities("userentityinstancedata_importentitymapping", null, value); + this.OnPropertyChanged("userentityinstancedata_importentitymapping"); + } + } + + /// + /// N:1 ImportEntityMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportEntityMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportEntityMapping_ImportMap + { + get + { + return this.GetRelatedEntity("ImportEntityMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ImportEntityMapping_ImportMap"); + this.SetRelatedEntity("ImportEntityMapping_ImportMap", null, value); + this.OnPropertyChanged("ImportEntityMapping_ImportMap"); + } + } + + /// + /// N:1 lk_importentitymapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_createdby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_createdby", null); + } + } + + /// + /// N:1 lk_importentitymapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importentitymapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_modifiedby", null); + } + } + + /// + /// N:1 lk_importentitymapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importentitymapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importentitymapping_modifiedonbehalfby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportFileState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// File name of file used for import. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importfile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportFile : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportFile() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importfile"; + + public const int EntityTypeCode = 4412; + + 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 secondary column headers. The additional headers are used during the process of transforming the import file into import data records. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("additionalheaderrow")] + public string AdditionalHeaderRow + { + get + { + return this.GetAttributeValue("additionalheaderrow"); + } + } + + /// + /// Shows the date and time when the import associated with the import file was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Stores the content of the import file, stored as comma-separated values. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select the single-character data delimiter used in the import file. This is typically a single or double quotation mark. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datadelimitercode")] + public Microsoft.Xrm.Sdk.OptionSetValue DataDelimiterCode + { + get + { + return this.GetAttributeValue("datadelimitercode"); + } + set + { + this.OnPropertyChanging("DataDelimiterCode"); + this.SetAttributeValue("datadelimitercode", value); + this.OnPropertyChanged("DataDelimiterCode"); + } + } + + /// + /// Select whether duplicate-detection rules should be run against the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enableduplicatedetection")] + public System.Nullable EnableDuplicateDetection + { + get + { + return this.GetAttributeValue>("enableduplicatedetection"); + } + set + { + this.OnPropertyChanging("EnableDuplicateDetection"); + this.SetAttributeValue("enableduplicatedetection", value); + this.OnPropertyChanged("EnableDuplicateDetection"); + } + } + + /// + /// Shows the number of records in the import file that cannot be imported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// Select the character that is used to separate each field in the import file. Typically, it is a comma. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fielddelimitercode")] + public Microsoft.Xrm.Sdk.OptionSetValue FieldDelimiterCode + { + get + { + return this.GetAttributeValue("fielddelimitercode"); + } + set + { + this.OnPropertyChanging("FieldDelimiterCode"); + this.SetAttributeValue("fielddelimitercode", value); + this.OnPropertyChanged("FieldDelimiterCode"); + } + } + + /// + /// Shows the type of source file that is uploaded for import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue FileTypeCode + { + get + { + return this.GetAttributeValue("filetypecode"); + } + set + { + this.OnPropertyChanging("FileTypeCode"); + this.SetAttributeValue("filetypecode", value); + this.OnPropertyChanged("FileTypeCode"); + } + } + + /// + /// Shows a list of each column header in the import file separated by a comma. The header is used for parsing the file during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("headerrow")] + public string HeaderRow + { + get + { + return this.GetAttributeValue("headerrow"); + } + } + + /// + /// Unique identifier of the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + public System.Nullable ImportFileId + { + get + { + return this.GetAttributeValue>("importfileid"); + } + set + { + this.OnPropertyChanging("ImportFileId"); + this.SetAttributeValue("importfileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportFileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportFileId = value; + } + } + + /// + /// Choose the import job that the file was uploaded for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + public Microsoft.Xrm.Sdk.EntityReference ImportId + { + get + { + return this.GetAttributeValue("importid"); + } + set + { + this.OnPropertyChanging("ImportId"); + this.SetAttributeValue("importid", value); + this.OnPropertyChanged("ImportId"); + } + } + + /// + /// Choose a data map to match the import file and its column headers with the record types and fields in Microsoft Dynamics CRM. If the column headers in the file match the display names of the target fields in Microsoft Dynamics CRM, we import the data automatically. If not, you can manually define matches during import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Select whether the first row of the import file contains column headings, which are used for data mapping during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfirstrowheader")] + public System.Nullable IsFirstRowHeader + { + get + { + return this.GetAttributeValue>("isfirstrowheader"); + } + set + { + this.OnPropertyChanging("IsFirstRowHeader"); + this.SetAttributeValue("isfirstrowheader", value); + this.OnPropertyChanged("IsFirstRowHeader"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Shows the name of the import file. This name is based on the name of the uploaded file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Enter the user who is assigned to follow up with or manage the import file. This field is updated every time the import file 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"); + } + } + + /// + /// 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 import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Shows the prefix applied to each column after the import file is parsed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablecolumnprefix")] + public string ParsedTableColumnPrefix + { + get + { + return this.GetAttributeValue("parsedtablecolumnprefix"); + } + } + + /// + /// Shows the number of columns included in the parsed import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablecolumnsnumber")] + public System.Nullable ParsedTableColumnsNumber + { + get + { + return this.GetAttributeValue>("parsedtablecolumnsnumber"); + } + } + + /// + /// Shows the name of the table that contains the parsed data from the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablename")] + public string ParsedTableName + { + get + { + return this.GetAttributeValue("parsedtablename"); + } + } + + /// + /// Shows the number of records in this file that had failures during the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partialfailurecount")] + public System.Nullable PartialFailureCount + { + get + { + return this.GetAttributeValue>("partialfailurecount"); + } + } + + /// + /// Tells whether the import file should be ignored or processed during the import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Shows the import file's processing status code. This indicates whether the data in the import file has been parsed, transformed, or imported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processingstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessingStatus + { + get + { + return this.GetAttributeValue("processingstatus"); + } + } + + /// + /// Shows the progress code for the processing of the import file. This field is used when a paused import job is resumed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("progresscounter")] + public System.Nullable ProgressCounter + { + get + { + return this.GetAttributeValue>("progresscounter"); + } + } + + /// + /// Choose the user that the records created during the import job should be assigned to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recordsownerid")] + public Microsoft.Xrm.Sdk.EntityReference RecordsOwnerId + { + get + { + return this.GetAttributeValue("recordsownerid"); + } + set + { + this.OnPropertyChanging("RecordsOwnerId"); + this.SetAttributeValue("recordsownerid", value); + this.OnPropertyChanged("RecordsOwnerId"); + } + } + + /// + /// Shows the columns that are mapped to a related record type (entity) of the primary record type (entity) included in the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedentitycolumns")] + public string RelatedEntityColumns + { + get + { + return this.GetAttributeValue("relatedentitycolumns"); + } + set + { + this.OnPropertyChanging("RelatedEntityColumns"); + this.SetAttributeValue("relatedentitycolumns", value); + this.OnPropertyChanged("RelatedEntityColumns"); + } + } + + /// + /// Shows the size of the import file, in kilobytes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("size")] + public string Size + { + get + { + return this.GetAttributeValue("size"); + } + set + { + this.OnPropertyChanging("Size"); + this.SetAttributeValue("size", value); + this.OnPropertyChanged("Size"); + } + } + + /// + /// Shows the name of the data source file uploaded in the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public string Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// Shows the record type (entity) of the source data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Shows the status of the import file record. By default, all records are active and can't be deactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportFileState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportFileState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows the reason code that explains the import file's status to identify the stage of the import process, from parsing the data to completed. + /// + [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 the number of records in the import file that are imported successfully. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("successcount")] + public System.Nullable SuccessCount + { + get + { + return this.GetAttributeValue>("successcount"); + } + } + + /// + /// Select the target record type (entity) for the records that will be created during the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// 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 number of records in the import file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalcount")] + public System.Nullable TotalCount + { + get + { + return this.GetAttributeValue>("totalcount"); + } + } + + /// + /// Tells whether an automatic system map was applied to the import file, which automatically maps the import data to the target entity in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usesystemmap")] + public System.Nullable UseSystemMap + { + get + { + return this.GetAttributeValue>("usesystemmap"); + } + set + { + this.OnPropertyChanging("UseSystemMap"); + this.SetAttributeValue("usesystemmap", value); + this.OnPropertyChanged("UseSystemMap"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N ImportFile_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_AsyncOperations")] + public System.Collections.Generic.IEnumerable ImportFile_AsyncOperations + { + get + { + return this.GetRelatedEntities("ImportFile_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportFile_AsyncOperations"); + this.SetRelatedEntities("ImportFile_AsyncOperations", null, value); + this.OnPropertyChanged("ImportFile_AsyncOperations"); + } + } + + /// + /// 1:N ImportFile_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ImportFile_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ImportFile_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ImportFile_BulkDeleteFailures"); + this.SetRelatedEntities("ImportFile_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ImportFile_BulkDeleteFailures"); + } + } + + /// + /// 1:N ImportLog_ImportFile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_ImportFile")] + public System.Collections.Generic.IEnumerable ImportLog_ImportFile + { + get + { + return this.GetRelatedEntities("ImportLog_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportLog_ImportFile"); + this.SetRelatedEntities("ImportLog_ImportFile", null, value); + this.OnPropertyChanged("ImportLog_ImportFile"); + } + } + + /// + /// 1:N userentityinstancedata_importfile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importfile")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importfile + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importfile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importfile"); + this.SetRelatedEntities("userentityinstancedata_importfile", null, value); + this.OnPropertyChanged("userentityinstancedata_importfile"); + } + } + + /// + /// N:1 BusinessUnit_ImportFiles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportFiles")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ImportFiles + { + get + { + return this.GetRelatedEntity("BusinessUnit_ImportFiles", null); + } + } + + /// + /// N:1 Import_ImportFile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Import_ImportFile")] + public Xrm.Framework.CI.Common.Entities.Import Import_ImportFile + { + get + { + return this.GetRelatedEntity("Import_ImportFile", null); + } + set + { + this.OnPropertyChanging("Import_ImportFile"); + this.SetRelatedEntity("Import_ImportFile", null, value); + this.OnPropertyChanged("Import_ImportFile"); + } + } + + /// + /// N:1 ImportFile_SystemUser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recordsownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_SystemUser")] + public Xrm.Framework.CI.Common.Entities.SystemUser ImportFile_SystemUser + { + get + { + return this.GetRelatedEntity("ImportFile_SystemUser", null); + } + set + { + this.OnPropertyChanging("ImportFile_SystemUser"); + this.SetRelatedEntity("ImportFile_SystemUser", null, value); + this.OnPropertyChanged("ImportFile_SystemUser"); + } + } + + /// + /// N:1 ImportFile_Team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recordsownerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_Team")] + public Xrm.Framework.CI.Common.Entities.Team ImportFile_Team + { + get + { + return this.GetRelatedEntity("ImportFile_Team", null); + } + set + { + this.OnPropertyChanging("ImportFile_Team"); + this.SetRelatedEntity("ImportFile_Team", null, value); + this.OnPropertyChanged("ImportFile_Team"); + } + } + + /// + /// N:1 ImportMap_ImportFile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_ImportFile")] + public Xrm.Framework.CI.Common.Entities.ImportMap ImportMap_ImportFile + { + get + { + return this.GetRelatedEntity("ImportMap_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportMap_ImportFile"); + this.SetRelatedEntity("ImportMap_ImportFile", null, value); + this.OnPropertyChanged("ImportMap_ImportFile"); + } + } + + /// + /// N:1 lk_importfilebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_createdby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_createdby", null); + } + } + + /// + /// N:1 lk_importfilebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importfilebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_modifiedby", null); + } + } + + /// + /// N:1 lk_importfilebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importfilebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importfilebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 SystemUser_ImportFiles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportFiles")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ImportFiles + { + get + { + return this.GetRelatedEntity("SystemUser_ImportFiles", null); + } + } + + /// + /// N:1 team_ImportFiles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportFiles")] + public Xrm.Framework.CI.Common.Entities.Team team_ImportFiles + { + get + { + return this.GetRelatedEntity("team_ImportFiles", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importjob")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportJob : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportJob() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importjob"; + + public const int EntityTypeCode = 9107; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time when the import job was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Unique identifier of the user who created the importJob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import job record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the import job record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unstructured data associated with the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// Unique identifier of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importjobid")] + public System.Nullable ImportJobId + { + get + { + return this.GetAttributeValue>("importjobid"); + } + set + { + this.OnPropertyChanging("ImportJobId"); + this.SetAttributeValue("importjobid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportJobId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importjobid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportJobId = value; + } + } + + /// + /// Unique identifier of the user who modified the importJob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import job was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the import job record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the importjob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Import Progress Percentage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("progress")] + public System.Nullable Progress + { + get + { + return this.GetAttributeValue>("progress"); + } + set + { + this.OnPropertyChanging("Progress"); + this.SetAttributeValue("progress", value); + this.OnPropertyChanged("Progress"); + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionname")] + public string SolutionName + { + get + { + return this.GetAttributeValue("solutionname"); + } + set + { + this.OnPropertyChanging("SolutionName"); + this.SetAttributeValue("solutionname", value); + this.OnPropertyChanged("SolutionName"); + } + } + + /// + /// Date and time when the import job was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// 1:N userentityinstancedata_importjob + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importjob")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importjob + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importjob", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importjob"); + this.SetRelatedEntities("userentityinstancedata_importjob", null, value); + this.OnPropertyChanged("userentityinstancedata_importjob"); + } + } + + /// + /// N:1 lk_importjobbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_createdby", null); + } + } + + /// + /// N:1 lk_importjobbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importjobbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_modifiedby", null); + } + } + + /// + /// N:1 lk_importjobbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importjobbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_importjob + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_importjob")] + public Xrm.Framework.CI.Common.Entities.Organization organization_importjob + { + get + { + return this.GetRelatedEntity("organization_importjob", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportLogState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// Failure reason and other detailed information for a record that failed to import. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importlog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importlog"; + + public const int EntityTypeCode = 4423; + + 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 related to the error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("additionalinfo")] + public string AdditionalInfo + { + get + { + return this.GetAttributeValue("additionalinfo"); + } + set + { + this.OnPropertyChanging("AdditionalInfo"); + this.SetAttributeValue("additionalinfo", value); + this.OnPropertyChanged("AdditionalInfo"); + } + } + + /// + /// Value in the column. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnvalue")] + public string ColumnValue + { + get + { + return this.GetAttributeValue("columnvalue"); + } + set + { + this.OnPropertyChanging("ColumnValue"); + this.SetAttributeValue("columnvalue", value); + this.OnPropertyChanged("ColumnValue"); + } + } + + /// + /// Unique identifier of the user who created the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import log 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 importlog. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of an error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errordescription")] + public string ErrorDescription + { + get + { + return this.GetAttributeValue("errordescription"); + } + set + { + this.OnPropertyChanging("ErrorDescription"); + this.SetAttributeValue("errordescription", value); + this.OnPropertyChanged("ErrorDescription"); + } + } + + /// + /// Error code of an error. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errornumber")] + public System.Nullable ErrorNumber + { + get + { + return this.GetAttributeValue>("errornumber"); + } + set + { + this.OnPropertyChanging("ErrorNumber"); + this.SetAttributeValue("errornumber", value); + this.OnPropertyChanged("ErrorNumber"); + } + } + + /// + /// Name of the column heading. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("headercolumn")] + public string HeaderColumn + { + get + { + return this.GetAttributeValue("headercolumn"); + } + set + { + this.OnPropertyChanging("HeaderColumn"); + this.SetAttributeValue("headercolumn", value); + this.OnPropertyChanged("HeaderColumn"); + } + } + + /// + /// Unique identifier of the import data for this import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importdataid")] + public Microsoft.Xrm.Sdk.EntityReference ImportDataId + { + get + { + return this.GetAttributeValue("importdataid"); + } + set + { + this.OnPropertyChanging("ImportDataId"); + this.SetAttributeValue("importdataid", value); + this.OnPropertyChanged("ImportDataId"); + } + } + + /// + /// Unique identifier of the import file for this import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + public Microsoft.Xrm.Sdk.EntityReference ImportFileId + { + get + { + return this.GetAttributeValue("importfileid"); + } + set + { + this.OnPropertyChanging("ImportFileId"); + this.SetAttributeValue("importfileid", value); + this.OnPropertyChanged("ImportFileId"); + } + } + + /// + /// Unique identifier of the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importlogid")] + public System.Nullable ImportLogId + { + get + { + return this.GetAttributeValue>("importlogid"); + } + set + { + this.OnPropertyChanging("ImportLogId"); + this.SetAttributeValue("importlogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importlogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportLogId = value; + } + } + + /// + /// Original line number of the data used in this log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linenumber")] + public System.Nullable LineNumber + { + get + { + return this.GetAttributeValue>("linenumber"); + } + set + { + this.OnPropertyChanging("LineNumber"); + this.SetAttributeValue("linenumber", value); + this.OnPropertyChanged("LineNumber"); + } + } + + /// + /// Phase for which the log is recorded. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("logphasecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LogPhaseCode + { + get + { + return this.GetAttributeValue("logphasecode"); + } + set + { + this.OnPropertyChanging("LogPhaseCode"); + this.SetAttributeValue("logphasecode", value); + this.OnPropertyChanged("LogPhaseCode"); + } + } + + /// + /// Unique identifier of the user who last modified the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import log 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 importlog. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the import log. + /// + [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"); + } + } + + /// + /// Business unit that owns the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Sequence number of the error in this log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequencenumber")] + public System.Nullable SequenceNumber + { + get + { + return this.GetAttributeValue>("sequencenumber"); + } + } + + /// + /// Status of the import log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportLogState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportLogState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the import log. + /// + [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"); + } + } + + /// + /// 1:N ImportLog_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_AsyncOperations")] + public System.Collections.Generic.IEnumerable ImportLog_AsyncOperations + { + get + { + return this.GetRelatedEntities("ImportLog_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportLog_AsyncOperations"); + this.SetRelatedEntities("ImportLog_AsyncOperations", null, value); + this.OnPropertyChanged("ImportLog_AsyncOperations"); + } + } + + /// + /// 1:N ImportLog_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ImportLog_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ImportLog_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ImportLog_BulkDeleteFailures"); + this.SetRelatedEntities("ImportLog_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ImportLog_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_importlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importlog")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importlog + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importlog"); + this.SetRelatedEntities("userentityinstancedata_importlog", null, value); + this.OnPropertyChanged("userentityinstancedata_importlog"); + } + } + + /// + /// N:1 BusinessUnit_ImportLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportLogs")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ImportLogs + { + get + { + return this.GetRelatedEntity("BusinessUnit_ImportLogs", null); + } + } + + /// + /// N:1 ImportLog_ImportFile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importfileid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportLog_ImportFile")] + public Xrm.Framework.CI.Common.Entities.ImportFile ImportLog_ImportFile + { + get + { + return this.GetRelatedEntity("ImportLog_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportLog_ImportFile"); + this.SetRelatedEntity("ImportLog_ImportFile", null, value); + this.OnPropertyChanged("ImportLog_ImportFile"); + } + } + + /// + /// N:1 lk_importlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlog_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importlog_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importlog_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_importlogbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlogbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importlogbase_createdby", null); + } + } + + /// + /// N:1 lk_importlogbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importlogbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importlogbase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_ImportLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportLogs")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ImportLogs + { + get + { + return this.GetRelatedEntity("SystemUser_ImportLogs", null); + } + } + + /// + /// N:1 team_ImportLogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportLogs")] + public Xrm.Framework.CI.Common.Entities.Team team_ImportLogs + { + get + { + return this.GetRelatedEntity("team_ImportLogs", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ImportMapState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Data map used in import. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importmap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ImportMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ImportMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importmap"; + + public const int EntityTypeCode = 4411; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the data map, such as the intended use or data source. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Choose whether a data file can contain data for one or more record types. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitiesperfile")] + public Microsoft.Xrm.Sdk.OptionSetValue EntitiesPerFile + { + get + { + return this.GetAttributeValue("entitiesperfile"); + } + set + { + this.OnPropertyChanging("EntitiesPerFile"); + this.SetAttributeValue("entitiesperfile", value); + this.OnPropertyChanged("EntitiesPerFile"); + } + } + + /// + /// Unique identifier of the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public System.Nullable ImportMapId + { + get + { + return this.GetAttributeValue>("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportMapId = value; + } + } + + /// + /// Select the type of data map to distinguish out-of-the-box data maps from custom maps. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmaptype")] + public Microsoft.Xrm.Sdk.OptionSetValue ImportMapType + { + get + { + return this.GetAttributeValue("importmaptype"); + } + set + { + this.OnPropertyChanging("ImportMapType"); + this.SetAttributeValue("importmaptype", value); + this.OnPropertyChanged("ImportMapType"); + } + } + + /// + /// Information about whether the data map is valid for use with data import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvalidforimport")] + public System.Nullable IsValidForImport + { + get + { + return this.GetAttributeValue>("isvalidforimport"); + } + } + + /// + /// Information about whether this data map was created by the Data Migration Manager. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iswizardcreated")] + public System.Nullable IsWizardCreated + { + get + { + return this.GetAttributeValue>("iswizardcreated"); + } + set + { + this.OnPropertyChanging("IsWizardCreated"); + this.SetAttributeValue("iswizardcreated", value); + this.OnPropertyChanged("IsWizardCreated"); + } + } + + /// + /// Customizations XML + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mapcustomizations")] + public string MapCustomizations + { + get + { + return this.GetAttributeValue("mapcustomizations"); + } + set + { + this.OnPropertyChanging("MapCustomizations"); + this.SetAttributeValue("mapcustomizations", value); + this.OnPropertyChanged("MapCustomizations"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// Business unit that owns the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the name of the migration source that this data map is used for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public string Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// Select the migration source type that this data map is used for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetype")] + public Microsoft.Xrm.Sdk.OptionSetValue SourceType + { + get + { + return this.GetAttributeValue("sourcetype"); + } + set + { + this.OnPropertyChanging("SourceType"); + this.SetAttributeValue("sourcetype", value); + this.OnPropertyChanged("SourceType"); + } + } + + /// + /// Source user value for source Microsoft Dynamics CRM user link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceuseridentifierforsourcecrmuserlink")] + public string SourceUserIdentifierForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("sourceuseridentifierforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("SourceUserIdentifierForSourceCRMUserLink"); + this.SetAttributeValue("sourceuseridentifierforsourcecrmuserlink", value); + this.OnPropertyChanged("SourceUserIdentifierForSourceCRMUserLink"); + } + } + + /// + /// Column in the source file that uniquely identifies a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceuseridentifierforsourcedatasourceuserlink")] + public string SourceUserIdentifierForSourceDataSourceUserLink + { + get + { + return this.GetAttributeValue("sourceuseridentifierforsourcedatasourceuserlink"); + } + set + { + this.OnPropertyChanging("SourceUserIdentifierForSourceDataSourceUserLink"); + this.SetAttributeValue("sourceuseridentifierforsourcedatasourceuserlink", value); + this.OnPropertyChanged("SourceUserIdentifierForSourceDataSourceUserLink"); + } + } + + /// + /// Shows whether the data map is active or inactive. Inactive data maps are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ImportMapState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ImportMapState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the data map'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 name of the Microsoft Dynamics CRM record type that this data map is defined for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentity")] + public Microsoft.Xrm.Sdk.OptionSetValue TargetEntity + { + get + { + return this.GetAttributeValue("targetentity"); + } + } + + /// + /// Microsoft Dynamics CRM user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetuseridentifierforsourcecrmuserlink")] + public string TargetUserIdentifierForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("targetuseridentifierforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("TargetUserIdentifierForSourceCRMUserLink"); + this.SetAttributeValue("targetuseridentifierforsourcecrmuserlink", value); + this.OnPropertyChanged("TargetUserIdentifierForSourceCRMUserLink"); + } + } + + /// + /// 1:N ColumnMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ColumnMapping_ImportMap")] + public System.Collections.Generic.IEnumerable ColumnMapping_ImportMap + { + get + { + return this.GetRelatedEntities("ColumnMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ColumnMapping_ImportMap"); + this.SetRelatedEntities("ColumnMapping_ImportMap", null, value); + this.OnPropertyChanged("ColumnMapping_ImportMap"); + } + } + + /// + /// 1:N ImportEntityMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportEntityMapping_ImportMap")] + public System.Collections.Generic.IEnumerable ImportEntityMapping_ImportMap + { + get + { + return this.GetRelatedEntities("ImportEntityMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("ImportEntityMapping_ImportMap"); + this.SetRelatedEntities("ImportEntityMapping_ImportMap", null, value); + this.OnPropertyChanged("ImportEntityMapping_ImportMap"); + } + } + + /// + /// 1:N ImportMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable ImportMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("ImportMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ImportMap_AsyncOperations"); + this.SetRelatedEntities("ImportMap_AsyncOperations", null, value); + this.OnPropertyChanged("ImportMap_AsyncOperations"); + } + } + + /// + /// 1:N ImportMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ImportMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ImportMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ImportMap_BulkDeleteFailures"); + this.SetRelatedEntities("ImportMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ImportMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N ImportMap_ImportFile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportMap_ImportFile")] + public System.Collections.Generic.IEnumerable ImportMap_ImportFile + { + get + { + return this.GetRelatedEntities("ImportMap_ImportFile", null); + } + set + { + this.OnPropertyChanging("ImportMap_ImportFile"); + this.SetRelatedEntities("ImportMap_ImportFile", null, value); + this.OnPropertyChanged("ImportMap_ImportFile"); + } + } + + /// + /// 1:N OwnerMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_ImportMap")] + public System.Collections.Generic.IEnumerable OwnerMapping_ImportMap + { + get + { + return this.GetRelatedEntities("OwnerMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_ImportMap"); + this.SetRelatedEntities("OwnerMapping_ImportMap", null, value); + this.OnPropertyChanged("OwnerMapping_ImportMap"); + } + } + + /// + /// 1:N TransformationMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationMapping_ImportMap")] + public System.Collections.Generic.IEnumerable TransformationMapping_ImportMap + { + get + { + return this.GetRelatedEntities("TransformationMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("TransformationMapping_ImportMap"); + this.SetRelatedEntities("TransformationMapping_ImportMap", null, value); + this.OnPropertyChanged("TransformationMapping_ImportMap"); + } + } + + /// + /// 1:N userentityinstancedata_importmap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importmap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_importmap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_importmap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importmap"); + this.SetRelatedEntities("userentityinstancedata_importmap", null, value); + this.OnPropertyChanged("userentityinstancedata_importmap"); + } + } + + /// + /// N:1 BusinessUnit_ImportMaps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ImportMaps")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ImportMaps + { + get + { + return this.GetRelatedEntity("BusinessUnit_ImportMaps", null); + } + } + + /// + /// N:1 lk_importmap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmap_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importmap_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importmap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importmap_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_importmapbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmapbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importmapbase_createdby", null); + } + } + + /// + /// N:1 lk_importmapbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_importmapbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importmapbase_modifiedby", null); + } + } + + /// + /// N:1 SystemUser_ImportMaps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportMaps")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ImportMaps + { + get + { + return this.GetRelatedEntity("SystemUser_ImportMaps", null); + } + } + + /// + /// N:1 team_ImportMaps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportMaps")] + public Xrm.Framework.CI.Common.Entities.Team team_ImportMaps + { + get + { + return this.GetRelatedEntity("team_ImportMaps", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum IncidentState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Resolved = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Service request case associated with a contract. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("incident")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Incident : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Incident() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "incident"; + + public const int EntityTypeCode = 112; + + 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 case is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitiescomplete")] + public System.Nullable ActivitiesComplete + { + get + { + return this.GetAttributeValue>("activitiescomplete"); + } + set + { + this.OnPropertyChanging("ActivitiesComplete"); + this.SetAttributeValue("activitiescomplete", value); + this.OnPropertyChanged("ActivitiesComplete"); + } + } + + /// + /// Type the number of service units that were actually required to resolve the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualserviceunits")] + public System.Nullable ActualServiceUnits + { + get + { + return this.GetAttributeValue>("actualserviceunits"); + } + set + { + this.OnPropertyChanging("ActualServiceUnits"); + this.SetAttributeValue("actualserviceunits", value); + this.OnPropertyChanged("ActualServiceUnits"); + } + } + + /// + /// Type the number of service units that were billed to the customer for the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billedserviceunits")] + public System.Nullable BilledServiceUnits + { + get + { + return this.GetAttributeValue>("billedserviceunits"); + } + set + { + this.OnPropertyChanging("BilledServiceUnits"); + this.SetAttributeValue("billedserviceunits", value); + this.OnPropertyChanged("BilledServiceUnits"); + } + } + + /// + /// Select how contact about the case was originated, such as email, phone, or web, for use in reporting and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caseorigincode")] + public Microsoft.Xrm.Sdk.OptionSetValue CaseOriginCode + { + get + { + return this.GetAttributeValue("caseorigincode"); + } + set + { + this.OnPropertyChanging("CaseOriginCode"); + this.SetAttributeValue("caseorigincode", value); + this.OnPropertyChanged("CaseOriginCode"); + } + } + + /// + /// Select the type of case to identify the incident for use in case routing and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("casetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CaseTypeCode + { + get + { + return this.GetAttributeValue("casetypecode"); + } + set + { + this.OnPropertyChanging("CaseTypeCode"); + this.SetAttributeValue("casetypecode", value); + this.OnPropertyChanged("CaseTypeCode"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("checkemail")] + public System.Nullable CheckEmail + { + get + { + return this.GetAttributeValue>("checkemail"); + } + set + { + this.OnPropertyChanging("CheckEmail"); + this.SetAttributeValue("checkemail", value); + this.OnPropertyChanged("CheckEmail"); + } + } + + /// + /// Unique identifier of the contact associated with the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Choose the contract line that the case should be logged under to make sure the customer is charged correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + public Microsoft.Xrm.Sdk.EntityReference ContractDetailId + { + get + { + return this.GetAttributeValue("contractdetailid"); + } + set + { + this.OnPropertyChanging("ContractDetailId"); + this.SetAttributeValue("contractdetailid", value); + this.OnPropertyChanged("ContractDetailId"); + } + } + + /// + /// Choose the service contract that the case should be logged under to make sure the customer is eligible for support services. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public Microsoft.Xrm.Sdk.EntityReference ContractId + { + get + { + return this.GetAttributeValue("contractid"); + } + set + { + this.OnPropertyChanging("ContractId"); + this.SetAttributeValue("contractid", value); + this.OnPropertyChanged("ContractId"); + } + } + + /// + /// Select the service level for the case to make sure the case is handled correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractservicelevelcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ContractServiceLevelCode + { + get + { + return this.GetAttributeValue("contractservicelevelcode"); + } + set + { + this.OnPropertyChanging("ContractServiceLevelCode"); + this.SetAttributeValue("contractservicelevelcode", value); + this.OnPropertyChanged("ContractServiceLevelCode"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the customer's level of satisfaction with the handling and resolution of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customersatisfactioncode")] + public Microsoft.Xrm.Sdk.OptionSetValue CustomerSatisfactionCode + { + get + { + return this.GetAttributeValue("customersatisfactioncode"); + } + set + { + this.OnPropertyChanging("CustomerSatisfactionCode"); + this.SetAttributeValue("customersatisfactioncode", value); + this.OnPropertyChanged("CustomerSatisfactionCode"); + } + } + + /// + /// Type additional information to describe the case to assist the service team in reaching a resolution. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select an existing case for the customer that has been populated. For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcase")] + public Microsoft.Xrm.Sdk.EntityReference ExistingCase + { + get + { + return this.GetAttributeValue("existingcase"); + } + set + { + this.OnPropertyChanging("ExistingCase"); + this.SetAttributeValue("existingcase", value); + this.OnPropertyChanged("ExistingCase"); + } + } + + /// + /// Enter the date by which a customer service representative has to follow up with the customer on this case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("followupby")] + public System.Nullable FollowupBy + { + get + { + return this.GetAttributeValue>("followupby"); + } + set + { + this.OnPropertyChanging("FollowupBy"); + this.SetAttributeValue("followupby", value); + this.OnPropertyChanged("FollowupBy"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("followuptaskcreated")] + public System.Nullable FollowUpTaskCreated + { + get + { + return this.GetAttributeValue>("followuptaskcreated"); + } + set + { + this.OnPropertyChanging("FollowUpTaskCreated"); + this.SetAttributeValue("followuptaskcreated", value); + this.OnPropertyChanged("FollowUpTaskCreated"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + public System.Nullable IncidentId + { + get + { + return this.GetAttributeValue>("incidentid"); + } + set + { + this.OnPropertyChanging("IncidentId"); + this.SetAttributeValue("incidentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("IncidentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.IncidentId = value; + } + } + + /// + /// Select the current stage of the service process for the case to assist service team members when they review or transfer a case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentstagecode")] + public Microsoft.Xrm.Sdk.OptionSetValue IncidentStageCode + { + get + { + return this.GetAttributeValue("incidentstagecode"); + } + set + { + this.OnPropertyChanging("IncidentStageCode"); + this.SetAttributeValue("incidentstagecode", value); + this.OnPropertyChanged("IncidentStageCode"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdecrementing")] + public System.Nullable IsDecrementing + { + get + { + return this.GetAttributeValue>("isdecrementing"); + } + set + { + this.OnPropertyChanging("IsDecrementing"); + this.SetAttributeValue("isdecrementing", value); + this.OnPropertyChanged("IsDecrementing"); + } + } + + /// + /// Choose the article that contains additional information or a resolution for the case, for reference during research or follow up with the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public Microsoft.Xrm.Sdk.EntityReference KbArticleId + { + get + { + return this.GetAttributeValue("kbarticleid"); + } + set + { + this.OnPropertyChanging("KbArticleId"); + this.SetAttributeValue("kbarticleid", value); + this.OnPropertyChanged("KbArticleId"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the product associated with the case to identify warranty, service, or other product issues and be able to report the number of incidents for each product. + /// + [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"); + } + } + + /// + /// Type the serial number of the product that is associated with this case, so that the number of cases per product can be reported. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productserialnumber")] + public string ProductSerialNumber + { + get + { + return this.GetAttributeValue("productserialnumber"); + } + set + { + this.OnPropertyChanging("ProductSerialNumber"); + this.SetAttributeValue("productserialnumber", value); + this.OnPropertyChanged("ProductSerialNumber"); + } + } + + /// + /// Choose the primary customer contact who submitted or is tasked with helping resolve the case. This lets you select a contact to access phone, email, and other contact information for quick follow up on the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("responsiblecontactid")] + public Microsoft.Xrm.Sdk.EntityReference ResponsibleContactId + { + get + { + return this.GetAttributeValue("responsiblecontactid"); + } + set + { + this.OnPropertyChanging("ResponsibleContactId"); + this.SetAttributeValue("responsiblecontactid", value); + this.OnPropertyChanged("ResponsibleContactId"); + } + } + + /// + /// Select the stage, in the case resolution process, that the case is in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicestage")] + public Microsoft.Xrm.Sdk.OptionSetValue ServiceStage + { + get + { + return this.GetAttributeValue("servicestage"); + } + set + { + this.OnPropertyChanging("ServiceStage"); + this.SetAttributeValue("servicestage", value); + this.OnPropertyChanged("ServiceStage"); + } + } + + /// + /// Select the severity of this case to indicate the incident's impact on the customer's business. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("severitycode")] + public Microsoft.Xrm.Sdk.OptionSetValue SeverityCode + { + get + { + return this.GetAttributeValue("severitycode"); + } + set + { + this.OnPropertyChanging("SeverityCode"); + this.SetAttributeValue("severitycode", value); + this.OnPropertyChanged("SeverityCode"); + } + } + + /// + /// 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 case is active, resolved, or canceled. Resolved and canceled cases 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 ((Xrm.Framework.CI.Common.Entities.IncidentState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.IncidentState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the case'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"); + } + } + + /// + /// Choose the subject for the case, such as catalog request or product complaint, so customer service managers can identify frequent requests or problem areas. Administrators can configure subjects under Business Management in the Settings area. + /// + [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"); + } + } + + /// + /// Shows the case number for customer reference and searching capabilities. This cannot be modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ticketnumber")] + public string TicketNumber + { + get + { + return this.GetAttributeValue("ticketnumber"); + } + set + { + this.OnPropertyChanging("TicketNumber"); + this.SetAttributeValue("ticketnumber", value); + this.OnPropertyChanged("TicketNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type a subject or descriptive name, such as the request, issue, or company name, to identify the case in Microsoft Dynamics CRM views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N incident_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_activity_parties")] + public System.Collections.Generic.IEnumerable incident_activity_parties + { + get + { + return this.GetRelatedEntities("incident_activity_parties", null); + } + set + { + this.OnPropertyChanging("incident_activity_parties"); + this.SetRelatedEntities("incident_activity_parties", null, value); + this.OnPropertyChanged("incident_activity_parties"); + } + } + + /// + /// 1:N Incident_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ActivityPointers")] + public System.Collections.Generic.IEnumerable Incident_ActivityPointers + { + get + { + return this.GetRelatedEntities("Incident_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Incident_ActivityPointers"); + this.SetRelatedEntities("Incident_ActivityPointers", null, value); + this.OnPropertyChanged("Incident_ActivityPointers"); + } + } + + /// + /// 1:N Incident_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Annotation")] + public System.Collections.Generic.IEnumerable Incident_Annotation + { + get + { + return this.GetRelatedEntities("Incident_Annotation", null); + } + set + { + this.OnPropertyChanging("Incident_Annotation"); + this.SetRelatedEntities("Incident_Annotation", null, value); + this.OnPropertyChanged("Incident_Annotation"); + } + } + + /// + /// 1:N Incident_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Appointments")] + public System.Collections.Generic.IEnumerable Incident_Appointments + { + get + { + return this.GetRelatedEntities("Incident_Appointments", null); + } + set + { + this.OnPropertyChanging("Incident_Appointments"); + this.SetRelatedEntities("Incident_Appointments", null, value); + this.OnPropertyChanged("Incident_Appointments"); + } + } + + /// + /// 1:N Incident_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_AsyncOperations")] + public System.Collections.Generic.IEnumerable Incident_AsyncOperations + { + get + { + return this.GetRelatedEntities("Incident_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Incident_AsyncOperations"); + this.SetRelatedEntities("Incident_AsyncOperations", null, value); + this.OnPropertyChanged("Incident_AsyncOperations"); + } + } + + /// + /// 1:N Incident_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Incident_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Incident_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Incident_BulkDeleteFailures"); + this.SetRelatedEntities("Incident_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Incident_BulkDeleteFailures"); + } + } + + /// + /// 1:N incident_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections1")] + public System.Collections.Generic.IEnumerable incident_connections1 + { + get + { + return this.GetRelatedEntities("incident_connections1", null); + } + set + { + this.OnPropertyChanging("incident_connections1"); + this.SetRelatedEntities("incident_connections1", null, value); + this.OnPropertyChanged("incident_connections1"); + } + } + + /// + /// 1:N incident_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_connections2")] + public System.Collections.Generic.IEnumerable incident_connections2 + { + get + { + return this.GetRelatedEntities("incident_connections2", null); + } + set + { + this.OnPropertyChanging("incident_connections2"); + this.SetRelatedEntities("incident_connections2", null, value); + this.OnPropertyChanged("incident_connections2"); + } + } + + /// + /// 1:N Incident_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Incident_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Incident_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Incident_DuplicateBaseRecord"); + this.SetRelatedEntities("Incident_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Incident_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Incident_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Incident_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Incident_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Incident_DuplicateMatchingRecord"); + this.SetRelatedEntities("Incident_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Incident_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Incident_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Emails")] + public System.Collections.Generic.IEnumerable Incident_Emails + { + get + { + return this.GetRelatedEntities("Incident_Emails", null); + } + set + { + this.OnPropertyChanging("Incident_Emails"); + this.SetRelatedEntities("Incident_Emails", null, value); + this.OnPropertyChanged("Incident_Emails"); + } + } + + /// + /// 1:N incident_existingcase + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedincident_existingcase + { + get + { + return this.GetRelatedEntities("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedincident_existingcase"); + this.SetRelatedEntities("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedincident_existingcase"); + } + } + + /// + /// 1:N Incident_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Faxes")] + public System.Collections.Generic.IEnumerable Incident_Faxes + { + get + { + return this.GetRelatedEntities("Incident_Faxes", null); + } + set + { + this.OnPropertyChanging("Incident_Faxes"); + this.SetRelatedEntities("Incident_Faxes", null, value); + this.OnPropertyChanged("Incident_Faxes"); + } + } + + /// + /// 1:N Incident_IncidentResolutions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_IncidentResolutions")] + public System.Collections.Generic.IEnumerable Incident_IncidentResolutions + { + get + { + return this.GetRelatedEntities("Incident_IncidentResolutions", null); + } + set + { + this.OnPropertyChanging("Incident_IncidentResolutions"); + this.SetRelatedEntities("Incident_IncidentResolutions", null, value); + this.OnPropertyChanged("Incident_IncidentResolutions"); + } + } + + /// + /// 1:N Incident_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Letters")] + public System.Collections.Generic.IEnumerable Incident_Letters + { + get + { + return this.GetRelatedEntities("Incident_Letters", null); + } + set + { + this.OnPropertyChanging("Incident_Letters"); + this.SetRelatedEntities("Incident_Letters", null, value); + this.OnPropertyChanged("Incident_Letters"); + } + } + + /// + /// 1:N Incident_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Phonecalls")] + public System.Collections.Generic.IEnumerable Incident_Phonecalls + { + get + { + return this.GetRelatedEntities("Incident_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Incident_Phonecalls"); + this.SetRelatedEntities("Incident_Phonecalls", null, value); + this.OnPropertyChanged("Incident_Phonecalls"); + } + } + + /// + /// 1:N incident_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_PostFollows")] + public System.Collections.Generic.IEnumerable incident_PostFollows + { + get + { + return this.GetRelatedEntities("incident_PostFollows", null); + } + set + { + this.OnPropertyChanging("incident_PostFollows"); + this.SetRelatedEntities("incident_PostFollows", null, value); + this.OnPropertyChanged("incident_PostFollows"); + } + } + + /// + /// 1:N incident_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable incident_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("incident_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("incident_principalobjectattributeaccess"); + this.SetRelatedEntities("incident_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("incident_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Incident_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ProcessSessions")] + public System.Collections.Generic.IEnumerable Incident_ProcessSessions + { + get + { + return this.GetRelatedEntities("Incident_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Incident_ProcessSessions"); + this.SetRelatedEntities("Incident_ProcessSessions", null, value); + this.OnPropertyChanged("Incident_ProcessSessions"); + } + } + + /// + /// 1:N Incident_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_QueueItem")] + public System.Collections.Generic.IEnumerable Incident_QueueItem + { + get + { + return this.GetRelatedEntities("Incident_QueueItem", null); + } + set + { + this.OnPropertyChanging("Incident_QueueItem"); + this.SetRelatedEntities("Incident_QueueItem", null, value); + this.OnPropertyChanged("Incident_QueueItem"); + } + } + + /// + /// 1:N Incident_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Incident_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Incident_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Incident_RecurringAppointmentMasters"); + this.SetRelatedEntities("Incident_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Incident_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Incident_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Incident_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Incident_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Incident_ServiceAppointments"); + this.SetRelatedEntities("Incident_ServiceAppointments", null, value); + this.OnPropertyChanged("Incident_ServiceAppointments"); + } + } + + /// + /// 1:N Incident_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Tasks")] + public System.Collections.Generic.IEnumerable Incident_Tasks + { + get + { + return this.GetRelatedEntities("Incident_Tasks", null); + } + set + { + this.OnPropertyChanging("Incident_Tasks"); + this.SetRelatedEntities("Incident_Tasks", null, value); + this.OnPropertyChanged("Incident_Tasks"); + } + } + + /// + /// 1:N OriginatingCase_Lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OriginatingCase_Lead")] + public System.Collections.Generic.IEnumerable OriginatingCase_Lead + { + get + { + return this.GetRelatedEntities("OriginatingCase_Lead", null); + } + set + { + this.OnPropertyChanging("OriginatingCase_Lead"); + this.SetRelatedEntities("OriginatingCase_Lead", null, value); + this.OnPropertyChanged("OriginatingCase_Lead"); + } + } + + /// + /// 1:N userentityinstancedata_incident + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incident")] + public System.Collections.Generic.IEnumerable userentityinstancedata_incident + { + get + { + return this.GetRelatedEntities("userentityinstancedata_incident", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incident"); + this.SetRelatedEntities("userentityinstancedata_incident", null, value); + this.OnPropertyChanged("userentityinstancedata_incident"); + } + } + + /// + /// N:1 business_unit_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incidents")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_incidents + { + get + { + return this.GetRelatedEntity("business_unit_incidents", null); + } + } + + /// + /// N:1 contact_as_responsible_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("responsiblecontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_as_responsible_contact")] + public Xrm.Framework.CI.Common.Entities.Contact contact_as_responsible_contact + { + get + { + return this.GetRelatedEntity("contact_as_responsible_contact", null); + } + set + { + this.OnPropertyChanging("contact_as_responsible_contact"); + this.SetRelatedEntity("contact_as_responsible_contact", null, value); + this.OnPropertyChanged("contact_as_responsible_contact"); + } + } + + /// + /// N:1 contract_cases + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_cases")] + public Xrm.Framework.CI.Common.Entities.Contract contract_cases + { + get + { + return this.GetRelatedEntity("contract_cases", null); + } + set + { + this.OnPropertyChanging("contract_cases"); + this.SetRelatedEntity("contract_cases", null, value); + this.OnPropertyChanged("contract_cases"); + } + } + + /// + /// N:1 contract_detail_cases + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractdetailid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_cases")] + public Xrm.Framework.CI.Common.Entities.ContractDetail contract_detail_cases + { + get + { + return this.GetRelatedEntity("contract_detail_cases", null); + } + set + { + this.OnPropertyChanging("contract_detail_cases"); + this.SetRelatedEntity("contract_detail_cases", null, value); + this.OnPropertyChanged("contract_detail_cases"); + } + } + + /// + /// N:1 incident_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account incident_customer_accounts + { + get + { + return this.GetRelatedEntity("incident_customer_accounts", null); + } + set + { + this.OnPropertyChanging("incident_customer_accounts"); + this.SetRelatedEntity("incident_customer_accounts", null, value); + this.OnPropertyChanged("incident_customer_accounts"); + } + } + + /// + /// N:1 incident_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact incident_customer_contacts + { + get + { + return this.GetRelatedEntity("incident_customer_contacts", null); + } + set + { + this.OnPropertyChanging("incident_customer_contacts"); + this.SetRelatedEntity("incident_customer_contacts", null, value); + this.OnPropertyChanged("incident_customer_contacts"); + } + } + + /// + /// N:1 incident_existingcase + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcase")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Incident Referencingincident_existingcase + { + get + { + return this.GetRelatedEntity("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingincident_existingcase"); + this.SetRelatedEntity("incident_existingcase", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingincident_existingcase"); + } + } + + /// + /// N:1 kbarticle_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_incidents")] + public Xrm.Framework.CI.Common.Entities.KbArticle kbarticle_incidents + { + get + { + return this.GetRelatedEntity("kbarticle_incidents", null); + } + set + { + this.OnPropertyChanging("kbarticle_incidents"); + this.SetRelatedEntity("kbarticle_incidents", null, value); + this.OnPropertyChanged("kbarticle_incidents"); + } + } + + /// + /// N:1 lk_incidentbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_createdby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_createdby", null); + } + } + + /// + /// N:1 lk_incidentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_incidentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_modifiedby", null); + } + } + + /// + /// N:1 lk_incidentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 processstage_incident + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_incident")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_incident + { + get + { + return this.GetRelatedEntity("processstage_incident", null); + } + set + { + this.OnPropertyChanging("processstage_incident"); + this.SetRelatedEntity("processstage_incident", null, value); + this.OnPropertyChanged("processstage_incident"); + } + } + + /// + /// N:1 product_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_incidents")] + public Xrm.Framework.CI.Common.Entities.Product product_incidents + { + get + { + return this.GetRelatedEntity("product_incidents", null); + } + set + { + this.OnPropertyChanging("product_incidents"); + this.SetRelatedEntity("product_incidents", null, value); + this.OnPropertyChanged("product_incidents"); + } + } + + /// + /// N:1 subject_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_incidents")] + public Xrm.Framework.CI.Common.Entities.Subject subject_incidents + { + get + { + return this.GetRelatedEntity("subject_incidents", null); + } + set + { + this.OnPropertyChanging("subject_incidents"); + this.SetRelatedEntity("subject_incidents", null, value); + this.OnPropertyChanged("subject_incidents"); + } + } + + /// + /// N:1 system_user_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_incidents")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_incidents + { + get + { + return this.GetRelatedEntity("system_user_incidents", null); + } + } + + /// + /// N:1 team_incidents + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidents")] + public Xrm.Framework.CI.Common.Entities.Team team_incidents + { + get + { + return this.GetRelatedEntity("team_incidents", null); + } + } + + /// + /// N:1 TransactionCurrency_Incident + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Incident")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Incident + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Incident", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Incident"); + this.SetRelatedEntity("TransactionCurrency_Incident", null, value); + this.OnPropertyChanged("TransactionCurrency_Incident"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum IncidentResolutionState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Special type of activity that includes description of the resolution, billing status, and the duration of the case. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("incidentresolution")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class IncidentResolution : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public IncidentResolution() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "incidentresolution"; + + public const int EntityTypeCode = 4206; + + 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 case resolution 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 case resolution 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 case resolution 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 case resolution 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"); + } + } + + /// + /// Category for the case resolution 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"); + } + } + + /// + /// Unique identifier of the user who created the case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the case resolution 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 incidentresolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Type additional information that describes the case resolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + public Microsoft.Xrm.Sdk.EntityReference IncidentId + { + get + { + return this.GetAttributeValue("incidentid"); + } + set + { + this.OnPropertyChanging("IncidentId"); + this.SetAttributeValue("incidentid", value); + this.OnPropertyChanged("IncidentId"); + } + } + + /// + /// Information about whether the case resolution 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"); + } + } + + /// + /// 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 case resolution 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"); + } + } + + /// + /// Unique identifier of the user who last modified the case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the case resolution 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 incidentresolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// Unique identifier of the user or team who owns the case resolution 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 case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the case resolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the case resolution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Scheduled duration of the case resolution activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the case resolution 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 case resolution 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 service with which the case resolution 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"); + } + } + + /// + /// Shows whether the case resolution is open, completed, or canceled. By default, all case resolutions are completed and the status value can't be changed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.IncidentResolutionState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.IncidentResolutionState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the case resolution 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"); + } + } + + /// + /// Subcategory of the case resolution 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 case resolution 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"); + } + } + + /// + /// Time spent on the case resolution activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timespent")] + public System.Nullable TimeSpent + { + get + { + return this.GetAttributeValue>("timespent"); + } + set + { + this.OnPropertyChanging("TimeSpent"); + this.SetAttributeValue("timespent", value); + this.OnPropertyChanged("TimeSpent"); + } + } + + /// + /// 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 of the case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N incidentresolution_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incidentresolution_activity_parties")] + public System.Collections.Generic.IEnumerable incidentresolution_activity_parties + { + get + { + return this.GetRelatedEntities("incidentresolution_activity_parties", null); + } + set + { + this.OnPropertyChanging("incidentresolution_activity_parties"); + this.SetRelatedEntities("incidentresolution_activity_parties", null, value); + this.OnPropertyChanged("incidentresolution_activity_parties"); + } + } + + /// + /// 1:N IncidentResolution_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_Annotation")] + public System.Collections.Generic.IEnumerable IncidentResolution_Annotation + { + get + { + return this.GetRelatedEntities("IncidentResolution_Annotation", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_Annotation"); + this.SetRelatedEntities("IncidentResolution_Annotation", null, value); + this.OnPropertyChanged("IncidentResolution_Annotation"); + } + } + + /// + /// 1:N IncidentResolution_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_AsyncOperations")] + public System.Collections.Generic.IEnumerable IncidentResolution_AsyncOperations + { + get + { + return this.GetRelatedEntities("IncidentResolution_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_AsyncOperations"); + this.SetRelatedEntities("IncidentResolution_AsyncOperations", null, value); + this.OnPropertyChanged("IncidentResolution_AsyncOperations"); + } + } + + /// + /// 1:N IncidentResolution_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IncidentResolution_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable IncidentResolution_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("IncidentResolution_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("IncidentResolution_BulkDeleteFailures"); + this.SetRelatedEntities("IncidentResolution_BulkDeleteFailures", null, value); + this.OnPropertyChanged("IncidentResolution_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_incidentresolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incidentresolution")] + public System.Collections.Generic.IEnumerable userentityinstancedata_incidentresolution + { + get + { + return this.GetRelatedEntities("userentityinstancedata_incidentresolution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incidentresolution"); + this.SetRelatedEntities("userentityinstancedata_incidentresolution", null, value); + this.OnPropertyChanged("userentityinstancedata_incidentresolution"); + } + } + + /// + /// N:1 activity_pointer_incident_resolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_incident_resolution")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_incident_resolution + { + get + { + return this.GetRelatedEntity("activity_pointer_incident_resolution", null); + } + set + { + this.OnPropertyChanging("activity_pointer_incident_resolution"); + this.SetRelatedEntity("activity_pointer_incident_resolution", null, value); + this.OnPropertyChanged("activity_pointer_incident_resolution"); + } + } + + /// + /// N:1 business_unit_incident_resolution_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_incident_resolution_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_incident_resolution_activities + { + get + { + return this.GetRelatedEntity("business_unit_incident_resolution_activities", null); + } + } + + /// + /// N:1 Incident_IncidentResolutions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incidentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_IncidentResolutions")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_IncidentResolutions + { + get + { + return this.GetRelatedEntity("Incident_IncidentResolutions", null); + } + set + { + this.OnPropertyChanging("Incident_IncidentResolutions"); + this.SetRelatedEntity("Incident_IncidentResolutions", null, value); + this.OnPropertyChanged("Incident_IncidentResolutions"); + } + } + + /// + /// N:1 lk_incidentresolution_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_createdby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_createdby", null); + } + } + + /// + /// N:1 lk_incidentresolution_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_incidentresolution_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_modifiedby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_modifiedby", null); + } + } + + /// + /// N:1 lk_incidentresolution_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_incidentresolution_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_incidentresolution_modifiedonbehalfby", null); + } + } + + /// + /// N:1 service_incidentresolutions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_incidentresolutions")] + public Xrm.Framework.CI.Common.Entities.Service service_incidentresolutions + { + get + { + return this.GetRelatedEntity("service_incidentresolutions", null); + } + set + { + this.OnPropertyChanging("service_incidentresolutions"); + this.SetRelatedEntity("service_incidentresolutions", null, value); + this.OnPropertyChanged("service_incidentresolutions"); + } + } + + /// + /// N:1 team_incidentresolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidentresolution")] + public Xrm.Framework.CI.Common.Entities.Team team_incidentresolution + { + get + { + return this.GetRelatedEntity("team_incidentresolution", null); + } + } + + /// + /// N:1 user_incidentresolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_incidentresolution")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_incidentresolution + { + get + { + return this.GetRelatedEntity("user_incidentresolution", null); + } + } + } + + /// + /// An invalid dependency in the CRM system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("invaliddependency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class InvalidDependency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public InvalidDependency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "invaliddependency"; + + public const int EntityTypeCode = 7107; + + 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 object that has an invalid dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcomponentid")] + public System.Nullable ExistingComponentId + { + get + { + return this.GetAttributeValue>("existingcomponentid"); + } + } + + /// + /// Component type of the object that has an invalid dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue ExistingComponentType + { + get + { + return this.GetAttributeValue("existingcomponenttype"); + } + } + + /// + /// The dependency type of the invalid dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("existingdependencytype")] + public Microsoft.Xrm.Sdk.OptionSetValue ExistingDependencyType + { + get + { + return this.GetAttributeValue("existingdependencytype"); + } + } + + /// + /// Unique identifier of the invalid dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invaliddependencyid")] + public System.Nullable InvalidDependencyId + { + get + { + return this.GetAttributeValue>("invaliddependencyid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invaliddependencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Indicates whether the existing node is the required component in the dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isexistingnoderequiredcomponent")] + public System.Nullable IsExistingNodeRequiredComponent + { + get + { + return this.GetAttributeValue>("isexistingnoderequiredcomponent"); + } + } + + /// + /// Unique identifier of the missing component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponentid")] + public System.Nullable MissingComponentId + { + get + { + return this.GetAttributeValue>("missingcomponentid"); + } + set + { + this.OnPropertyChanging("MissingComponentId"); + this.SetAttributeValue("missingcomponentid", value); + this.OnPropertyChanged("MissingComponentId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponentinfo")] + public string MissingComponentInfo + { + get + { + return this.GetAttributeValue("missingcomponentinfo"); + } + } + + /// + /// The lookup type of the missing component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponentlookuptype")] + public System.Nullable MissingComponentLookupType + { + get + { + return this.GetAttributeValue>("missingcomponentlookuptype"); + } + } + + /// + /// The object type code of the missing component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("missingcomponenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue MissingComponentType + { + get + { + return this.GetAttributeValue("missingcomponenttype"); + } + } + + /// + /// 1:N userentityinstancedata_invaliddependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invaliddependency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_invaliddependency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_invaliddependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invaliddependency"); + this.SetRelatedEntities("userentityinstancedata_invaliddependency", null, value); + this.OnPropertyChanged("userentityinstancedata_invaliddependency"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum InvoiceState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Paid = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 3, + } + + /// + /// Order that has been billed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("invoice")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Invoice : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Invoice() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "invoice"; + + public const int EntityTypeCode = 1090; + + 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 invoice is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Unique identifier of the contact associated with the invoice. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 when the products included in the invoice were delivered. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datedelivered")] + public System.Nullable DateDelivered + { + get + { + return this.GetAttributeValue>("datedelivered"); + } + set + { + this.OnPropertyChanging("DateDelivered"); + this.SetAttributeValue("datedelivered", value); + this.OnPropertyChanged("DateDelivered"); + } + } + + /// + /// Type additional information to describe the invoice, such as shipping details or product 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"); + } + } + + /// + /// Type the discount amount for the invoice 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"); + } + } + + /// + /// Shows the Invoice Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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, for use in calculating the Pre-Freight Amount and Total Amount values for the invoice. + /// + [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 by which the invoice should be paid by the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duedate")] + public System.Nullable DueDate + { + get + { + return this.GetAttributeValue>("duedate"); + } + set + { + this.OnPropertyChanging("DueDate"); + this.SetAttributeValue("duedate", value); + this.OnPropertyChanged("DueDate"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 cost of freight or shipping for the products included in the invoice for use in calculating the total amount due. + /// + [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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount_base")] + public Microsoft.Xrm.Sdk.Money FreightAmount_Base + { + get + { + return this.GetAttributeValue("freightamount_base"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public System.Nullable InvoiceId + { + get + { + return this.GetAttributeValue>("invoiceid"); + } + set + { + this.OnPropertyChanging("InvoiceId"); + this.SetAttributeValue("invoiceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("InvoiceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.InvoiceId = value; + } + } + + /// + /// Shows the identifying number or code of the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicenumber")] + public string InvoiceNumber + { + get + { + return this.GetAttributeValue("invoicenumber"); + } + set + { + this.OnPropertyChanging("InvoiceNumber"); + this.SetAttributeValue("invoicenumber", value); + this.OnPropertyChanged("InvoiceNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the date and time when the invoice 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose the opportunity that the invoice 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"); + } + } + + /// + /// 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 invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the invoice. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of pricing error for the invoice. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the order related to the invoice to make sure the order is fulfilled and invoiced correctly. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 invoice is active, paid, or canceled. Paid and canceled invoices 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 ((Xrm.Framework.CI.Common.Entities.InvoiceState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.InvoiceState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the invoice'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, discount, freight, and taxes for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount")] + public Microsoft.Xrm.Sdk.Money TotalAmount + { + get + { + return this.GetAttributeValue("totalamount"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount_base")] + public Microsoft.Xrm.Sdk.Money TotalAmount_Base + { + get + { + return this.GetAttributeValue("totalamount_base"); + } + } + + /// + /// Shows the total product amount due, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount due for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight + { + get + { + return this.GetAttributeValue("totalamountlessfreight"); + } + } + + /// + /// Shows the Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount + { + get + { + return this.GetAttributeValue("totaldiscountamount"); + } + } + + /// + /// Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 invoice, based on the specified price list and quantities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount + { + get + { + return this.GetAttributeValue("totallineitemamount"); + } + } + + /// + /// Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount_base")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount_Base + { + get + { + return this.GetAttributeValue("totallineitemamount_base"); + } + } + + /// + /// Shows the Manual Discount amounts specified on all products included in the invoice. This value is reflected in the Detail Amount field on the invoice and is added to any discount amount or rate specified on the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount"); + } + } + + /// + /// Shows the total of the Manual Discount amounts specified on all products included in the invoice. This value is reflected in the Detail Amount field on the invoice and is added to any discount amount or rate specified on the invoice. + /// + [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 invoice, included in the Total Amount due calculation for the invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax")] + public Microsoft.Xrm.Sdk.Money TotalTax + { + get + { + return this.GetAttributeValue("totaltax"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 invoice. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Select whether the products included in the invoice 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"); + } + } + + /// + /// 1:N invoice_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_activity_parties")] + public System.Collections.Generic.IEnumerable invoice_activity_parties + { + get + { + return this.GetRelatedEntities("invoice_activity_parties", null); + } + set + { + this.OnPropertyChanging("invoice_activity_parties"); + this.SetRelatedEntities("invoice_activity_parties", null, value); + this.OnPropertyChanged("invoice_activity_parties"); + } + } + + /// + /// 1:N Invoice_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ActivityPointers")] + public System.Collections.Generic.IEnumerable Invoice_ActivityPointers + { + get + { + return this.GetRelatedEntities("Invoice_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Invoice_ActivityPointers"); + this.SetRelatedEntities("Invoice_ActivityPointers", null, value); + this.OnPropertyChanged("Invoice_ActivityPointers"); + } + } + + /// + /// 1:N Invoice_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Annotation")] + public System.Collections.Generic.IEnumerable Invoice_Annotation + { + get + { + return this.GetRelatedEntities("Invoice_Annotation", null); + } + set + { + this.OnPropertyChanging("Invoice_Annotation"); + this.SetRelatedEntities("Invoice_Annotation", null, value); + this.OnPropertyChanged("Invoice_Annotation"); + } + } + + /// + /// 1:N Invoice_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Appointments")] + public System.Collections.Generic.IEnumerable Invoice_Appointments + { + get + { + return this.GetRelatedEntities("Invoice_Appointments", null); + } + set + { + this.OnPropertyChanging("Invoice_Appointments"); + this.SetRelatedEntities("Invoice_Appointments", null, value); + this.OnPropertyChanged("Invoice_Appointments"); + } + } + + /// + /// 1:N Invoice_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_AsyncOperations")] + public System.Collections.Generic.IEnumerable Invoice_AsyncOperations + { + get + { + return this.GetRelatedEntities("Invoice_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Invoice_AsyncOperations"); + this.SetRelatedEntities("Invoice_AsyncOperations", null, value); + this.OnPropertyChanged("Invoice_AsyncOperations"); + } + } + + /// + /// 1:N Invoice_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Invoice_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Invoice_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Invoice_BulkDeleteFailures"); + this.SetRelatedEntities("Invoice_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Invoice_BulkDeleteFailures"); + } + } + + /// + /// 1:N invoice_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections1")] + public System.Collections.Generic.IEnumerable invoice_connections1 + { + get + { + return this.GetRelatedEntities("invoice_connections1", null); + } + set + { + this.OnPropertyChanging("invoice_connections1"); + this.SetRelatedEntities("invoice_connections1", null, value); + this.OnPropertyChanged("invoice_connections1"); + } + } + + /// + /// 1:N invoice_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_connections2")] + public System.Collections.Generic.IEnumerable invoice_connections2 + { + get + { + return this.GetRelatedEntities("invoice_connections2", null); + } + set + { + this.OnPropertyChanging("invoice_connections2"); + this.SetRelatedEntities("invoice_connections2", null, value); + this.OnPropertyChanged("invoice_connections2"); + } + } + + /// + /// 1:N invoice_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_details")] + public System.Collections.Generic.IEnumerable invoice_details + { + get + { + return this.GetRelatedEntities("invoice_details", null); + } + set + { + this.OnPropertyChanging("invoice_details"); + this.SetRelatedEntities("invoice_details", null, value); + this.OnPropertyChanged("invoice_details"); + } + } + + /// + /// 1:N Invoice_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Emails")] + public System.Collections.Generic.IEnumerable Invoice_Emails + { + get + { + return this.GetRelatedEntities("Invoice_Emails", null); + } + set + { + this.OnPropertyChanging("Invoice_Emails"); + this.SetRelatedEntities("Invoice_Emails", null, value); + this.OnPropertyChanged("Invoice_Emails"); + } + } + + /// + /// 1:N Invoice_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Faxes")] + public System.Collections.Generic.IEnumerable Invoice_Faxes + { + get + { + return this.GetRelatedEntities("Invoice_Faxes", null); + } + set + { + this.OnPropertyChanging("Invoice_Faxes"); + this.SetRelatedEntities("Invoice_Faxes", null, value); + this.OnPropertyChanged("Invoice_Faxes"); + } + } + + /// + /// 1:N Invoice_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Letters")] + public System.Collections.Generic.IEnumerable Invoice_Letters + { + get + { + return this.GetRelatedEntities("Invoice_Letters", null); + } + set + { + this.OnPropertyChanging("Invoice_Letters"); + this.SetRelatedEntities("Invoice_Letters", null, value); + this.OnPropertyChanged("Invoice_Letters"); + } + } + + /// + /// 1:N Invoice_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Phonecalls")] + public System.Collections.Generic.IEnumerable Invoice_Phonecalls + { + get + { + return this.GetRelatedEntities("Invoice_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Invoice_Phonecalls"); + this.SetRelatedEntities("Invoice_Phonecalls", null, value); + this.OnPropertyChanged("Invoice_Phonecalls"); + } + } + + /// + /// 1:N invoice_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable invoice_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("invoice_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoice_principalobjectattributeaccess"); + this.SetRelatedEntities("invoice_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoice_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Invoice_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ProcessSessions")] + public System.Collections.Generic.IEnumerable Invoice_ProcessSessions + { + get + { + return this.GetRelatedEntities("Invoice_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Invoice_ProcessSessions"); + this.SetRelatedEntities("Invoice_ProcessSessions", null, value); + this.OnPropertyChanged("Invoice_ProcessSessions"); + } + } + + /// + /// 1:N Invoice_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Invoice_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Invoice_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Invoice_RecurringAppointmentMasters"); + this.SetRelatedEntities("Invoice_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Invoice_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Invoice_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Invoice_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Invoice_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Invoice_ServiceAppointments"); + this.SetRelatedEntities("Invoice_ServiceAppointments", null, value); + this.OnPropertyChanged("Invoice_ServiceAppointments"); + } + } + + /// + /// 1:N Invoice_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Tasks")] + public System.Collections.Generic.IEnumerable Invoice_Tasks + { + get + { + return this.GetRelatedEntities("Invoice_Tasks", null); + } + set + { + this.OnPropertyChanging("Invoice_Tasks"); + this.SetRelatedEntities("Invoice_Tasks", null, value); + this.OnPropertyChanged("Invoice_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_invoice + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoice")] + public System.Collections.Generic.IEnumerable userentityinstancedata_invoice + { + get + { + return this.GetRelatedEntities("userentityinstancedata_invoice", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoice"); + this.SetRelatedEntities("userentityinstancedata_invoice", null, value); + this.OnPropertyChanged("userentityinstancedata_invoice"); + } + } + + /// + /// N:N contactinvoices_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactinvoices_association")] + public System.Collections.Generic.IEnumerable contactinvoices_association + { + get + { + return this.GetRelatedEntities("contactinvoices_association", null); + } + set + { + this.OnPropertyChanging("contactinvoices_association"); + this.SetRelatedEntities("contactinvoices_association", null, value); + this.OnPropertyChanged("contactinvoices_association"); + } + } + + /// + /// N:1 business_unit_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_invoices")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_invoices + { + get + { + return this.GetRelatedEntity("business_unit_invoices", null); + } + } + + /// + /// N:1 invoice_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account invoice_customer_accounts + { + get + { + return this.GetRelatedEntity("invoice_customer_accounts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_accounts"); + this.SetRelatedEntity("invoice_customer_accounts", null, value); + this.OnPropertyChanged("invoice_customer_accounts"); + } + } + + /// + /// N:1 invoice_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact invoice_customer_contacts + { + get + { + return this.GetRelatedEntity("invoice_customer_contacts", null); + } + set + { + this.OnPropertyChanging("invoice_customer_contacts"); + this.SetRelatedEntity("invoice_customer_contacts", null, value); + this.OnPropertyChanged("invoice_customer_contacts"); + } + } + + /// + /// N:1 lk_invoice_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoice_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoice_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_invoice_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoice_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoice_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_invoicebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicebase_createdby + { + get + { + return this.GetRelatedEntity("lk_invoicebase_createdby", null); + } + } + + /// + /// N:1 lk_invoicebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_invoicebase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_invoices")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_invoices + { + get + { + return this.GetRelatedEntity("opportunity_invoices", null); + } + set + { + this.OnPropertyChanging("opportunity_invoices"); + this.SetRelatedEntity("opportunity_invoices", null, value); + this.OnPropertyChanged("opportunity_invoices"); + } + } + + /// + /// N:1 order_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_invoices")] + public Xrm.Framework.CI.Common.Entities.SalesOrder order_invoices + { + get + { + return this.GetRelatedEntity("order_invoices", null); + } + set + { + this.OnPropertyChanging("order_invoices"); + this.SetRelatedEntity("order_invoices", null, value); + this.OnPropertyChanged("order_invoices"); + } + } + + /// + /// N:1 price_level_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_invoices")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_invoices + { + get + { + return this.GetRelatedEntity("price_level_invoices", null); + } + set + { + this.OnPropertyChanging("price_level_invoices"); + this.SetRelatedEntity("price_level_invoices", null, value); + this.OnPropertyChanged("price_level_invoices"); + } + } + + /// + /// N:1 processstage_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_invoices")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_invoices + { + get + { + return this.GetRelatedEntity("processstage_invoices", null); + } + set + { + this.OnPropertyChanging("processstage_invoices"); + this.SetRelatedEntity("processstage_invoices", null, value); + this.OnPropertyChanged("processstage_invoices"); + } + } + + /// + /// N:1 system_user_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoices")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_invoices + { + get + { + return this.GetRelatedEntity("system_user_invoices", null); + } + } + + /// + /// N:1 team_invoices + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_invoices")] + public Xrm.Framework.CI.Common.Entities.Team team_invoices + { + get + { + return this.GetRelatedEntity("team_invoices", null); + } + } + + /// + /// N:1 transactioncurrency_invoice + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoice")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_invoice + { + get + { + return this.GetRelatedEntity("transactioncurrency_invoice", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_invoice"); + this.SetRelatedEntity("transactioncurrency_invoice", null, value); + this.OnPropertyChanged("transactioncurrency_invoice"); + } + } + } + + /// + /// Line item in an invoice containing detailed billing information for a product. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("invoicedetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class InvoiceDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public InvoiceDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "invoicedetail"; + + public const int EntityTypeCode = 1091; + + 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)); + } + } + + /// + /// Enter the date when the invoiced product was delivered to the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdeliveryon")] + public System.Nullable ActualDeliveryOn + { + get + { + return this.GetAttributeValue>("actualdeliveryon"); + } + set + { + this.OnPropertyChanging("ActualDeliveryOn"); + this.SetAttributeValue("actualdeliveryon", value); + this.OnPropertyChanged("ActualDeliveryOn"); + } + } + + /// + /// Shows the total price of the invoice 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the product line item of the invoice. + /// + [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 invoice 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"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicedetailid")] + public System.Nullable InvoiceDetailId + { + get + { + return this.GetAttributeValue>("invoicedetailid"); + } + set + { + this.OnPropertyChanging("InvoiceDetailId"); + this.SetAttributeValue("invoicedetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("InvoiceDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicedetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.InvoiceDetailId = value; + } + } + + /// + /// Unique identifier of the invoice associated with the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + public Microsoft.Xrm.Sdk.EntityReference InvoiceId + { + get + { + return this.GetAttributeValue("invoiceid"); + } + set + { + this.OnPropertyChanging("InvoiceId"); + this.SetAttributeValue("invoiceid", value); + this.OnPropertyChanged("InvoiceId"); + } + } + + /// + /// Information about whether invoice product pricing is locked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceispricelocked")] + public System.Nullable InvoiceIsPriceLocked + { + get + { + return this.GetAttributeValue>("invoiceispricelocked"); + } + } + + /// + /// Status of the invoice product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoicestatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InvoiceStateCode + { + get + { + return this.GetAttributeValue("invoicestatecode"); + } + } + + /// + /// Select whether the invoice product 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 invoice 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 CRM product catalog or is a write-in product specific to the parent invoice. + /// + [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 invoice product to easily identify the product in the invoice and make sure it's listed in the correct order. + /// + [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 invoice product to deduct any negotiated or other savings from the product total. + /// + [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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 invoice detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the invoice product line item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Type the price per unit of the invoice product. The default is the value in the price list specified on the parent invoice 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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priceperunit_base")] + public Microsoft.Xrm.Sdk.Money PricePerUnit_Base + { + get + { + return this.GetAttributeValue("priceperunit_base"); + } + } + + /// + /// Pricing error for the invoice product line item. + /// + [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"); + } + } + + /// + /// Type a name or description to identify the type of write-in product included in the invoice. + /// + [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 invoice. + /// + [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"); + } + } + + /// + /// Type the amount or quantity of the product included in the invoice's total amount due. + /// + [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 invoice. + /// + [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 for the invoice line item. + /// + [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. + /// + [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"); + } + } + + /// + /// Choose the user responsible for the sale of the invoice 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"); + } + } + + /// + /// Type a tracking number for shipment of the invoiced product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingtrackingnumber")] + public string ShippingTrackingNumber + { + get + { + return this.GetAttributeValue("shippingtrackingnumber"); + } + set + { + this.OnPropertyChanging("ShippingTrackingNumber"); + this.SetAttributeValue("shippingtrackingnumber", value); + this.OnPropertyChanged("ShippingTrackingNumber"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the tax amount for the invoice 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the invoice product line item. + /// + [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"); + } + } + + /// + /// Shows the Volume Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("volumediscountamount_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// Select whether the invoice 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"); + } + } + + /// + /// 1:N InvoiceDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable InvoiceDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("InvoiceDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_AsyncOperations"); + this.SetRelatedEntities("InvoiceDetail_AsyncOperations", null, value); + this.OnPropertyChanged("InvoiceDetail_AsyncOperations"); + } + } + + /// + /// 1:N InvoiceDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable InvoiceDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("InvoiceDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_BulkDeleteFailures"); + this.SetRelatedEntities("InvoiceDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("InvoiceDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N invoicedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoicedetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable invoicedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("invoicedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoicedetail_principalobjectattributeaccess"); + this.SetRelatedEntities("invoicedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoicedetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N InvoiceDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable InvoiceDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("InvoiceDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_ProcessSessions"); + this.SetRelatedEntities("InvoiceDetail_ProcessSessions", null, value); + this.OnPropertyChanged("InvoiceDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_invoicedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoicedetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_invoicedetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_invoicedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoicedetail"); + this.SetRelatedEntities("userentityinstancedata_invoicedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_invoicedetail"); + } + } + + /// + /// N:1 invoice_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_details")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_details + { + get + { + return this.GetRelatedEntity("invoice_details", null); + } + set + { + this.OnPropertyChanging("invoice_details"); + this.SetRelatedEntity("invoice_details", null, value); + this.OnPropertyChanged("invoice_details"); + } + } + + /// + /// N:1 lk_invoicedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoicedetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_invoicedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_invoicedetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_invoicedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_invoicedetailbase_createdby", null); + } + } + + /// + /// N:1 lk_invoicedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_invoicedetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_invoicedetailbase_modifiedby", null); + } + } + + /// + /// N:1 product_invoice_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_invoice_details")] + public Xrm.Framework.CI.Common.Entities.Product product_invoice_details + { + get + { + return this.GetRelatedEntity("product_invoice_details", null); + } + set + { + this.OnPropertyChanging("product_invoice_details"); + this.SetRelatedEntity("product_invoice_details", null, value); + this.OnPropertyChanged("product_invoice_details"); + } + } + + /// + /// N:1 system_user_invoicedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoicedetail")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_invoicedetail + { + get + { + return this.GetRelatedEntity("system_user_invoicedetail", null); + } + set + { + this.OnPropertyChanging("system_user_invoicedetail"); + this.SetRelatedEntity("system_user_invoicedetail", null, value); + this.OnPropertyChanged("system_user_invoicedetail"); + } + } + + /// + /// N:1 transactioncurrency_invoicedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoicedetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_invoicedetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_invoicedetail", null); + } + } + + /// + /// N:1 unit_of_measurement_invoice_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_invoice_details")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_invoice_details + { + get + { + return this.GetRelatedEntity("unit_of_measurement_invoice_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_invoice_details"); + this.SetRelatedEntity("unit_of_measurement_invoice_details", null, value); + this.OnPropertyChanged("unit_of_measurement_invoice_details"); + } + } + } + + /// + /// An XML document used to configure client extension controls. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("isvconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class IsvConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public IsvConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "isvconfig"; + + public const int EntityTypeCode = 4705; + + 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)); + } + } + + /// + /// Structured XML data representing the customizations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configxml")] + public string ConfigXML + { + get + { + return this.GetAttributeValue("configxml"); + } + set + { + this.OnPropertyChanging("ConfigXML"); + this.SetAttributeValue("configxml", value); + this.OnPropertyChanged("ConfigXML"); + } + } + + /// + /// Unique identifier of the user who created the ISV configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the ISV configuration 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 isvconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the ISV configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvconfigid")] + public System.Nullable IsvConfigId + { + get + { + return this.GetAttributeValue>("isvconfigid"); + } + set + { + this.OnPropertyChanging("IsvConfigId"); + this.SetAttributeValue("isvconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("IsvConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.IsvConfigId = value; + } + } + + /// + /// Unique identifier of the user who last modified the ISV configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the ISV configuration 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 isvconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the ISV configuration XML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N IsvConfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_AsyncOperations")] + public System.Collections.Generic.IEnumerable IsvConfig_AsyncOperations + { + get + { + return this.GetRelatedEntities("IsvConfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("IsvConfig_AsyncOperations"); + this.SetRelatedEntities("IsvConfig_AsyncOperations", null, value); + this.OnPropertyChanged("IsvConfig_AsyncOperations"); + } + } + + /// + /// 1:N IsvConfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("IsvConfig_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable IsvConfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("IsvConfig_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("IsvConfig_BulkDeleteFailures"); + this.SetRelatedEntities("IsvConfig_BulkDeleteFailures", null, value); + this.OnPropertyChanged("IsvConfig_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_isvconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_isvconfig")] + public System.Collections.Generic.IEnumerable userentityinstancedata_isvconfig + { + get + { + return this.GetRelatedEntities("userentityinstancedata_isvconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_isvconfig"); + this.SetRelatedEntities("userentityinstancedata_isvconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_isvconfig"); + } + } + + /// + /// N:1 lk_isvconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_isvconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_isvconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_isvconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_isvconfigbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfigbase_createdby + { + get + { + return this.GetRelatedEntity("lk_isvconfigbase_createdby", null); + } + } + + /// + /// N:1 lk_isvconfigbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_isvconfigbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_isvconfigbase_modifiedby", null); + } + } + + /// + /// N:1 organization_isvconfigs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_isvconfigs")] + public Xrm.Framework.CI.Common.Entities.Organization organization_isvconfigs + { + get + { + return this.GetRelatedEntity("organization_isvconfigs", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum KbArticleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unapproved = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Published = 3, + } + + /// + /// Structured content that is part of the knowledge base. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("kbarticle")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class KbArticle : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public KbArticle() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "kbarticle"; + + public const int EntityTypeCode = 127; + + 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 article content and formatting, stored as XML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("articlexml")] + public string ArticleXml + { + get + { + return this.GetAttributeValue("articlexml"); + } + set + { + this.OnPropertyChanging("ArticleXml"); + this.SetAttributeValue("articlexml", value); + this.OnPropertyChanged("ArticleXml"); + } + } + + /// + /// Comments regarding the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("comments")] + public string Comments + { + get + { + return this.GetAttributeValue("comments"); + } + set + { + this.OnPropertyChanging("Comments"); + this.SetAttributeValue("comments", value); + this.OnPropertyChanged("Comments"); + } + } + + /// + /// Description of the content of the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + } + + /// + /// Unique identifier of the user who created the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the knowledge base article 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 article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Type additional information that describes the knowledge base article. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public System.Nullable KbArticleId + { + get + { + return this.GetAttributeValue>("kbarticleid"); + } + set + { + this.OnPropertyChanging("KbArticleId"); + this.SetAttributeValue("kbarticleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("KbArticleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.KbArticleId = value; + } + } + + /// + /// Choose the template that you want to use as a base for creating the new article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + public Microsoft.Xrm.Sdk.EntityReference KbArticleTemplateId + { + get + { + return this.GetAttributeValue("kbarticletemplateid"); + } + set + { + this.OnPropertyChanging("KbArticleTemplateId"); + this.SetAttributeValue("kbarticletemplateid", value); + this.OnPropertyChanged("KbArticleTemplateId"); + } + } + + /// + /// Keywords to be used for searches in knowledge base articles. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keywords")] + public string KeyWords + { + get + { + return this.GetAttributeValue("keywords"); + } + set + { + this.OnPropertyChanging("KeyWords"); + this.SetAttributeValue("keywords", value); + this.OnPropertyChanged("KeyWords"); + } + } + + /// + /// Select which language the article must be available in. This list is based on the list of language packs that are installed in your Microsoft Dynamics CRM environment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the knowledge base article 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 kbarticle. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Knowledge base article number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("number")] + public string Number + { + get + { + return this.GetAttributeValue("number"); + } + } + + /// + /// Unique identifier of the organization associated with the article. + /// + [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 whether the knowledge base article is in draft, unapproved, or published status. Published articles are read-only and can't be edited unless they are unpublished. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.KbArticleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.KbArticleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the article'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"); + } + } + + /// + /// Choose the subject of the article to assist with article searches. You can configure subjects under Business Management in the Settings area. + /// + [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"); + } + } + + /// + /// Type a subject or descriptive name for the article to assist with article searches. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// 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"); + } + } + + /// + /// Title of the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N KbArticle_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_Annotation")] + public System.Collections.Generic.IEnumerable KbArticle_Annotation + { + get + { + return this.GetRelatedEntities("KbArticle_Annotation", null); + } + set + { + this.OnPropertyChanging("KbArticle_Annotation"); + this.SetRelatedEntities("KbArticle_Annotation", null, value); + this.OnPropertyChanged("KbArticle_Annotation"); + } + } + + /// + /// 1:N KbArticle_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_AsyncOperations")] + public System.Collections.Generic.IEnumerable KbArticle_AsyncOperations + { + get + { + return this.GetRelatedEntities("KbArticle_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticle_AsyncOperations"); + this.SetRelatedEntities("KbArticle_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticle_AsyncOperations"); + } + } + + /// + /// 1:N KbArticle_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable KbArticle_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("KbArticle_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("KbArticle_BulkDeleteFailures"); + this.SetRelatedEntities("KbArticle_BulkDeleteFailures", null, value); + this.OnPropertyChanged("KbArticle_BulkDeleteFailures"); + } + } + + /// + /// 1:N kbarticle_comments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_comments")] + public System.Collections.Generic.IEnumerable kbarticle_comments + { + get + { + return this.GetRelatedEntities("kbarticle_comments", null); + } + set + { + this.OnPropertyChanging("kbarticle_comments"); + this.SetRelatedEntities("kbarticle_comments", null, value); + this.OnPropertyChanged("kbarticle_comments"); + } + } + + /// + /// 1:N KbArticle_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable KbArticle_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("KbArticle_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("KbArticle_DuplicateBaseRecord"); + this.SetRelatedEntities("KbArticle_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("KbArticle_DuplicateBaseRecord"); + } + } + + /// + /// 1:N KbArticle_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable KbArticle_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("KbArticle_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("KbArticle_DuplicateMatchingRecord"); + this.SetRelatedEntities("KbArticle_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("KbArticle_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N kbarticle_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_incidents")] + public System.Collections.Generic.IEnumerable kbarticle_incidents + { + get + { + return this.GetRelatedEntities("kbarticle_incidents", null); + } + set + { + this.OnPropertyChanging("kbarticle_incidents"); + this.SetRelatedEntities("kbarticle_incidents", null, value); + this.OnPropertyChanged("kbarticle_incidents"); + } + } + + /// + /// 1:N kbarticle_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable kbarticle_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("kbarticle_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("kbarticle_principalobjectattributeaccess"); + this.SetRelatedEntities("kbarticle_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("kbarticle_principalobjectattributeaccess"); + } + } + + /// + /// 1:N KbArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_ProcessSessions")] + public System.Collections.Generic.IEnumerable KbArticle_ProcessSessions + { + get + { + return this.GetRelatedEntities("KbArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticle_ProcessSessions"); + this.SetRelatedEntities("KbArticle_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticle_ProcessSessions"); + } + } + + /// + /// 1:N KbArticle_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable KbArticle_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("KbArticle_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("KbArticle_SharepointDocumentLocation"); + this.SetRelatedEntities("KbArticle_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("KbArticle_SharepointDocumentLocation"); + } + } + + /// + /// 1:N userentityinstancedata_kbarticle + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticle")] + public System.Collections.Generic.IEnumerable userentityinstancedata_kbarticle + { + get + { + return this.GetRelatedEntities("userentityinstancedata_kbarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticle"); + this.SetRelatedEntities("userentityinstancedata_kbarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticle"); + } + } + + /// + /// N:1 kb_article_template_kb_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kb_article_template_kb_articles")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate kb_article_template_kb_articles + { + get + { + return this.GetRelatedEntity("kb_article_template_kb_articles", null); + } + set + { + this.OnPropertyChanging("kb_article_template_kb_articles"); + this.SetRelatedEntity("kb_article_template_kb_articles", null, value); + this.OnPropertyChanged("kb_article_template_kb_articles"); + } + } + + /// + /// N:1 lk_kbarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticle_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticle_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlebase_createdby + { + get + { + return this.GetRelatedEntity("lk_kbarticlebase_createdby", null); + } + } + + /// + /// N:1 lk_kbarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_kbarticlebase_modifiedby", null); + } + } + + /// + /// N:1 organization_kb_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_articles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_kb_articles + { + get + { + return this.GetRelatedEntity("organization_kb_articles", null); + } + } + + /// + /// N:1 subject_kb_articles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_kb_articles")] + public Xrm.Framework.CI.Common.Entities.Subject subject_kb_articles + { + get + { + return this.GetRelatedEntity("subject_kb_articles", null); + } + set + { + this.OnPropertyChanging("subject_kb_articles"); + this.SetRelatedEntity("subject_kb_articles", null, value); + this.OnPropertyChanged("subject_kb_articles"); + } + } + + /// + /// N:1 TransactionCurrency_KbArticle + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_KbArticle")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_KbArticle + { + get + { + return this.GetRelatedEntity("TransactionCurrency_KbArticle", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_KbArticle"); + this.SetRelatedEntity("TransactionCurrency_KbArticle", null, value); + this.OnPropertyChanged("TransactionCurrency_KbArticle"); + } + } + } + + /// + /// Comment on a knowledge base article. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("kbarticlecomment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class KbArticleComment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public KbArticleComment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "kbarticlecomment"; + + public const int EntityTypeCode = 1082; + + 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)); + } + } + + /// + /// Comment text for the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("commenttext")] + public string CommentText + { + get + { + return this.GetAttributeValue("commenttext"); + } + set + { + this.OnPropertyChanging("CommentText"); + this.SetAttributeValue("commenttext", value); + this.OnPropertyChanged("CommentText"); + } + } + + /// + /// Unique identifier of the user who created the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the knowledge base article comment 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 kbarticlecomment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticlecommentid")] + public System.Nullable KbArticleCommentId + { + get + { + return this.GetAttributeValue>("kbarticlecommentid"); + } + set + { + this.OnPropertyChanging("KbArticleCommentId"); + this.SetAttributeValue("kbarticlecommentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("KbArticleCommentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticlecommentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.KbArticleCommentId = value; + } + } + + /// + /// Unique identifier of the knowledge base article to which the comment applies. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + public Microsoft.Xrm.Sdk.EntityReference KbArticleId + { + get + { + return this.GetAttributeValue("kbarticleid"); + } + set + { + this.OnPropertyChanging("KbArticleId"); + this.SetAttributeValue("kbarticleid", value); + this.OnPropertyChanged("KbArticleId"); + } + } + + /// + /// Unique identifier of the user who last modified the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the knowledge base article comment 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 kbarticlecomment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the article comment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Title of the knowledge base article comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N KbArticleComment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_AsyncOperations")] + public System.Collections.Generic.IEnumerable KbArticleComment_AsyncOperations + { + get + { + return this.GetRelatedEntities("KbArticleComment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_AsyncOperations"); + this.SetRelatedEntities("KbArticleComment_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleComment_AsyncOperations"); + } + } + + /// + /// 1:N KbArticleComment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable KbArticleComment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("KbArticleComment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_BulkDeleteFailures"); + this.SetRelatedEntities("KbArticleComment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("KbArticleComment_BulkDeleteFailures"); + } + } + + /// + /// 1:N KbArticleComment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_ProcessSessions")] + public System.Collections.Generic.IEnumerable KbArticleComment_ProcessSessions + { + get + { + return this.GetRelatedEntities("KbArticleComment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_ProcessSessions"); + this.SetRelatedEntities("KbArticleComment_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleComment_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_kbarticlecomment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticlecomment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_kbarticlecomment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_kbarticlecomment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticlecomment"); + this.SetRelatedEntities("userentityinstancedata_kbarticlecomment", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticlecomment"); + } + } + + /// + /// N:1 kbarticle_comments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_comments")] + public Xrm.Framework.CI.Common.Entities.KbArticle kbarticle_comments + { + get + { + return this.GetRelatedEntity("kbarticle_comments", null); + } + set + { + this.OnPropertyChanging("kbarticle_comments"); + this.SetRelatedEntity("kbarticle_comments", null, value); + this.OnPropertyChanged("kbarticle_comments"); + } + } + + /// + /// N:1 lk_kbarticlecomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecomment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecomment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticlecomment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecomment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecomment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticlecommentbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecommentbase_createdby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecommentbase_createdby", null); + } + } + + /// + /// N:1 lk_kbarticlecommentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticlecommentbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_kbarticlecommentbase_modifiedby", null); + } + } + } + + /// + /// Template for a knowledge base article that contains the standard attributes of an article. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("kbarticletemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class KbArticleTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public KbArticleTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "kbarticletemplate"; + + public const int EntityTypeCode = 1016; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the knowledge base article template 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 kbarticletemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// XML format of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formatxml")] + public string FormatXml + { + get + { + return this.GetAttributeValue("formatxml"); + } + set + { + this.OnPropertyChanging("FormatXml"); + this.SetAttributeValue("formatxml", value); + this.OnPropertyChanged("FormatXml"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information about whether the knowledge base article is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactive")] + public System.Nullable IsActive + { + get + { + return this.GetAttributeValue>("isactive"); + } + set + { + this.OnPropertyChanging("IsActive"); + this.SetAttributeValue("isactive", value); + this.OnPropertyChanged("IsActive"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + public System.Nullable KbArticleTemplateId + { + get + { + return this.GetAttributeValue>("kbarticletemplateid"); + } + set + { + this.OnPropertyChanging("KbArticleTemplateId"); + this.SetAttributeValue("kbarticletemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("KbArticleTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.KbArticleTemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbarticletemplateidunique")] + public System.Nullable KbArticleTemplateIdUnique + { + get + { + return this.GetAttributeValue>("kbarticletemplateidunique"); + } + } + + /// + /// Language of the Article Template + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the knowledge base article template 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 kbarticletemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// XML structure of the knowledge base article. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("structurexml")] + public string StructureXml + { + get + { + return this.GetAttributeValue("structurexml"); + } + set + { + this.OnPropertyChanging("StructureXml"); + this.SetAttributeValue("structurexml", value); + this.OnPropertyChanged("StructureXml"); + } + } + + /// + /// Title of the knowledge base article template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N kb_article_template_kb_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kb_article_template_kb_articles")] + public System.Collections.Generic.IEnumerable kb_article_template_kb_articles + { + get + { + return this.GetRelatedEntities("kb_article_template_kb_articles", null); + } + set + { + this.OnPropertyChanging("kb_article_template_kb_articles"); + this.SetRelatedEntities("kb_article_template_kb_articles", null, value); + this.OnPropertyChanged("kb_article_template_kb_articles"); + } + } + + /// + /// 1:N KbArticleTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_AsyncOperations")] + public System.Collections.Generic.IEnumerable KbArticleTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntities("KbArticleTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_AsyncOperations"); + this.SetRelatedEntities("KbArticleTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("KbArticleTemplate_AsyncOperations"); + } + } + + /// + /// 1:N KbArticleTemplate_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable KbArticleTemplate_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("KbArticleTemplate_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_BulkDeleteFailures"); + this.SetRelatedEntities("KbArticleTemplate_BulkDeleteFailures", null, value); + this.OnPropertyChanged("KbArticleTemplate_BulkDeleteFailures"); + } + } + + /// + /// 1:N KbArticleTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_ProcessSessions")] + public System.Collections.Generic.IEnumerable KbArticleTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntities("KbArticleTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_ProcessSessions"); + this.SetRelatedEntities("KbArticleTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleTemplate_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_kbarticletemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticletemplate")] + public System.Collections.Generic.IEnumerable userentityinstancedata_kbarticletemplate + { + get + { + return this.GetRelatedEntities("userentityinstancedata_kbarticletemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticletemplate"); + this.SetRelatedEntities("userentityinstancedata_kbarticletemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticletemplate"); + } + } + + /// + /// N:1 lk_kbarticletemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticletemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplate_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_kbarticletemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplatebase_createdby", null); + } + } + + /// + /// N:1 lk_kbarticletemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_kbarticletemplatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_kbarticletemplatebase_modifiedby", null); + } + } + + /// + /// N:1 organization_kb_article_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_article_templates")] + public Xrm.Framework.CI.Common.Entities.Organization organization_kb_article_templates + { + get + { + return this.GetRelatedEntity("organization_kb_article_templates", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum LeadState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Qualified = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disqualified = 2, + } + + /// + /// Prospect or potential sales opportunity. Leads are converted into accounts, contacts, or opportunities when they are qualified. Otherwise, they are deleted or archived. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("lead")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Lead : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Lead() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "lead"; + + public const int EntityTypeCode = 4; + + 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 lead is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about the budget amount of the lead's company or organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount")] + public Microsoft.Xrm.Sdk.Money BudgetAmount + { + get + { + return this.GetAttributeValue("budgetamount"); + } + set + { + this.OnPropertyChanging("BudgetAmount"); + this.SetAttributeValue("budgetamount", value); + this.OnPropertyChanged("BudgetAmount"); + } + } + + /// + /// Base currency equivalent of the estimated budget of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount_base")] + public Microsoft.Xrm.Sdk.Money BudgetAmount_Base + { + get + { + return this.GetAttributeValue("budgetamount_base"); + } + } + + /// + /// Information about the budget status of the lead's company or organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue BudgetStatus + { + get + { + return this.GetAttributeValue("budgetstatus"); + } + set + { + this.OnPropertyChanging("BudgetStatus"); + this.SetAttributeValue("budgetstatus", value); + this.OnPropertyChanged("BudgetStatus"); + } + } + + /// + /// Choose the campaign that the lead was generated from to track the effectiveness of marketing campaigns and identify communications received by the lead. + /// + [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"); + } + } + + /// + /// Type the name of the company associated with the lead. This becomes the account name when the lead is qualified and converted to a customer account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("companyname")] + public string CompanyName + { + get + { + return this.GetAttributeValue("companyname"); + } + set + { + this.OnPropertyChanging("CompanyName"); + this.SetAttributeValue("companyname", value); + this.OnPropertyChanged("CompanyName"); + } + } + + /// + /// Select whether the lead confirmed interest in your offerings. This helps in determining the lead quality. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("confirminterest")] + public System.Nullable ConfirmInterest + { + get + { + return this.GetAttributeValue>("confirminterest"); + } + set + { + this.OnPropertyChanging("ConfirmInterest"); + this.SetAttributeValue("confirminterest", value); + this.OnPropertyChanged("ConfirmInterest"); + } + } + + /// + /// Unique identifier of the contact with which the lead is associated. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select whether your notes include information about who makes the purchase decisions at the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decisionmaker")] + public System.Nullable DecisionMaker + { + get + { + return this.GetAttributeValue>("decisionmaker"); + } + set + { + this.OnPropertyChanging("DecisionMaker"); + this.SetAttributeValue("decisionmaker", value); + this.OnPropertyChanged("DecisionMaker"); + } + } + + /// + /// Type additional information to describe the lead, 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 lead accepts bulk email sent through marketing campaigns or quick campaigns. If Do Not Allow is selected, the lead 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 lead allows direct email sent from Microsoft Dynamics CRM. + /// + [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 lead allows faxes. + /// + [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 lead allows phone calls. + /// + [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 lead allows direct mail. + /// + [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 lead accepts marketing materials, such as brochures or catalogs. Leads 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"); + } + } + + /// + /// Type the primary email address for the lead. + /// + [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 lead. + /// + [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 a third email address for the lead. + /// + [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"); + } + } + + /// + /// Type the estimated revenue value that this lead will generate to assist in sales forecasting and planning. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedamount")] + public Microsoft.Xrm.Sdk.Money EstimatedAmount + { + get + { + return this.GetAttributeValue("estimatedamount"); + } + set + { + this.OnPropertyChanging("EstimatedAmount"); + this.SetAttributeValue("estimatedamount", value); + this.OnPropertyChanged("EstimatedAmount"); + } + } + + /// + /// Shows the Est. Value field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedamount_base")] + public Microsoft.Xrm.Sdk.Money EstimatedAmount_Base + { + get + { + return this.GetAttributeValue("estimatedamount_base"); + } + } + + /// + /// Enter the expected close date for the lead, so that the sales team can schedule timely follow-up meetings to move the prospect to the next sales stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedclosedate")] + public System.Nullable EstimatedCloseDate + { + get + { + return this.GetAttributeValue>("estimatedclosedate"); + } + set + { + this.OnPropertyChanging("EstimatedCloseDate"); + this.SetAttributeValue("estimatedclosedate", value); + this.OnPropertyChanged("EstimatedCloseDate"); + } + } + + /// + /// Type a numeric value of the lead's estimated value, such as a product quantity, if no revenue amount can be specified in the Est. Value field. This can be used for sales forecasting and planning. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedvalue")] + public System.Nullable EstimatedValue + { + get + { + return this.GetAttributeValue>("estimatedvalue"); + } + set + { + this.OnPropertyChanging("EstimatedValue"); + this.SetAttributeValue("estimatedvalue", value); + this.OnPropertyChanged("EstimatedValue"); + } + } + + /// + /// Select whether the fit between the lead's requirements and your offerings was evaluated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("evaluatefit")] + public System.Nullable EvaluateFit + { + get + { + return this.GetAttributeValue>("evaluatefit"); + } + set + { + this.OnPropertyChanging("EvaluateFit"); + this.SetAttributeValue("evaluatefit", value); + this.OnPropertyChanged("EvaluateFit"); + } + } + + /// + /// 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 primary contact for the lead. + /// + [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 first name of the primary contact for the lead to make sure the prospect 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"); + } + } + + /// + /// Combines and shows the lead's first and last names so the full name can be displayed in views and reports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] + public string FullName + { + get + { + return this.GetAttributeValue("fullname"); + } + } + + /// + /// 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 primary industry in which the lead's business is focused, 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"); + } + } + + /// + /// Choose whether someone from the sales team contacted this lead earlier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialcommunication")] + public Microsoft.Xrm.Sdk.OptionSetValue InitialCommunication + { + get + { + return this.GetAttributeValue("initialcommunication"); + } + set + { + this.OnPropertyChanging("InitialCommunication"); + this.SetAttributeValue("initialcommunication", value); + this.OnPropertyChanged("InitialCommunication"); + } + } + + /// + /// Type the job title of the primary contact for this lead to make sure the prospect 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 last name of the primary contact for the lead to make sure the prospect 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"); + } + } + + /// + /// Shows the date when the lead 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"); + } + } + + /// + /// Unique identifier of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + set + { + this.OnPropertyChanging("LeadId"); + this.SetAttributeValue("leadid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadId = value; + } + } + + /// + /// Select a rating value to indicate the lead's potential to become a customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadqualitycode")] + public Microsoft.Xrm.Sdk.OptionSetValue LeadQualityCode + { + get + { + return this.GetAttributeValue("leadqualitycode"); + } + set + { + this.OnPropertyChanging("LeadQualityCode"); + this.SetAttributeValue("leadqualitycode", value); + this.OnPropertyChanged("LeadQualityCode"); + } + } + + /// + /// Select the primary marketing source that prompted the lead to contact you. + /// + [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"); + } + } + + /// + /// Unique identifier of the master lead for merge. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + public Microsoft.Xrm.Sdk.EntityReference MasterId + { + get + { + return this.GetAttributeValue("masterid"); + } + } + + /// + /// Tells whether the lead has been merged with another lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("merged")] + public System.Nullable Merged + { + get + { + return this.GetAttributeValue>("merged"); + } + } + + /// + /// Type the middle name or initial of the primary contact for the lead to make sure the prospect 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 primary contact for the lead. + /// + [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 date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Choose how high the level of need is for the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("need")] + public Microsoft.Xrm.Sdk.OptionSetValue Need + { + get + { + return this.GetAttributeValue("need"); + } + set + { + this.OnPropertyChanging("Need"); + this.SetAttributeValue("need", value); + this.OnPropertyChanged("Need"); + } + } + + /// + /// Type the number of employees that work at the company associated with the lead, 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"); + } + } + + /// + /// This attribute is used for Sample Service Business Processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcaseid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingCaseId + { + get + { + return this.GetAttributeValue("originatingcaseid"); + } + set + { + this.OnPropertyChanging("OriginatingCaseId"); + this.SetAttributeValue("originatingcaseid", value); + this.OnPropertyChanged("OriginatingCaseId"); + } + } + + /// + /// 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 lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the pager number for the primary contact for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pager")] + public string Pager + { + get + { + return this.GetAttributeValue("pager"); + } + set + { + this.OnPropertyChanging("Pager"); + this.SetAttributeValue("pager", value); + this.OnPropertyChanged("Pager"); + } + } + + /// + /// Choose an account to connect this lead to, so that the relationship is visible in reports 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"); + } + } + + /// + /// Choose a contact to connect this lead to, so that the relationship is visible in reports and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + public Microsoft.Xrm.Sdk.EntityReference ParentContactId + { + get + { + return this.GetAttributeValue("parentcontactid"); + } + set + { + this.OnPropertyChanging("ParentContactId"); + this.SetAttributeValue("parentcontactid", value); + this.OnPropertyChanged("ParentContactId"); + } + } + + /// + /// Shows whether the lead 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 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose whether an individual or a committee will be involved in the purchase process for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchaseprocess")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseProcess + { + get + { + return this.GetAttributeValue("purchaseprocess"); + } + set + { + this.OnPropertyChanging("PurchaseProcess"); + this.SetAttributeValue("purchaseprocess", value); + this.OnPropertyChanged("PurchaseProcess"); + } + } + + /// + /// Choose how long the lead will likely take to make the purchase, so the sales team will be aware. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchasetimeframe")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseTimeFrame + { + get + { + return this.GetAttributeValue("purchasetimeframe"); + } + set + { + this.OnPropertyChanging("PurchaseTimeFrame"); + this.SetAttributeValue("purchasetimeframe", value); + this.OnPropertyChanged("PurchaseTimeFrame"); + } + } + + /// + /// Type comments about the qualification or scoring of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualificationcomments")] + public string QualificationComments + { + get + { + return this.GetAttributeValue("qualificationcomments"); + } + set + { + this.OnPropertyChanging("QualificationComments"); + this.SetAttributeValue("qualificationcomments", value); + this.OnPropertyChanged("QualificationComments"); + } + } + + /// + /// Choose the opportunity that the lead was qualified on and then converted to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualifyingopportunityid")] + public Microsoft.Xrm.Sdk.EntityReference QualifyingOpportunityId + { + get + { + return this.GetAttributeValue("qualifyingopportunityid"); + } + set + { + this.OnPropertyChanging("QualifyingOpportunityId"); + this.SetAttributeValue("qualifyingopportunityid", value); + this.OnPropertyChanged("QualifyingOpportunityId"); + } + } + + /// + /// Related Campaign Response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RelatedObjectId + { + get + { + return this.GetAttributeValue("relatedobjectid"); + } + set + { + this.OnPropertyChanging("RelatedObjectId"); + this.SetAttributeValue("relatedobjectid", value); + this.OnPropertyChanged("RelatedObjectId"); + } + } + + /// + /// Type the annual revenue of the company associated with the lead to provide an understanding of the prospect's business. + /// + [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 field converted to the system's default base currency. The calculation uses 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"); + } + } + + /// + /// Select the sales stage of this lead to aid the sales team in their efforts to convert this lead to an opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstage")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStage + { + get + { + return this.GetAttributeValue("salesstage"); + } + set + { + this.OnPropertyChanging("SalesStage"); + this.SetAttributeValue("salesstage", value); + this.OnPropertyChanged("SalesStage"); + } + } + + /// + /// Select the sales process stage for the lead to help determine the probability of the lead converting to an opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstagecode")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStageCode + { + get + { + return this.GetAttributeValue("salesstagecode"); + } + set + { + this.OnPropertyChanging("SalesStageCode"); + this.SetAttributeValue("salesstagecode", value); + this.OnPropertyChanged("SalesStageCode"); + } + } + + /// + /// Type the salutation of the primary contact for this lead to make sure the prospect 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"); + } + } + + /// + /// Enter the date and time of the prospecting follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_prospect")] + public System.Nullable ScheduleFollowUp_Prospect + { + get + { + return this.GetAttributeValue>("schedulefollowup_prospect"); + } + set + { + this.OnPropertyChanging("ScheduleFollowUp_Prospect"); + this.SetAttributeValue("schedulefollowup_prospect", value); + this.OnPropertyChanged("ScheduleFollowUp_Prospect"); + } + } + + /// + /// Enter the date and time of the qualifying follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_qualify")] + public System.Nullable ScheduleFollowUp_Qualify + { + get + { + return this.GetAttributeValue>("schedulefollowup_qualify"); + } + set + { + this.OnPropertyChanging("ScheduleFollowUp_Qualify"); + this.SetAttributeValue("schedulefollowup_qualify", value); + this.OnPropertyChanged("ScheduleFollowUp_Qualify"); + } + } + + /// + /// Type the Standard Industrial Classification (SIC) code that indicates the lead'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"); + } + } + + /// + /// 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 lead is open, qualified, or disqualified. Qualified and disqualified leads 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 ((Xrm.Framework.CI.Common.Entities.LeadState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.LeadState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the lead'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"); + } + } + + /// + /// Type a subject or descriptive name, such as the expected order, company name, or marketing source list, to identify the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// Type the work phone number for the primary contact for the lead. + /// + [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 the home phone number for the primary contact for the lead. + /// + [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 an alternate phone number for the primary contact for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type the website URL for the company associated with this lead. + /// + [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 lead's company name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomicompanyname")] + public string YomiCompanyName + { + get + { + return this.GetAttributeValue("yomicompanyname"); + } + set + { + this.OnPropertyChanging("YomiCompanyName"); + this.SetAttributeValue("yomicompanyname", value); + this.OnPropertyChanged("YomiCompanyName"); + } + } + + /// + /// Type the phonetic spelling of the lead's first name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Combines and shows the lead's Yomi first and last names so 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 lead's last name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [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 lead's middle name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the prospect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] + public string YomiMiddleName + { + get + { + return this.GetAttributeValue("yomimiddlename"); + } + set + { + this.OnPropertyChanging("YomiMiddleName"); + this.SetAttributeValue("yomimiddlename", value); + this.OnPropertyChanged("YomiMiddleName"); + } + } + + /// + /// 1:N account_originating_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_originating_lead")] + public System.Collections.Generic.IEnumerable account_originating_lead + { + get + { + return this.GetRelatedEntities("account_originating_lead", null); + } + set + { + this.OnPropertyChanging("account_originating_lead"); + this.SetRelatedEntities("account_originating_lead", null, value); + this.OnPropertyChanged("account_originating_lead"); + } + } + + /// + /// 1:N contact_originating_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_originating_lead")] + public System.Collections.Generic.IEnumerable contact_originating_lead + { + get + { + return this.GetRelatedEntities("contact_originating_lead", null); + } + set + { + this.OnPropertyChanging("contact_originating_lead"); + this.SetRelatedEntities("contact_originating_lead", null, value); + this.OnPropertyChanged("contact_originating_lead"); + } + } + + /// + /// 1:N CreatedLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedLead_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedLead_BulkOperationLogs"); + this.SetRelatedEntities("CreatedLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedLead_BulkOperationLogs"); + } + } + + /// + /// 1:N lead_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_activity_parties")] + public System.Collections.Generic.IEnumerable lead_activity_parties + { + get + { + return this.GetRelatedEntities("lead_activity_parties", null); + } + set + { + this.OnPropertyChanging("lead_activity_parties"); + this.SetRelatedEntities("lead_activity_parties", null, value); + this.OnPropertyChanged("lead_activity_parties"); + } + } + + /// + /// 1:N Lead_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ActivityPointers")] + public System.Collections.Generic.IEnumerable Lead_ActivityPointers + { + get + { + return this.GetRelatedEntities("Lead_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Lead_ActivityPointers"); + this.SetRelatedEntities("Lead_ActivityPointers", null, value); + this.OnPropertyChanged("Lead_ActivityPointers"); + } + } + + /// + /// 1:N lead_addresses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_addresses")] + public System.Collections.Generic.IEnumerable lead_addresses + { + get + { + return this.GetRelatedEntities("lead_addresses", null); + } + set + { + this.OnPropertyChanging("lead_addresses"); + this.SetRelatedEntities("lead_addresses", null, value); + this.OnPropertyChanged("lead_addresses"); + } + } + + /// + /// 1:N Lead_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Annotation")] + public System.Collections.Generic.IEnumerable Lead_Annotation + { + get + { + return this.GetRelatedEntities("Lead_Annotation", null); + } + set + { + this.OnPropertyChanging("Lead_Annotation"); + this.SetRelatedEntities("Lead_Annotation", null, value); + this.OnPropertyChanged("Lead_Annotation"); + } + } + + /// + /// 1:N Lead_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Appointments")] + public System.Collections.Generic.IEnumerable Lead_Appointments + { + get + { + return this.GetRelatedEntities("Lead_Appointments", null); + } + set + { + this.OnPropertyChanging("Lead_Appointments"); + this.SetRelatedEntities("Lead_Appointments", null, value); + this.OnPropertyChanged("Lead_Appointments"); + } + } + + /// + /// 1:N Lead_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_AsyncOperations")] + public System.Collections.Generic.IEnumerable Lead_AsyncOperations + { + get + { + return this.GetRelatedEntities("Lead_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Lead_AsyncOperations"); + this.SetRelatedEntities("Lead_AsyncOperations", null, value); + this.OnPropertyChanged("Lead_AsyncOperations"); + } + } + + /// + /// 1:N Lead_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Lead_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Lead_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Lead_BulkDeleteFailures"); + this.SetRelatedEntities("Lead_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Lead_BulkDeleteFailures"); + } + } + + /// + /// 1:N lead_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections1")] + public System.Collections.Generic.IEnumerable lead_connections1 + { + get + { + return this.GetRelatedEntities("lead_connections1", null); + } + set + { + this.OnPropertyChanging("lead_connections1"); + this.SetRelatedEntities("lead_connections1", null, value); + this.OnPropertyChanged("lead_connections1"); + } + } + + /// + /// 1:N lead_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_connections2")] + public System.Collections.Generic.IEnumerable lead_connections2 + { + get + { + return this.GetRelatedEntities("lead_connections2", null); + } + set + { + this.OnPropertyChanging("lead_connections2"); + this.SetRelatedEntities("lead_connections2", null, value); + this.OnPropertyChanged("lead_connections2"); + } + } + + /// + /// 1:N Lead_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Lead_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Lead_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Lead_DuplicateBaseRecord"); + this.SetRelatedEntities("Lead_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Lead_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Lead_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Lead_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Lead_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Lead_DuplicateMatchingRecord"); + this.SetRelatedEntities("Lead_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Lead_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Lead_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Emails")] + public System.Collections.Generic.IEnumerable Lead_Emails + { + get + { + return this.GetRelatedEntities("Lead_Emails", null); + } + set + { + this.OnPropertyChanging("Lead_Emails"); + this.SetRelatedEntities("Lead_Emails", null, value); + this.OnPropertyChanged("Lead_Emails"); + } + } + + /// + /// 1:N Lead_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Faxes")] + public System.Collections.Generic.IEnumerable Lead_Faxes + { + get + { + return this.GetRelatedEntities("Lead_Faxes", null); + } + set + { + this.OnPropertyChanging("Lead_Faxes"); + this.SetRelatedEntities("Lead_Faxes", null, value); + this.OnPropertyChanged("Lead_Faxes"); + } + } + + /// + /// 1:N Lead_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Letters")] + public System.Collections.Generic.IEnumerable Lead_Letters + { + get + { + return this.GetRelatedEntities("Lead_Letters", null); + } + set + { + this.OnPropertyChanging("Lead_Letters"); + this.SetRelatedEntities("Lead_Letters", null, value); + this.OnPropertyChanged("Lead_Letters"); + } + } + + /// + /// 1:N lead_master_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlead_master_lead + { + get + { + return this.GetRelatedEntities("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlead_master_lead"); + this.SetRelatedEntities("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlead_master_lead"); + } + } + + /// + /// 1:N Lead_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Phonecalls")] + public System.Collections.Generic.IEnumerable Lead_Phonecalls + { + get + { + return this.GetRelatedEntities("Lead_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Lead_Phonecalls"); + this.SetRelatedEntities("Lead_Phonecalls", null, value); + this.OnPropertyChanged("Lead_Phonecalls"); + } + } + + /// + /// 1:N lead_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_PostFollows")] + public System.Collections.Generic.IEnumerable lead_PostFollows + { + get + { + return this.GetRelatedEntities("lead_PostFollows", null); + } + set + { + this.OnPropertyChanging("lead_PostFollows"); + this.SetRelatedEntities("lead_PostFollows", null, value); + this.OnPropertyChanged("lead_PostFollows"); + } + } + + /// + /// 1:N lead_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable lead_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("lead_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("lead_principalobjectattributeaccess"); + this.SetRelatedEntities("lead_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("lead_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Lead_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ProcessSessions")] + public System.Collections.Generic.IEnumerable Lead_ProcessSessions + { + get + { + return this.GetRelatedEntities("Lead_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Lead_ProcessSessions"); + this.SetRelatedEntities("Lead_ProcessSessions", null, value); + this.OnPropertyChanged("Lead_ProcessSessions"); + } + } + + /// + /// 1:N Lead_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Lead_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Lead_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Lead_RecurringAppointmentMasters"); + this.SetRelatedEntities("Lead_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Lead_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Lead_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Lead_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Lead_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Lead_ServiceAppointments"); + this.SetRelatedEntities("Lead_ServiceAppointments", null, value); + this.OnPropertyChanged("Lead_ServiceAppointments"); + } + } + + /// + /// 1:N Lead_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Lead_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Lead_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Lead_SharepointDocumentLocation"); + this.SetRelatedEntities("Lead_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Lead_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Lead_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Tasks")] + public System.Collections.Generic.IEnumerable Lead_Tasks + { + get + { + return this.GetRelatedEntities("Lead_Tasks", null); + } + set + { + this.OnPropertyChanging("Lead_Tasks"); + this.SetRelatedEntities("Lead_Tasks", null, value); + this.OnPropertyChanged("Lead_Tasks"); + } + } + + /// + /// 1:N opportunity_originating_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_originating_lead")] + public System.Collections.Generic.IEnumerable opportunity_originating_lead + { + get + { + return this.GetRelatedEntities("opportunity_originating_lead", null); + } + set + { + this.OnPropertyChanging("opportunity_originating_lead"); + this.SetRelatedEntities("opportunity_originating_lead", null, value); + this.OnPropertyChanged("opportunity_originating_lead"); + } + } + + /// + /// 1:N SourceLead_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SourceLead_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable SourceLead_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("SourceLead_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("SourceLead_BulkOperationLogs"); + this.SetRelatedEntities("SourceLead_BulkOperationLogs", null, value); + this.OnPropertyChanged("SourceLead_BulkOperationLogs"); + } + } + + /// + /// 1:N userentityinstancedata_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lead")] + public System.Collections.Generic.IEnumerable userentityinstancedata_lead + { + get + { + return this.GetRelatedEntities("userentityinstancedata_lead", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lead"); + this.SetRelatedEntities("userentityinstancedata_lead", null, value); + this.OnPropertyChanged("userentityinstancedata_lead"); + } + } + + /// + /// N:N accountleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("accountleads_association")] + public System.Collections.Generic.IEnumerable accountleads_association + { + get + { + return this.GetRelatedEntities("accountleads_association", null); + } + set + { + this.OnPropertyChanging("accountleads_association"); + this.SetRelatedEntities("accountleads_association", null, value); + this.OnPropertyChanged("accountleads_association"); + } + } + + /// + /// N:N contactleads_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactleads_association")] + public System.Collections.Generic.IEnumerable contactleads_association + { + get + { + return this.GetRelatedEntities("contactleads_association", null); + } + set + { + this.OnPropertyChanging("contactleads_association"); + this.SetRelatedEntities("contactleads_association", null, value); + this.OnPropertyChanged("contactleads_association"); + } + } + + /// + /// N:N leadcompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadcompetitors_association")] + public System.Collections.Generic.IEnumerable leadcompetitors_association + { + get + { + return this.GetRelatedEntities("leadcompetitors_association", null); + } + set + { + this.OnPropertyChanging("leadcompetitors_association"); + this.SetRelatedEntities("leadcompetitors_association", null, value); + this.OnPropertyChanged("leadcompetitors_association"); + } + } + + /// + /// N:N leadproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadproduct_association")] + public System.Collections.Generic.IEnumerable leadproduct_association + { + get + { + return this.GetRelatedEntities("leadproduct_association", null); + } + set + { + this.OnPropertyChanging("leadproduct_association"); + this.SetRelatedEntities("leadproduct_association", null, value); + this.OnPropertyChanged("leadproduct_association"); + } + } + + /// + /// N:N listlead_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listlead_association")] + public System.Collections.Generic.IEnumerable listlead_association + { + get + { + return this.GetRelatedEntities("listlead_association", null); + } + set + { + this.OnPropertyChanging("listlead_association"); + this.SetRelatedEntities("listlead_association", null, value); + this.OnPropertyChanged("listlead_association"); + } + } + + /// + /// N:1 business_unit_leads + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_leads")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_leads + { + get + { + return this.GetRelatedEntity("business_unit_leads", null); + } + } + + /// + /// N:1 campaign_leads + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_leads")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_leads + { + get + { + return this.GetRelatedEntity("campaign_leads", null); + } + set + { + this.OnPropertyChanging("campaign_leads"); + this.SetRelatedEntity("campaign_leads", null, value); + this.OnPropertyChanged("campaign_leads"); + } + } + + /// + /// N:1 CampaignResponse_Lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_Lead")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_Lead + { + get + { + return this.GetRelatedEntity("CampaignResponse_Lead", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_Lead"); + this.SetRelatedEntity("CampaignResponse_Lead", null, value); + this.OnPropertyChanged("CampaignResponse_Lead"); + } + } + + /// + /// N:1 lead_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account lead_customer_accounts + { + get + { + return this.GetRelatedEntity("lead_customer_accounts", null); + } + set + { + this.OnPropertyChanging("lead_customer_accounts"); + this.SetRelatedEntity("lead_customer_accounts", null, value); + this.OnPropertyChanged("lead_customer_accounts"); + } + } + + /// + /// N:1 lead_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact lead_customer_contacts + { + get + { + return this.GetRelatedEntity("lead_customer_contacts", null); + } + set + { + this.OnPropertyChanging("lead_customer_contacts"); + this.SetRelatedEntity("lead_customer_contacts", null, value); + this.OnPropertyChanged("lead_customer_contacts"); + } + } + + /// + /// N:1 lead_master_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Lead Referencinglead_master_lead + { + get + { + return this.GetRelatedEntity("lead_master_lead", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lead_owning_team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_team")] + public Xrm.Framework.CI.Common.Entities.Team lead_owning_team + { + get + { + return this.GetRelatedEntity("lead_owning_team", null); + } + } + + /// + /// N:1 lead_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser lead_owning_user + { + get + { + return this.GetRelatedEntity("lead_owning_user", null); + } + } + + /// + /// N:1 lead_parent_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_account")] + public Xrm.Framework.CI.Common.Entities.Account lead_parent_account + { + get + { + return this.GetRelatedEntity("lead_parent_account", null); + } + set + { + this.OnPropertyChanging("lead_parent_account"); + this.SetRelatedEntity("lead_parent_account", null, value); + this.OnPropertyChanged("lead_parent_account"); + } + } + + /// + /// N:1 lead_parent_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_parent_contact")] + public Xrm.Framework.CI.Common.Entities.Contact lead_parent_contact + { + get + { + return this.GetRelatedEntity("lead_parent_contact", null); + } + set + { + this.OnPropertyChanging("lead_parent_contact"); + this.SetRelatedEntity("lead_parent_contact", null, value); + this.OnPropertyChanged("lead_parent_contact"); + } + } + + /// + /// N:1 lead_qualifying_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualifyingopportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_qualifying_opportunity")] + public Xrm.Framework.CI.Common.Entities.Opportunity lead_qualifying_opportunity + { + get + { + return this.GetRelatedEntity("lead_qualifying_opportunity", null); + } + set + { + this.OnPropertyChanging("lead_qualifying_opportunity"); + this.SetRelatedEntity("lead_qualifying_opportunity", null, value); + this.OnPropertyChanged("lead_qualifying_opportunity"); + } + } + + /// + /// N:1 lk_lead_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lead_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lead_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_lead_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lead_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lead_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_leadbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadbase_createdby + { + get + { + return this.GetRelatedEntity("lk_leadbase_createdby", null); + } + } + + /// + /// N:1 lk_leadbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_leadbase_modifiedby", null); + } + } + + /// + /// N:1 OriginatingCase_Lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingcaseid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OriginatingCase_Lead")] + public Xrm.Framework.CI.Common.Entities.Incident OriginatingCase_Lead + { + get + { + return this.GetRelatedEntity("OriginatingCase_Lead", null); + } + set + { + this.OnPropertyChanging("OriginatingCase_Lead"); + this.SetRelatedEntity("OriginatingCase_Lead", null, value); + this.OnPropertyChanged("OriginatingCase_Lead"); + } + } + + /// + /// N:1 processstage_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lead")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_lead + { + get + { + return this.GetRelatedEntity("processstage_lead", null); + } + set + { + this.OnPropertyChanging("processstage_lead"); + this.SetRelatedEntity("processstage_lead", null, value); + this.OnPropertyChanged("processstage_lead"); + } + } + + /// + /// N:1 transactioncurrency_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_lead")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_lead + { + get + { + return this.GetRelatedEntity("transactioncurrency_lead", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_lead"); + this.SetRelatedEntity("transactioncurrency_lead", null, value); + this.OnPropertyChanged("transactioncurrency_lead"); + } + } + } + + /// + /// Address information for a lead. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("leadaddress")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LeadAddress : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LeadAddress() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "leadaddress"; + + public const int EntityTypeCode = 1017; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressnumber")] + public System.Nullable AddressNumber + { + get + { + return this.GetAttributeValue>("addressnumber"); + } + set + { + this.OnPropertyChanging("AddressNumber"); + this.SetAttributeValue("addressnumber", value); + this.OnPropertyChanged("AddressNumber"); + } + } + + /// + /// Type of address for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AddressTypeCode + { + get + { + return this.GetAttributeValue("addresstypecode"); + } + set + { + this.OnPropertyChanging("AddressTypeCode"); + this.SetAttributeValue("addresstypecode", value); + this.OnPropertyChanged("AddressTypeCode"); + } + } + + /// + /// City name in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("city")] + public string City + { + get + { + return this.GetAttributeValue("city"); + } + set + { + this.OnPropertyChanging("City"); + this.SetAttributeValue("city", value); + this.OnPropertyChanged("City"); + } + } + + /// + /// Shows the complete address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("composite")] + public string Composite + { + get + { + return this.GetAttributeValue("composite"); + } + } + + /// + /// Country/region name in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("country")] + public string Country + { + get + { + return this.GetAttributeValue("country"); + } + set + { + this.OnPropertyChanging("Country"); + this.SetAttributeValue("country", value); + this.OnPropertyChanged("Country"); + } + } + + /// + /// County name in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("county")] + public string County + { + get + { + return this.GetAttributeValue("county"); + } + set + { + this.OnPropertyChanging("County"); + this.SetAttributeValue("county", value); + this.OnPropertyChanged("County"); + } + } + + /// + /// Unique identifier of the user who created the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the lead address 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 leadaddress. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Exchange rate for the currency associated with the leadaddress with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Fax number for the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// Latitude for the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("latitude")] + public System.Nullable Latitude + { + get + { + return this.GetAttributeValue>("latitude"); + } + set + { + this.OnPropertyChanging("Latitude"); + this.SetAttributeValue("latitude", value); + this.OnPropertyChanged("Latitude"); + } + } + + /// + /// Unique identifier of the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadaddressid")] + public System.Nullable LeadAddressId + { + get + { + return this.GetAttributeValue>("leadaddressid"); + } + set + { + this.OnPropertyChanging("LeadAddressId"); + this.SetAttributeValue("leadaddressid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadAddressId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadaddressid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadAddressId = value; + } + } + + /// + /// First line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line1")] + public string Line1 + { + get + { + return this.GetAttributeValue("line1"); + } + set + { + this.OnPropertyChanging("Line1"); + this.SetAttributeValue("line1", value); + this.OnPropertyChanged("Line1"); + } + } + + /// + /// Second line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line2")] + public string Line2 + { + get + { + return this.GetAttributeValue("line2"); + } + set + { + this.OnPropertyChanging("Line2"); + this.SetAttributeValue("line2", value); + this.OnPropertyChanged("Line2"); + } + } + + /// + /// Third line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line3")] + public string Line3 + { + get + { + return this.GetAttributeValue("line3"); + } + set + { + this.OnPropertyChanging("Line3"); + this.SetAttributeValue("line3", value); + this.OnPropertyChanged("Line3"); + } + } + + /// + /// Longitude for the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longitude")] + public System.Nullable Longitude + { + get + { + return this.GetAttributeValue>("longitude"); + } + set + { + this.OnPropertyChanging("Longitude"); + this.SetAttributeValue("longitude", value); + this.OnPropertyChanged("Longitude"); + } + } + + /// + /// Unique identifier of the user who last modified the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the lead address 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 leadaddress. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name used to identify the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the parent object with which the lead address is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + public Microsoft.Xrm.Sdk.EntityReference ParentId + { + get + { + return this.GetAttributeValue("parentid"); + } + set + { + this.OnPropertyChanging("ParentId"); + this.SetAttributeValue("parentid", value); + this.OnPropertyChanged("ParentId"); + } + } + + /// + /// ZIP Code or postal code in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postalcode")] + public string PostalCode + { + get + { + return this.GetAttributeValue("postalcode"); + } + set + { + this.OnPropertyChanging("PostalCode"); + this.SetAttributeValue("postalcode", value); + this.OnPropertyChanged("PostalCode"); + } + } + + /// + /// Post office box number in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postofficebox")] + public string PostOfficeBox + { + get + { + return this.GetAttributeValue("postofficebox"); + } + set + { + this.OnPropertyChanging("PostOfficeBox"); + this.SetAttributeValue("postofficebox", value); + this.OnPropertyChanged("PostOfficeBox"); + } + } + + /// + /// Method of shipment for the lead. + /// + [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"); + } + } + + /// + /// State or province in the address for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stateorprovince")] + public string StateOrProvince + { + get + { + return this.GetAttributeValue("stateorprovince"); + } + set + { + this.OnPropertyChanging("StateOrProvince"); + this.SetAttributeValue("stateorprovince", value); + this.OnPropertyChanged("StateOrProvince"); + } + } + + /// + /// First telephone number for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone1")] + public string Telephone1 + { + get + { + return this.GetAttributeValue("telephone1"); + } + set + { + this.OnPropertyChanging("Telephone1"); + this.SetAttributeValue("telephone1", value); + this.OnPropertyChanged("Telephone1"); + } + } + + /// + /// Second telephone number for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone2")] + public string Telephone2 + { + get + { + return this.GetAttributeValue("telephone2"); + } + set + { + this.OnPropertyChanging("Telephone2"); + this.SetAttributeValue("telephone2", value); + this.OnPropertyChanged("Telephone2"); + } + } + + /// + /// Third telephone number for the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// Unique identifier of the currency associated with the leadaddress. + /// + [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"); + } + } + + /// + /// United Parcel Service (UPS) zone for the address of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upszone")] + public string UPSZone + { + get + { + return this.GetAttributeValue("upszone"); + } + set + { + this.OnPropertyChanging("UPSZone"); + this.SetAttributeValue("upszone", value); + this.OnPropertyChanged("UPSZone"); + } + } + + /// + /// UTC offset for the lead address. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// Version number of the lead address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_leadaddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadaddress")] + public System.Collections.Generic.IEnumerable userentityinstancedata_leadaddress + { + get + { + return this.GetRelatedEntities("userentityinstancedata_leadaddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadaddress"); + this.SetRelatedEntities("userentityinstancedata_leadaddress", null, value); + this.OnPropertyChanged("userentityinstancedata_leadaddress"); + } + } + + /// + /// N:1 lead_addresses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_addresses")] + public Xrm.Framework.CI.Common.Entities.Lead lead_addresses + { + get + { + return this.GetRelatedEntity("lead_addresses", null); + } + set + { + this.OnPropertyChanging("lead_addresses"); + this.SetRelatedEntity("lead_addresses", null, value); + this.OnPropertyChanged("lead_addresses"); + } + } + + /// + /// N:1 lk_leadaddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddress_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_leadaddress_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_leadaddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_leadaddress_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_leadaddressbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddressbase_createdby + { + get + { + return this.GetRelatedEntity("lk_leadaddressbase_createdby", null); + } + } + + /// + /// N:1 lk_leadaddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_leadaddressbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_leadaddressbase_modifiedby", null); + } + } + + /// + /// N:1 TransactionCurrency_LeadAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_LeadAddress")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_LeadAddress + { + get + { + return this.GetRelatedEntity("TransactionCurrency_LeadAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_LeadAddress"); + this.SetRelatedEntity("TransactionCurrency_LeadAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_LeadAddress"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("leadcompetitors")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LeadCompetitors : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LeadCompetitors() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "leadcompetitors"; + + public const int EntityTypeCode = 24; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the lead competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadcompetitorid")] + public System.Nullable LeadCompetitorId + { + get + { + return this.GetAttributeValue>("leadcompetitorid"); + } + set + { + this.OnPropertyChanging("LeadCompetitorId"); + this.SetAttributeValue("leadcompetitorid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadCompetitorId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadcompetitorid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadCompetitorId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N leadcompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadcompetitors_association")] + public System.Collections.Generic.IEnumerable leadcompetitors_association + { + get + { + return this.GetRelatedEntities("leadcompetitors_association", null); + } + set + { + this.OnPropertyChanging("leadcompetitors_association"); + this.SetRelatedEntities("leadcompetitors_association", null, value); + this.OnPropertyChanged("leadcompetitors_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("leadproduct")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LeadProduct : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LeadProduct() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "leadproduct"; + + public const int EntityTypeCode = 27; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadid")] + public System.Nullable LeadId + { + get + { + return this.GetAttributeValue>("leadid"); + } + } + + /// + /// Unique identifier of the lead product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadproductid")] + public System.Nullable LeadProductId + { + get + { + return this.GetAttributeValue>("leadproductid"); + } + set + { + this.OnPropertyChanging("LeadProductId"); + this.SetAttributeValue("leadproductid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LeadProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadproductid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LeadProductId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_leadproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadproduct")] + public System.Collections.Generic.IEnumerable userentityinstancedata_leadproduct + { + get + { + return this.GetRelatedEntities("userentityinstancedata_leadproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadproduct"); + this.SetRelatedEntities("userentityinstancedata_leadproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_leadproduct"); + } + } + + /// + /// N:N leadproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadproduct_association")] + public System.Collections.Generic.IEnumerable leadproduct_association + { + get + { + return this.GetRelatedEntities("leadproduct_association", null); + } + set + { + this.OnPropertyChanging("leadproduct_association"); + this.SetRelatedEntities("leadproduct_association", null, value); + this.OnPropertyChanged("leadproduct_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum LetterState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that tracks the delivery of a letter. The activity can contain the electronic copy of the letter. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("letter")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Letter : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Letter() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "letter"; + + public const int EntityTypeCode = 4207; + + 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 letter 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Type the number of minutes spent creating and sending the letter. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the letter. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual time to create and send the letter. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the letter. By default, it displays the date and time when the activity was created, but can be edited to capture the actual time to create and send the letter. + /// + [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"); + } + } + + /// + /// Type the complete recipient address for the letter to ensure timely delivery. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address")] + public string Address + { + get + { + return this.GetAttributeValue("address"); + } + set + { + this.OnPropertyChanging("Address"); + this.SetAttributeValue("address", value); + this.OnPropertyChanged("Address"); + } + } + + /// + /// Enter the recipients that are included in the letter distribution, but are not displayed to other recipients. + /// + [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"); + } + } + + /// + /// Type a category to identify the letter type, such as sales offer or past due notice, to tie the letter to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Enter the recipients that should be copied on the letter. + /// + [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 who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type the letter body or additional information to describe the letter, such as the primary message or the products and services described. + /// + [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 the direction of the letter as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 account, contact, lead, or user who sent the letter. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows whether the letter 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"); + } + } + + /// + /// Shows 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"); + } + } + + /// + /// Shows whether the letter activity was created by 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 letter 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 letter 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 letter activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the letter 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"); + } + } + + /// + /// Scheduled duration of the letter activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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 for an associated service. + /// + [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"); + } + } + + /// + /// 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 letter is open, completed, or canceled. Completed and canceled letters are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.LetterState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.LetterState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the letter'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"); + } + } + + /// + /// Type a subcategory to identify the letter type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the letter. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, or user recipients for the letter. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 letter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N letter_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_activity_parties")] + public System.Collections.Generic.IEnumerable letter_activity_parties + { + get + { + return this.GetRelatedEntities("letter_activity_parties", null); + } + set + { + this.OnPropertyChanging("letter_activity_parties"); + this.SetRelatedEntities("letter_activity_parties", null, value); + this.OnPropertyChanged("letter_activity_parties"); + } + } + + /// + /// 1:N Letter_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_Annotation")] + public System.Collections.Generic.IEnumerable Letter_Annotation + { + get + { + return this.GetRelatedEntities("Letter_Annotation", null); + } + set + { + this.OnPropertyChanging("Letter_Annotation"); + this.SetRelatedEntities("Letter_Annotation", null, value); + this.OnPropertyChanged("Letter_Annotation"); + } + } + + /// + /// 1:N Letter_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_AsyncOperations")] + public System.Collections.Generic.IEnumerable Letter_AsyncOperations + { + get + { + return this.GetRelatedEntities("Letter_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Letter_AsyncOperations"); + this.SetRelatedEntities("Letter_AsyncOperations", null, value); + this.OnPropertyChanged("Letter_AsyncOperations"); + } + } + + /// + /// 1:N Letter_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Letter_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Letter_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Letter_BulkDeleteFailures"); + this.SetRelatedEntities("Letter_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Letter_BulkDeleteFailures"); + } + } + + /// + /// 1:N letter_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_campaignresponse")] + public System.Collections.Generic.IEnumerable letter_campaignresponse + { + get + { + return this.GetRelatedEntities("letter_campaignresponse", null); + } + set + { + this.OnPropertyChanging("letter_campaignresponse"); + this.SetRelatedEntities("letter_campaignresponse", null, value); + this.OnPropertyChanged("letter_campaignresponse"); + } + } + + /// + /// 1:N letter_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections1")] + public System.Collections.Generic.IEnumerable letter_connections1 + { + get + { + return this.GetRelatedEntities("letter_connections1", null); + } + set + { + this.OnPropertyChanging("letter_connections1"); + this.SetRelatedEntities("letter_connections1", null, value); + this.OnPropertyChanged("letter_connections1"); + } + } + + /// + /// 1:N letter_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_connections2")] + public System.Collections.Generic.IEnumerable letter_connections2 + { + get + { + return this.GetRelatedEntities("letter_connections2", null); + } + set + { + this.OnPropertyChanging("letter_connections2"); + this.SetRelatedEntities("letter_connections2", null, value); + this.OnPropertyChanged("letter_connections2"); + } + } + + /// + /// 1:N Letter_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Letter_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Letter_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Letter_DuplicateBaseRecord"); + this.SetRelatedEntities("Letter_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Letter_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Letter_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Letter_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Letter_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Letter_DuplicateMatchingRecord"); + this.SetRelatedEntities("Letter_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Letter_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N letter_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable letter_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("letter_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("letter_principalobjectattributeaccess"); + this.SetRelatedEntities("letter_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("letter_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Letter_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_ProcessSessions")] + public System.Collections.Generic.IEnumerable Letter_ProcessSessions + { + get + { + return this.GetRelatedEntities("Letter_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Letter_ProcessSessions"); + this.SetRelatedEntities("Letter_ProcessSessions", null, value); + this.OnPropertyChanged("Letter_ProcessSessions"); + } + } + + /// + /// 1:N Letter_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_QueueItem")] + public System.Collections.Generic.IEnumerable Letter_QueueItem + { + get + { + return this.GetRelatedEntities("Letter_QueueItem", null); + } + set + { + this.OnPropertyChanging("Letter_QueueItem"); + this.SetRelatedEntities("Letter_QueueItem", null, value); + this.OnPropertyChanged("Letter_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_letter")] + public System.Collections.Generic.IEnumerable userentityinstancedata_letter + { + get + { + return this.GetRelatedEntities("userentityinstancedata_letter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_letter"); + this.SetRelatedEntities("userentityinstancedata_letter", null, value); + this.OnPropertyChanged("userentityinstancedata_letter"); + } + } + + /// + /// N:1 Account_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Letters")] + public Xrm.Framework.CI.Common.Entities.Account Account_Letters + { + get + { + return this.GetRelatedEntity("Account_Letters", null); + } + set + { + this.OnPropertyChanging("Account_Letters"); + this.SetRelatedEntity("Account_Letters", null, value); + this.OnPropertyChanged("Account_Letters"); + } + } + + /// + /// N:1 activity_pointer_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_letter")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_letter + { + get + { + return this.GetRelatedEntity("activity_pointer_letter", null); + } + set + { + this.OnPropertyChanging("activity_pointer_letter"); + this.SetRelatedEntity("activity_pointer_letter", null, value); + this.OnPropertyChanged("activity_pointer_letter"); + } + } + + /// + /// N:1 BulkOperation_Letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Letter")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Letter + { + get + { + return this.GetRelatedEntity("BulkOperation_Letter", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Letter"); + this.SetRelatedEntity("BulkOperation_Letter", null, value); + this.OnPropertyChanged("BulkOperation_Letter"); + } + } + + /// + /// N:1 business_unit_letter_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_letter_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_letter_activities + { + get + { + return this.GetRelatedEntity("business_unit_letter_activities", null); + } + } + + /// + /// N:1 Campaign_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Letters")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Letters + { + get + { + return this.GetRelatedEntity("Campaign_Letters", null); + } + set + { + this.OnPropertyChanging("Campaign_Letters"); + this.SetRelatedEntity("Campaign_Letters", null, value); + this.OnPropertyChanged("Campaign_Letters"); + } + } + + /// + /// N:1 CampaignActivity_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Letters")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Letters + { + get + { + return this.GetRelatedEntity("CampaignActivity_Letters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Letters"); + this.SetRelatedEntity("CampaignActivity_Letters", null, value); + this.OnPropertyChanged("CampaignActivity_Letters"); + } + } + + /// + /// N:1 Contact_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Letters")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Letters + { + get + { + return this.GetRelatedEntity("Contact_Letters", null); + } + set + { + this.OnPropertyChanging("Contact_Letters"); + this.SetRelatedEntity("Contact_Letters", null, value); + this.OnPropertyChanged("Contact_Letters"); + } + } + + /// + /// N:1 Contract_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Letters")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Letters + { + get + { + return this.GetRelatedEntity("Contract_Letters", null); + } + set + { + this.OnPropertyChanging("Contract_Letters"); + this.SetRelatedEntity("Contract_Letters", null, value); + this.OnPropertyChanged("Contract_Letters"); + } + } + + /// + /// N:1 Incident_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Letters")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Letters + { + get + { + return this.GetRelatedEntity("Incident_Letters", null); + } + set + { + this.OnPropertyChanging("Incident_Letters"); + this.SetRelatedEntity("Incident_Letters", null, value); + this.OnPropertyChanged("Incident_Letters"); + } + } + + /// + /// N:1 Invoice_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Letters")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Letters + { + get + { + return this.GetRelatedEntity("Invoice_Letters", null); + } + set + { + this.OnPropertyChanging("Invoice_Letters"); + this.SetRelatedEntity("Invoice_Letters", null, value); + this.OnPropertyChanged("Invoice_Letters"); + } + } + + /// + /// N:1 Lead_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Letters")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Letters + { + get + { + return this.GetRelatedEntity("Lead_Letters", null); + } + set + { + this.OnPropertyChanging("Lead_Letters"); + this.SetRelatedEntity("Lead_Letters", null, value); + this.OnPropertyChanged("Lead_Letters"); + } + } + + /// + /// N:1 lk_letter_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_createdby + { + get + { + return this.GetRelatedEntity("lk_letter_createdby", null); + } + } + + /// + /// N:1 lk_letter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_letter_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_letter_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_modifiedby + { + get + { + return this.GetRelatedEntity("lk_letter_modifiedby", null); + } + } + + /// + /// N:1 lk_letter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_letter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_letter_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Letters")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Letters + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Letters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Letters"); + this.SetRelatedEntity("msdyn_postalbum_Letters", null, value); + this.OnPropertyChanged("msdyn_postalbum_Letters"); + } + } + + /// + /// N:1 Opportunity_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Letters")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Letters + { + get + { + return this.GetRelatedEntity("Opportunity_Letters", null); + } + set + { + this.OnPropertyChanging("Opportunity_Letters"); + this.SetRelatedEntity("Opportunity_Letters", null, value); + this.OnPropertyChanged("Opportunity_Letters"); + } + } + + /// + /// N:1 processstage_letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_letters")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_letters + { + get + { + return this.GetRelatedEntity("processstage_letters", null); + } + set + { + this.OnPropertyChanging("processstage_letters"); + this.SetRelatedEntity("processstage_letters", null, value); + this.OnPropertyChanged("processstage_letters"); + } + } + + /// + /// N:1 Quote_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Letters")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Letters + { + get + { + return this.GetRelatedEntity("Quote_Letters", null); + } + set + { + this.OnPropertyChanging("Quote_Letters"); + this.SetRelatedEntity("Quote_Letters", null, value); + this.OnPropertyChanged("Quote_Letters"); + } + } + + /// + /// N:1 SalesOrder_Letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Letters")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Letters + { + get + { + return this.GetRelatedEntity("SalesOrder_Letters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Letters"); + this.SetRelatedEntity("SalesOrder_Letters", null, value); + this.OnPropertyChanged("SalesOrder_Letters"); + } + } + + /// + /// N:1 service_letters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_letters")] + public Xrm.Framework.CI.Common.Entities.Service service_letters + { + get + { + return this.GetRelatedEntity("service_letters", null); + } + set + { + this.OnPropertyChanging("service_letters"); + this.SetRelatedEntity("service_letters", null, value); + this.OnPropertyChanged("service_letters"); + } + } + + /// + /// N:1 team_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_letter")] + public Xrm.Framework.CI.Common.Entities.Team team_letter + { + get + { + return this.GetRelatedEntity("team_letter", null); + } + } + + /// + /// N:1 TransactionCurrency_Letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Letter")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Letter + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Letter", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Letter"); + this.SetRelatedEntity("TransactionCurrency_Letter", null, value); + this.OnPropertyChanged("TransactionCurrency_Letter"); + } + } + + /// + /// N:1 user_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_letter")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_letter + { + get + { + return this.GetRelatedEntity("user_letter", null); + } + } + } + + /// + /// Stores information about a Microsoft CRM license. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("license")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class License : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public License() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "license"; + + public const int EntityTypeCode = 2027; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time when the license was installed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("installedon")] + public System.Nullable InstalledOn + { + get + { + return this.GetAttributeValue>("installedon"); + } + set + { + this.OnPropertyChanging("InstalledOn"); + this.SetAttributeValue("installedon", value); + this.OnPropertyChanged("InstalledOn"); + } + } + + /// + /// Unique identifier of the license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licenseid")] + public System.Nullable LicenseId + { + get + { + return this.GetAttributeValue>("licenseid"); + } + set + { + this.OnPropertyChanging("LicenseId"); + this.SetAttributeValue("licenseid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LicenseId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licenseid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LicenseId = value; + } + } + + /// + /// Key for the license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licensekey")] + public string LicenseKey + { + get + { + return this.GetAttributeValue("licensekey"); + } + set + { + this.OnPropertyChanging("LicenseKey"); + this.SetAttributeValue("licensekey", value); + this.OnPropertyChanged("LicenseKey"); + } + } + + /// + /// Type of license, such as Professional, Standard, or Suite. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licensetype")] + public System.Nullable LicenseType + { + get + { + return this.GetAttributeValue>("licensetype"); + } + set + { + this.OnPropertyChanging("LicenseType"); + this.SetAttributeValue("licensetype", value); + this.OnPropertyChanged("LicenseType"); + } + } + + /// + /// Unique identifier of the organization associated with the license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N userentityinstancedata_license + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_license")] + public System.Collections.Generic.IEnumerable userentityinstancedata_license + { + get + { + return this.GetRelatedEntities("userentityinstancedata_license", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_license"); + this.SetRelatedEntities("userentityinstancedata_license", null, value); + this.OnPropertyChanged("userentityinstancedata_license"); + } + } + + /// + /// N:1 organization_licenses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_licenses")] + public Xrm.Framework.CI.Common.Entities.Organization organization_licenses + { + get + { + return this.GetRelatedEntity("organization_licenses", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ListState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Group of existing or potential customers created for a marketing campaign or other sales purposes. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("list")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class List : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public List() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "list"; + + public const int EntityTypeCode = 4300; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type the cost of obtaining the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cost")] + public Microsoft.Xrm.Sdk.Money Cost + { + get + { + return this.GetAttributeValue("cost"); + } + set + { + this.OnPropertyChanging("Cost"); + this.SetAttributeValue("cost", value); + this.OnPropertyChanged("Cost"); + } + } + + /// + /// Shows the Cost field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cost_base")] + public Microsoft.Xrm.Sdk.Money Cost_Base + { + get + { + return this.GetAttributeValue("cost_base"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Select the type of members that this marketing list will contain: accounts, contacts, or leads. Each list can have only one member type and this value can't be changed after the marketing list is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdfromcode")] + public Microsoft.Xrm.Sdk.OptionSetValue CreatedFromCode + { + get + { + return this.GetAttributeValue("createdfromcode"); + } + set + { + this.OnPropertyChanging("CreatedFromCode"); + this.SetAttributeValue("createdfromcode", value); + this.OnPropertyChanged("CreatedFromCode"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the marketing list, such as the intended use or date of the last update. + /// + [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 to override the opt-out settings on leads, contacts, and accounts for the members of the target marketing lists of the campaign activity. If No is selected, those who have chosen to opt out won't be excluded from the list. This means they will receive marketing materials. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotsendonoptout")] + public System.Nullable DoNotSendOnOptOut + { + get + { + return this.GetAttributeValue>("donotsendonoptout"); + } + set + { + this.OnPropertyChanging("DoNotSendOnOptOut"); + this.SetAttributeValue("donotsendonoptout", value); + this.OnPropertyChanged("DoNotSendOnOptOut"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select whether inactive accounts, contacts, or leads should be excluded from the campaign activity distribution when the marketing list is included in a campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreinactivelistmembers")] + public System.Nullable IgnoreInactiveListMembers + { + get + { + return this.GetAttributeValue>("ignoreinactivelistmembers"); + } + set + { + this.OnPropertyChanging("IgnoreInactiveListMembers"); + this.SetAttributeValue("ignoreinactivelistmembers", value); + this.OnPropertyChanged("IgnoreInactiveListMembers"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the date and time when the marketing list was last used in a campaign or in the creation of activities or opportunities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastusedon")] + public System.Nullable LastUsedOn + { + get + { + return this.GetAttributeValue>("lastusedon"); + } + } + + /// + /// Unique identifier of the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listid")] + public System.Nullable ListId + { + get + { + return this.GetAttributeValue>("listid"); + } + set + { + this.OnPropertyChanging("ListId"); + this.SetAttributeValue("listid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ListId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ListId = value; + } + } + + /// + /// Type a name for the marketing list so that it is identified correctly in lists. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listname")] + public string ListName + { + get + { + return this.GetAttributeValue("listname"); + } + set + { + this.OnPropertyChanging("ListName"); + this.SetAttributeValue("listname", value); + this.OnPropertyChanged("ListName"); + } + } + + /// + /// Select whether the marketing list is locked. If Yes is selected, no additional members can be added to the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lockstatus")] + public System.Nullable LockStatus + { + get + { + return this.GetAttributeValue>("lockstatus"); + } + set + { + this.OnPropertyChanging("LockStatus"); + this.SetAttributeValue("lockstatus", value); + this.OnPropertyChanged("LockStatus"); + } + } + + /// + /// Shows the sum of all members in the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("membercount")] + public System.Nullable MemberCount + { + get + { + return this.GetAttributeValue>("membercount"); + } + } + + /// + /// Type of the members that can be stored in the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("membertype")] + public System.Nullable MemberType + { + get + { + return this.GetAttributeValue>("membertype"); + } + set + { + this.OnPropertyChanging("MemberType"); + this.SetAttributeValue("membertype", value); + this.OnPropertyChanged("MemberType"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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 intended use of the marketing list to identify its key segments, target offers, or business group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purpose")] + public string Purpose + { + get + { + return this.GetAttributeValue("purpose"); + } + set + { + this.OnPropertyChanging("Purpose"); + this.SetAttributeValue("purpose", value); + this.OnPropertyChanged("Purpose"); + } + } + + /// + /// Query used for retrieving members of marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("query")] + public string Query + { + get + { + return this.GetAttributeValue("query"); + } + set + { + this.OnPropertyChanging("Query"); + this.SetAttributeValue("query", value); + this.OnPropertyChanged("Query"); + } + } + + /// + /// Type the source of the marketing list, such as a third-party supplier or internal database. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public string Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// 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 marketing list is active or inactive. Inactive marketing lists 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 ((Xrm.Framework.CI.Common.Entities.ListState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ListState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the marketing list'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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select whether you want the marketing list to be static or dynamic. The members in a static marketing list are unchanging. A dynamic marketing list is based on a dynamic query that retrieves the updated list of members + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public System.Nullable Type + { + get + { + return this.GetAttributeValue>("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// 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 marketing list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N List_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_Annotation")] + public System.Collections.Generic.IEnumerable List_Annotation + { + get + { + return this.GetRelatedEntities("List_Annotation", null); + } + set + { + this.OnPropertyChanging("List_Annotation"); + this.SetRelatedEntities("List_Annotation", null, value); + this.OnPropertyChanged("List_Annotation"); + } + } + + /// + /// 1:N List_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_AsyncOperations")] + public System.Collections.Generic.IEnumerable List_AsyncOperations + { + get + { + return this.GetRelatedEntities("List_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("List_AsyncOperations"); + this.SetRelatedEntities("List_AsyncOperations", null, value); + this.OnPropertyChanged("List_AsyncOperations"); + } + } + + /// + /// 1:N List_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable List_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("List_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("List_BulkDeleteFailures"); + this.SetRelatedEntities("List_BulkDeleteFailures", null, value); + this.OnPropertyChanged("List_BulkDeleteFailures"); + } + } + + /// + /// 1:N List_BulkOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_BulkOperations")] + public System.Collections.Generic.IEnumerable List_BulkOperations + { + get + { + return this.GetRelatedEntities("List_BulkOperations", null); + } + set + { + this.OnPropertyChanging("List_BulkOperations"); + this.SetRelatedEntities("List_BulkOperations", null, value); + this.OnPropertyChanged("List_BulkOperations"); + } + } + + /// + /// 1:N list_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections1")] + public System.Collections.Generic.IEnumerable list_connections1 + { + get + { + return this.GetRelatedEntities("list_connections1", null); + } + set + { + this.OnPropertyChanging("list_connections1"); + this.SetRelatedEntities("list_connections1", null, value); + this.OnPropertyChanged("list_connections1"); + } + } + + /// + /// 1:N list_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_connections2")] + public System.Collections.Generic.IEnumerable list_connections2 + { + get + { + return this.GetRelatedEntities("list_connections2", null); + } + set + { + this.OnPropertyChanging("list_connections2"); + this.SetRelatedEntities("list_connections2", null, value); + this.OnPropertyChanged("list_connections2"); + } + } + + /// + /// 1:N List_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable List_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("List_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("List_DuplicateBaseRecord"); + this.SetRelatedEntities("List_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("List_DuplicateBaseRecord"); + } + } + + /// + /// 1:N List_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable List_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("List_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("List_DuplicateMatchingRecord"); + this.SetRelatedEntities("List_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("List_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N list_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable list_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("list_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("list_principalobjectattributeaccess"); + this.SetRelatedEntities("list_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("list_principalobjectattributeaccess"); + } + } + + /// + /// 1:N List_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_ProcessSessions")] + public System.Collections.Generic.IEnumerable List_ProcessSessions + { + get + { + return this.GetRelatedEntities("List_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("List_ProcessSessions"); + this.SetRelatedEntities("List_ProcessSessions", null, value); + this.OnPropertyChanged("List_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_list")] + public System.Collections.Generic.IEnumerable userentityinstancedata_list + { + get + { + return this.GetRelatedEntities("userentityinstancedata_list", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_list"); + this.SetRelatedEntities("userentityinstancedata_list", null, value); + this.OnPropertyChanged("userentityinstancedata_list"); + } + } + + /// + /// N:N campaignactivitylist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitylist_association")] + public System.Collections.Generic.IEnumerable campaignactivitylist_association + { + get + { + return this.GetRelatedEntities("campaignactivitylist_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitylist_association"); + this.SetRelatedEntities("campaignactivitylist_association", null, value); + this.OnPropertyChanged("campaignactivitylist_association"); + } + } + + /// + /// N:N campaignlist_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignlist_association")] + public System.Collections.Generic.IEnumerable campaignlist_association + { + get + { + return this.GetRelatedEntities("campaignlist_association", null); + } + set + { + this.OnPropertyChanging("campaignlist_association"); + this.SetRelatedEntities("campaignlist_association", null, value); + this.OnPropertyChanged("campaignlist_association"); + } + } + + /// + /// N:N listaccount_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listaccount_association")] + public System.Collections.Generic.IEnumerable listaccount_association + { + get + { + return this.GetRelatedEntities("listaccount_association", null); + } + set + { + this.OnPropertyChanging("listaccount_association"); + this.SetRelatedEntities("listaccount_association", null, value); + this.OnPropertyChanged("listaccount_association"); + } + } + + /// + /// N:N listcontact_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listcontact_association")] + public System.Collections.Generic.IEnumerable listcontact_association + { + get + { + return this.GetRelatedEntities("listcontact_association", null); + } + set + { + this.OnPropertyChanging("listcontact_association"); + this.SetRelatedEntities("listcontact_association", null, value); + this.OnPropertyChanged("listcontact_association"); + } + } + + /// + /// N:N listlead_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listlead_association")] + public System.Collections.Generic.IEnumerable listlead_association + { + get + { + return this.GetRelatedEntities("listlead_association", null); + } + set + { + this.OnPropertyChanging("listlead_association"); + this.SetRelatedEntities("listlead_association", null, value); + this.OnPropertyChanged("listlead_association"); + } + } + + /// + /// N:1 business_unit_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_list")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_list + { + get + { + return this.GetRelatedEntity("business_unit_list", null); + } + } + + /// + /// N:1 lk_list_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_createdby + { + get + { + return this.GetRelatedEntity("lk_list_createdby", null); + } + } + + /// + /// N:1 lk_list_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_list_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_list_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_modifiedby + { + get + { + return this.GetRelatedEntity("lk_list_modifiedby", null); + } + } + + /// + /// N:1 lk_list_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_list_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_list_modifiedonbehalfby", null); + } + } + + /// + /// N:1 processstage_lists + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lists")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_lists + { + get + { + return this.GetRelatedEntity("processstage_lists", null); + } + set + { + this.OnPropertyChanging("processstage_lists"); + this.SetRelatedEntity("processstage_lists", null, value); + this.OnPropertyChanged("processstage_lists"); + } + } + + /// + /// N:1 team_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_list")] + public Xrm.Framework.CI.Common.Entities.Team team_list + { + get + { + return this.GetRelatedEntity("team_list", null); + } + } + + /// + /// N:1 transactioncurrency_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_list")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_list + { + get + { + return this.GetRelatedEntity("transactioncurrency_list", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_list"); + this.SetRelatedEntity("transactioncurrency_list", null, value); + this.OnPropertyChanged("transactioncurrency_list"); + } + } + + /// + /// N:1 user_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_list")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_list + { + get + { + return this.GetRelatedEntity("user_list", null); + } + } + } + + /// + /// Item in a marketing list. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("listmember")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ListMember : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ListMember() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "listmember"; + + public const int EntityTypeCode = 4301; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityid")] + public Microsoft.Xrm.Sdk.EntityReference EntityId + { + get + { + return this.GetAttributeValue("entityid"); + } + set + { + this.OnPropertyChanging("EntityId"); + this.SetAttributeValue("entityid", value); + this.OnPropertyChanged("EntityId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entitytype")] + public string EntityType + { + get + { + return this.GetAttributeValue("entitytype"); + } + set + { + this.OnPropertyChanging("EntityType"); + this.SetAttributeValue("entitytype", value); + this.OnPropertyChanged("EntityType"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listid")] + public Microsoft.Xrm.Sdk.EntityReference ListId + { + get + { + return this.GetAttributeValue("listid"); + } + set + { + this.OnPropertyChanging("ListId"); + this.SetAttributeValue("listid", value); + this.OnPropertyChanged("ListId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listmemberid")] + public System.Nullable ListMemberId + { + get + { + return this.GetAttributeValue>("listmemberid"); + } + set + { + this.OnPropertyChanging("ListMemberId"); + this.SetAttributeValue("listmemberid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ListMemberId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("listmemberid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ListMemberId = value; + } + } + + /// + /// Unique identifier of the user who last modified the list member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the list member 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 listmember. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the list member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_listmember + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_listmember")] + public System.Collections.Generic.IEnumerable userentityinstancedata_listmember + { + get + { + return this.GetRelatedEntities("userentityinstancedata_listmember", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_listmember"); + this.SetRelatedEntities("userentityinstancedata_listmember", null, value); + this.OnPropertyChanged("userentityinstancedata_listmember"); + } + } + + /// + /// N:N listaccount_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listaccount_association")] + public System.Collections.Generic.IEnumerable listaccount_association + { + get + { + return this.GetRelatedEntities("listaccount_association", null); + } + set + { + this.OnPropertyChanging("listaccount_association"); + this.SetRelatedEntities("listaccount_association", null, value); + this.OnPropertyChanged("listaccount_association"); + } + } + + /// + /// N:N listcontact_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listcontact_association")] + public System.Collections.Generic.IEnumerable listcontact_association + { + get + { + return this.GetRelatedEntities("listcontact_association", null); + } + set + { + this.OnPropertyChanging("listcontact_association"); + this.SetRelatedEntities("listcontact_association", null, value); + this.OnPropertyChanged("listcontact_association"); + } + } + + /// + /// N:N listlead_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("listlead_association")] + public System.Collections.Generic.IEnumerable listlead_association + { + get + { + return this.GetRelatedEntities("listlead_association", null); + } + set + { + this.OnPropertyChanging("listlead_association"); + this.SetRelatedEntities("listlead_association", null, value); + this.OnPropertyChanged("listlead_association"); + } + } + + /// + /// N:1 lk_listmember_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_createdby + { + get + { + return this.GetRelatedEntity("lk_listmember_createdby", null); + } + } + + /// + /// N:1 lk_listmember_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_listmember_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_listmember_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_modifiedby + { + get + { + return this.GetRelatedEntity("lk_listmember_modifiedby", null); + } + } + + /// + /// N:1 lk_listmember_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_listmember_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_listmember_modifiedonbehalfby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum LookUpMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps a lookup attribute in a source file to Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("lookupmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class LookUpMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public LookUpMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "lookupmapping"; + + public const int EntityTypeCode = 4419; + + 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 column mapping with which this lookup mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public Microsoft.Xrm.Sdk.EntityReference ColumnMappingId + { + get + { + return this.GetAttributeValue("columnmappingid"); + } + set + { + this.OnPropertyChanging("ColumnMappingId"); + this.SetAttributeValue("columnmappingid", value); + this.OnPropertyChanged("ColumnMappingId"); + } + } + + /// + /// Unique identifier of the user who created the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the lookup mapping 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 lookupmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Name of the field with which the lookup is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupattributename")] + public string LookUpAttributeName + { + get + { + return this.GetAttributeValue("lookupattributename"); + } + set + { + this.OnPropertyChanging("LookUpAttributeName"); + this.SetAttributeValue("lookupattributename", value); + this.OnPropertyChanged("LookUpAttributeName"); + } + } + + /// + /// Name of the entity with which the lookup is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupentityname")] + public string LookUpEntityName + { + get + { + return this.GetAttributeValue("lookupentityname"); + } + set + { + this.OnPropertyChanging("LookUpEntityName"); + this.SetAttributeValue("lookupentityname", value); + this.OnPropertyChanged("LookUpEntityName"); + } + } + + /// + /// Unique identifier of the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupmappingid")] + public System.Nullable LookUpMappingId + { + get + { + return this.GetAttributeValue>("lookupmappingid"); + } + set + { + this.OnPropertyChanging("LookUpMappingId"); + this.SetAttributeValue("lookupmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("LookUpMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.LookUpMappingId = value; + } + } + + /// + /// Lookup source code for lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupsourcecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LookUpSourceCode + { + get + { + return this.GetAttributeValue("lookupsourcecode"); + } + set + { + this.OnPropertyChanging("LookUpSourceCode"); + this.SetAttributeValue("lookupsourcecode", value); + this.OnPropertyChanged("LookUpSourceCode"); + } + } + + /// + /// Unique identifier of the user who last modified the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the lookup mapping 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 lookupmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the lookup mapping has to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Status of the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.LookUpMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.LookUpMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the lookup mapping. + /// + [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"); + } + } + + /// + /// Unique identifier of the transformation parameter mapping with which this lookup mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + public Microsoft.Xrm.Sdk.EntityReference TransformationParameterMappingId + { + get + { + return this.GetAttributeValue("transformationparametermappingid"); + } + set + { + this.OnPropertyChanging("TransformationParameterMappingId"); + this.SetAttributeValue("transformationparametermappingid", value); + this.OnPropertyChanged("TransformationParameterMappingId"); + } + } + + /// + /// 1:N userentityinstancedata_lookupmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lookupmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_lookupmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_lookupmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lookupmapping"); + this.SetRelatedEntities("userentityinstancedata_lookupmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_lookupmapping"); + } + } + + /// + /// N:1 lk_lookupmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_createdby", null); + } + } + + /// + /// N:1 lk_lookupmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_lookupmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_lookupmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_lookupmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_lookupmapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 LookUpMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_ColumnMapping")] + public Xrm.Framework.CI.Common.Entities.ColumnMapping LookUpMapping_ColumnMapping + { + get + { + return this.GetRelatedEntity("LookUpMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_ColumnMapping"); + this.SetRelatedEntity("LookUpMapping_ColumnMapping", null, value); + this.OnPropertyChanged("LookUpMapping_ColumnMapping"); + } + } + + /// + /// N:1 LookUpMapping_TransformationParameterMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_TransformationParameterMapping")] + public Xrm.Framework.CI.Common.Entities.TransformationParameterMapping LookUpMapping_TransformationParameterMapping + { + get + { + return this.GetRelatedEntity("LookUpMapping_TransformationParameterMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_TransformationParameterMapping"); + this.SetRelatedEntity("LookUpMapping_TransformationParameterMapping", null, value); + this.OnPropertyChanged("LookUpMapping_TransformationParameterMapping"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum MailboxState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("mailbox")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Mailbox : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Mailbox() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "mailbox"; + + public const int EntityTypeCode = 9606; + + 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)); + } + } + + /// + /// Choose the delivery method for the mailbox for appointments, contacts, and tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actdeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue ACTDeliveryMethod + { + get + { + return this.GetAttributeValue("actdeliverymethod"); + } + set + { + this.OnPropertyChanging("ACTDeliveryMethod"); + this.SetAttributeValue("actdeliverymethod", value); + this.OnPropertyChanged("ACTDeliveryMethod"); + } + } + + /// + /// Status of the Appointments, Contacts, and Tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue ACTStatus + { + get + { + return this.GetAttributeValue("actstatus"); + } + } + + /// + /// Choose whether to allow the email connector to use credentials. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowemailconnectortousecredentials")] + public System.Nullable AllowEmailConnectorToUseCredentials + { + get + { + return this.GetAttributeValue>("allowemailconnectortousecredentials"); + } + set + { + this.OnPropertyChanging("AllowEmailConnectorToUseCredentials"); + this.SetAttributeValue("allowemailconnectortousecredentials", value); + this.OnPropertyChanged("AllowEmailConnectorToUseCredentials"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type the email address of the mailbox. + /// + [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 status of the email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailRouterAccessApproval + { + get + { + return this.GetAttributeValue("emailrouteraccessapproval"); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// Select the email server profile of the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofile")] + public Microsoft.Xrm.Sdk.EntityReference EmailServerProfile + { + get + { + return this.GetAttributeValue("emailserverprofile"); + } + set + { + this.OnPropertyChanging("EmailServerProfile"); + this.SetAttributeValue("emailserverprofile", value); + this.OnPropertyChanged("EmailServerProfile"); + } + } + + /// + /// Indicates whether the mailbox is enabled for Appointments, Contacts, and Tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforact")] + public System.Nullable EnabledForACT + { + get + { + return this.GetAttributeValue>("enabledforact"); + } + } + + /// + /// Choose whether the mailbox is enabled for receiving email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforincomingemail")] + public System.Nullable EnabledForIncomingEmail + { + get + { + return this.GetAttributeValue>("enabledforincomingemail"); + } + } + + /// + /// Choose whether the mailbox is enabled for sending email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforoutgoingemail")] + public System.Nullable EnabledForOutgoingEmail + { + get + { + return this.GetAttributeValue>("enabledforoutgoingemail"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange web services endpoint URL for the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ewsurl")] + public string EWSURL + { + get + { + return this.GetAttributeValue("ewsurl"); + } + set + { + this.OnPropertyChanging("EWSURL"); + this.SetAttributeValue("ewsurl", value); + this.OnPropertyChanged("EWSURL"); + } + } + + /// + /// Contains the exchange synchronization state in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangesyncstatexml")] + public string ExchangeSyncStateXml + { + get + { + return this.GetAttributeValue("exchangesyncstatexml"); + } + set + { + this.OnPropertyChanging("ExchangeSyncStateXml"); + this.SetAttributeValue("exchangesyncstatexml", value); + this.OnPropertyChanged("ExchangeSyncStateXml"); + } + } + + /// + /// Unique identifier of the async host that is processing this mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hostid")] + public string HostId + { + get + { + return this.GetAttributeValue("hostid"); + } + } + + /// + /// Select how incoming email will be delivered to the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("incomingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Select the status that will be assigned to incoming email messages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailStatus + { + get + { + return this.GetAttributeValue("incomingemailstatus"); + } + } + + /// + /// Set the current organization as the synchronization organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactsyncorgflagset")] + public System.Nullable IsACTSyncOrgFlagSet + { + get + { + return this.GetAttributeValue>("isactsyncorgflagset"); + } + set + { + this.OnPropertyChanging("IsACTSyncOrgFlagSet"); + this.SetAttributeValue("isactsyncorgflagset", value); + this.OnPropertyChanged("IsACTSyncOrgFlagSet"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Select whether the mailbox is a forward mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isforwardmailbox")] + public System.Nullable IsForwardMailbox + { + get + { + return this.GetAttributeValue>("isforwardmailbox"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispasswordset")] + public System.Nullable IsPasswordSet + { + get + { + return this.GetAttributeValue>("ispasswordset"); + } + } + + /// + /// Shows the date and time when the Exchange web services URL was last discovered using the AutoDiscover service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastautodiscoveredon")] + public System.Nullable LastAutoDiscoveredOn + { + get + { + return this.GetAttributeValue>("lastautodiscoveredon"); + } + set + { + this.OnPropertyChanging("LastAutoDiscoveredOn"); + this.SetAttributeValue("lastautodiscoveredon", value); + this.OnPropertyChanged("LastAutoDiscoveredOn"); + } + } + + /// + /// Unique identifier of the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailboxid")] + public System.Nullable MailboxId + { + get + { + return this.GetAttributeValue>("mailboxid"); + } + set + { + this.OnPropertyChanging("MailboxId"); + this.SetAttributeValue("mailboxid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("MailboxId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailboxid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.MailboxId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailboxprocessingcontext")] + public System.Nullable MailboxProcessingContext + { + get + { + return this.GetAttributeValue>("mailboxprocessingcontext"); + } + set + { + this.OnPropertyChanging("MailboxProcessingContext"); + this.SetAttributeValue("mailboxprocessingcontext", value); + this.OnPropertyChanged("MailboxProcessingContext"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type the name of the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("noactcount")] + public System.Nullable NoACTCount + { + get + { + return this.GetAttributeValue>("noactcount"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("noemailcount")] + public System.Nullable NoEmailCount + { + get + { + return this.GetAttributeValue>("noemailcount"); + } + } + + /// + /// Unique identifier of the organization associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Select how outgoing email will be sent from the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("outgoingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Select the status of outgoing email messages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemailstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailStatus + { + get + { + return this.GetAttributeValue("outgoingemailstatus"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Type the password for the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("password")] + public string Password + { + get + { + return this.GetAttributeValue("password"); + } + set + { + this.OnPropertyChanging("Password"); + this.SetAttributeValue("password", value); + this.OnPropertyChanged("Password"); + } + } + + /// + /// Shows the date and time when processing will begin on this mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponemailboxprocessinguntil")] + public System.Nullable PostponeMailboxProcessingUntil + { + get + { + return this.GetAttributeValue>("postponemailboxprocessinguntil"); + } + } + + /// + /// Shows the date and time when the mailbox can start sending emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponesendinguntil")] + public System.Nullable PostponeSendingUntil + { + get + { + return this.GetAttributeValue>("postponesendinguntil"); + } + set + { + this.OnPropertyChanging("PostponeSendingUntil"); + this.SetAttributeValue("postponesendinguntil", value); + this.OnPropertyChanged("PostponeSendingUntil"); + } + } + + /// + /// Shows the date and time when the next email configuration test will be run for a mailbox record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponetestemailconfigurationuntil")] + public System.Nullable PostponeTestEmailConfigurationUntil + { + get + { + return this.GetAttributeValue>("postponetestemailconfigurationuntil"); + } + set + { + this.OnPropertyChanging("PostponeTestEmailConfigurationUntil"); + this.SetAttributeValue("postponetestemailconfigurationuntil", value); + this.OnPropertyChanged("PostponeTestEmailConfigurationUntil"); + } + } + + /// + /// Select whether to delete emails from the mailbox after processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processanddeleteemails")] + public System.Nullable ProcessAndDeleteEmails + { + get + { + return this.GetAttributeValue>("processanddeleteemails"); + } + set + { + this.OnPropertyChanging("ProcessAndDeleteEmails"); + this.SetAttributeValue("processanddeleteemails", value); + this.OnPropertyChanged("ProcessAndDeleteEmails"); + } + } + + /// + /// Shows the date and time to start processing email received by the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processemailreceivedafter")] + public System.Nullable ProcessEmailReceivedAfter + { + get + { + return this.GetAttributeValue>("processemailreceivedafter"); + } + set + { + this.OnPropertyChanging("ProcessEmailReceivedAfter"); + this.SetAttributeValue("processemailreceivedafter", value); + this.OnPropertyChanged("ProcessEmailReceivedAfter"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("receivingpostponeduntil")] + public System.Nullable ReceivingPostponedUntil + { + get + { + return this.GetAttributeValue>("receivingpostponeduntil"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("receivingpostponeduntilforact")] + public System.Nullable ReceivingPostponedUntilForACT + { + get + { + return this.GetAttributeValue>("receivingpostponeduntilforact"); + } + } + + /// + /// Choose the user associated to the mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + } + + /// + /// Shows whether the mailbox 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 ((Xrm.Framework.CI.Common.Entities.MailboxState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.MailboxState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the mailbox'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"); + } + } + + /// + /// Shows the number of times an email configuration test has been performed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("testemailconfigurationretrycount")] + public System.Nullable TestEmailConfigurationRetryCount + { + get + { + return this.GetAttributeValue>("testemailconfigurationretrycount"); + } + set + { + this.OnPropertyChanging("TestEmailConfigurationRetryCount"); + this.SetAttributeValue("testemailconfigurationretrycount", value); + this.OnPropertyChanged("TestEmailConfigurationRetryCount"); + } + } + + /// + /// Indicates if the email configuration test has been scheduled for a mailbox record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("testemailconfigurationscheduled")] + public System.Nullable TestEmailConfigurationScheduled + { + get + { + return this.GetAttributeValue>("testemailconfigurationscheduled"); + } + set + { + this.OnPropertyChanging("TestEmailConfigurationScheduled"); + this.SetAttributeValue("testemailconfigurationscheduled", value); + this.OnPropertyChanged("TestEmailConfigurationScheduled"); + } + } + + /// + /// Date and time when the last email configuration test was completed for a mailbox record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("testmailboxaccesscompletedon")] + public System.Nullable TestMailboxAccessCompletedOn + { + get + { + return this.GetAttributeValue>("testmailboxaccesscompletedon"); + } + } + + /// + /// 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"); + } + } + + /// + /// Concatenation of transient failure counts of all mailbox operations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transientfailurecount")] + public System.Nullable TransientFailureCount + { + get + { + return this.GetAttributeValue>("transientfailurecount"); + } + } + + /// + /// Shows the ID of the Undeliverable folder in the mailbox managed by Microsoft Exchange. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("undeliverablefolder")] + public string UndeliverableFolder + { + get + { + return this.GetAttributeValue("undeliverablefolder"); + } + set + { + this.OnPropertyChanging("UndeliverableFolder"); + this.SetAttributeValue("undeliverablefolder", value); + this.OnPropertyChanged("UndeliverableFolder"); + } + } + + /// + /// Type a user name used for mailbox authentication. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("username")] + public string Username + { + get + { + return this.GetAttributeValue("username"); + } + set + { + this.OnPropertyChanging("Username"); + this.SetAttributeValue("username", value); + this.OnPropertyChanged("Username"); + } + } + + /// + /// 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 mailbox. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N activitypointer_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activitypointer_sendermailboxid_mailbox")] + public System.Collections.Generic.IEnumerable activitypointer_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntities("activitypointer_sendermailboxid_mailbox", null); + } + set + { + this.OnPropertyChanging("activitypointer_sendermailboxid_mailbox"); + this.SetRelatedEntities("activitypointer_sendermailboxid_mailbox", null, value); + this.OnPropertyChanged("activitypointer_sendermailboxid_mailbox"); + } + } + + /// + /// 1:N email_sendermailboxid_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_sendermailboxid_mailbox")] + public System.Collections.Generic.IEnumerable email_sendermailboxid_mailbox + { + get + { + return this.GetRelatedEntities("email_sendermailboxid_mailbox", null); + } + set + { + this.OnPropertyChanging("email_sendermailboxid_mailbox"); + this.SetRelatedEntities("email_sendermailboxid_mailbox", null, value); + this.OnPropertyChanged("email_sendermailboxid_mailbox"); + } + } + + /// + /// 1:N Mailbox_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Mailbox_Annotation")] + public System.Collections.Generic.IEnumerable Mailbox_Annotation + { + get + { + return this.GetRelatedEntities("Mailbox_Annotation", null); + } + set + { + this.OnPropertyChanging("Mailbox_Annotation"); + this.SetRelatedEntities("Mailbox_Annotation", null, value); + this.OnPropertyChanged("Mailbox_Annotation"); + } + } + + /// + /// 1:N mailbox_asyncoperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_asyncoperations")] + public System.Collections.Generic.IEnumerable mailbox_asyncoperations + { + get + { + return this.GetRelatedEntities("mailbox_asyncoperations", null); + } + set + { + this.OnPropertyChanging("mailbox_asyncoperations"); + this.SetRelatedEntities("mailbox_asyncoperations", null, value); + this.OnPropertyChanged("mailbox_asyncoperations"); + } + } + + /// + /// 1:N mailbox_processsessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_processsessions")] + public System.Collections.Generic.IEnumerable mailbox_processsessions + { + get + { + return this.GetRelatedEntities("mailbox_processsessions", null); + } + set + { + this.OnPropertyChanging("mailbox_processsessions"); + this.SetRelatedEntities("mailbox_processsessions", null, value); + this.OnPropertyChanged("mailbox_processsessions"); + } + } + + /// + /// 1:N mailbox_userentityinstancedatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_userentityinstancedatas")] + public System.Collections.Generic.IEnumerable mailbox_userentityinstancedatas + { + get + { + return this.GetRelatedEntities("mailbox_userentityinstancedatas", null); + } + set + { + this.OnPropertyChanging("mailbox_userentityinstancedatas"); + this.SetRelatedEntities("mailbox_userentityinstancedatas", null, value); + this.OnPropertyChanged("mailbox_userentityinstancedatas"); + } + } + + /// + /// 1:N queue_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_defaultmailbox_mailbox")] + public System.Collections.Generic.IEnumerable queue_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntities("queue_defaultmailbox_mailbox", null); + } + set + { + this.OnPropertyChanging("queue_defaultmailbox_mailbox"); + this.SetRelatedEntities("queue_defaultmailbox_mailbox", null, value); + this.OnPropertyChanged("queue_defaultmailbox_mailbox"); + } + } + + /// + /// 1:N systemuser_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_defaultmailbox_mailbox")] + public System.Collections.Generic.IEnumerable systemuser_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntities("systemuser_defaultmailbox_mailbox", null); + } + set + { + this.OnPropertyChanging("systemuser_defaultmailbox_mailbox"); + this.SetRelatedEntities("systemuser_defaultmailbox_mailbox", null, value); + this.OnPropertyChanged("systemuser_defaultmailbox_mailbox"); + } + } + + /// + /// 1:N tracelog_Mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_Mailbox")] + public System.Collections.Generic.IEnumerable tracelog_Mailbox + { + get + { + return this.GetRelatedEntities("tracelog_Mailbox", null); + } + set + { + this.OnPropertyChanging("tracelog_Mailbox"); + this.SetRelatedEntities("tracelog_Mailbox", null, value); + this.OnPropertyChanged("tracelog_Mailbox"); + } + } + + /// + /// N:1 business_unit_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailbox")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_mailbox + { + get + { + return this.GetRelatedEntity("business_unit_mailbox", null); + } + } + + /// + /// N:1 emailserverprofile_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailserverprofile")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_mailbox")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile emailserverprofile_mailbox + { + get + { + return this.GetRelatedEntity("emailserverprofile_mailbox", null); + } + set + { + this.OnPropertyChanging("emailserverprofile_mailbox"); + this.SetRelatedEntity("emailserverprofile_mailbox", null, value); + this.OnPropertyChanged("emailserverprofile_mailbox"); + } + } + + /// + /// N:1 lk_mailbox_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_createdby + { + get + { + return this.GetRelatedEntity("lk_mailbox_createdby", null); + } + } + + /// + /// N:1 lk_mailbox_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailbox_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_mailbox_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_modifiedby + { + get + { + return this.GetRelatedEntity("lk_mailbox_modifiedby", null); + } + } + + /// + /// N:1 lk_mailbox_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailbox_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailbox_modifiedonbehalfby", null); + } + } + + /// + /// N:1 mailbox_regarding_queue + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_queue")] + public Xrm.Framework.CI.Common.Entities.Queue mailbox_regarding_queue + { + get + { + return this.GetRelatedEntity("mailbox_regarding_queue", null); + } + } + + /// + /// N:1 mailbox_regarding_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser mailbox_regarding_systemuser + { + get + { + return this.GetRelatedEntity("mailbox_regarding_systemuser", null); + } + } + + /// + /// N:1 organization_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_mailbox")] + public Xrm.Framework.CI.Common.Entities.Organization organization_mailbox + { + get + { + return this.GetRelatedEntity("organization_mailbox", null); + } + } + + /// + /// N:1 team_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_mailbox")] + public Xrm.Framework.CI.Common.Entities.Team team_mailbox + { + get + { + return this.GetRelatedEntity("team_mailbox", null); + } + } + + /// + /// N:1 user_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_mailbox")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_mailbox + { + get + { + return this.GetRelatedEntity("user_mailbox", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum MailMergeTemplateState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Template for a mail merge document that contains the standard attributes of that document. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("mailmergetemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class MailMergeTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public MailMergeTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "mailmergetemplate"; + + public const int EntityTypeCode = 9106; + + 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)); + } + } + + /// + /// Body text of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("body")] + public string Body + { + get + { + return this.GetAttributeValue("body"); + } + set + { + this.OnPropertyChanging("Body"); + this.SetAttributeValue("body", value); + this.OnPropertyChanged("Body"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the mail merge template 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 mailmergetemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default data fields associated with the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilter")] + public string DefaultFilter + { + get + { + return this.GetAttributeValue("defaultfilter"); + } + set + { + this.OnPropertyChanging("DefaultFilter"); + this.SetAttributeValue("defaultfilter", value); + this.OnPropertyChanged("DefaultFilter"); + } + } + + /// + /// Description of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version of the Microsoft Office Word XML format used by the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("documentformat")] + public Microsoft.Xrm.Sdk.OptionSetValue DocumentFormat + { + get + { + return this.GetAttributeValue("documentformat"); + } + set + { + this.OnPropertyChanging("DocumentFormat"); + this.SetAttributeValue("documentformat", value); + this.OnPropertyChanged("DocumentFormat"); + } + } + + /// + /// Exchange rate for the currency associated with the mailmergetemplate with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// File name of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether the mail merge template is personal or is available to all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispersonal")] + public System.Nullable IsPersonal + { + get + { + return this.GetAttributeValue>("ispersonal"); + } + set + { + this.OnPropertyChanging("IsPersonal"); + this.SetAttributeValue("ispersonal", value); + this.OnPropertyChanged("IsPersonal"); + } + } + + /// + /// Language of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetemplateid")] + public System.Nullable MailMergeTemplateId + { + get + { + return this.GetAttributeValue>("mailmergetemplateid"); + } + set + { + this.OnPropertyChanging("MailMergeTemplateId"); + this.SetAttributeValue("mailmergetemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("MailMergeTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.MailMergeTemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetemplateidunique")] + public System.Nullable MailMergeTemplateIdUnique + { + get + { + return this.GetAttributeValue>("mailmergetemplateidunique"); + } + } + + /// + /// Drop-down list for selecting the type of the mail merge. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mailmergetype")] + public Microsoft.Xrm.Sdk.OptionSetValue MailMergeType + { + get + { + return this.GetAttributeValue("mailmergetype"); + } + set + { + this.OnPropertyChanging("MailMergeType"); + this.SetAttributeValue("mailmergetype", value); + this.OnPropertyChanged("MailMergeType"); + } + } + + /// + /// MIME type of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the mail merge template 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 mailmergetemplate. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the mail merge template. + /// + [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 mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Parameter Xml. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parameterxml")] + public string ParameterXml + { + get + { + return this.GetAttributeValue("parameterxml"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.MailMergeTemplateState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.MailMergeTemplateState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the mail merge template. + /// + [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"); + } + } + + /// + /// Type of mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatetypecode")] + public string TemplateTypeCode + { + get + { + return this.GetAttributeValue("templatetypecode"); + } + set + { + this.OnPropertyChanging("TemplateTypeCode"); + this.SetAttributeValue("templatetypecode", value); + this.OnPropertyChanged("TemplateTypeCode"); + } + } + + /// + /// 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 mailmergetemplate. + /// + [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 of the mail merge template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N MailMergeTemplate_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_AsyncOperations")] + public System.Collections.Generic.IEnumerable MailMergeTemplate_AsyncOperations + { + get + { + return this.GetRelatedEntities("MailMergeTemplate_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_AsyncOperations"); + this.SetRelatedEntities("MailMergeTemplate_AsyncOperations", null, value); + this.OnPropertyChanged("MailMergeTemplate_AsyncOperations"); + } + } + + /// + /// 1:N mailmergetemplate_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailmergetemplate_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable mailmergetemplate_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("mailmergetemplate_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("mailmergetemplate_principalobjectattributeaccess"); + this.SetRelatedEntities("mailmergetemplate_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("mailmergetemplate_principalobjectattributeaccess"); + } + } + + /// + /// 1:N MailMergeTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_ProcessSessions")] + public System.Collections.Generic.IEnumerable MailMergeTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntities("MailMergeTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_ProcessSessions"); + this.SetRelatedEntities("MailMergeTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("MailMergeTemplate_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_mailmergetemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_mailmergetemplate")] + public System.Collections.Generic.IEnumerable userentityinstancedata_mailmergetemplate + { + get + { + return this.GetRelatedEntities("userentityinstancedata_mailmergetemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_mailmergetemplate"); + this.SetRelatedEntities("userentityinstancedata_mailmergetemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_mailmergetemplate"); + } + } + + /// + /// N:1 business_unit_mailmergetemplates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_mailmergetemplates")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_mailmergetemplates + { + get + { + return this.GetRelatedEntity("business_unit_mailmergetemplates", null); + } + } + + /// + /// N:1 lk_mailmergetemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_mailmergetemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplate_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_mailmergetemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplatebase_createdby", null); + } + } + + /// + /// N:1 lk_mailmergetemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_mailmergetemplatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_mailmergetemplatebase_modifiedby", null); + } + } + + /// + /// N:1 TransactionCurrency_MailMergeTemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_MailMergeTemplate")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_MailMergeTemplate + { + get + { + return this.GetRelatedEntity("TransactionCurrency_MailMergeTemplate", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_MailMergeTemplate"); + this.SetRelatedEntity("TransactionCurrency_MailMergeTemplate", null, value); + this.OnPropertyChanged("TransactionCurrency_MailMergeTemplate"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum MetricState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Type of measurement for a goal, such as money amount or count. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("metric")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Metric : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Metric() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "metric"; + + public const int EntityTypeCode = 9603; + + 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)); + } + } + + /// + /// Data type of the amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amountdatatype")] + public Microsoft.Xrm.Sdk.OptionSetValue AmountDataType + { + get + { + return this.GetAttributeValue("amountdatatype"); + } + set + { + this.OnPropertyChanging("AmountDataType"); + this.SetAttributeValue("amountdatatype", value); + this.OnPropertyChanged("AmountDataType"); + } + } + + /// + /// 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"); + } + } + + /// + /// Description of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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 indicates whether the metric type is Count or Amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isamount")] + public System.Nullable IsAmount + { + get + { + return this.GetAttributeValue>("isamount"); + } + set + { + this.OnPropertyChanging("IsAmount"); + this.SetAttributeValue("isamount", value); + this.OnPropertyChanged("IsAmount"); + } + } + + /// + /// Indicates whether the goal metric tracks stretch targets. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isstretchtracked")] + public System.Nullable IsStretchTracked + { + get + { + return this.GetAttributeValue>("isstretchtracked"); + } + set + { + this.OnPropertyChanging("IsStretchTracked"); + this.SetAttributeValue("isstretchtracked", value); + this.OnPropertyChanged("IsStretchTracked"); + } + } + + /// + /// Unique identifier of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public System.Nullable MetricId + { + get + { + return this.GetAttributeValue>("metricid"); + } + set + { + this.OnPropertyChanging("MetricId"); + this.SetAttributeValue("metricid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("MetricId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.MetricId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Name of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization. + /// + [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"); + } + } + + /// + /// Status of the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.MetricState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.MetricState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the goal metric. + /// + [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"); + } + } + + /// + /// 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 goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N metric_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_AsyncOperations")] + public System.Collections.Generic.IEnumerable metric_AsyncOperations + { + get + { + return this.GetRelatedEntities("metric_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("metric_AsyncOperations"); + this.SetRelatedEntities("metric_AsyncOperations", null, value); + this.OnPropertyChanged("metric_AsyncOperations"); + } + } + + /// + /// 1:N metric_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_goal")] + public System.Collections.Generic.IEnumerable metric_goal + { + get + { + return this.GetRelatedEntities("metric_goal", null); + } + set + { + this.OnPropertyChanging("metric_goal"); + this.SetRelatedEntities("metric_goal", null, value); + this.OnPropertyChanged("metric_goal"); + } + } + + /// + /// 1:N metric_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_ProcessSessions")] + public System.Collections.Generic.IEnumerable metric_ProcessSessions + { + get + { + return this.GetRelatedEntities("metric_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("metric_ProcessSessions"); + this.SetRelatedEntities("metric_ProcessSessions", null, value); + this.OnPropertyChanged("metric_ProcessSessions"); + } + } + + /// + /// 1:N metric_rollupfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_rollupfield")] + public System.Collections.Generic.IEnumerable metric_rollupfield + { + get + { + return this.GetRelatedEntities("metric_rollupfield", null); + } + set + { + this.OnPropertyChanging("metric_rollupfield"); + this.SetRelatedEntities("metric_rollupfield", null, value); + this.OnPropertyChanged("metric_rollupfield"); + } + } + + /// + /// 1:N userentityinstancedata_metric + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_metric")] + public System.Collections.Generic.IEnumerable userentityinstancedata_metric + { + get + { + return this.GetRelatedEntities("userentityinstancedata_metric", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_metric"); + this.SetRelatedEntities("userentityinstancedata_metric", null, value); + this.OnPropertyChanged("userentityinstancedata_metric"); + } + } + + /// + /// N:1 lk_metric_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_createdby + { + get + { + return this.GetRelatedEntity("lk_metric_createdby", null); + } + } + + /// + /// N:1 lk_metric_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_metric_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_metric_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_modifiedby + { + get + { + return this.GetRelatedEntity("lk_metric_modifiedby", null); + } + } + + /// + /// N:1 lk_metric_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_metric_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_metric_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_metric + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_metric")] + public Xrm.Framework.CI.Common.Entities.Organization organization_metric + { + get + { + return this.GetRelatedEntity("organization_metric", null); + } + } + } + + /// + /// Monthly fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("monthlyfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class MonthlyFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public MonthlyFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "monthlyfiscalcalendar"; + + public const int EntityTypeCode = 2003; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the monthly fiscal calendar was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the monthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the monthly fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the monthly fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the quota for the monthly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the quota for the monthly fiscal calendar 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 monthlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Sales quota for the first month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month1")] + public Microsoft.Xrm.Sdk.Money Month1 + { + get + { + return this.GetAttributeValue("month1"); + } + set + { + this.OnPropertyChanging("Month1"); + this.SetAttributeValue("month1", value); + this.OnPropertyChanged("Month1"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month1_base")] + public Microsoft.Xrm.Sdk.Money Month1_Base + { + get + { + return this.GetAttributeValue("month1_base"); + } + } + + /// + /// Sales quota for the tenth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month10")] + public Microsoft.Xrm.Sdk.Money Month10 + { + get + { + return this.GetAttributeValue("month10"); + } + set + { + this.OnPropertyChanging("Month10"); + this.SetAttributeValue("month10", value); + this.OnPropertyChanged("Month10"); + } + } + + /// + /// Base currency equivalent of the sales quota for the tenth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month10_base")] + public Microsoft.Xrm.Sdk.Money Month10_Base + { + get + { + return this.GetAttributeValue("month10_base"); + } + } + + /// + /// Sales quota for the eleventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month11")] + public Microsoft.Xrm.Sdk.Money Month11 + { + get + { + return this.GetAttributeValue("month11"); + } + set + { + this.OnPropertyChanging("Month11"); + this.SetAttributeValue("month11", value); + this.OnPropertyChanged("Month11"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eleventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month11_base")] + public Microsoft.Xrm.Sdk.Money Month11_Base + { + get + { + return this.GetAttributeValue("month11_base"); + } + } + + /// + /// Sales quota for the twelfth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month12")] + public Microsoft.Xrm.Sdk.Money Month12 + { + get + { + return this.GetAttributeValue("month12"); + } + set + { + this.OnPropertyChanging("Month12"); + this.SetAttributeValue("month12", value); + this.OnPropertyChanged("Month12"); + } + } + + /// + /// Base currency equivalent of the sales quota for the twelfth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month12_base")] + public Microsoft.Xrm.Sdk.Money Month12_Base + { + get + { + return this.GetAttributeValue("month12_base"); + } + } + + /// + /// Sales quota for the second month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month2")] + public Microsoft.Xrm.Sdk.Money Month2 + { + get + { + return this.GetAttributeValue("month2"); + } + set + { + this.OnPropertyChanging("Month2"); + this.SetAttributeValue("month2", value); + this.OnPropertyChanged("Month2"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month2_base")] + public Microsoft.Xrm.Sdk.Money Month2_Base + { + get + { + return this.GetAttributeValue("month2_base"); + } + } + + /// + /// Sales quota for the third month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month3")] + public Microsoft.Xrm.Sdk.Money Month3 + { + get + { + return this.GetAttributeValue("month3"); + } + set + { + this.OnPropertyChanging("Month3"); + this.SetAttributeValue("month3", value); + this.OnPropertyChanged("Month3"); + } + } + + /// + /// Base currency equivalent of the sales quota for the third month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month3_base")] + public Microsoft.Xrm.Sdk.Money Month3_Base + { + get + { + return this.GetAttributeValue("month3_base"); + } + } + + /// + /// Sales quota for the fourth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month4")] + public Microsoft.Xrm.Sdk.Money Month4 + { + get + { + return this.GetAttributeValue("month4"); + } + set + { + this.OnPropertyChanging("Month4"); + this.SetAttributeValue("month4", value); + this.OnPropertyChanged("Month4"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fourth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month4_base")] + public Microsoft.Xrm.Sdk.Money Month4_Base + { + get + { + return this.GetAttributeValue("month4_base"); + } + } + + /// + /// Sales quota for the fifth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month5")] + public Microsoft.Xrm.Sdk.Money Month5 + { + get + { + return this.GetAttributeValue("month5"); + } + set + { + this.OnPropertyChanging("Month5"); + this.SetAttributeValue("month5", value); + this.OnPropertyChanged("Month5"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fifth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month5_base")] + public Microsoft.Xrm.Sdk.Money Month5_Base + { + get + { + return this.GetAttributeValue("month5_base"); + } + } + + /// + /// Sales quota for the sixth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month6")] + public Microsoft.Xrm.Sdk.Money Month6 + { + get + { + return this.GetAttributeValue("month6"); + } + set + { + this.OnPropertyChanging("Month6"); + this.SetAttributeValue("month6", value); + this.OnPropertyChanged("Month6"); + } + } + + /// + /// Base currency equivalent of the sales quota for the sixth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month6_base")] + public Microsoft.Xrm.Sdk.Money Month6_Base + { + get + { + return this.GetAttributeValue("month6_base"); + } + } + + /// + /// Sales quota for the seventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month7")] + public Microsoft.Xrm.Sdk.Money Month7 + { + get + { + return this.GetAttributeValue("month7"); + } + set + { + this.OnPropertyChanging("Month7"); + this.SetAttributeValue("month7", value); + this.OnPropertyChanged("Month7"); + } + } + + /// + /// Base currency equivalent of the sales quota for the seventh month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month7_base")] + public Microsoft.Xrm.Sdk.Money Month7_Base + { + get + { + return this.GetAttributeValue("month7_base"); + } + } + + /// + /// Sales quota for the eighth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month8")] + public Microsoft.Xrm.Sdk.Money Month8 + { + get + { + return this.GetAttributeValue("month8"); + } + set + { + this.OnPropertyChanging("Month8"); + this.SetAttributeValue("month8", value); + this.OnPropertyChanged("Month8"); + } + } + + /// + /// Base currency equivalent of the sales quota for the eighth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month8_base")] + public Microsoft.Xrm.Sdk.Money Month8_Base + { + get + { + return this.GetAttributeValue("month8_base"); + } + } + + /// + /// Sales quota for the ninth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month9")] + public Microsoft.Xrm.Sdk.Money Month9 + { + get + { + return this.GetAttributeValue("month9"); + } + set + { + this.OnPropertyChanging("Month9"); + this.SetAttributeValue("month9", value); + this.OnPropertyChanged("Month9"); + } + } + + /// + /// Base currency equivalent of the sales quota for the ninth month in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("month9_base")] + public Microsoft.Xrm.Sdk.Money Month9_Base + { + get + { + return this.GetAttributeValue("month9_base"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 monthly fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the monthly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N MonthlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable MonthlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("MonthlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("MonthlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("MonthlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("MonthlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N MonthlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MonthlyFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable MonthlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("MonthlyFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("MonthlyFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("MonthlyFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("MonthlyFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_monthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_monthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_monthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_monthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_monthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_monthlyfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_monthlyfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_monthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_monthlyfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_monthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_monthlyfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_PostAlbumState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Contains user profile images that are stored as attachments and displayed in posts. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_postalbum")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_PostAlbum : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_PostAlbum() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_postalbum"; + + public const int EntityTypeCode = 10000; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// The name of the custom entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_name")] + public string msdyn_name + { + get + { + return this.GetAttributeValue("msdyn_name"); + } + set + { + this.OnPropertyChanging("msdyn_name"); + this.SetAttributeValue("msdyn_name", value); + this.OnPropertyChanged("msdyn_name"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postalbumid")] + public System.Nullable msdyn_PostAlbumId + { + get + { + return this.GetAttributeValue>("msdyn_postalbumid"); + } + set + { + this.OnPropertyChanging("msdyn_PostAlbumId"); + this.SetAttributeValue("msdyn_postalbumid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_PostAlbumId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postalbumid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_PostAlbumId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Profile Album + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_PostAlbumState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_PostAlbumState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Profile Album + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_postalbum_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ActivityPointers")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_ActivityPointers + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ActivityPointers"); + this.SetRelatedEntities("msdyn_postalbum_ActivityPointers", null, value); + this.OnPropertyChanged("msdyn_postalbum_ActivityPointers"); + } + } + + /// + /// 1:N msdyn_postalbum_Annotations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Annotations")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Annotations + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Annotations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Annotations"); + this.SetRelatedEntities("msdyn_postalbum_Annotations", null, value); + this.OnPropertyChanged("msdyn_postalbum_Annotations"); + } + } + + /// + /// 1:N msdyn_postalbum_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Appointments")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Appointments + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Appointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Appointments"); + this.SetRelatedEntities("msdyn_postalbum_Appointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_Appointments"); + } + } + + /// + /// 1:N msdyn_postalbum_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_AsyncOperations"); + this.SetRelatedEntities("msdyn_postalbum_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postalbum_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_postalbum_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_postalbum_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_postalbum_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_postalbum_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections1")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_connections1 + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_connections1", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections1"); + this.SetRelatedEntities("msdyn_postalbum_connections1", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections1"); + } + } + + /// + /// 1:N msdyn_postalbum_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_connections2")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_connections2 + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_connections2", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_connections2"); + this.SetRelatedEntities("msdyn_postalbum_connections2", null, value); + this.OnPropertyChanged("msdyn_postalbum_connections2"); + } + } + + /// + /// 1:N msdyn_postalbum_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_DuplicateBaseRecord"); + this.SetRelatedEntities("msdyn_postalbum_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("msdyn_postalbum_DuplicateBaseRecord"); + } + } + + /// + /// 1:N msdyn_postalbum_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_DuplicateMatchingRecord"); + this.SetRelatedEntities("msdyn_postalbum_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("msdyn_postalbum_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N msdyn_postalbum_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Emails")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Emails + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Emails", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Emails"); + this.SetRelatedEntities("msdyn_postalbum_Emails", null, value); + this.OnPropertyChanged("msdyn_postalbum_Emails"); + } + } + + /// + /// 1:N msdyn_postalbum_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Faxes")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Faxes + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Faxes", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Faxes"); + this.SetRelatedEntities("msdyn_postalbum_Faxes", null, value); + this.OnPropertyChanged("msdyn_postalbum_Faxes"); + } + } + + /// + /// 1:N msdyn_postalbum_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Letters")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Letters + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Letters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Letters"); + this.SetRelatedEntities("msdyn_postalbum_Letters", null, value); + this.OnPropertyChanged("msdyn_postalbum_Letters"); + } + } + + /// + /// 1:N msdyn_postalbum_PhoneCalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PhoneCalls")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_PhoneCalls + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_PhoneCalls", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PhoneCalls"); + this.SetRelatedEntities("msdyn_postalbum_PhoneCalls", null, value); + this.OnPropertyChanged("msdyn_postalbum_PhoneCalls"); + } + } + + /// + /// 1:N msdyn_postalbum_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_postalbum_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_postalbum_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ProcessSession"); + this.SetRelatedEntities("msdyn_postalbum_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postalbum_ProcessSession"); + } + } + + /// + /// 1:N msdyn_postalbum_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_RecurringAppointmentMasters"); + this.SetRelatedEntities("msdyn_postalbum_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("msdyn_postalbum_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N msdyn_postalbum_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ServiceAppointments")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_ServiceAppointments + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ServiceAppointments"); + this.SetRelatedEntities("msdyn_postalbum_ServiceAppointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_ServiceAppointments"); + } + } + + /// + /// 1:N msdyn_postalbum_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Tasks")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_Tasks + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_Tasks", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Tasks"); + this.SetRelatedEntities("msdyn_postalbum_Tasks", null, value); + this.OnPropertyChanged("msdyn_postalbum_Tasks"); + } + } + + /// + /// 1:N msdyn_postalbum_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_postalbum_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_postalbum_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_postalbum_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postalbum_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 business_unit_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_postalbum")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_msdyn_postalbum + { + get + { + return this.GetRelatedEntity("business_unit_msdyn_postalbum", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_postalbum_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postalbum_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postalbum_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_postalbum")] + public Xrm.Framework.CI.Common.Entities.Team team_msdyn_postalbum + { + get + { + return this.GetRelatedEntity("team_msdyn_postalbum", null); + } + } + + /// + /// N:1 user_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_postalbum")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_msdyn_postalbum + { + get + { + return this.GetRelatedEntity("user_msdyn_postalbum", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_PostConfigState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Enable or disable entities for Activity Feeds and Yammer collaboration. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_postconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_PostConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_PostConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_postconfig"; + + public const int EntityTypeCode = 10001; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enables or disables the wall on the entity form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_configurewall")] + public System.Nullable msdyn_ConfigureWall + { + get + { + return this.GetAttributeValue>("msdyn_configurewall"); + } + set + { + this.OnPropertyChanging("msdyn_ConfigureWall"); + this.SetAttributeValue("msdyn_configurewall", value); + this.OnPropertyChanged("msdyn_ConfigureWall"); + } + } + + /// + /// Display name of the entity configured by this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entitydisplayname")] + public string msdyn_EntityDisplayName + { + get + { + return this.GetAttributeValue("msdyn_entitydisplayname"); + } + set + { + this.OnPropertyChanging("msdyn_EntityDisplayName"); + this.SetAttributeValue("msdyn_entitydisplayname", value); + this.OnPropertyChanged("msdyn_EntityDisplayName"); + } + } + + /// + /// Logical name of the entity configured by this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entityname")] + public string msdyn_EntityName + { + get + { + return this.GetAttributeValue("msdyn_entityname"); + } + set + { + this.OnPropertyChanging("msdyn_EntityName"); + this.SetAttributeValue("msdyn_entityname", value); + this.OnPropertyChanged("msdyn_EntityName"); + } + } + + /// + /// Identifier for the view of records that a user follows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_followingviewid")] + public string msdyn_FollowingViewId + { + get + { + return this.GetAttributeValue("msdyn_followingviewid"); + } + set + { + this.OnPropertyChanging("msdyn_FollowingViewId"); + this.SetAttributeValue("msdyn_followingviewid", value); + this.OnPropertyChanged("msdyn_FollowingViewId"); + } + } + + /// + /// Identifier for the view of records that a user follows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_followingviewid2")] + public string msdyn_FollowingViewId2 + { + get + { + return this.GetAttributeValue("msdyn_followingviewid2"); + } + set + { + this.OnPropertyChanging("msdyn_FollowingViewId2"); + this.SetAttributeValue("msdyn_followingviewid2", value); + this.OnPropertyChanged("msdyn_FollowingViewId2"); + } + } + + /// + /// Object Type Code of the entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_otc")] + public System.Nullable msdyn_Otc + { + get + { + return this.GetAttributeValue>("msdyn_otc"); + } + set + { + this.OnPropertyChanging("msdyn_Otc"); + this.SetAttributeValue("msdyn_otc", value); + this.OnPropertyChanged("msdyn_Otc"); + } + } + + /// + /// Unique identifier of the post configuration for this rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + public System.Nullable msdyn_PostConfigId + { + get + { + return this.GetAttributeValue>("msdyn_postconfigid"); + } + set + { + this.OnPropertyChanging("msdyn_PostConfigId"); + this.SetAttributeValue("msdyn_postconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_PostConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_PostConfigId = value; + } + } + + /// + /// Information about the success or failure of the configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_status")] + public string msdyn_Status + { + get + { + return this.GetAttributeValue("msdyn_status"); + } + set + { + this.OnPropertyChanging("msdyn_Status"); + this.SetAttributeValue("msdyn_status", value); + this.OnPropertyChanged("msdyn_Status"); + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Post Configuration + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_PostConfigState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_PostConfigState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Post Configuration + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_postconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_AsyncOperations"); + this.SetRelatedEntities("msdyn_postconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postconfig_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_postconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_postconfig_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_postconfig_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_postconfig_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_msdyn_postruleconfig")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_msdyn_postruleconfig", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_msdyn_postruleconfig"); + this.SetRelatedEntities("msdyn_postconfig_msdyn_postruleconfig", null, value); + this.OnPropertyChanged("msdyn_postconfig_msdyn_postruleconfig"); + } + } + + /// + /// 1:N msdyn_postconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_postconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_postconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_ProcessSession"); + this.SetRelatedEntities("msdyn_postconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postconfig_ProcessSession"); + } + } + + /// + /// 1:N msdyn_postconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_postconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postconfig_UserEntityInstanceDatas"); + } + } + + /// + /// 1:N msdyn_postconfig_wallsavedquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_wallsavedquery")] + public System.Collections.Generic.IEnumerable msdyn_postconfig_wallsavedquery + { + get + { + return this.GetRelatedEntities("msdyn_postconfig_wallsavedquery", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_wallsavedquery"); + this.SetRelatedEntities("msdyn_postconfig_wallsavedquery", null, value); + this.OnPropertyChanged("msdyn_postconfig_wallsavedquery"); + } + } + + /// + /// N:1 lk_msdyn_postconfig_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_postconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_postconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_postconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_msdyn_postconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postconfig")] + public Xrm.Framework.CI.Common.Entities.Organization organization_msdyn_postconfig + { + get + { + return this.GetRelatedEntity("organization_msdyn_postconfig", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_PostRuleConfigState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Enable or disable system post rules for an entity for Activity Feeds and Yammer. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_postruleconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_PostRuleConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_PostRuleConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_postruleconfig"; + + public const int EntityTypeCode = 10002; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Internal Use Only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_formatid")] + public string msdyn_FormatId + { + get + { + return this.GetAttributeValue("msdyn_formatid"); + } + set + { + this.OnPropertyChanging("msdyn_FormatId"); + this.SetAttributeValue("msdyn_formatid", value); + this.OnPropertyChanged("msdyn_FormatId"); + } + } + + /// + /// Name of the rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_name")] + public string msdyn_name + { + get + { + return this.GetAttributeValue("msdyn_name"); + } + set + { + this.OnPropertyChanging("msdyn_name"); + this.SetAttributeValue("msdyn_name", value); + this.OnPropertyChanged("msdyn_name"); + } + } + + /// + /// Entity that is enabled for Activity feeds. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_PostConfigId + { + get + { + return this.GetAttributeValue("msdyn_postconfigid"); + } + set + { + this.OnPropertyChanging("msdyn_PostConfigId"); + this.SetAttributeValue("msdyn_postconfigid", value); + this.OnPropertyChanged("msdyn_PostConfigId"); + } + } + + /// + /// Unique identifier of the post rule configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postruleconfigid")] + public System.Nullable msdyn_PostRuleConfigId + { + get + { + return this.GetAttributeValue>("msdyn_postruleconfigid"); + } + set + { + this.OnPropertyChanging("msdyn_PostRuleConfigId"); + this.SetAttributeValue("msdyn_postruleconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_PostRuleConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postruleconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_PostRuleConfigId = value; + } + } + + /// + /// Determine whether to post this message to the Yammer Activity Stream. Please do not check this box if this message contains sensitive information requiring Microsoft Dynamics CRM access. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_posttoyammer")] + public System.Nullable msdyn_PostToYammer + { + get + { + return this.GetAttributeValue>("msdyn_posttoyammer"); + } + set + { + this.OnPropertyChanging("msdyn_PostToYammer"); + this.SetAttributeValue("msdyn_posttoyammer", value); + this.OnPropertyChanged("msdyn_PostToYammer"); + } + } + + /// + /// Identifier in the format WebResourceName:SchemaName of the definition for this rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_ruleid")] + public string msdyn_RuleId + { + get + { + return this.GetAttributeValue("msdyn_ruleid"); + } + set + { + this.OnPropertyChanging("msdyn_RuleId"); + this.SetAttributeValue("msdyn_ruleid", value); + this.OnPropertyChanged("msdyn_RuleId"); + } + } + + /// + /// Internal Use Only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_rulesource")] + public string msdyn_RuleSource + { + get + { + return this.GetAttributeValue("msdyn_rulesource"); + } + set + { + this.OnPropertyChanging("msdyn_RuleSource"); + this.SetAttributeValue("msdyn_rulesource", value); + this.OnPropertyChanged("msdyn_RuleSource"); + } + } + + /// + /// Unique identifier of the SDK message processing step for this rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_stepid")] + public string msdyn_StepId + { + get + { + return this.GetAttributeValue("msdyn_stepid"); + } + set + { + this.OnPropertyChanging("msdyn_StepId"); + this.SetAttributeValue("msdyn_stepid", value); + this.OnPropertyChanged("msdyn_StepId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Post Rule Configuration + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfigState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfigState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Post Rule Configuration + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_postruleconfig_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_AsyncOperations"); + this.SetRelatedEntities("msdyn_postruleconfig_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_postruleconfig_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_postruleconfig_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_postruleconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_postruleconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_ProcessSession"); + this.SetRelatedEntities("msdyn_postruleconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_ProcessSession"); + } + } + + /// + /// 1:N msdyn_postruleconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_postruleconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_postruleconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_postruleconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_postruleconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_postruleconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_postruleconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postconfig_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_msdyn_postruleconfig")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_msdyn_postruleconfig", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_msdyn_postruleconfig"); + this.SetRelatedEntity("msdyn_postconfig_msdyn_postruleconfig", null, value); + this.OnPropertyChanged("msdyn_postconfig_msdyn_postruleconfig"); + } + } + + /// + /// N:1 organization_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postruleconfig")] + public Xrm.Framework.CI.Common.Entities.Organization organization_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntity("organization_msdyn_postruleconfig", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_wallsavedqueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Contains information regarding which views are available for users to display on their personal walls. Only an administrator can specify the views that users can choose from to display on their personal walls. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_wallsavedquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_wallsavedquery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_wallsavedquery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_wallsavedquery"; + + public const int EntityTypeCode = 10003; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type of entity to which the corresponding views belong + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entitydisplayname")] + public string msdyn_entitydisplayname + { + get + { + return this.GetAttributeValue("msdyn_entitydisplayname"); + } + set + { + this.OnPropertyChanging("msdyn_entitydisplayname"); + this.SetAttributeValue("msdyn_entitydisplayname", value); + this.OnPropertyChanged("msdyn_entitydisplayname"); + } + } + + /// + /// Name of the entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entityname")] + public string msdyn_entityname + { + get + { + return this.GetAttributeValue("msdyn_entityname"); + } + set + { + this.OnPropertyChanging("msdyn_entityname"); + this.SetAttributeValue("msdyn_entityname", value); + this.OnPropertyChanged("msdyn_entityname"); + } + } + + /// + /// Information that indicates whether the entity is virtual, that is whether, it is generated by a plug-in, and no corresponding entity instance exists. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvirtual")] + public System.Nullable msdyn_IsVirtual + { + get + { + return this.GetAttributeValue>("msdyn_isvirtual"); + } + set + { + this.OnPropertyChanging("msdyn_IsVirtual"); + this.SetAttributeValue("msdyn_isvirtual", value); + this.OnPropertyChanged("msdyn_IsVirtual"); + } + } + + /// + /// Indicates that corresponding system view should be displayed on personal wall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisible")] + public System.Nullable msdyn_IsVisible + { + get + { + return this.GetAttributeValue>("msdyn_isvisible"); + } + set + { + this.OnPropertyChanging("msdyn_IsVisible"); + this.SetAttributeValue("msdyn_isvisible", value); + this.OnPropertyChanged("msdyn_IsVisible"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisiblebit")] + public System.Nullable msdyn_isvisiblebit + { + get + { + return this.GetAttributeValue>("msdyn_isvisiblebit"); + } + set + { + this.OnPropertyChanging("msdyn_isvisiblebit"); + this.SetAttributeValue("msdyn_isvisiblebit", value); + this.OnPropertyChanged("msdyn_isvisiblebit"); + } + } + + /// + /// Type of entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_otc")] + public System.Nullable msdyn_otc + { + get + { + return this.GetAttributeValue>("msdyn_otc"); + } + set + { + this.OnPropertyChanging("msdyn_otc"); + this.SetAttributeValue("msdyn_otc", value); + this.OnPropertyChanged("msdyn_otc"); + } + } + + /// + /// Unique identifier for Post Configuration associated with Wall View. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigurationid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_postconfigurationid + { + get + { + return this.GetAttributeValue("msdyn_postconfigurationid"); + } + set + { + this.OnPropertyChanging("msdyn_postconfigurationid"); + this.SetAttributeValue("msdyn_postconfigurationid", value); + this.OnPropertyChanged("msdyn_postconfigurationid"); + } + } + + /// + /// Unique identifier of the view that should be displayed on the personal wall for all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_savedqueryid")] + public string msdyn_SavedQueryId + { + get + { + return this.GetAttributeValue("msdyn_savedqueryid"); + } + set + { + this.OnPropertyChanging("msdyn_SavedQueryId"); + this.SetAttributeValue("msdyn_savedqueryid", value); + this.OnPropertyChanged("msdyn_SavedQueryId"); + } + } + + /// + /// Name of the corresponding view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_savedqueryname")] + public string msdyn_savedqueryname + { + get + { + return this.GetAttributeValue("msdyn_savedqueryname"); + } + set + { + this.OnPropertyChanging("msdyn_savedqueryname"); + this.SetAttributeValue("msdyn_savedqueryname", value); + this.OnPropertyChanged("msdyn_savedqueryname"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + public System.Nullable msdyn_wallsavedqueryId + { + get + { + return this.GetAttributeValue>("msdyn_wallsavedqueryid"); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryId"); + this.SetAttributeValue("msdyn_wallsavedqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_wallsavedqueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_wallsavedqueryId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Wall View + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Wall View + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_AsyncOperations"); + this.SetRelatedEntities("msdyn_wallsavedquery_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_wallsavedquery_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_ProcessSession"); + this.SetRelatedEntities("msdyn_wallsavedquery_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_ProcessSession"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_wallsavedquery_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_UserEntityInstanceDatas"); + } + } + + /// + /// 1:N msdyn_wallsavedquery_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedquery_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedquery_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_wallsavedqueryusersettings"); + this.SetRelatedEntities("msdyn_wallsavedquery_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_wallsavedqueryusersettings"); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postconfig_wallsavedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_postconfigurationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_wallsavedquery")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_wallsavedquery + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_wallsavedquery", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_wallsavedquery"); + this.SetRelatedEntity("msdyn_postconfig_wallsavedquery", null, value); + this.OnPropertyChanged("msdyn_postconfig_wallsavedquery"); + } + } + + /// + /// N:1 organization_msdyn_wallsavedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_wallsavedquery")] + public Xrm.Framework.CI.Common.Entities.Organization organization_msdyn_wallsavedquery + { + get + { + return this.GetRelatedEntity("organization_msdyn_wallsavedquery", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum msdyn_wallsavedqueryusersettingsState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Contains user personalization information regarding which of the administrator’s selected views to display on a user’s personal wall. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_wallsavedqueryusersettings")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class msdyn_wallsavedqueryusersettings : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public msdyn_wallsavedqueryusersettings() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "msdyn_wallsavedqueryusersettings"; + + public const int EntityTypeCode = 10004; + + 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// XML blob that stores personalization data for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_data")] + public string msdyn_data + { + get + { + return this.GetAttributeValue("msdyn_data"); + } + set + { + this.OnPropertyChanging("msdyn_data"); + this.SetAttributeValue("msdyn_data", value); + this.OnPropertyChanged("msdyn_data"); + } + } + + /// + /// Indicates that view is selected by default if value is greater than 0. Also contains information which specific filter is applied. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_default")] + public System.Nullable msdyn_default + { + get + { + return this.GetAttributeValue>("msdyn_default"); + } + set + { + this.OnPropertyChanging("msdyn_default"); + this.SetAttributeValue("msdyn_default", value); + this.OnPropertyChanged("msdyn_default"); + } + } + + /// + /// Display name of the entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entitydisplayname")] + public string msdyn_entitydisplayname + { + get + { + return this.GetAttributeValue("msdyn_entitydisplayname"); + } + set + { + this.OnPropertyChanging("msdyn_entitydisplayname"); + this.SetAttributeValue("msdyn_entitydisplayname", value); + this.OnPropertyChanged("msdyn_entitydisplayname"); + } + } + + /// + /// Name of the entity to which the corresponding views belong. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_entityname")] + public string msdyn_entityname + { + get + { + return this.GetAttributeValue("msdyn_entityname"); + } + set + { + this.OnPropertyChanging("msdyn_entityname"); + this.SetAttributeValue("msdyn_entityname", value); + this.OnPropertyChanged("msdyn_entityname"); + } + } + + /// + /// Indicates that wall should be included in response to avoid roundtrips to server + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_includewallinresponse")] + public System.Nullable msdyn_includewallinresponse + { + get + { + return this.GetAttributeValue>("msdyn_includewallinresponse"); + } + set + { + this.OnPropertyChanging("msdyn_includewallinresponse"); + this.SetAttributeValue("msdyn_includewallinresponse", value); + this.OnPropertyChanged("msdyn_includewallinresponse"); + } + } + + /// + /// Indicates that corresponding view is following view + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isfollowing")] + public System.Nullable msdyn_isfollowing + { + get + { + return this.GetAttributeValue>("msdyn_isfollowing"); + } + set + { + this.OnPropertyChanging("msdyn_isfollowing"); + this.SetAttributeValue("msdyn_isfollowing", value); + this.OnPropertyChanged("msdyn_isfollowing"); + } + } + + /// + /// Indicates that the record is virtual + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvirtual")] + public System.Nullable msdyn_IsVirtual + { + get + { + return this.GetAttributeValue>("msdyn_isvirtual"); + } + set + { + this.OnPropertyChanging("msdyn_IsVirtual"); + this.SetAttributeValue("msdyn_isvirtual", value); + this.OnPropertyChanged("msdyn_IsVirtual"); + } + } + + /// + /// Information that indicates whether the corresponding view should be displayed on the personal wall for this user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisible")] + public System.Nullable msdyn_isvisible + { + get + { + return this.GetAttributeValue>("msdyn_isvisible"); + } + set + { + this.OnPropertyChanging("msdyn_isvisible"); + this.SetAttributeValue("msdyn_isvisible", value); + this.OnPropertyChanged("msdyn_isvisible"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isvisiblebit")] + public System.Nullable msdyn_isvisiblebit + { + get + { + return this.GetAttributeValue>("msdyn_isvisiblebit"); + } + set + { + this.OnPropertyChanging("msdyn_isvisiblebit"); + this.SetAttributeValue("msdyn_isvisiblebit", value); + this.OnPropertyChanged("msdyn_isvisiblebit"); + } + } + + /// + /// Virtual column which contains entity type code for the entities returned by corresponding savedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_otc")] + public System.Nullable msdyn_otc + { + get + { + return this.GetAttributeValue>("msdyn_otc"); + } + set + { + this.OnPropertyChanging("msdyn_otc"); + this.SetAttributeValue("msdyn_otc", value); + this.OnPropertyChanged("msdyn_otc"); + } + } + + /// + /// Name of the corresponding view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_savedqueryname")] + public string msdyn_savedqueryname + { + get + { + return this.GetAttributeValue("msdyn_savedqueryname"); + } + set + { + this.OnPropertyChanging("msdyn_savedqueryname"); + this.SetAttributeValue("msdyn_savedqueryname", value); + this.OnPropertyChanged("msdyn_savedqueryname"); + } + } + + /// + /// Sort order to be used when displaying the filter on the user’s personal wall. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_sortorder")] + public System.Nullable msdyn_sortorder + { + get + { + return this.GetAttributeValue>("msdyn_sortorder"); + } + set + { + this.OnPropertyChanging("msdyn_sortorder"); + this.SetAttributeValue("msdyn_sortorder", value); + this.OnPropertyChanged("msdyn_sortorder"); + } + } + + /// + /// Reserved to support different view types. Currently not used. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_type")] + public System.Nullable msdyn_type + { + get + { + return this.GetAttributeValue>("msdyn_type"); + } + set + { + this.OnPropertyChanging("msdyn_type"); + this.SetAttributeValue("msdyn_type", value); + this.OnPropertyChanged("msdyn_type"); + } + } + + /// + /// Unique identifier for User associated with Wall View User Setting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_userid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_userid + { + get + { + return this.GetAttributeValue("msdyn_userid"); + } + set + { + this.OnPropertyChanging("msdyn_userid"); + this.SetAttributeValue("msdyn_userid", value); + this.OnPropertyChanged("msdyn_userid"); + } + } + + /// + /// Unique identifier for Wall View associated with Wall View User Setting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + public Microsoft.Xrm.Sdk.EntityReference msdyn_wallsavedqueryid + { + get + { + return this.GetAttributeValue("msdyn_wallsavedqueryid"); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryid"); + this.SetAttributeValue("msdyn_wallsavedqueryid", value); + this.OnPropertyChanged("msdyn_wallsavedqueryid"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryusersettingsid")] + public System.Nullable msdyn_wallsavedqueryusersettingsId + { + get + { + return this.GetAttributeValue>("msdyn_wallsavedqueryusersettingsid"); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettingsId"); + this.SetAttributeValue("msdyn_wallsavedqueryusersettingsid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("msdyn_wallsavedqueryusersettingsId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryusersettingsid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.msdyn_wallsavedqueryusersettingsId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Status of the Wall View User Setting + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable statecode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettingsState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettingsState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Wall View User Setting + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_AsyncOperations")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_AsyncOperations + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_AsyncOperations"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_AsyncOperations", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_AsyncOperations"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_BulkDeleteFailures"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_BulkDeleteFailures", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_BulkDeleteFailures"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_ProcessSession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_ProcessSession")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_ProcessSession + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_ProcessSession"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_ProcessSession"); + } + } + + /// + /// 1:N msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas")] + public System.Collections.Generic.IEnumerable msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntities("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + this.SetRelatedEntities("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 business_unit_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("business_unit_msdyn_wallsavedqueryusersettings", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_createdby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_createdby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_modifiedby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_modifiedby", null); + } + } + + /// + /// N:1 lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_systemuser_wallsavedqueryusersettings_userid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_userid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_systemuser_wallsavedqueryusersettings_userid")] + public Xrm.Framework.CI.Common.Entities.SystemUser msdyn_systemuser_wallsavedqueryusersettings_userid + { + get + { + return this.GetRelatedEntity("msdyn_systemuser_wallsavedqueryusersettings_userid", null); + } + set + { + this.OnPropertyChanging("msdyn_systemuser_wallsavedqueryusersettings_userid"); + this.SetRelatedEntity("msdyn_systemuser_wallsavedqueryusersettings_userid", null, value); + this.OnPropertyChanged("msdyn_systemuser_wallsavedqueryusersettings_userid"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_wallsavedqueryid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_wallsavedqueryusersettings"); + this.SetRelatedEntity("msdyn_wallsavedquery_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_wallsavedqueryusersettings"); + } + } + + /// + /// N:1 team_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.Team team_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("team_msdyn_wallsavedqueryusersettings", null); + } + } + + /// + /// N:1 user_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_wallsavedqueryusersettings")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntity("user_msdyn_wallsavedqueryusersettings", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OpportunityState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Won = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Lost = 2, + } + + /// + /// Potential revenue-generating event, or sale to an account, which needs to be tracked through a sales process to completion. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunity")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Opportunity : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Opportunity() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunity"; + + public const int EntityTypeCode = 3; + + 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 opportunity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Shows the date and time when the opportunity was closed or canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualclosedate")] + public System.Nullable ActualCloseDate + { + get + { + return this.GetAttributeValue>("actualclosedate"); + } + set + { + this.OnPropertyChanging("ActualCloseDate"); + this.SetAttributeValue("actualclosedate", value); + this.OnPropertyChanged("ActualCloseDate"); + } + } + + /// + /// Type the actual revenue amount for the opportunity for reporting and analysis of estimated versus actual sales. Field defaults to the Est. Revenue value when an opportunity is won. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualvalue")] + public Microsoft.Xrm.Sdk.Money ActualValue + { + get + { + return this.GetAttributeValue("actualvalue"); + } + set + { + this.OnPropertyChanging("ActualValue"); + this.SetAttributeValue("actualvalue", value); + this.OnPropertyChanged("ActualValue"); + } + } + + /// + /// Shows the Actual Revenue field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualvalue_base")] + public Microsoft.Xrm.Sdk.Money ActualValue_Base + { + get + { + return this.GetAttributeValue("actualvalue_base"); + } + } + + /// + /// Type a value between 0 and 1,000,000,000,000 to indicate the lead's potential available budget. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount")] + public Microsoft.Xrm.Sdk.Money BudgetAmount + { + get + { + return this.GetAttributeValue("budgetamount"); + } + set + { + this.OnPropertyChanging("BudgetAmount"); + this.SetAttributeValue("budgetamount", value); + this.OnPropertyChanged("BudgetAmount"); + } + } + + /// + /// Shows the budget amount converted to the system's base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetamount_base")] + public Microsoft.Xrm.Sdk.Money BudgetAmount_Base + { + get + { + return this.GetAttributeValue("budgetamount_base"); + } + } + + /// + /// Select the likely budget status for the lead's company. This may help determine the lead rating or your sales approach. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("budgetstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue BudgetStatus + { + get + { + return this.GetAttributeValue("budgetstatus"); + } + set + { + this.OnPropertyChanging("BudgetStatus"); + this.SetAttributeValue("budgetstatus", value); + this.OnPropertyChanged("BudgetStatus"); + } + } + + /// + /// Shows the campaign that the opportunity was created from. The ID is used for tracking the success of the campaign. + /// + [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"); + } + } + + /// + /// Choose whether the proposal feedback has been captured for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("captureproposalfeedback")] + public System.Nullable CaptureProposalFeedback + { + get + { + return this.GetAttributeValue>("captureproposalfeedback"); + } + set + { + this.OnPropertyChanging("CaptureProposalFeedback"); + this.SetAttributeValue("captureproposalfeedback", value); + this.OnPropertyChanged("CaptureProposalFeedback"); + } + } + + /// + /// Type a number from 0 to 100 that represents the likelihood of closing the opportunity. This can aid the sales team in their efforts to convert the opportunity in a sale. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("closeprobability")] + public System.Nullable CloseProbability + { + get + { + return this.GetAttributeValue>("closeprobability"); + } + set + { + this.OnPropertyChanging("CloseProbability"); + this.SetAttributeValue("closeprobability", value); + this.OnPropertyChanged("CloseProbability"); + } + } + + /// + /// Select whether a final proposal has been completed for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completefinalproposal")] + public System.Nullable CompleteFinalProposal + { + get + { + return this.GetAttributeValue>("completefinalproposal"); + } + set + { + this.OnPropertyChanging("CompleteFinalProposal"); + this.SetAttributeValue("completefinalproposal", value); + this.OnPropertyChanged("CompleteFinalProposal"); + } + } + + /// + /// Select whether an internal review has been completed for this opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completeinternalreview")] + public System.Nullable CompleteInternalReview + { + get + { + return this.GetAttributeValue>("completeinternalreview"); + } + set + { + this.OnPropertyChanging("CompleteInternalReview"); + this.SetAttributeValue("completeinternalreview", value); + this.OnPropertyChanged("CompleteInternalReview"); + } + } + + /// + /// Select whether the lead confirmed interest in your offerings. This helps in determining the lead quality and the probability of it turning into an opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("confirminterest")] + public System.Nullable ConfirmInterest + { + get + { + return this.GetAttributeValue>("confirminterest"); + } + set + { + this.OnPropertyChanging("ConfirmInterest"); + this.SetAttributeValue("confirminterest", value); + this.OnPropertyChanged("ConfirmInterest"); + } + } + + /// + /// Unique identifier of the contact associated with the opportunity. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type notes about the company or organization associated with the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentsituation")] + public string CurrentSituation + { + get + { + return this.GetAttributeValue("currentsituation"); + } + set + { + this.OnPropertyChanging("CurrentSituation"); + this.SetAttributeValue("currentsituation", value); + this.OnPropertyChanged("CurrentSituation"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders. + /// + [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 some notes about the customer's requirements, to help the sales team identify products and services that could meet their requirements. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerneed")] + public string CustomerNeed + { + get + { + return this.GetAttributeValue("customerneed"); + } + set + { + this.OnPropertyChanging("CustomerNeed"); + this.SetAttributeValue("customerneed", value); + this.OnPropertyChanged("CustomerNeed"); + } + } + + /// + /// Type notes about the customer's pain points to help the sales team identify products and services that could address these pain points. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerpainpoints")] + public string CustomerPainPoints + { + get + { + return this.GetAttributeValue("customerpainpoints"); + } + set + { + this.OnPropertyChanging("CustomerPainPoints"); + this.SetAttributeValue("customerpainpoints", value); + this.OnPropertyChanged("CustomerPainPoints"); + } + } + + /// + /// Select whether your notes include information about who makes the purchase decisions at the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decisionmaker")] + public System.Nullable DecisionMaker + { + get + { + return this.GetAttributeValue>("decisionmaker"); + } + set + { + this.OnPropertyChanging("DecisionMaker"); + this.SetAttributeValue("decisionmaker", value); + this.OnPropertyChanged("DecisionMaker"); + } + } + + /// + /// Type additional information to describe the opportunity, such as possible products to sell or past purchases from the customer. + /// + [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 a proposal has been developed for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("developproposal")] + public System.Nullable DevelopProposal + { + get + { + return this.GetAttributeValue>("developproposal"); + } + set + { + this.OnPropertyChanging("DevelopProposal"); + this.SetAttributeValue("developproposal", value); + this.OnPropertyChanged("DevelopProposal"); + } + } + + /// + /// Type the discount amount for the opportunity 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"); + } + } + + /// + /// Shows the Opportunity Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 Product Totals field to include additional savings for the customer in the opportunity. + /// + [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 expected closing date of the opportunity to help make accurate revenue forecasts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedclosedate")] + public System.Nullable EstimatedCloseDate + { + get + { + return this.GetAttributeValue>("estimatedclosedate"); + } + set + { + this.OnPropertyChanging("EstimatedCloseDate"); + this.SetAttributeValue("estimatedclosedate", value); + this.OnPropertyChanged("EstimatedCloseDate"); + } + } + + /// + /// Type the estimated revenue amount to indicate the potential sale or value of the opportunity for revenue forecasting. This field can be either system-populated or editable based on the selection in the Revenue field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedvalue")] + public Microsoft.Xrm.Sdk.Money EstimatedValue + { + get + { + return this.GetAttributeValue("estimatedvalue"); + } + set + { + this.OnPropertyChanging("EstimatedValue"); + this.SetAttributeValue("estimatedvalue", value); + this.OnPropertyChanged("EstimatedValue"); + } + } + + /// + /// Shows the Actual Revenue field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("estimatedvalue_base")] + public Microsoft.Xrm.Sdk.Money EstimatedValue_Base + { + get + { + return this.GetAttributeValue("estimatedvalue_base"); + } + } + + /// + /// Select whether the fit between the lead's requirements and your offerings was evaluated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("evaluatefit")] + public System.Nullable EvaluateFit + { + get + { + return this.GetAttributeValue>("evaluatefit"); + } + set + { + this.OnPropertyChanging("EvaluateFit"); + this.SetAttributeValue("evaluatefit", value); + this.OnPropertyChanged("EvaluateFit"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose whether the sales team has recorded detailed notes on the proposals and the account's responses. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filedebrief")] + public System.Nullable FileDebrief + { + get + { + return this.GetAttributeValue>("filedebrief"); + } + set + { + this.OnPropertyChanging("FileDebrief"); + this.SetAttributeValue("filedebrief", value); + this.OnPropertyChanged("FileDebrief"); + } + } + + /// + /// Enter the date and time when the final decision of the opportunity was made. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("finaldecisiondate")] + public System.Nullable FinalDecisionDate + { + get + { + return this.GetAttributeValue>("finaldecisiondate"); + } + set + { + this.OnPropertyChanging("FinalDecisionDate"); + this.SetAttributeValue("finaldecisiondate", value); + this.OnPropertyChanged("FinalDecisionDate"); + } + } + + /// + /// Type the cost of freight or shipping for the products included in the opportunity 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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount_base")] + public Microsoft.Xrm.Sdk.Money FreightAmount_Base + { + get + { + return this.GetAttributeValue("freightamount_base"); + } + } + + /// + /// Select whether information about competitors is included. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identifycompetitors")] + public System.Nullable IdentifyCompetitors + { + get + { + return this.GetAttributeValue>("identifycompetitors"); + } + set + { + this.OnPropertyChanging("IdentifyCompetitors"); + this.SetAttributeValue("identifycompetitors", value); + this.OnPropertyChanged("IdentifyCompetitors"); + } + } + + /// + /// Select whether the customer contacts for this opportunity have been identified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identifycustomercontacts")] + public System.Nullable IdentifyCustomerContacts + { + get + { + return this.GetAttributeValue>("identifycustomercontacts"); + } + set + { + this.OnPropertyChanging("IdentifyCustomerContacts"); + this.SetAttributeValue("identifycustomercontacts", value); + this.OnPropertyChanged("IdentifyCustomerContacts"); + } + } + + /// + /// Choose whether you have recorded who will pursue the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identifypursuitteam")] + public System.Nullable IdentifyPursuitTeam + { + get + { + return this.GetAttributeValue>("identifypursuitteam"); + } + set + { + this.OnPropertyChanging("IdentifyPursuitTeam"); + this.SetAttributeValue("identifypursuitteam", value); + this.OnPropertyChanged("IdentifyPursuitTeam"); + } + } + + /// + /// 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"); + } + } + + /// + /// Choose whether someone from the sales team contacted this lead earlier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialcommunication")] + public Microsoft.Xrm.Sdk.OptionSetValue InitialCommunication + { + get + { + return this.GetAttributeValue("initialcommunication"); + } + set + { + this.OnPropertyChanging("InitialCommunication"); + this.SetAttributeValue("initialcommunication", value); + this.OnPropertyChanged("InitialCommunication"); + } + } + + /// + /// Select whether the estimated revenue for the opportunity is calculated automatically based on the products entered or entered manually by a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isrevenuesystemcalculated")] + public System.Nullable IsRevenueSystemCalculated + { + get + { + return this.GetAttributeValue>("isrevenuesystemcalculated"); + } + set + { + this.OnPropertyChanging("IsRevenueSystemCalculated"); + this.SetAttributeValue("isrevenuesystemcalculated", value); + this.OnPropertyChanged("IsRevenueSystemCalculated"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a subject or descriptive name, such as the expected order or company name, for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose how high the level of need is for the lead's company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("need")] + public Microsoft.Xrm.Sdk.OptionSetValue Need + { + get + { + return this.GetAttributeValue("need"); + } + set + { + this.OnPropertyChanging("Need"); + this.SetAttributeValue("need", value); + this.OnPropertyChanged("Need"); + } + } + + /// + /// Unique identifier of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public System.Nullable OpportunityId + { + get + { + return this.GetAttributeValue>("opportunityid"); + } + set + { + this.OnPropertyChanging("OpportunityId"); + this.SetAttributeValue("opportunityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OpportunityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OpportunityId = value; + } + } + + /// + /// Select the expected value or priority of the opportunity based on revenue, customer status, or closing probability. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityratingcode")] + public Microsoft.Xrm.Sdk.OptionSetValue OpportunityRatingCode + { + get + { + return this.GetAttributeValue("opportunityratingcode"); + } + set + { + this.OnPropertyChanging("OpportunityRatingCode"); + this.SetAttributeValue("opportunityratingcode", value); + this.OnPropertyChanged("OpportunityRatingCode"); + } + } + + /// + /// Choose the lead that the opportunity was created from for reporting and analytics. The field is read-only after the opportunity is created and defaults to the correct lead when an opportunity is created from a converted lead. + /// + [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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose an account to connect this opportunity to, so that the relationship is visible in reports and analytics, and to provide a quick link to additional details, such as financial information and activities. + /// + [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"); + } + } + + /// + /// Choose a contact to connect this opportunity to, so that the relationship is visible in reports and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + public Microsoft.Xrm.Sdk.EntityReference ParentContactId + { + get + { + return this.GetAttributeValue("parentcontactid"); + } + set + { + this.OnPropertyChanging("ParentContactId"); + this.SetAttributeValue("parentcontactid", value); + this.OnPropertyChanged("ParentContactId"); + } + } + + /// + /// Information about whether the opportunity 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 whether the final proposal has been presented to the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentfinalproposal")] + public System.Nullable PresentFinalProposal + { + get + { + return this.GetAttributeValue>("presentfinalproposal"); + } + set + { + this.OnPropertyChanging("PresentFinalProposal"); + this.SetAttributeValue("presentfinalproposal", value); + this.OnPropertyChanged("PresentFinalProposal"); + } + } + + /// + /// Select whether a proposal for the opportunity has been presented to the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentproposal")] + public System.Nullable PresentProposal + { + get + { + return this.GetAttributeValue>("presentproposal"); + } + set + { + this.OnPropertyChanging("PresentProposal"); + this.SetAttributeValue("presentproposal", value); + this.OnPropertyChanged("PresentProposal"); + } + } + + /// + /// 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 opportunity. + /// + [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 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"); + } + } + + /// + /// 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 notes about the proposed solution for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("proposedsolution")] + public string ProposedSolution + { + get + { + return this.GetAttributeValue("proposedsolution"); + } + set + { + this.OnPropertyChanging("ProposedSolution"); + this.SetAttributeValue("proposedsolution", value); + this.OnPropertyChanged("ProposedSolution"); + } + } + + /// + /// Choose whether an individual or a committee will be involved in the purchase process for the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchaseprocess")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseProcess + { + get + { + return this.GetAttributeValue("purchaseprocess"); + } + set + { + this.OnPropertyChanging("PurchaseProcess"); + this.SetAttributeValue("purchaseprocess", value); + this.OnPropertyChanged("PurchaseProcess"); + } + } + + /// + /// Choose how long the lead will likely take to make the purchase. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("purchasetimeframe")] + public Microsoft.Xrm.Sdk.OptionSetValue PurchaseTimeframe + { + get + { + return this.GetAttributeValue("purchasetimeframe"); + } + set + { + this.OnPropertyChanging("PurchaseTimeframe"); + this.SetAttributeValue("purchasetimeframe", value); + this.OnPropertyChanged("PurchaseTimeframe"); + } + } + + /// + /// Select whether the decision about pursuing the opportunity has been made. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pursuitdecision")] + public System.Nullable PursuitDecision + { + get + { + return this.GetAttributeValue>("pursuitdecision"); + } + set + { + this.OnPropertyChanging("PursuitDecision"); + this.SetAttributeValue("pursuitdecision", value); + this.OnPropertyChanged("PursuitDecision"); + } + } + + /// + /// Type comments about the qualification or scoring of the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("qualificationcomments")] + public string QualificationComments + { + get + { + return this.GetAttributeValue("qualificationcomments"); + } + set + { + this.OnPropertyChanging("QualificationComments"); + this.SetAttributeValue("qualificationcomments", value); + this.OnPropertyChanged("QualificationComments"); + } + } + + /// + /// Type comments about the quotes associated with the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotecomments")] + public string QuoteComments + { + get + { + return this.GetAttributeValue("quotecomments"); + } + set + { + this.OnPropertyChanging("QuoteComments"); + this.SetAttributeValue("quotecomments", value); + this.OnPropertyChanged("QuoteComments"); + } + } + + /// + /// Choose whether the proposal feedback has been captured and resolved for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resolvefeedback")] + public System.Nullable ResolveFeedback + { + get + { + return this.GetAttributeValue>("resolvefeedback"); + } + set + { + this.OnPropertyChanging("ResolveFeedback"); + this.SetAttributeValue("resolvefeedback", value); + this.OnPropertyChanged("ResolveFeedback"); + } + } + + /// + /// Select the sales stage of this opportunity to aid the sales team in their efforts to win this opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstage")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStage + { + get + { + return this.GetAttributeValue("salesstage"); + } + set + { + this.OnPropertyChanging("SalesStage"); + this.SetAttributeValue("salesstage", value); + this.OnPropertyChanged("SalesStage"); + } + } + + /// + /// Select the sales process stage for the opportunity to indicate the probability of closing the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesstagecode")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesStageCode + { + get + { + return this.GetAttributeValue("salesstagecode"); + } + set + { + this.OnPropertyChanging("SalesStageCode"); + this.SetAttributeValue("salesstagecode", value); + this.OnPropertyChanged("SalesStageCode"); + } + } + + /// + /// Enter the date and time of the prospecting follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_prospect")] + public System.Nullable ScheduleFollowup_Prospect + { + get + { + return this.GetAttributeValue>("schedulefollowup_prospect"); + } + set + { + this.OnPropertyChanging("ScheduleFollowup_Prospect"); + this.SetAttributeValue("schedulefollowup_prospect", value); + this.OnPropertyChanged("ScheduleFollowup_Prospect"); + } + } + + /// + /// Enter the date and time of the qualifying follow-up meeting with the lead. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulefollowup_qualify")] + public System.Nullable ScheduleFollowup_Qualify + { + get + { + return this.GetAttributeValue>("schedulefollowup_qualify"); + } + set + { + this.OnPropertyChanging("ScheduleFollowup_Qualify"); + this.SetAttributeValue("schedulefollowup_qualify", value); + this.OnPropertyChanged("ScheduleFollowup_Qualify"); + } + } + + /// + /// Enter the date and time of the proposal meeting for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleproposalmeeting")] + public System.Nullable ScheduleProposalMeeting + { + get + { + return this.GetAttributeValue>("scheduleproposalmeeting"); + } + set + { + this.OnPropertyChanging("ScheduleProposalMeeting"); + this.SetAttributeValue("scheduleproposalmeeting", value); + this.OnPropertyChanged("ScheduleProposalMeeting"); + } + } + + /// + /// Select whether a thank you note has been sent to the account for considering the proposal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendthankyounote")] + public System.Nullable SendThankYouNote + { + get + { + return this.GetAttributeValue>("sendthankyounote"); + } + set + { + this.OnPropertyChanging("SendThankYouNote"); + this.SetAttributeValue("sendthankyounote", value); + this.OnPropertyChanged("SendThankYouNote"); + } + } + + /// + /// 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 opportunity is open, won, or lost. Won and lost opportunities are read-only and can't be edited until 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 ((Xrm.Framework.CI.Common.Entities.OpportunityState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OpportunityState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the opportunity'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"); + } + } + + /// + /// Shows the ID of the workflow step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepid")] + public System.Nullable StepId + { + get + { + return this.GetAttributeValue>("stepid"); + } + set + { + this.OnPropertyChanging("StepId"); + this.SetAttributeValue("stepid", value); + this.OnPropertyChanged("StepId"); + } + } + + /// + /// Shows the current phase in the sales pipeline for the opportunity. This is updated by a workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepname")] + public string StepName + { + get + { + return this.GetAttributeValue("stepname"); + } + set + { + this.OnPropertyChanging("StepName"); + this.SetAttributeValue("stepname", value); + this.OnPropertyChanged("StepName"); + } + } + + /// + /// Select when the opportunity is likely to be closed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeline")] + public Microsoft.Xrm.Sdk.OptionSetValue TimeLine + { + get + { + return this.GetAttributeValue("timeline"); + } + set + { + this.OnPropertyChanging("TimeLine"); + this.SetAttributeValue("timeline", value); + this.OnPropertyChanged("TimeLine"); + } + } + + /// + /// 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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount")] + public Microsoft.Xrm.Sdk.Money TotalAmount + { + get + { + return this.GetAttributeValue("totalamount"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount of the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight + { + get + { + return this.GetAttributeValue("totalamountlessfreight"); + } + } + + /// + /// Shows the Total Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount + { + get + { + return this.GetAttributeValue("totaldiscountamount"); + } + } + + /// + /// Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity, based on the specified price list and quantities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount + { + get + { + return this.GetAttributeValue("totallineitemamount"); + } + } + + /// + /// Shows the Total Detail Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity. This value is reflected in the Total Detail Amount field on the opportunity and is added to any discount amount or rate specified on the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount"); + } + } + + /// + /// Shows the Total Line Item Discount Amount field to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 opportunity, included in the Total Amount field calculation for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax")] + public Microsoft.Xrm.Sdk.Money TotalTax + { + get + { + return this.GetAttributeValue("totaltax"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N CreatedOpportunity_BulkOperationLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CreatedOpportunity_BulkOperationLogs")] + public System.Collections.Generic.IEnumerable CreatedOpportunity_BulkOperationLogs + { + get + { + return this.GetRelatedEntities("CreatedOpportunity_BulkOperationLogs", null); + } + set + { + this.OnPropertyChanging("CreatedOpportunity_BulkOperationLogs"); + this.SetRelatedEntities("CreatedOpportunity_BulkOperationLogs", null, value); + this.OnPropertyChanged("CreatedOpportunity_BulkOperationLogs"); + } + } + + /// + /// 1:N lead_qualifying_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_qualifying_opportunity")] + public System.Collections.Generic.IEnumerable lead_qualifying_opportunity + { + get + { + return this.GetRelatedEntities("lead_qualifying_opportunity", null); + } + set + { + this.OnPropertyChanging("lead_qualifying_opportunity"); + this.SetRelatedEntities("lead_qualifying_opportunity", null, value); + this.OnPropertyChanged("lead_qualifying_opportunity"); + } + } + + /// + /// 1:N opportunity_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_activity_parties")] + public System.Collections.Generic.IEnumerable opportunity_activity_parties + { + get + { + return this.GetRelatedEntities("opportunity_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunity_activity_parties"); + this.SetRelatedEntities("opportunity_activity_parties", null, value); + this.OnPropertyChanged("opportunity_activity_parties"); + } + } + + /// + /// 1:N Opportunity_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ActivityPointers")] + public System.Collections.Generic.IEnumerable Opportunity_ActivityPointers + { + get + { + return this.GetRelatedEntities("Opportunity_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Opportunity_ActivityPointers"); + this.SetRelatedEntities("Opportunity_ActivityPointers", null, value); + this.OnPropertyChanged("Opportunity_ActivityPointers"); + } + } + + /// + /// 1:N Opportunity_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Annotation")] + public System.Collections.Generic.IEnumerable Opportunity_Annotation + { + get + { + return this.GetRelatedEntities("Opportunity_Annotation", null); + } + set + { + this.OnPropertyChanging("Opportunity_Annotation"); + this.SetRelatedEntities("Opportunity_Annotation", null, value); + this.OnPropertyChanged("Opportunity_Annotation"); + } + } + + /// + /// 1:N Opportunity_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Appointments")] + public System.Collections.Generic.IEnumerable Opportunity_Appointments + { + get + { + return this.GetRelatedEntities("Opportunity_Appointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_Appointments"); + this.SetRelatedEntities("Opportunity_Appointments", null, value); + this.OnPropertyChanged("Opportunity_Appointments"); + } + } + + /// + /// 1:N Opportunity_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_AsyncOperations")] + public System.Collections.Generic.IEnumerable Opportunity_AsyncOperations + { + get + { + return this.GetRelatedEntities("Opportunity_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Opportunity_AsyncOperations"); + this.SetRelatedEntities("Opportunity_AsyncOperations", null, value); + this.OnPropertyChanged("Opportunity_AsyncOperations"); + } + } + + /// + /// 1:N Opportunity_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Opportunity_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Opportunity_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Opportunity_BulkDeleteFailures"); + this.SetRelatedEntities("Opportunity_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Opportunity_BulkDeleteFailures"); + } + } + + /// + /// 1:N opportunity_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections1")] + public System.Collections.Generic.IEnumerable opportunity_connections1 + { + get + { + return this.GetRelatedEntities("opportunity_connections1", null); + } + set + { + this.OnPropertyChanging("opportunity_connections1"); + this.SetRelatedEntities("opportunity_connections1", null, value); + this.OnPropertyChanged("opportunity_connections1"); + } + } + + /// + /// 1:N opportunity_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_connections2")] + public System.Collections.Generic.IEnumerable opportunity_connections2 + { + get + { + return this.GetRelatedEntities("opportunity_connections2", null); + } + set + { + this.OnPropertyChanging("opportunity_connections2"); + this.SetRelatedEntities("opportunity_connections2", null, value); + this.OnPropertyChanged("opportunity_connections2"); + } + } + + /// + /// 1:N opportunity_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable opportunity_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("opportunity_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_opportunity_roles"); + this.SetRelatedEntities("opportunity_customer_opportunity_roles", null, value); + this.OnPropertyChanged("opportunity_customer_opportunity_roles"); + } + } + + /// + /// 1:N Opportunity_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Opportunity_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Opportunity_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Opportunity_DuplicateBaseRecord"); + this.SetRelatedEntities("Opportunity_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Opportunity_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Opportunity_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Opportunity_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Opportunity_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Opportunity_DuplicateMatchingRecord"); + this.SetRelatedEntities("Opportunity_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Opportunity_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Opportunity_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Emails")] + public System.Collections.Generic.IEnumerable Opportunity_Emails + { + get + { + return this.GetRelatedEntities("Opportunity_Emails", null); + } + set + { + this.OnPropertyChanging("Opportunity_Emails"); + this.SetRelatedEntities("Opportunity_Emails", null, value); + this.OnPropertyChanged("Opportunity_Emails"); + } + } + + /// + /// 1:N Opportunity_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Faxes")] + public System.Collections.Generic.IEnumerable Opportunity_Faxes + { + get + { + return this.GetRelatedEntities("Opportunity_Faxes", null); + } + set + { + this.OnPropertyChanging("Opportunity_Faxes"); + this.SetRelatedEntities("Opportunity_Faxes", null, value); + this.OnPropertyChanged("Opportunity_Faxes"); + } + } + + /// + /// 1:N opportunity_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_invoices")] + public System.Collections.Generic.IEnumerable opportunity_invoices + { + get + { + return this.GetRelatedEntities("opportunity_invoices", null); + } + set + { + this.OnPropertyChanging("opportunity_invoices"); + this.SetRelatedEntities("opportunity_invoices", null, value); + this.OnPropertyChanged("opportunity_invoices"); + } + } + + /// + /// 1:N Opportunity_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Letters")] + public System.Collections.Generic.IEnumerable Opportunity_Letters + { + get + { + return this.GetRelatedEntities("Opportunity_Letters", null); + } + set + { + this.OnPropertyChanging("Opportunity_Letters"); + this.SetRelatedEntities("Opportunity_Letters", null, value); + this.OnPropertyChanged("Opportunity_Letters"); + } + } + + /// + /// 1:N Opportunity_OpportunityClose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_OpportunityClose")] + public System.Collections.Generic.IEnumerable Opportunity_OpportunityClose + { + get + { + return this.GetRelatedEntities("Opportunity_OpportunityClose", null); + } + set + { + this.OnPropertyChanging("Opportunity_OpportunityClose"); + this.SetRelatedEntities("Opportunity_OpportunityClose", null, value); + this.OnPropertyChanged("Opportunity_OpportunityClose"); + } + } + + /// + /// 1:N Opportunity_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Phonecalls")] + public System.Collections.Generic.IEnumerable Opportunity_Phonecalls + { + get + { + return this.GetRelatedEntities("Opportunity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Opportunity_Phonecalls"); + this.SetRelatedEntities("Opportunity_Phonecalls", null, value); + this.OnPropertyChanged("Opportunity_Phonecalls"); + } + } + + /// + /// 1:N opportunity_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_PostFollows")] + public System.Collections.Generic.IEnumerable opportunity_PostFollows + { + get + { + return this.GetRelatedEntities("opportunity_PostFollows", null); + } + set + { + this.OnPropertyChanging("opportunity_PostFollows"); + this.SetRelatedEntities("opportunity_PostFollows", null, value); + this.OnPropertyChanged("opportunity_PostFollows"); + } + } + + /// + /// 1:N opportunity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable opportunity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("opportunity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunity_principalobjectattributeaccess"); + this.SetRelatedEntities("opportunity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunity_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Opportunity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ProcessSessions")] + public System.Collections.Generic.IEnumerable Opportunity_ProcessSessions + { + get + { + return this.GetRelatedEntities("Opportunity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Opportunity_ProcessSessions"); + this.SetRelatedEntities("Opportunity_ProcessSessions", null, value); + this.OnPropertyChanged("Opportunity_ProcessSessions"); + } + } + + /// + /// 1:N opportunity_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_quotes")] + public System.Collections.Generic.IEnumerable opportunity_quotes + { + get + { + return this.GetRelatedEntities("opportunity_quotes", null); + } + set + { + this.OnPropertyChanging("opportunity_quotes"); + this.SetRelatedEntities("opportunity_quotes", null, value); + this.OnPropertyChanged("opportunity_quotes"); + } + } + + /// + /// 1:N Opportunity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Opportunity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Opportunity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Opportunity_RecurringAppointmentMasters"); + this.SetRelatedEntities("Opportunity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Opportunity_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N opportunity_sales_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_sales_orders")] + public System.Collections.Generic.IEnumerable opportunity_sales_orders + { + get + { + return this.GetRelatedEntities("opportunity_sales_orders", null); + } + set + { + this.OnPropertyChanging("opportunity_sales_orders"); + this.SetRelatedEntities("opportunity_sales_orders", null, value); + this.OnPropertyChanged("opportunity_sales_orders"); + } + } + + /// + /// 1:N Opportunity_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Opportunity_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Opportunity_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_ServiceAppointments"); + this.SetRelatedEntities("Opportunity_ServiceAppointments", null, value); + this.OnPropertyChanged("Opportunity_ServiceAppointments"); + } + } + + /// + /// 1:N Opportunity_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Opportunity_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Opportunity_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Opportunity_SharepointDocumentLocation"); + this.SetRelatedEntities("Opportunity_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Opportunity_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Opportunity_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Tasks")] + public System.Collections.Generic.IEnumerable Opportunity_Tasks + { + get + { + return this.GetRelatedEntities("Opportunity_Tasks", null); + } + set + { + this.OnPropertyChanging("Opportunity_Tasks"); + this.SetRelatedEntities("Opportunity_Tasks", null, value); + this.OnPropertyChanged("Opportunity_Tasks"); + } + } + + /// + /// 1:N opportunity_Teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_Teams")] + public System.Collections.Generic.IEnumerable opportunity_Teams + { + get + { + return this.GetRelatedEntities("opportunity_Teams", null); + } + set + { + this.OnPropertyChanging("opportunity_Teams"); + this.SetRelatedEntities("opportunity_Teams", null, value); + this.OnPropertyChanged("opportunity_Teams"); + } + } + + /// + /// 1:N product_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_opportunities")] + public System.Collections.Generic.IEnumerable product_opportunities + { + get + { + return this.GetRelatedEntities("product_opportunities", null); + } + set + { + this.OnPropertyChanging("product_opportunities"); + this.SetRelatedEntities("product_opportunities", null, value); + this.OnPropertyChanged("product_opportunities"); + } + } + + /// + /// 1:N userentityinstancedata_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunity")] + public System.Collections.Generic.IEnumerable userentityinstancedata_opportunity + { + get + { + return this.GetRelatedEntities("userentityinstancedata_opportunity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunity"); + this.SetRelatedEntities("userentityinstancedata_opportunity", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunity"); + } + } + + /// + /// N:N opportunitycompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunitycompetitors_association")] + public System.Collections.Generic.IEnumerable opportunitycompetitors_association + { + get + { + return this.GetRelatedEntities("opportunitycompetitors_association", null); + } + set + { + this.OnPropertyChanging("opportunitycompetitors_association"); + this.SetRelatedEntities("opportunitycompetitors_association", null, value); + this.OnPropertyChanged("opportunitycompetitors_association"); + } + } + + /// + /// N:1 business_unit_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_opportunities + { + get + { + return this.GetRelatedEntity("business_unit_opportunities", null); + } + } + + /// + /// N:1 campaign_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_opportunities")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_opportunities + { + get + { + return this.GetRelatedEntity("campaign_opportunities", null); + } + set + { + this.OnPropertyChanging("campaign_opportunities"); + this.SetRelatedEntity("campaign_opportunities", null, value); + this.OnPropertyChanged("campaign_opportunities"); + } + } + + /// + /// N:1 lk_opportunity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunity_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunity_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunity_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunitybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunitybase_createdby + { + get + { + return this.GetRelatedEntity("lk_opportunitybase_createdby", null); + } + } + + /// + /// N:1 lk_opportunitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunitybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_opportunitybase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account opportunity_customer_accounts + { + get + { + return this.GetRelatedEntity("opportunity_customer_accounts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_accounts"); + this.SetRelatedEntity("opportunity_customer_accounts", null, value); + this.OnPropertyChanged("opportunity_customer_accounts"); + } + } + + /// + /// N:1 opportunity_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact opportunity_customer_contacts + { + get + { + return this.GetRelatedEntity("opportunity_customer_contacts", null); + } + set + { + this.OnPropertyChanging("opportunity_customer_contacts"); + this.SetRelatedEntity("opportunity_customer_contacts", null, value); + this.OnPropertyChanged("opportunity_customer_contacts"); + } + } + + /// + /// N:1 opportunity_originating_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_originating_lead")] + public Xrm.Framework.CI.Common.Entities.Lead opportunity_originating_lead + { + get + { + return this.GetRelatedEntity("opportunity_originating_lead", null); + } + set + { + this.OnPropertyChanging("opportunity_originating_lead"); + this.SetRelatedEntity("opportunity_originating_lead", null, value); + this.OnPropertyChanged("opportunity_originating_lead"); + } + } + + /// + /// N:1 opportunity_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser opportunity_owning_user + { + get + { + return this.GetRelatedEntity("opportunity_owning_user", null); + } + } + + /// + /// N:1 opportunity_parent_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_account")] + public Xrm.Framework.CI.Common.Entities.Account opportunity_parent_account + { + get + { + return this.GetRelatedEntity("opportunity_parent_account", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_account"); + this.SetRelatedEntity("opportunity_parent_account", null, value); + this.OnPropertyChanged("opportunity_parent_account"); + } + } + + /// + /// N:1 opportunity_parent_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_parent_contact")] + public Xrm.Framework.CI.Common.Entities.Contact opportunity_parent_contact + { + get + { + return this.GetRelatedEntity("opportunity_parent_contact", null); + } + set + { + this.OnPropertyChanging("opportunity_parent_contact"); + this.SetRelatedEntity("opportunity_parent_contact", null, value); + this.OnPropertyChanged("opportunity_parent_contact"); + } + } + + /// + /// N:1 price_level_opportunties + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_opportunties")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_opportunties + { + get + { + return this.GetRelatedEntity("price_level_opportunties", null); + } + set + { + this.OnPropertyChanging("price_level_opportunties"); + this.SetRelatedEntity("price_level_opportunties", null, value); + this.OnPropertyChanged("price_level_opportunties"); + } + } + + /// + /// N:1 processstage_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_opportunity")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_opportunity + { + get + { + return this.GetRelatedEntity("processstage_opportunity", null); + } + set + { + this.OnPropertyChanging("processstage_opportunity"); + this.SetRelatedEntity("processstage_opportunity", null, value); + this.OnPropertyChanged("processstage_opportunity"); + } + } + + /// + /// N:1 team_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunities")] + public Xrm.Framework.CI.Common.Entities.Team team_opportunities + { + get + { + return this.GetRelatedEntity("team_opportunities", null); + } + } + + /// + /// N:1 transactioncurrency_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunity")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_opportunity + { + get + { + return this.GetRelatedEntity("transactioncurrency_opportunity", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunity"); + this.SetRelatedEntity("transactioncurrency_opportunity", null, value); + this.OnPropertyChanged("transactioncurrency_opportunity"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OpportunityCloseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity that is created automatically when an opportunity is closed, containing information such as the description of the closing and actual revenue. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunityclose")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OpportunityClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OpportunityClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunityclose"; + + public const int EntityTypeCode = 4208; + + 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 opportunity 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 opportunity 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 opportunity 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 revenue generated for the opportunity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualrevenue")] + public Microsoft.Xrm.Sdk.Money ActualRevenue + { + get + { + return this.GetAttributeValue("actualrevenue"); + } + set + { + this.OnPropertyChanging("ActualRevenue"); + this.SetAttributeValue("actualrevenue", value); + this.OnPropertyChanged("ActualRevenue"); + } + } + + /// + /// Shows the Actual Revenue field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualrevenue_base")] + public Microsoft.Xrm.Sdk.Money ActualRevenue_Base + { + get + { + return this.GetAttributeValue("actualrevenue_base"); + } + } + + /// + /// Actual start time of the opportunity 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"); + } + } + + /// + /// Category of the opportunity 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"); + } + } + + /// + /// Unique identifier of the competitor with which the opportunity close activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public Microsoft.Xrm.Sdk.EntityReference CompetitorId + { + get + { + return this.GetAttributeValue("competitorid"); + } + set + { + this.OnPropertyChanging("CompetitorId"); + this.SetAttributeValue("competitorid", value); + this.OnPropertyChanged("CompetitorId"); + } + } + + /// + /// Unique identifier of the user who created the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the opportunity 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 opportunityclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Activity that is created automatically when an opportunity is closed, containing information such as the description of the closing and actual revenue. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the opportunity 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"); + } + } + + /// + /// 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 opportunity 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"); + } + } + + /// + /// Unique identifier of the user who last modified the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the opportunity 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 opportunityclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the opportunity closed. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the opportunity close 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 opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Scheduled duration of the opportunity close activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the opportunity 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 opportunity 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 service with which the opportunity 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"); + } + } + + /// + /// Shows whether the opportunity close activity is open, completed, or canceled. By default, opportunity close activities are completed unless the opportunity is reactivated, which updates them to canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.OpportunityCloseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OpportunityCloseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the opportunity 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"); + } + } + + /// + /// Subcategory of the opportunity 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 opportunity 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 opportunity close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N opportunityclose_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityclose_activity_parties")] + public System.Collections.Generic.IEnumerable opportunityclose_activity_parties + { + get + { + return this.GetRelatedEntities("opportunityclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("opportunityclose_activity_parties"); + this.SetRelatedEntities("opportunityclose_activity_parties", null, value); + this.OnPropertyChanged("opportunityclose_activity_parties"); + } + } + + /// + /// 1:N OpportunityClose_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_Annotation")] + public System.Collections.Generic.IEnumerable OpportunityClose_Annotation + { + get + { + return this.GetRelatedEntities("OpportunityClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_Annotation"); + this.SetRelatedEntities("OpportunityClose_Annotation", null, value); + this.OnPropertyChanged("OpportunityClose_Annotation"); + } + } + + /// + /// 1:N OpportunityClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_AsyncOperations")] + public System.Collections.Generic.IEnumerable OpportunityClose_AsyncOperations + { + get + { + return this.GetRelatedEntities("OpportunityClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_AsyncOperations"); + this.SetRelatedEntities("OpportunityClose_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityClose_AsyncOperations"); + } + } + + /// + /// 1:N OpportunityClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityClose_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable OpportunityClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("OpportunityClose_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("OpportunityClose_BulkDeleteFailures"); + this.SetRelatedEntities("OpportunityClose_BulkDeleteFailures", null, value); + this.OnPropertyChanged("OpportunityClose_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityclose")] + public System.Collections.Generic.IEnumerable userentityinstancedata_opportunityclose + { + get + { + return this.GetRelatedEntities("userentityinstancedata_opportunityclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityclose"); + this.SetRelatedEntities("userentityinstancedata_opportunityclose", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityclose"); + } + } + + /// + /// N:1 activity_pointer_opportunity_close + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_opportunity_close")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_opportunity_close + { + get + { + return this.GetRelatedEntity("activity_pointer_opportunity_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_opportunity_close"); + this.SetRelatedEntity("activity_pointer_opportunity_close", null, value); + this.OnPropertyChanged("activity_pointer_opportunity_close"); + } + } + + /// + /// N:1 business_unit_opportunity_close_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_opportunity_close_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_opportunity_close_activities + { + get + { + return this.GetRelatedEntity("business_unit_opportunity_close_activities", null); + } + } + + /// + /// N:1 competitor_opportunity_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_opportunity_activities")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_opportunity_activities + { + get + { + return this.GetRelatedEntity("competitor_opportunity_activities", null); + } + set + { + this.OnPropertyChanging("competitor_opportunity_activities"); + this.SetRelatedEntity("competitor_opportunity_activities", null, value); + this.OnPropertyChanged("competitor_opportunity_activities"); + } + } + + /// + /// N:1 lk_opportunityclose_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_createdby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_createdby", null); + } + } + + /// + /// N:1 lk_opportunityclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunityclose_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_modifiedby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_modifiedby", null); + } + } + + /// + /// N:1 lk_opportunityclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityclose_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Opportunity_OpportunityClose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_OpportunityClose")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_OpportunityClose + { + get + { + return this.GetRelatedEntity("Opportunity_OpportunityClose", null); + } + set + { + this.OnPropertyChanging("Opportunity_OpportunityClose"); + this.SetRelatedEntity("Opportunity_OpportunityClose", null, value); + this.OnPropertyChanged("Opportunity_OpportunityClose"); + } + } + + /// + /// N:1 service_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.Service service_opportunityclose + { + get + { + return this.GetRelatedEntity("service_opportunityclose", null); + } + set + { + this.OnPropertyChanging("service_opportunityclose"); + this.SetRelatedEntity("service_opportunityclose", null, value); + this.OnPropertyChanged("service_opportunityclose"); + } + } + + /// + /// N:1 team_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.Team team_opportunityclose + { + get + { + return this.GetRelatedEntity("team_opportunityclose", null); + } + } + + /// + /// N:1 transactioncurrency_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_opportunityclose + { + get + { + return this.GetRelatedEntity("transactioncurrency_opportunityclose", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunityclose"); + this.SetRelatedEntity("transactioncurrency_opportunityclose", null, value); + this.OnPropertyChanged("transactioncurrency_opportunityclose"); + } + } + + /// + /// N:1 user_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_opportunityclose + { + get + { + return this.GetRelatedEntity("user_opportunityclose", null); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunitycompetitors")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OpportunityCompetitors : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OpportunityCompetitors() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunitycompetitors"; + + public const int EntityTypeCode = 25; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("competitorid")] + public System.Nullable CompetitorId + { + get + { + return this.GetAttributeValue>("competitorid"); + } + } + + /// + /// Unique identifier of the opportunity competitor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitycompetitorid")] + public System.Nullable OpportunityCompetitorId + { + get + { + return this.GetAttributeValue>("opportunitycompetitorid"); + } + set + { + this.OnPropertyChanging("OpportunityCompetitorId"); + this.SetAttributeValue("opportunitycompetitorid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OpportunityCompetitorId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitycompetitorid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OpportunityCompetitorId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public System.Nullable OpportunityId + { + get + { + return this.GetAttributeValue>("opportunityid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N opportunitycompetitors_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunitycompetitors_association")] + public System.Collections.Generic.IEnumerable opportunitycompetitors_association + { + get + { + return this.GetRelatedEntities("opportunitycompetitors_association", null); + } + set + { + this.OnPropertyChanging("opportunitycompetitors_association"); + this.SetRelatedEntities("opportunitycompetitors_association", null, value); + this.OnPropertyChanged("opportunitycompetitors_association"); + } + } + } + + /// + /// Association between an opportunity and a product. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("opportunityproduct")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OpportunityProduct : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OpportunityProduct() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "opportunityproduct"; + + public const int EntityTypeCode = 1083; + + 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 opportunity 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the opportunity product, such as manufacturing details. + /// + [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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the total amount due for the opportunity product, calculated on the Amount value minus the Manual Discount amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount + { + get + { + return this.GetAttributeValue("extendedamount"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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 pricing on the opportunity product reflects an override of the product catalog pricing. + /// + [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"); + } + } + + /// + /// For system use only. + /// + [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 opportunity product to easily identify the product in the opportunity documents and make sure it's listed in the correct order. + /// + [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 opportunity product to deduct any negotiated or other savings from the product total. + /// + [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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the opportunityproduct. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the opportunity with which the opportunity product is associated. + /// + [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"); + } + } + + /// + /// Unique identifier of the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityproductid")] + public System.Nullable OpportunityProductId + { + get + { + return this.GetAttributeValue>("opportunityproductid"); + } + set + { + this.OnPropertyChanging("OpportunityProductId"); + this.SetAttributeValue("opportunityproductid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OpportunityProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityproductid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OpportunityProductId = value; + } + } + + /// + /// Select the status of the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunitystatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue OpportunityStateCode + { + get + { + return this.GetAttributeValue("opportunitystatecode"); + } + } + + /// + /// 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 opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the opportunity product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Shows the price per unit of the opportunity product, based on the price list specified on the parent opportunity. + /// + [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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priceperunit_base")] + public Microsoft.Xrm.Sdk.Money PricePerUnit_Base + { + get + { + return this.GetAttributeValue("priceperunit_base"); + } + } + + /// + /// Select the pricing error for the opportunity product. + /// + [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"); + } + } + + /// + /// Type a detailed product description or additional notes about the opportunity product, such as talking points or product updates, that will assist the sales team when they discuss the product with the customer. + /// + [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 opportunity to link the product's pricing and other information to the opportunity. + /// + [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"); + } + } + + /// + /// Type the amount or quantity of the product the customer would like to purchase. + /// + [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 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"); + } + } + + /// + /// Type the tax amount to be applied on the opportunity 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the opportunity product. + /// + [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"); + } + } + + /// + /// Shows the Volume Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("volumediscountamount_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// 1:N OpportunityProduct_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_AsyncOperations")] + public System.Collections.Generic.IEnumerable OpportunityProduct_AsyncOperations + { + get + { + return this.GetRelatedEntities("OpportunityProduct_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_AsyncOperations"); + this.SetRelatedEntities("OpportunityProduct_AsyncOperations", null, value); + this.OnPropertyChanged("OpportunityProduct_AsyncOperations"); + } + } + + /// + /// 1:N OpportunityProduct_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable OpportunityProduct_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("OpportunityProduct_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_BulkDeleteFailures"); + this.SetRelatedEntities("OpportunityProduct_BulkDeleteFailures", null, value); + this.OnPropertyChanged("OpportunityProduct_BulkDeleteFailures"); + } + } + + /// + /// 1:N opportunityproduct_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityproduct_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable opportunityproduct_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("opportunityproduct_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunityproduct_principalobjectattributeaccess"); + this.SetRelatedEntities("opportunityproduct_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunityproduct_principalobjectattributeaccess"); + } + } + + /// + /// 1:N OpportunityProduct_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_ProcessSessions")] + public System.Collections.Generic.IEnumerable OpportunityProduct_ProcessSessions + { + get + { + return this.GetRelatedEntities("OpportunityProduct_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_ProcessSessions"); + this.SetRelatedEntities("OpportunityProduct_ProcessSessions", null, value); + this.OnPropertyChanged("OpportunityProduct_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_opportunityproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityproduct")] + public System.Collections.Generic.IEnumerable userentityinstancedata_opportunityproduct + { + get + { + return this.GetRelatedEntities("userentityinstancedata_opportunityproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityproduct"); + this.SetRelatedEntities("userentityinstancedata_opportunityproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityproduct"); + } + } + + /// + /// N:1 lk_opportunityproduct_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproduct_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityproduct_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunityproduct_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproduct_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_opportunityproduct_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_opportunityproductbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproductbase_createdby + { + get + { + return this.GetRelatedEntity("lk_opportunityproductbase_createdby", null); + } + } + + /// + /// N:1 lk_opportunityproductbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_opportunityproductbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_opportunityproductbase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_products")] + public Xrm.Framework.CI.Common.Entities.Product opportunity_products + { + get + { + return this.GetRelatedEntity("opportunity_products", null); + } + set + { + this.OnPropertyChanging("opportunity_products"); + this.SetRelatedEntity("opportunity_products", null, value); + this.OnPropertyChanged("opportunity_products"); + } + } + + /// + /// N:1 product_opportunities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_opportunities")] + public Xrm.Framework.CI.Common.Entities.Opportunity product_opportunities + { + get + { + return this.GetRelatedEntity("product_opportunities", null); + } + set + { + this.OnPropertyChanging("product_opportunities"); + this.SetRelatedEntity("product_opportunities", null, value); + this.OnPropertyChanged("product_opportunities"); + } + } + + /// + /// N:1 transactioncurrency_opportunityproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityproduct")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_opportunityproduct + { + get + { + return this.GetRelatedEntity("transactioncurrency_opportunityproduct", null); + } + } + + /// + /// N:1 unit_of_measurement_opportunity_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_opportunity_products")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_opportunity_products + { + get + { + return this.GetRelatedEntity("unit_of_measurement_opportunity_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_opportunity_products"); + this.SetRelatedEntity("unit_of_measurement_opportunity_products", null, value); + this.OnPropertyChanged("unit_of_measurement_opportunity_products"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OrderCloseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity generated automatically when an order is closed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("orderclose")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OrderClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OrderClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "orderclose"; + + public const int EntityTypeCode = 4209; + + 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 order 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 order 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 order 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 order 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"); + } + } + + /// + /// Category of the order 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"); + } + } + + /// + /// Unique identifier of the user who created the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the order 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 orderclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Activity generated automatically when an order 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the order 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"); + } + } + + /// + /// 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 order 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"); + } + } + + /// + /// Unique identifier of the user who last modified the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the order 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 orderclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Order number. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the order close 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 order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Order 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"); + } + } + + /// + /// Unique identifier of the order with which the order close activity is associated. + /// + [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"); + } + } + + /// + /// Scheduled duration of the order close activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the order 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 order 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 service with which the order 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"); + } + } + + /// + /// Shows whether the order close activity is open, completed, or canceled. By default, order 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 ((Xrm.Framework.CI.Common.Entities.OrderCloseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OrderCloseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the order 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"); + } + } + + /// + /// Subcategory of the order 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 order 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"); + } + } + + /// + /// 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 order close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N orderclose_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("orderclose_activity_parties")] + public System.Collections.Generic.IEnumerable orderclose_activity_parties + { + get + { + return this.GetRelatedEntities("orderclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("orderclose_activity_parties"); + this.SetRelatedEntities("orderclose_activity_parties", null, value); + this.OnPropertyChanged("orderclose_activity_parties"); + } + } + + /// + /// 1:N OrderClose_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_Annotation")] + public System.Collections.Generic.IEnumerable OrderClose_Annotation + { + get + { + return this.GetRelatedEntities("OrderClose_Annotation", null); + } + set + { + this.OnPropertyChanging("OrderClose_Annotation"); + this.SetRelatedEntities("OrderClose_Annotation", null, value); + this.OnPropertyChanged("OrderClose_Annotation"); + } + } + + /// + /// 1:N OrderClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_AsyncOperations")] + public System.Collections.Generic.IEnumerable OrderClose_AsyncOperations + { + get + { + return this.GetRelatedEntities("OrderClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("OrderClose_AsyncOperations"); + this.SetRelatedEntities("OrderClose_AsyncOperations", null, value); + this.OnPropertyChanged("OrderClose_AsyncOperations"); + } + } + + /// + /// 1:N OrderClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OrderClose_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable OrderClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("OrderClose_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("OrderClose_BulkDeleteFailures"); + this.SetRelatedEntities("OrderClose_BulkDeleteFailures", null, value); + this.OnPropertyChanged("OrderClose_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_orderclose")] + public System.Collections.Generic.IEnumerable userentityinstancedata_orderclose + { + get + { + return this.GetRelatedEntities("userentityinstancedata_orderclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_orderclose"); + this.SetRelatedEntities("userentityinstancedata_orderclose", null, value); + this.OnPropertyChanged("userentityinstancedata_orderclose"); + } + } + + /// + /// N:1 activity_pointer_order_close + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_order_close")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_order_close + { + get + { + return this.GetRelatedEntity("activity_pointer_order_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_order_close"); + this.SetRelatedEntity("activity_pointer_order_close", null, value); + this.OnPropertyChanged("activity_pointer_order_close"); + } + } + + /// + /// N:1 business_unit_order_close_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_order_close_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_order_close_activities + { + get + { + return this.GetRelatedEntity("business_unit_order_close_activities", null); + } + } + + /// + /// N:1 lk_orderclose_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_createdby + { + get + { + return this.GetRelatedEntity("lk_orderclose_createdby", null); + } + } + + /// + /// N:1 lk_orderclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_orderclose_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_orderclose_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_modifiedby + { + get + { + return this.GetRelatedEntity("lk_orderclose_modifiedby", null); + } + } + + /// + /// N:1 lk_orderclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_orderclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_orderclose_modifiedonbehalfby", null); + } + } + + /// + /// N:1 SalesOrder_OrderClose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_OrderClose")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_OrderClose + { + get + { + return this.GetRelatedEntity("SalesOrder_OrderClose", null); + } + set + { + this.OnPropertyChanging("SalesOrder_OrderClose"); + this.SetRelatedEntity("SalesOrder_OrderClose", null, value); + this.OnPropertyChanged("SalesOrder_OrderClose"); + } + } + + /// + /// N:1 service_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_orderclose")] + public Xrm.Framework.CI.Common.Entities.Service service_orderclose + { + get + { + return this.GetRelatedEntity("service_orderclose", null); + } + set + { + this.OnPropertyChanging("service_orderclose"); + this.SetRelatedEntity("service_orderclose", null, value); + this.OnPropertyChanged("service_orderclose"); + } + } + + /// + /// N:1 team_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orderclose")] + public Xrm.Framework.CI.Common.Entities.Team team_orderclose + { + get + { + return this.GetRelatedEntity("team_orderclose", null); + } + } + + /// + /// N:1 user_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_orderclose")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_orderclose + { + get + { + return this.GetRelatedEntity("user_orderclose", null); + } + } + } + + /// + /// Top level of the Microsoft Dynamics CRM business hierarchy. The organization can be a specific business, holding company, or corporation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("organization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Organization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Organization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "organization"; + + public const int EntityTypeCode = 1019; + + 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 template to be used for acknowledgement when a user unsubscribes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("acknowledgementtemplateid")] + public Microsoft.Xrm.Sdk.EntityReference AcknowledgementTemplateId + { + get + { + return this.GetAttributeValue("acknowledgementtemplateid"); + } + set + { + this.OnPropertyChanging("AcknowledgementTemplateId"); + this.SetAttributeValue("acknowledgementtemplateid", value); + this.OnPropertyChanged("AcknowledgementTemplateId"); + } + } + + /// + /// Indicates whether background address book synchronization in Microsoft Office Outlook is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowaddressbooksyncs")] + public System.Nullable AllowAddressBookSyncs + { + get + { + return this.GetAttributeValue>("allowaddressbooksyncs"); + } + set + { + this.OnPropertyChanging("AllowAddressBookSyncs"); + this.SetAttributeValue("allowaddressbooksyncs", value); + this.OnPropertyChanged("AllowAddressBookSyncs"); + } + } + + /// + /// Indicates whether automatic response creation is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowautoresponsecreation")] + public System.Nullable AllowAutoResponseCreation + { + get + { + return this.GetAttributeValue>("allowautoresponsecreation"); + } + set + { + this.OnPropertyChanging("AllowAutoResponseCreation"); + this.SetAttributeValue("allowautoresponsecreation", value); + this.OnPropertyChanged("AllowAutoResponseCreation"); + } + } + + /// + /// Indicates whether automatic unsubscribe is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowautounsubscribe")] + public System.Nullable AllowAutoUnsubscribe + { + get + { + return this.GetAttributeValue>("allowautounsubscribe"); + } + set + { + this.OnPropertyChanging("AllowAutoUnsubscribe"); + this.SetAttributeValue("allowautounsubscribe", value); + this.OnPropertyChanged("AllowAutoUnsubscribe"); + } + } + + /// + /// Indicates whether automatic unsubscribe acknowledgement email is allowed to send. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowautounsubscribeacknowledgement")] + public System.Nullable AllowAutoUnsubscribeAcknowledgement + { + get + { + return this.GetAttributeValue>("allowautounsubscribeacknowledgement"); + } + set + { + this.OnPropertyChanging("AllowAutoUnsubscribeAcknowledgement"); + this.SetAttributeValue("allowautounsubscribeacknowledgement", value); + this.OnPropertyChanged("AllowAutoUnsubscribeAcknowledgement"); + } + } + + /// + /// Indicates whether Outlook Client message bar advertisement is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowclientmessagebarad")] + public System.Nullable AllowClientMessageBarAd + { + get + { + return this.GetAttributeValue>("allowclientmessagebarad"); + } + set + { + this.OnPropertyChanging("AllowClientMessageBarAd"); + this.SetAttributeValue("allowclientmessagebarad", value); + this.OnPropertyChanged("AllowClientMessageBarAd"); + } + } + + /// + /// Indicates whether auditing of changes to entity is allowed when no attributes have changed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowentityonlyaudit")] + public System.Nullable AllowEntityOnlyAudit + { + get + { + return this.GetAttributeValue>("allowentityonlyaudit"); + } + set + { + this.OnPropertyChanging("AllowEntityOnlyAudit"); + this.SetAttributeValue("allowentityonlyaudit", value); + this.OnPropertyChanged("AllowEntityOnlyAudit"); + } + } + + /// + /// Indicates whether marketing emails execution is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowmarketingemailexecution")] + public System.Nullable AllowMarketingEmailExecution + { + get + { + return this.GetAttributeValue>("allowmarketingemailexecution"); + } + set + { + this.OnPropertyChanging("AllowMarketingEmailExecution"); + this.SetAttributeValue("allowmarketingemailexecution", value); + this.OnPropertyChanged("AllowMarketingEmailExecution"); + } + } + + /// + /// Indicates whether background offline synchronization in Microsoft Office Outlook is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowofflinescheduledsyncs")] + public System.Nullable AllowOfflineScheduledSyncs + { + get + { + return this.GetAttributeValue>("allowofflinescheduledsyncs"); + } + set + { + this.OnPropertyChanging("AllowOfflineScheduledSyncs"); + this.SetAttributeValue("allowofflinescheduledsyncs", value); + this.OnPropertyChanged("AllowOfflineScheduledSyncs"); + } + } + + /// + /// Indicates whether scheduled synchronizations to Outlook are allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowoutlookscheduledsyncs")] + public System.Nullable AllowOutlookScheduledSyncs + { + get + { + return this.GetAttributeValue>("allowoutlookscheduledsyncs"); + } + set + { + this.OnPropertyChanging("AllowOutlookScheduledSyncs"); + this.SetAttributeValue("allowoutlookscheduledsyncs", value); + this.OnPropertyChanged("AllowOutlookScheduledSyncs"); + } + } + + /// + /// Indicates whether users are allowed to send email to unresolved parties (parties must still have an email address). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowunresolvedpartiesonemailsend")] + public System.Nullable AllowUnresolvedPartiesOnEmailSend + { + get + { + return this.GetAttributeValue>("allowunresolvedpartiesonemailsend"); + } + set + { + this.OnPropertyChanging("AllowUnresolvedPartiesOnEmailSend"); + this.SetAttributeValue("allowunresolvedpartiesonemailsend", value); + this.OnPropertyChanged("AllowUnresolvedPartiesOnEmailSend"); + } + } + + /// + /// Indicates whether individuals can select their form mode preference in their personal options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowuserformmodepreference")] + public System.Nullable AllowUserFormModePreference + { + get + { + return this.GetAttributeValue>("allowuserformmodepreference"); + } + set + { + this.OnPropertyChanging("AllowUserFormModePreference"); + this.SetAttributeValue("allowuserformmodepreference", value); + this.OnPropertyChanged("AllowUserFormModePreference"); + } + } + + /// + /// Indicates whether the showing tablet application notification bars in a browser is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowusersseeappdownloadmessage")] + public System.Nullable AllowUsersSeeAppdownloadMessage + { + get + { + return this.GetAttributeValue>("allowusersseeappdownloadmessage"); + } + set + { + this.OnPropertyChanging("AllowUsersSeeAppdownloadMessage"); + this.SetAttributeValue("allowusersseeappdownloadmessage", value); + this.OnPropertyChanged("AllowUsersSeeAppdownloadMessage"); + } + } + + /// + /// Indicates whether Web-based export of grids to Microsoft Office Excel is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowwebexcelexport")] + public System.Nullable AllowWebExcelExport + { + get + { + return this.GetAttributeValue>("allowwebexcelexport"); + } + set + { + this.OnPropertyChanging("AllowWebExcelExport"); + this.SetAttributeValue("allowwebexcelexport", value); + this.OnPropertyChanged("AllowWebExcelExport"); + } + } + + /// + /// AM designator to use throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amdesignator")] + public string AMDesignator + { + get + { + return this.GetAttributeValue("amdesignator"); + } + set + { + this.OnPropertyChanging("AMDesignator"); + this.SetAttributeValue("amdesignator", value); + this.OnPropertyChanged("AMDesignator"); + } + } + + /// + /// Unique identifier of the base currency of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference BaseCurrencyId + { + get + { + return this.GetAttributeValue("basecurrencyid"); + } + set + { + this.OnPropertyChanging("BaseCurrencyId"); + this.SetAttributeValue("basecurrencyid", value); + this.OnPropertyChanged("BaseCurrencyId"); + } + } + + /// + /// Number of decimal places that can be used for the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencyprecision")] + public System.Nullable BaseCurrencyPrecision + { + get + { + return this.GetAttributeValue>("basecurrencyprecision"); + } + } + + /// + /// Symbol used for the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencysymbol")] + public string BaseCurrencySymbol + { + get + { + return this.GetAttributeValue("basecurrencysymbol"); + } + } + + /// + /// Api Key to be used in requests to Bing Maps services. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bingmapsapikey")] + public string BingMapsApiKey + { + get + { + return this.GetAttributeValue("bingmapsapikey"); + } + set + { + this.OnPropertyChanging("BingMapsApiKey"); + this.SetAttributeValue("bingmapsapikey", value); + this.OnPropertyChanged("BingMapsApiKey"); + } + } + + /// + /// Prevent upload or download of certain attachment types that are considered dangerous. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("blockedattachments")] + public string BlockedAttachments + { + get + { + return this.GetAttributeValue("blockedattachments"); + } + set + { + this.OnPropertyChanging("BlockedAttachments"); + this.SetAttributeValue("blockedattachments", value); + this.OnPropertyChanged("BlockedAttachments"); + } + } + + /// + /// Prefix used for bulk operation numbering. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bulkoperationprefix")] + public string BulkOperationPrefix + { + get + { + return this.GetAttributeValue("bulkoperationprefix"); + } + set + { + this.OnPropertyChanging("BulkOperationPrefix"); + this.SetAttributeValue("bulkoperationprefix", value); + this.OnPropertyChanged("BulkOperationPrefix"); + } + } + + /// + /// Unique identifier of the business closure calendar of organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessclosurecalendarid")] + public System.Nullable BusinessClosureCalendarId + { + get + { + return this.GetAttributeValue>("businessclosurecalendarid"); + } + set + { + this.OnPropertyChanging("BusinessClosureCalendarId"); + this.SetAttributeValue("businessclosurecalendarid", value); + this.OnPropertyChanged("BusinessClosureCalendarId"); + } + } + + /// + /// Calendar type for the system. Set to Gregorian US by default. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendartype")] + public System.Nullable CalendarType + { + get + { + return this.GetAttributeValue>("calendartype"); + } + set + { + this.OnPropertyChanging("CalendarType"); + this.SetAttributeValue("calendartype", value); + this.OnPropertyChanged("CalendarType"); + } + } + + /// + /// Prefix used for campaign numbering. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignprefix")] + public string CampaignPrefix + { + get + { + return this.GetAttributeValue("campaignprefix"); + } + set + { + this.OnPropertyChanging("CampaignPrefix"); + this.SetAttributeValue("campaignprefix", value); + this.OnPropertyChanged("CampaignPrefix"); + } + } + + /// + /// Prefix to use for all cases throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caseprefix")] + public string CasePrefix + { + get + { + return this.GetAttributeValue("caseprefix"); + } + set + { + this.OnPropertyChanging("CasePrefix"); + this.SetAttributeValue("caseprefix", value); + this.OnPropertyChanged("CasePrefix"); + } + } + + /// + /// Prefix to use for all contracts throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractprefix")] + public string ContractPrefix + { + get + { + return this.GetAttributeValue("contractprefix"); + } + set + { + this.OnPropertyChanging("ContractPrefix"); + this.SetAttributeValue("contractprefix", value); + this.OnPropertyChanged("ContractPrefix"); + } + } + + /// + /// Unique identifier of the user who created the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the organization 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 organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of decimal places that can be used for currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencydecimalprecision")] + public System.Nullable CurrencyDecimalPrecision + { + get + { + return this.GetAttributeValue>("currencydecimalprecision"); + } + set + { + this.OnPropertyChanging("CurrencyDecimalPrecision"); + this.SetAttributeValue("currencydecimalprecision", value); + this.OnPropertyChanged("CurrencyDecimalPrecision"); + } + } + + /// + /// Indicates whether to display money fields with currency code or currency symbol. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencydisplayoption")] + public Microsoft.Xrm.Sdk.OptionSetValue CurrencyDisplayOption + { + get + { + return this.GetAttributeValue("currencydisplayoption"); + } + set + { + this.OnPropertyChanging("CurrencyDisplayOption"); + this.SetAttributeValue("currencydisplayoption", value); + this.OnPropertyChanged("CurrencyDisplayOption"); + } + } + + /// + /// Information about how currency symbols are placed throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue CurrencyFormatCode + { + get + { + return this.GetAttributeValue("currencyformatcode"); + } + set + { + this.OnPropertyChanging("CurrencyFormatCode"); + this.SetAttributeValue("currencyformatcode", value); + this.OnPropertyChanged("CurrencyFormatCode"); + } + } + + /// + /// Symbol used for currency throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencysymbol")] + public string CurrencySymbol + { + get + { + return this.GetAttributeValue("currencysymbol"); + } + set + { + this.OnPropertyChanging("CurrencySymbol"); + this.SetAttributeValue("currencysymbol", value); + this.OnPropertyChanged("CurrencySymbol"); + } + } + + /// + /// Current bulk operation number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentbulkoperationnumber")] + public System.Nullable CurrentBulkOperationNumber + { + get + { + return this.GetAttributeValue>("currentbulkoperationnumber"); + } + set + { + this.OnPropertyChanging("CurrentBulkOperationNumber"); + this.SetAttributeValue("currentbulkoperationnumber", value); + this.OnPropertyChanged("CurrentBulkOperationNumber"); + } + } + + /// + /// Current campaign number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcampaignnumber")] + public System.Nullable CurrentCampaignNumber + { + get + { + return this.GetAttributeValue>("currentcampaignnumber"); + } + set + { + this.OnPropertyChanging("CurrentCampaignNumber"); + this.SetAttributeValue("currentcampaignnumber", value); + this.OnPropertyChanged("CurrentCampaignNumber"); + } + } + + /// + /// First case number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcasenumber")] + public System.Nullable CurrentCaseNumber + { + get + { + return this.GetAttributeValue>("currentcasenumber"); + } + set + { + this.OnPropertyChanging("CurrentCaseNumber"); + this.SetAttributeValue("currentcasenumber", value); + this.OnPropertyChanged("CurrentCaseNumber"); + } + } + + /// + /// First contract number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcontractnumber")] + public System.Nullable CurrentContractNumber + { + get + { + return this.GetAttributeValue>("currentcontractnumber"); + } + set + { + this.OnPropertyChanging("CurrentContractNumber"); + this.SetAttributeValue("currentcontractnumber", value); + this.OnPropertyChanged("CurrentContractNumber"); + } + } + + /// + /// Import sequence to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentimportsequencenumber")] + public System.Nullable CurrentImportSequenceNumber + { + get + { + return this.GetAttributeValue>("currentimportsequencenumber"); + } + } + + /// + /// First invoice number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentinvoicenumber")] + public System.Nullable CurrentInvoiceNumber + { + get + { + return this.GetAttributeValue>("currentinvoicenumber"); + } + set + { + this.OnPropertyChanging("CurrentInvoiceNumber"); + this.SetAttributeValue("currentinvoicenumber", value); + this.OnPropertyChanged("CurrentInvoiceNumber"); + } + } + + /// + /// First article number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentkbnumber")] + public System.Nullable CurrentKbNumber + { + get + { + return this.GetAttributeValue>("currentkbnumber"); + } + set + { + this.OnPropertyChanging("CurrentKbNumber"); + this.SetAttributeValue("currentkbnumber", value); + this.OnPropertyChanged("CurrentKbNumber"); + } + } + + /// + /// First order number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentordernumber")] + public System.Nullable CurrentOrderNumber + { + get + { + return this.GetAttributeValue>("currentordernumber"); + } + set + { + this.OnPropertyChanging("CurrentOrderNumber"); + this.SetAttributeValue("currentordernumber", value); + this.OnPropertyChanged("CurrentOrderNumber"); + } + } + + /// + /// First parsed table number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentparsedtablenumber")] + public System.Nullable CurrentParsedTableNumber + { + get + { + return this.GetAttributeValue>("currentparsedtablenumber"); + } + } + + /// + /// First quote number to use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentquotenumber")] + public System.Nullable CurrentQuoteNumber + { + get + { + return this.GetAttributeValue>("currentquotenumber"); + } + set + { + this.OnPropertyChanging("CurrentQuoteNumber"); + this.SetAttributeValue("currentquotenumber", value); + this.OnPropertyChanged("CurrentQuoteNumber"); + } + } + + /// + /// Information about how the date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue DateFormatCode + { + get + { + return this.GetAttributeValue("dateformatcode"); + } + set + { + this.OnPropertyChanging("DateFormatCode"); + this.SetAttributeValue("dateformatcode", value); + this.OnPropertyChanged("DateFormatCode"); + } + } + + /// + /// String showing how the date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatstring")] + public string DateFormatString + { + get + { + return this.GetAttributeValue("dateformatstring"); + } + set + { + this.OnPropertyChanging("DateFormatString"); + this.SetAttributeValue("dateformatstring", value); + this.OnPropertyChanged("DateFormatString"); + } + } + + /// + /// Character used to separate the month, the day, and the year in dates throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateseparator")] + public string DateSeparator + { + get + { + return this.GetAttributeValue("dateseparator"); + } + set + { + this.OnPropertyChanging("DateSeparator"); + this.SetAttributeValue("dateseparator", value); + this.OnPropertyChanged("DateSeparator"); + } + } + + /// + /// Symbol used for decimal in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decimalsymbol")] + public string DecimalSymbol + { + get + { + return this.GetAttributeValue("decimalsymbol"); + } + set + { + this.OnPropertyChanging("DecimalSymbol"); + this.SetAttributeValue("decimalsymbol", value); + this.OnPropertyChanged("DecimalSymbol"); + } + } + + /// + /// Text area to enter default country code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultcountrycode")] + public string DefaultCountryCode + { + get + { + return this.GetAttributeValue("defaultcountrycode"); + } + set + { + this.OnPropertyChanging("DefaultCountryCode"); + this.SetAttributeValue("defaultcountrycode", value); + this.OnPropertyChanged("DefaultCountryCode"); + } + } + + /// + /// Unique identifier of the default email server profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultemailserverprofileid")] + public Microsoft.Xrm.Sdk.EntityReference DefaultEmailServerProfileId + { + get + { + return this.GetAttributeValue("defaultemailserverprofileid"); + } + set + { + this.OnPropertyChanging("DefaultEmailServerProfileId"); + this.SetAttributeValue("defaultemailserverprofileid", value); + this.OnPropertyChanged("DefaultEmailServerProfileId"); + } + } + + /// + /// XML string containing the default email settings that are applied when a user or queue is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultemailsettings")] + public string DefaultEmailSettings + { + get + { + return this.GetAttributeValue("defaultemailsettings"); + } + set + { + this.OnPropertyChanging("DefaultEmailSettings"); + this.SetAttributeValue("defaultemailsettings", value); + this.OnPropertyChanged("DefaultEmailSettings"); + } + } + + /// + /// Type of default recurrence end range date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultrecurrenceendrangetype")] + public Microsoft.Xrm.Sdk.OptionSetValue DefaultRecurrenceEndRangeType + { + get + { + return this.GetAttributeValue("defaultrecurrenceendrangetype"); + } + set + { + this.OnPropertyChanging("DefaultRecurrenceEndRangeType"); + this.SetAttributeValue("defaultrecurrenceendrangetype", value); + this.OnPropertyChanged("DefaultRecurrenceEndRangeType"); + } + } + + /// + /// Reason for disabling the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Select if you want to use the Email Router or server-side synchronization for email processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailconnectionchannel")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailConnectionChannel + { + get + { + return this.GetAttributeValue("emailconnectionchannel"); + } + set + { + this.OnPropertyChanging("EmailConnectionChannel"); + this.SetAttributeValue("emailconnectionchannel", value); + this.OnPropertyChanged("EmailConnectionChannel"); + } + } + + /// + /// Flag to turn email correlation on or off. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailcorrelationenabled")] + public System.Nullable EmailCorrelationEnabled + { + get + { + return this.GetAttributeValue>("emailcorrelationenabled"); + } + set + { + this.OnPropertyChanging("EmailCorrelationEnabled"); + this.SetAttributeValue("emailcorrelationenabled", value); + this.OnPropertyChanged("EmailCorrelationEnabled"); + } + } + + /// + /// Normal polling frequency used for sending email in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailsendpollingperiod")] + public System.Nullable EmailSendPollingPeriod + { + get + { + return this.GetAttributeValue>("emailsendpollingperiod"); + } + set + { + this.OnPropertyChanging("EmailSendPollingPeriod"); + this.SetAttributeValue("emailsendpollingperiod", value); + this.OnPropertyChanged("EmailSendPollingPeriod"); + } + } + + /// + /// Enable Integration with Bing Maps + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablebingmapsintegration")] + public System.Nullable EnableBingMapsIntegration + { + get + { + return this.GetAttributeValue>("enablebingmapsintegration"); + } + set + { + this.OnPropertyChanging("EnableBingMapsIntegration"); + this.SetAttributeValue("enablebingmapsintegration", value); + this.OnPropertyChanged("EnableBingMapsIntegration"); + } + } + + /// + /// Enable pricing calculations on a Create call. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablepricingoncreate")] + public System.Nullable EnablePricingOnCreate + { + get + { + return this.GetAttributeValue>("enablepricingoncreate"); + } + set + { + this.OnPropertyChanging("EnablePricingOnCreate"); + this.SetAttributeValue("enablepricingoncreate", value); + this.OnPropertyChanged("EnablePricingOnCreate"); + } + } + + /// + /// Use Smart Matching. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablesmartmatching")] + public System.Nullable EnableSmartMatching + { + get + { + return this.GetAttributeValue>("enablesmartmatching"); + } + set + { + this.OnPropertyChanging("EnableSmartMatching"); + this.SetAttributeValue("enablesmartmatching", value); + this.OnPropertyChanged("EnableSmartMatching"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Maximum number of days before deleting inactive subscriptions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expiresubscriptionsindays")] + public System.Nullable ExpireSubscriptionsInDays + { + get + { + return this.GetAttributeValue>("expiresubscriptionsindays"); + } + set + { + this.OnPropertyChanging("ExpireSubscriptionsInDays"); + this.SetAttributeValue("expiresubscriptionsindays", value); + this.OnPropertyChanged("ExpireSubscriptionsInDays"); + } + } + + /// + /// Features to be enabled as an XML BLOB. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("featureset")] + public string FeatureSet + { + get + { + return this.GetAttributeValue("featureset"); + } + set + { + this.OnPropertyChanging("FeatureSet"); + this.SetAttributeValue("featureset", value); + this.OnPropertyChanged("FeatureSet"); + } + } + + /// + /// Start date for the fiscal period that is to be used throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalcalendarstart")] + public System.Nullable FiscalCalendarStart + { + get + { + return this.GetAttributeValue>("fiscalcalendarstart"); + } + set + { + this.OnPropertyChanging("FiscalCalendarStart"); + this.SetAttributeValue("fiscalcalendarstart", value); + this.OnPropertyChanged("FiscalCalendarStart"); + } + } + + /// + /// Information that specifies how the name of the fiscal period is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodformat")] + public string FiscalPeriodFormat + { + get + { + return this.GetAttributeValue("fiscalperiodformat"); + } + set + { + this.OnPropertyChanging("FiscalPeriodFormat"); + this.SetAttributeValue("fiscalperiodformat", value); + this.OnPropertyChanged("FiscalPeriodFormat"); + } + } + + /// + /// Format in which the fiscal period will be displayed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodformatperiod")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalPeriodFormatPeriod + { + get + { + return this.GetAttributeValue("fiscalperiodformatperiod"); + } + set + { + this.OnPropertyChanging("FiscalPeriodFormatPeriod"); + this.SetAttributeValue("fiscalperiodformatperiod", value); + this.OnPropertyChanged("FiscalPeriodFormatPeriod"); + } + } + + /// + /// Type of fiscal period used throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + set + { + this.OnPropertyChanging("FiscalPeriodType"); + this.SetAttributeValue("fiscalperiodtype", value); + this.OnPropertyChanged("FiscalPeriodType"); + } + } + + /// + /// Information that specifies whether the fiscal settings have been updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalsettingsupdated")] + [System.ObsoleteAttribute()] + public System.Nullable FiscalSettingsUpdated + { + get + { + return this.GetAttributeValue>("fiscalsettingsupdated"); + } + } + + /// + /// Information that specifies whether the fiscal year should be displayed based on the start date or the end date of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyeardisplaycode")] + public System.Nullable FiscalYearDisplayCode + { + get + { + return this.GetAttributeValue>("fiscalyeardisplaycode"); + } + set + { + this.OnPropertyChanging("FiscalYearDisplayCode"); + this.SetAttributeValue("fiscalyeardisplaycode", value); + this.OnPropertyChanged("FiscalYearDisplayCode"); + } + } + + /// + /// Information that specifies how the name of the fiscal year is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformat")] + public string FiscalYearFormat + { + get + { + return this.GetAttributeValue("fiscalyearformat"); + } + set + { + this.OnPropertyChanging("FiscalYearFormat"); + this.SetAttributeValue("fiscalyearformat", value); + this.OnPropertyChanged("FiscalYearFormat"); + } + } + + /// + /// Prefix for the display of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformatprefix")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYearFormatPrefix + { + get + { + return this.GetAttributeValue("fiscalyearformatprefix"); + } + set + { + this.OnPropertyChanging("FiscalYearFormatPrefix"); + this.SetAttributeValue("fiscalyearformatprefix", value); + this.OnPropertyChanged("FiscalYearFormatPrefix"); + } + } + + /// + /// Suffix for the display of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformatsuffix")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYearFormatSuffix + { + get + { + return this.GetAttributeValue("fiscalyearformatsuffix"); + } + set + { + this.OnPropertyChanging("FiscalYearFormatSuffix"); + this.SetAttributeValue("fiscalyearformatsuffix", value); + this.OnPropertyChanged("FiscalYearFormatSuffix"); + } + } + + /// + /// Format for the year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearformatyear")] + public Microsoft.Xrm.Sdk.OptionSetValue FiscalYearFormatYear + { + get + { + return this.GetAttributeValue("fiscalyearformatyear"); + } + set + { + this.OnPropertyChanging("FiscalYearFormatYear"); + this.SetAttributeValue("fiscalyearformatyear", value); + this.OnPropertyChanged("FiscalYearFormatYear"); + } + } + + /// + /// Information that specifies how the names of the fiscal year and the fiscal period should be connected when displayed together. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalyearperiodconnect")] + public string FiscalYearPeriodConnect + { + get + { + return this.GetAttributeValue("fiscalyearperiodconnect"); + } + set + { + this.OnPropertyChanging("FiscalYearPeriodConnect"); + this.SetAttributeValue("fiscalyearperiodconnect", value); + this.OnPropertyChanged("FiscalYearPeriodConnect"); + } + } + + /// + /// Order in which names are to be displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullnameconventioncode")] + public Microsoft.Xrm.Sdk.OptionSetValue FullNameConventionCode + { + get + { + return this.GetAttributeValue("fullnameconventioncode"); + } + set + { + this.OnPropertyChanging("FullNameConventionCode"); + this.SetAttributeValue("fullnameconventioncode", value); + this.OnPropertyChanged("FullNameConventionCode"); + } + } + + /// + /// Specifies the maximum number of months in future for which the recurring activities can be created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("futureexpansionwindow")] + public System.Nullable FutureExpansionWindow + { + get + { + return this.GetAttributeValue>("futureexpansionwindow"); + } + set + { + this.OnPropertyChanging("FutureExpansionWindow"); + this.SetAttributeValue("futureexpansionwindow", value); + this.OnPropertyChanged("FutureExpansionWindow"); + } + } + + /// + /// Indicates whether alerts will be generated for errors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generatealertsforerrors")] + public System.Nullable GenerateAlertsForErrors + { + get + { + return this.GetAttributeValue>("generatealertsforerrors"); + } + set + { + this.OnPropertyChanging("GenerateAlertsForErrors"); + this.SetAttributeValue("generatealertsforerrors", value); + this.OnPropertyChanged("GenerateAlertsForErrors"); + } + } + + /// + /// Indicates whether alerts will be generated for information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generatealertsforinformation")] + public System.Nullable GenerateAlertsForInformation + { + get + { + return this.GetAttributeValue>("generatealertsforinformation"); + } + set + { + this.OnPropertyChanging("GenerateAlertsForInformation"); + this.SetAttributeValue("generatealertsforinformation", value); + this.OnPropertyChanged("GenerateAlertsForInformation"); + } + } + + /// + /// Indicates whether alerts will be generated for warnings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generatealertsforwarnings")] + public System.Nullable GenerateAlertsForWarnings + { + get + { + return this.GetAttributeValue>("generatealertsforwarnings"); + } + set + { + this.OnPropertyChanging("GenerateAlertsForWarnings"); + this.SetAttributeValue("generatealertsforwarnings", value); + this.OnPropertyChanged("GenerateAlertsForWarnings"); + } + } + + /// + /// Indicates whether Get Started content is enabled for this organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("getstartedpanecontentenabled")] + public System.Nullable GetStartedPaneContentEnabled + { + get + { + return this.GetAttributeValue>("getstartedpanecontentenabled"); + } + set + { + this.OnPropertyChanging("GetStartedPaneContentEnabled"); + this.SetAttributeValue("getstartedpanecontentenabled", value); + this.OnPropertyChanged("GetStartedPaneContentEnabled"); + } + } + + /// + /// Number of days after the goal's end date after which the rollup of the goal stops automatically. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupexpirytime")] + public System.Nullable GoalRollupExpiryTime + { + get + { + return this.GetAttributeValue>("goalrollupexpirytime"); + } + set + { + this.OnPropertyChanging("GoalRollupExpiryTime"); + this.SetAttributeValue("goalrollupexpirytime", value); + this.OnPropertyChanged("GoalRollupExpiryTime"); + } + } + + /// + /// Number of hours between automatic rollup jobs . + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalrollupfrequency")] + public System.Nullable GoalRollupFrequency + { + get + { + return this.GetAttributeValue>("goalrollupfrequency"); + } + set + { + this.OnPropertyChanging("GoalRollupFrequency"); + this.SetAttributeValue("goalrollupfrequency", value); + this.OnPropertyChanged("GoalRollupFrequency"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("grantaccesstonetworkservice")] + public System.Nullable GrantAccessToNetworkService + { + get + { + return this.GetAttributeValue>("grantaccesstonetworkservice"); + } + set + { + this.OnPropertyChanging("GrantAccessToNetworkService"); + this.SetAttributeValue("grantaccesstonetworkservice", value); + this.OnPropertyChanged("GrantAccessToNetworkService"); + } + } + + /// + /// Maximum difference allowed between subject keywords count of the email messaged to be correlated + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashdeltasubjectcount")] + public System.Nullable HashDeltaSubjectCount + { + get + { + return this.GetAttributeValue>("hashdeltasubjectcount"); + } + set + { + this.OnPropertyChanging("HashDeltaSubjectCount"); + this.SetAttributeValue("hashdeltasubjectcount", value); + this.OnPropertyChanged("HashDeltaSubjectCount"); + } + } + + /// + /// Filter Subject Keywords + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashfilterkeywords")] + public string HashFilterKeywords + { + get + { + return this.GetAttributeValue("hashfilterkeywords"); + } + set + { + this.OnPropertyChanging("HashFilterKeywords"); + this.SetAttributeValue("hashfilterkeywords", value); + this.OnPropertyChanged("HashFilterKeywords"); + } + } + + /// + /// Maximum number of subject keywords or recipients used for correlation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashmaxcount")] + public System.Nullable HashMaxCount + { + get + { + return this.GetAttributeValue>("hashmaxcount"); + } + set + { + this.OnPropertyChanging("HashMaxCount"); + this.SetAttributeValue("hashmaxcount", value); + this.OnPropertyChanged("HashMaxCount"); + } + } + + /// + /// Minimum number of recipients required to match for email messaged to be correlated + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hashminaddresscount")] + public System.Nullable HashMinAddressCount + { + get + { + return this.GetAttributeValue>("hashminaddresscount"); + } + set + { + this.OnPropertyChanging("HashMinAddressCount"); + this.SetAttributeValue("hashminaddresscount", value); + this.OnPropertyChanged("HashMinAddressCount"); + } + } + + /// + /// Indicates whether incoming email sent by internal Microsoft Dynamics CRM users or queues should be tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreinternalemail")] + public System.Nullable IgnoreInternalEmail + { + get + { + return this.GetAttributeValue>("ignoreinternalemail"); + } + set + { + this.OnPropertyChanging("IgnoreInternalEmail"); + this.SetAttributeValue("ignoreinternalemail", value); + this.OnPropertyChanged("IgnoreInternalEmail"); + } + } + + /// + /// Setting for the Async Service Mailbox Queue. Defines the retrieval batch size of exchange server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailexchangeemailretrievalbatchsize")] + public System.Nullable IncomingEmailExchangeEmailRetrievalBatchSize + { + get + { + return this.GetAttributeValue>("incomingemailexchangeemailretrievalbatchsize"); + } + set + { + this.OnPropertyChanging("IncomingEmailExchangeEmailRetrievalBatchSize"); + this.SetAttributeValue("incomingemailexchangeemailretrievalbatchsize", value); + this.OnPropertyChanged("IncomingEmailExchangeEmailRetrievalBatchSize"); + } + } + + /// + /// Initial version of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialversion")] + public string InitialVersion + { + get + { + return this.GetAttributeValue("initialversion"); + } + set + { + this.OnPropertyChanging("InitialVersion"); + this.SetAttributeValue("initialversion", value); + this.OnPropertyChanged("InitialVersion"); + } + } + + /// + /// Unique identifier of the integration user for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("integrationuserid")] + public System.Nullable IntegrationUserId + { + get + { + return this.GetAttributeValue>("integrationuserid"); + } + set + { + this.OnPropertyChanging("IntegrationUserId"); + this.SetAttributeValue("integrationuserid", value); + this.OnPropertyChanged("IntegrationUserId"); + } + } + + /// + /// Prefix to use for all invoice numbers throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invoiceprefix")] + public string InvoicePrefix + { + get + { + return this.GetAttributeValue("invoiceprefix"); + } + set + { + this.OnPropertyChanging("InvoicePrefix"); + this.SetAttributeValue("invoiceprefix", value); + this.OnPropertyChanged("InvoicePrefix"); + } + } + + /// + /// Indicates whether loading of Microsoft Dynamics CRM in a browser window that does not have address, tool, and menu bars is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isappmode")] + public System.Nullable IsAppMode + { + get + { + return this.GetAttributeValue>("isappmode"); + } + set + { + this.OnPropertyChanging("IsAppMode"); + this.SetAttributeValue("isappmode", value); + this.OnPropertyChanged("IsAppMode"); + } + } + + /// + /// Enable or disable auditing of changes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isauditenabled")] + public System.Nullable IsAuditEnabled + { + get + { + return this.GetAttributeValue>("isauditenabled"); + } + set + { + this.OnPropertyChanging("IsAuditEnabled"); + this.SetAttributeValue("isauditenabled", value); + this.OnPropertyChanged("IsAuditEnabled"); + } + } + + /// + /// Information on whether auto save is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isautosaveenabled")] + public System.Nullable IsAutoSaveEnabled + { + get + { + return this.GetAttributeValue>("isautosaveenabled"); + } + set + { + this.OnPropertyChanging("IsAutoSaveEnabled"); + this.SetAttributeValue("isautosaveenabled", value); + this.OnPropertyChanged("IsAutoSaveEnabled"); + } + } + + /// + /// Enable or disable country code selection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefaultcountrycodecheckenabled")] + public System.Nullable IsDefaultCountryCodeCheckEnabled + { + get + { + return this.GetAttributeValue>("isdefaultcountrycodecheckenabled"); + } + set + { + this.OnPropertyChanging("IsDefaultCountryCodeCheckEnabled"); + this.SetAttributeValue("isdefaultcountrycodecheckenabled", value); + this.OnPropertyChanged("IsDefaultCountryCodeCheckEnabled"); + } + } + + /// + /// Information that specifies whether the organization is disabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + } + + /// + /// Indicates whether duplicate detection of records is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabled")] + public System.Nullable IsDuplicateDetectionEnabled + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabled"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabled"); + this.SetAttributeValue("isduplicatedetectionenabled", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabled"); + } + } + + /// + /// Indicates whether duplicate detection of records during import is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledforimport")] + public System.Nullable IsDuplicateDetectionEnabledForImport + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledforimport"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledForImport"); + this.SetAttributeValue("isduplicatedetectionenabledforimport", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledForImport"); + } + } + + /// + /// Indicates whether duplicate detection of records during offline synchronization is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledforofflinesync")] + public System.Nullable IsDuplicateDetectionEnabledForOfflineSync + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledforofflinesync"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledForOfflineSync"); + this.SetAttributeValue("isduplicatedetectionenabledforofflinesync", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledForOfflineSync"); + } + } + + /// + /// Indicates whether duplicate detection during online create or update is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledforonlinecreateupdate")] + public System.Nullable IsDuplicateDetectionEnabledForOnlineCreateUpdate + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledforonlinecreateupdate"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledForOnlineCreateUpdate"); + this.SetAttributeValue("isduplicatedetectionenabledforonlinecreateupdate", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledForOnlineCreateUpdate"); + } + } + + /// + /// Indicates whether the fiscal period is displayed as the month number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfiscalperiodmonthbased")] + public System.Nullable IsFiscalPeriodMonthBased + { + get + { + return this.GetAttributeValue>("isfiscalperiodmonthbased"); + } + set + { + this.OnPropertyChanging("IsFiscalPeriodMonthBased"); + this.SetAttributeValue("isfiscalperiodmonthbased", value); + this.OnPropertyChanged("IsFiscalPeriodMonthBased"); + } + } + + /// + /// Information on whether IM presence is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispresenceenabled")] + public System.Nullable IsPresenceEnabled + { + get + { + return this.GetAttributeValue>("ispresenceenabled"); + } + set + { + this.OnPropertyChanging("IsPresenceEnabled"); + this.SetAttributeValue("ispresenceenabled", value); + this.OnPropertyChanged("IsPresenceEnabled"); + } + } + + /// + /// Enable sales order processing integration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issopintegrationenabled")] + public System.Nullable IsSOPIntegrationEnabled + { + get + { + return this.GetAttributeValue>("issopintegrationenabled"); + } + set + { + this.OnPropertyChanging("IsSOPIntegrationEnabled"); + this.SetAttributeValue("issopintegrationenabled", value); + this.OnPropertyChanged("IsSOPIntegrationEnabled"); + } + } + + /// + /// Enable or disable auditing of user access. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isuseraccessauditenabled")] + public System.Nullable IsUserAccessAuditEnabled + { + get + { + return this.GetAttributeValue>("isuseraccessauditenabled"); + } + set + { + this.OnPropertyChanging("IsUserAccessAuditEnabled"); + this.SetAttributeValue("isuseraccessauditenabled", value); + this.OnPropertyChanged("IsUserAccessAuditEnabled"); + } + } + + /// + /// Indicates whether loading of Microsoft Dynamics CRM in a browser window that does not have address, tool, and menu bars is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvintegrationcode")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.OptionSetValue ISVIntegrationCode + { + get + { + return this.GetAttributeValue("isvintegrationcode"); + } + set + { + this.OnPropertyChanging("ISVIntegrationCode"); + this.SetAttributeValue("isvintegrationcode", value); + this.OnPropertyChanged("ISVIntegrationCode"); + } + } + + /// + /// Prefix to use for all articles in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("kbprefix")] + public string KbPrefix + { + get + { + return this.GetAttributeValue("kbprefix"); + } + set + { + this.OnPropertyChanging("KbPrefix"); + this.SetAttributeValue("kbprefix", value); + this.OnPropertyChanged("KbPrefix"); + } + } + + /// + /// Preferred language for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the locale of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("localeid")] + public System.Nullable LocaleId + { + get + { + return this.GetAttributeValue>("localeid"); + } + set + { + this.OnPropertyChanging("LocaleId"); + this.SetAttributeValue("localeid", value); + this.OnPropertyChanged("LocaleId"); + } + } + + /// + /// Information that specifies how the Long Date format is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longdateformatcode")] + public System.Nullable LongDateFormatCode + { + get + { + return this.GetAttributeValue>("longdateformatcode"); + } + set + { + this.OnPropertyChanging("LongDateFormatCode"); + this.SetAttributeValue("longdateformatcode", value); + this.OnPropertyChanged("LongDateFormatCode"); + } + } + + /// + /// Maximum number of days an appointment can last. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxappointmentdurationdays")] + public System.Nullable MaxAppointmentDurationDays + { + get + { + return this.GetAttributeValue>("maxappointmentdurationdays"); + } + set + { + this.OnPropertyChanging("MaxAppointmentDurationDays"); + this.SetAttributeValue("maxappointmentdurationdays", value); + this.OnPropertyChanged("MaxAppointmentDurationDays"); + } + } + + /// + /// Maximum number of active business process flows allowed per entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maximumactivebusinessprocessflowsallowedperentity")] + public System.Nullable MaximumActiveBusinessProcessFlowsAllowedPerEntity + { + get + { + return this.GetAttributeValue>("maximumactivebusinessprocessflowsallowedperentity"); + } + set + { + this.OnPropertyChanging("MaximumActiveBusinessProcessFlowsAllowedPerEntity"); + this.SetAttributeValue("maximumactivebusinessprocessflowsallowedperentity", value); + this.OnPropertyChanged("MaximumActiveBusinessProcessFlowsAllowedPerEntity"); + } + } + + /// + /// Maximum tracking number before recycling takes place. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maximumtrackingnumber")] + public System.Nullable MaximumTrackingNumber + { + get + { + return this.GetAttributeValue>("maximumtrackingnumber"); + } + set + { + this.OnPropertyChanging("MaximumTrackingNumber"); + this.SetAttributeValue("maximumtrackingnumber", value); + this.OnPropertyChanged("MaximumTrackingNumber"); + } + } + + /// + /// Maximum number of records that will be exported to a static Microsoft Office Excel worksheet when exporting from the grid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxrecordsforexporttoexcel")] + public System.Nullable MaxRecordsForExportToExcel + { + get + { + return this.GetAttributeValue>("maxrecordsforexporttoexcel"); + } + set + { + this.OnPropertyChanging("MaxRecordsForExportToExcel"); + this.SetAttributeValue("maxrecordsforexporttoexcel", value); + this.OnPropertyChanged("MaxRecordsForExportToExcel"); + } + } + + /// + /// Maximum number of lookup and picklist records that can be selected by user for filtering. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxrecordsforlookupfilters")] + public System.Nullable MaxRecordsForLookupFilters + { + get + { + return this.GetAttributeValue>("maxrecordsforlookupfilters"); + } + set + { + this.OnPropertyChanging("MaxRecordsForLookupFilters"); + this.SetAttributeValue("maxrecordsforlookupfilters", value); + this.OnPropertyChanged("MaxRecordsForLookupFilters"); + } + } + + /// + /// Maximum allowed size of an attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxuploadfilesize")] + public System.Nullable MaxUploadFileSize + { + get + { + return this.GetAttributeValue>("maxuploadfilesize"); + } + set + { + this.OnPropertyChanging("MaxUploadFileSize"); + this.SetAttributeValue("maxuploadfilesize", value); + this.OnPropertyChanged("MaxUploadFileSize"); + } + } + + /// + /// Normal polling frequency used for address book synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minaddressbooksyncinterval")] + public System.Nullable MinAddressBookSyncInterval + { + get + { + return this.GetAttributeValue>("minaddressbooksyncinterval"); + } + set + { + this.OnPropertyChanging("MinAddressBookSyncInterval"); + this.SetAttributeValue("minaddressbooksyncinterval", value); + this.OnPropertyChanged("MinAddressBookSyncInterval"); + } + } + + /// + /// Normal polling frequency used for background offline synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minofflinesyncinterval")] + public System.Nullable MinOfflineSyncInterval + { + get + { + return this.GetAttributeValue>("minofflinesyncinterval"); + } + set + { + this.OnPropertyChanging("MinOfflineSyncInterval"); + this.SetAttributeValue("minofflinesyncinterval", value); + this.OnPropertyChanged("MinOfflineSyncInterval"); + } + } + + /// + /// Minimum allowed time between scheduled Outlook synchronizations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minoutlooksyncinterval")] + public System.Nullable MinOutlookSyncInterval + { + get + { + return this.GetAttributeValue>("minoutlooksyncinterval"); + } + set + { + this.OnPropertyChanging("MinOutlookSyncInterval"); + this.SetAttributeValue("minoutlooksyncinterval", value); + this.OnPropertyChanged("MinOutlookSyncInterval"); + } + } + + /// + /// Unique identifier of the user who last modified the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the organization 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 organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the organization. The name is set when Microsoft CRM is installed and should not be changed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Information that specifies how negative currency numbers are displayed throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativecurrencyformatcode")] + public System.Nullable NegativeCurrencyFormatCode + { + get + { + return this.GetAttributeValue>("negativecurrencyformatcode"); + } + set + { + this.OnPropertyChanging("NegativeCurrencyFormatCode"); + this.SetAttributeValue("negativecurrencyformatcode", value); + this.OnPropertyChanged("NegativeCurrencyFormatCode"); + } + } + + /// + /// Information that specifies how negative numbers are displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativeformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue NegativeFormatCode + { + get + { + return this.GetAttributeValue("negativeformatcode"); + } + set + { + this.OnPropertyChanging("NegativeFormatCode"); + this.SetAttributeValue("negativeformatcode", value); + this.OnPropertyChanged("NegativeFormatCode"); + } + } + + /// + /// Next token to be placed on the subject line of an email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nexttrackingnumber")] + public System.Nullable NextTrackingNumber + { + get + { + return this.GetAttributeValue>("nexttrackingnumber"); + } + set + { + this.OnPropertyChanging("NextTrackingNumber"); + this.SetAttributeValue("nexttrackingnumber", value); + this.OnPropertyChanged("NextTrackingNumber"); + } + } + + /// + /// Indicates whether mailbox owners will be notified of email server profile level alerts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("notifymailboxownerofemailserverlevelalerts")] + public System.Nullable NotifyMailboxOwnerOfEmailServerLevelAlerts + { + get + { + return this.GetAttributeValue>("notifymailboxownerofemailserverlevelalerts"); + } + set + { + this.OnPropertyChanging("NotifyMailboxOwnerOfEmailServerLevelAlerts"); + this.SetAttributeValue("notifymailboxownerofemailserverlevelalerts", value); + this.OnPropertyChanged("NotifyMailboxOwnerOfEmailServerLevelAlerts"); + } + } + + /// + /// Specification of how numbers are displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberformat")] + public string NumberFormat + { + get + { + return this.GetAttributeValue("numberformat"); + } + set + { + this.OnPropertyChanging("NumberFormat"); + this.SetAttributeValue("numberformat", value); + this.OnPropertyChanged("NumberFormat"); + } + } + + /// + /// Specifies how numbers are grouped in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numbergroupformat")] + public string NumberGroupFormat + { + get + { + return this.GetAttributeValue("numbergroupformat"); + } + set + { + this.OnPropertyChanging("NumberGroupFormat"); + this.SetAttributeValue("numbergroupformat", value); + this.OnPropertyChanged("NumberGroupFormat"); + } + } + + /// + /// Symbol used for number separation in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberseparator")] + public string NumberSeparator + { + get + { + return this.GetAttributeValue("numberseparator"); + } + set + { + this.OnPropertyChanging("NumberSeparator"); + this.SetAttributeValue("numberseparator", value); + this.OnPropertyChanged("NumberSeparator"); + } + } + + /// + /// Prefix to use for all orders throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orderprefix")] + public string OrderPrefix + { + get + { + return this.GetAttributeValue("orderprefix"); + } + set + { + this.OnPropertyChanging("OrderPrefix"); + this.SetAttributeValue("orderprefix", value); + this.OnPropertyChanged("OrderPrefix"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Organization settings stored in Organization Database. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("orgdborgsettings")] + public string OrgDbOrgSettings + { + get + { + return this.GetAttributeValue("orgdborgsettings"); + } + set + { + this.OnPropertyChanging("OrgDbOrgSettings"); + this.SetAttributeValue("orgdborgsettings", value); + this.OnPropertyChanged("OrgDbOrgSettings"); + } + } + + /// + /// Prefix used for parsed table columns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtablecolumnprefix")] + public string ParsedTableColumnPrefix + { + get + { + return this.GetAttributeValue("parsedtablecolumnprefix"); + } + } + + /// + /// Prefix used for parsed tables. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parsedtableprefix")] + public string ParsedTablePrefix + { + get + { + return this.GetAttributeValue("parsedtableprefix"); + } + } + + /// + /// Specifies the maximum number of months in past for which the recurring activities can be created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pastexpansionwindow")] + public System.Nullable PastExpansionWindow + { + get + { + return this.GetAttributeValue>("pastexpansionwindow"); + } + set + { + this.OnPropertyChanging("PastExpansionWindow"); + this.SetAttributeValue("pastexpansionwindow", value); + this.OnPropertyChanged("PastExpansionWindow"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picture")] + public string Picture + { + get + { + return this.GetAttributeValue("picture"); + } + set + { + this.OnPropertyChanging("Picture"); + this.SetAttributeValue("picture", value); + this.OnPropertyChanged("Picture"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointlanguagecode")] + public System.Nullable PinpointLanguageCode + { + get + { + return this.GetAttributeValue>("pinpointlanguagecode"); + } + set + { + this.OnPropertyChanging("PinpointLanguageCode"); + this.SetAttributeValue("pinpointlanguagecode", value); + this.OnPropertyChanged("PinpointLanguageCode"); + } + } + + /// + /// PM designator to use throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pmdesignator")] + public string PMDesignator + { + get + { + return this.GetAttributeValue("pmdesignator"); + } + set + { + this.OnPropertyChanging("PMDesignator"); + this.SetAttributeValue("pmdesignator", value); + this.OnPropertyChanged("PMDesignator"); + } + } + + /// + /// Number of decimal places that can be used for prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingdecimalprecision")] + public System.Nullable PricingDecimalPrecision + { + get + { + return this.GetAttributeValue>("pricingdecimalprecision"); + } + set + { + this.OnPropertyChanging("PricingDecimalPrecision"); + this.SetAttributeValue("pricingdecimalprecision", value); + this.OnPropertyChanged("PricingDecimalPrecision"); + } + } + + /// + /// Unique identifier of the default privilege for users in the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeusergroupid")] + public System.Nullable PrivilegeUserGroupId + { + get + { + return this.GetAttributeValue>("privilegeusergroupid"); + } + set + { + this.OnPropertyChanging("PrivilegeUserGroupId"); + this.SetAttributeValue("privilegeusergroupid", value); + this.OnPropertyChanged("PrivilegeUserGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privreportinggroupid")] + public System.Nullable PrivReportingGroupId + { + get + { + return this.GetAttributeValue>("privreportinggroupid"); + } + set + { + this.OnPropertyChanging("PrivReportingGroupId"); + this.SetAttributeValue("privreportinggroupid", value); + this.OnPropertyChanged("PrivReportingGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privreportinggroupname")] + public string PrivReportingGroupName + { + get + { + return this.GetAttributeValue("privreportinggroupname"); + } + set + { + this.OnPropertyChanging("PrivReportingGroupName"); + this.SetAttributeValue("privreportinggroupname", value); + this.OnPropertyChanged("PrivReportingGroupName"); + } + } + + /// + /// Indicates whether a quick find record limit should be enabled for this organization (allows for faster Quick Find queries but prevents overly broad searches). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quickfindrecordlimitenabled")] + public System.Nullable QuickFindRecordLimitEnabled + { + get + { + return this.GetAttributeValue>("quickfindrecordlimitenabled"); + } + set + { + this.OnPropertyChanging("QuickFindRecordLimitEnabled"); + this.SetAttributeValue("quickfindrecordlimitenabled", value); + this.OnPropertyChanged("QuickFindRecordLimitEnabled"); + } + } + + /// + /// Prefix to use for all quotes throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteprefix")] + public string QuotePrefix + { + get + { + return this.GetAttributeValue("quoteprefix"); + } + set + { + this.OnPropertyChanging("QuotePrefix"); + this.SetAttributeValue("quoteprefix", value); + this.OnPropertyChanged("QuotePrefix"); + } + } + + /// + /// Specifies the default value for number of occurrences field in the recurrence dialog. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencedefaultnumberofoccurrences")] + public System.Nullable RecurrenceDefaultNumberOfOccurrences + { + get + { + return this.GetAttributeValue>("recurrencedefaultnumberofoccurrences"); + } + set + { + this.OnPropertyChanging("RecurrenceDefaultNumberOfOccurrences"); + this.SetAttributeValue("recurrencedefaultnumberofoccurrences", value); + this.OnPropertyChanged("RecurrenceDefaultNumberOfOccurrences"); + } + } + + /// + /// Specifies the interval (in seconds) for pausing expansion job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrenceexpansionjobbatchinterval")] + public System.Nullable RecurrenceExpansionJobBatchInterval + { + get + { + return this.GetAttributeValue>("recurrenceexpansionjobbatchinterval"); + } + set + { + this.OnPropertyChanging("RecurrenceExpansionJobBatchInterval"); + this.SetAttributeValue("recurrenceexpansionjobbatchinterval", value); + this.OnPropertyChanged("RecurrenceExpansionJobBatchInterval"); + } + } + + /// + /// Specifies the value for number of instances created in on demand job in one shot. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrenceexpansionjobbatchsize")] + public System.Nullable RecurrenceExpansionJobBatchSize + { + get + { + return this.GetAttributeValue>("recurrenceexpansionjobbatchsize"); + } + set + { + this.OnPropertyChanging("RecurrenceExpansionJobBatchSize"); + this.SetAttributeValue("recurrenceexpansionjobbatchsize", value); + this.OnPropertyChanged("RecurrenceExpansionJobBatchSize"); + } + } + + /// + /// Specifies the maximum number of instances to be created synchronously after creating a recurring appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrenceexpansionsynchcreatemax")] + public System.Nullable RecurrenceExpansionSynchCreateMax + { + get + { + return this.GetAttributeValue>("recurrenceexpansionsynchcreatemax"); + } + set + { + this.OnPropertyChanging("RecurrenceExpansionSynchCreateMax"); + this.SetAttributeValue("recurrenceexpansionsynchcreatemax", value); + this.OnPropertyChanged("RecurrenceExpansionSynchCreateMax"); + } + } + + /// + /// XML string that defines the navigation structure for the application. This is the site map from the previously upgraded build and is used in a 3-way merge during upgrade. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("referencesitemapxml")] + [System.ObsoleteAttribute()] + public string ReferenceSiteMapXml + { + get + { + return this.GetAttributeValue("referencesitemapxml"); + } + set + { + this.OnPropertyChanging("ReferenceSiteMapXml"); + this.SetAttributeValue("referencesitemapxml", value); + this.OnPropertyChanged("ReferenceSiteMapXml"); + } + } + + /// + /// Flag to render the body of email in the Web form in an IFRAME with the security='restricted' attribute set. This is additional security but can cause a credentials prompt. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rendersecureiframeforemail")] + public System.Nullable RenderSecureIFrameForEmail + { + get + { + return this.GetAttributeValue>("rendersecureiframeforemail"); + } + set + { + this.OnPropertyChanging("RenderSecureIFrameForEmail"); + this.SetAttributeValue("rendersecureiframeforemail", value); + this.OnPropertyChanged("RenderSecureIFrameForEmail"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportinggroupid")] + public System.Nullable ReportingGroupId + { + get + { + return this.GetAttributeValue>("reportinggroupid"); + } + set + { + this.OnPropertyChanging("ReportingGroupId"); + this.SetAttributeValue("reportinggroupid", value); + this.OnPropertyChanged("ReportingGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportinggroupname")] + public string ReportingGroupName + { + get + { + return this.GetAttributeValue("reportinggroupname"); + } + set + { + this.OnPropertyChanging("ReportingGroupName"); + this.SetAttributeValue("reportinggroupname", value); + this.OnPropertyChanged("ReportingGroupName"); + } + } + + /// + /// Picklist for selecting the organization preference for reporting scripting errors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportscripterrors")] + public Microsoft.Xrm.Sdk.OptionSetValue ReportScriptErrors + { + get + { + return this.GetAttributeValue("reportscripterrors"); + } + set + { + this.OnPropertyChanging("ReportScriptErrors"); + this.SetAttributeValue("reportscripterrors", value); + this.OnPropertyChanged("ReportScriptErrors"); + } + } + + /// + /// Indicates whether Send As Other User privilege is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requireapprovalforqueueemail")] + public System.Nullable RequireApprovalForQueueEmail + { + get + { + return this.GetAttributeValue>("requireapprovalforqueueemail"); + } + set + { + this.OnPropertyChanging("RequireApprovalForQueueEmail"); + this.SetAttributeValue("requireapprovalforqueueemail", value); + this.OnPropertyChanged("RequireApprovalForQueueEmail"); + } + } + + /// + /// Indicates whether Send As Other User privilege is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requireapprovalforuseremail")] + public System.Nullable RequireApprovalForUserEmail + { + get + { + return this.GetAttributeValue>("requireapprovalforuseremail"); + } + set + { + this.OnPropertyChanging("RequireApprovalForUserEmail"); + this.SetAttributeValue("requireapprovalforuseremail", value); + this.OnPropertyChanged("RequireApprovalForUserEmail"); + } + } + + /// + /// Unique identifier of the sample data import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sampledataimportid")] + public System.Nullable SampleDataImportId + { + get + { + return this.GetAttributeValue>("sampledataimportid"); + } + set + { + this.OnPropertyChanging("SampleDataImportId"); + this.SetAttributeValue("sampledataimportid", value); + this.OnPropertyChanged("SampleDataImportId"); + } + } + + /// + /// Prefix used for custom entities and attributes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schemanameprefix")] + public string SchemaNamePrefix + { + get + { + return this.GetAttributeValue("schemanameprefix"); + } + set + { + this.OnPropertyChanging("SchemaNamePrefix"); + this.SetAttributeValue("schemanameprefix", value); + this.OnPropertyChanged("SchemaNamePrefix"); + } + } + + /// + /// Information that specifies whether to share to previous owner on assign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharetopreviousowneronassign")] + public System.Nullable ShareToPreviousOwnerOnAssign + { + get + { + return this.GetAttributeValue>("sharetopreviousowneronassign"); + } + set + { + this.OnPropertyChanging("ShareToPreviousOwnerOnAssign"); + this.SetAttributeValue("sharetopreviousowneronassign", value); + this.OnPropertyChanged("ShareToPreviousOwnerOnAssign"); + } + } + + /// + /// Information that specifies whether to display the week number in calendar displays throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showweeknumber")] + public System.Nullable ShowWeekNumber + { + get + { + return this.GetAttributeValue>("showweeknumber"); + } + set + { + this.OnPropertyChanging("ShowWeekNumber"); + this.SetAttributeValue("showweeknumber", value); + this.OnPropertyChanged("ShowWeekNumber"); + } + } + + /// + /// CRM for Outlook Download URL + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signupoutlookdownloadfwlink")] + public string SignupOutlookDownloadFWLink + { + get + { + return this.GetAttributeValue("signupoutlookdownloadfwlink"); + } + set + { + this.OnPropertyChanging("SignupOutlookDownloadFWLink"); + this.SetAttributeValue("signupoutlookdownloadfwlink", value); + this.OnPropertyChanged("SignupOutlookDownloadFWLink"); + } + } + + /// + /// XML string that defines the navigation structure for the application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapxml")] + [System.ObsoleteAttribute()] + public string SiteMapXml + { + get + { + return this.GetAttributeValue("sitemapxml"); + } + set + { + this.OnPropertyChanging("SiteMapXml"); + this.SetAttributeValue("sitemapxml", value); + this.OnPropertyChanged("SiteMapXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sortid")] + public System.Nullable SortId + { + get + { + return this.GetAttributeValue>("sortid"); + } + set + { + this.OnPropertyChanging("SortId"); + this.SetAttributeValue("sortid", value); + this.OnPropertyChanged("SortId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sqlaccessgroupid")] + public System.Nullable SqlAccessGroupId + { + get + { + return this.GetAttributeValue>("sqlaccessgroupid"); + } + set + { + this.OnPropertyChanging("SqlAccessGroupId"); + this.SetAttributeValue("sqlaccessgroupid", value); + this.OnPropertyChanged("SqlAccessGroupId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sqlaccessgroupname")] + public string SqlAccessGroupName + { + get + { + return this.GetAttributeValue("sqlaccessgroupname"); + } + set + { + this.OnPropertyChanging("SqlAccessGroupName"); + this.SetAttributeValue("sqlaccessgroupname", value); + this.OnPropertyChanged("SqlAccessGroupName"); + } + } + + /// + /// Setting for SQM data collection, 0 no, 1 yes enabled + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sqmenabled")] + public System.Nullable SQMEnabled + { + get + { + return this.GetAttributeValue>("sqmenabled"); + } + set + { + this.OnPropertyChanging("SQMEnabled"); + this.SetAttributeValue("sqmenabled", value); + this.OnPropertyChanged("SQMEnabled"); + } + } + + /// + /// Unique identifier of the support user for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supportuserid")] + public System.Nullable SupportUserId + { + get + { + return this.GetAttributeValue>("supportuserid"); + } + set + { + this.OnPropertyChanging("SupportUserId"); + this.SetAttributeValue("supportuserid", value); + this.OnPropertyChanged("SupportUserId"); + } + } + + /// + /// Unique identifier of the system user for the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + this.OnPropertyChanged("SystemUserId"); + } + } + + /// + /// Maximum number of aggressive polling cycles executed for email auto-tagging when a new email is received. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tagmaxaggressivecycles")] + public System.Nullable TagMaxAggressiveCycles + { + get + { + return this.GetAttributeValue>("tagmaxaggressivecycles"); + } + set + { + this.OnPropertyChanging("TagMaxAggressiveCycles"); + this.SetAttributeValue("tagmaxaggressivecycles", value); + this.OnPropertyChanged("TagMaxAggressiveCycles"); + } + } + + /// + /// Normal polling frequency used for email receive auto-tagging in outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tagpollingperiod")] + public System.Nullable TagPollingPeriod + { + get + { + return this.GetAttributeValue>("tagpollingperiod"); + } + set + { + this.OnPropertyChanging("TagPollingPeriod"); + this.SetAttributeValue("tagpollingperiod", value); + this.OnPropertyChanged("TagPollingPeriod"); + } + } + + /// + /// Information that specifies how the time is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatcode")] + public Microsoft.Xrm.Sdk.OptionSetValue TimeFormatCode + { + get + { + return this.GetAttributeValue("timeformatcode"); + } + set + { + this.OnPropertyChanging("TimeFormatCode"); + this.SetAttributeValue("timeformatcode", value); + this.OnPropertyChanged("TimeFormatCode"); + } + } + + /// + /// Text for how time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatstring")] + public string TimeFormatString + { + get + { + return this.GetAttributeValue("timeformatstring"); + } + set + { + this.OnPropertyChanging("TimeFormatString"); + this.SetAttributeValue("timeformatstring", value); + this.OnPropertyChanged("TimeFormatString"); + } + } + + /// + /// Text for how the time separator is displayed throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeseparator")] + public string TimeSeparator + { + get + { + return this.GetAttributeValue("timeseparator"); + } + set + { + this.OnPropertyChanging("TimeSeparator"); + this.SetAttributeValue("timeseparator", value); + this.OnPropertyChanged("TimeSeparator"); + } + } + + /// + /// 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"); + } + } + + /// + /// Duration used for token expiration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tokenexpiry")] + public System.Nullable TokenExpiry + { + get + { + return this.GetAttributeValue>("tokenexpiry"); + } + set + { + this.OnPropertyChanging("TokenExpiry"); + this.SetAttributeValue("tokenexpiry", value); + this.OnPropertyChanged("TokenExpiry"); + } + } + + /// + /// Token key. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tokenkey")] + public string TokenKey + { + get + { + return this.GetAttributeValue("tokenkey"); + } + set + { + this.OnPropertyChanging("TokenKey"); + this.SetAttributeValue("tokenkey", value); + this.OnPropertyChanged("TokenKey"); + } + } + + /// + /// History list of tracking token prefixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingprefix")] + public string TrackingPrefix + { + get + { + return this.GetAttributeValue("trackingprefix"); + } + set + { + this.OnPropertyChanging("TrackingPrefix"); + this.SetAttributeValue("trackingprefix", value); + this.OnPropertyChanged("TrackingPrefix"); + } + } + + /// + /// Base number used to provide separate tracking token identifiers to users belonging to different deployments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtokenidbase")] + public System.Nullable TrackingTokenIdBase + { + get + { + return this.GetAttributeValue>("trackingtokenidbase"); + } + set + { + this.OnPropertyChanging("TrackingTokenIdBase"); + this.SetAttributeValue("trackingtokenidbase", value); + this.OnPropertyChanged("TrackingTokenIdBase"); + } + } + + /// + /// Number of digits used to represent a tracking token identifier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtokeniddigits")] + public System.Nullable TrackingTokenIdDigits + { + get + { + return this.GetAttributeValue>("trackingtokeniddigits"); + } + set + { + this.OnPropertyChanging("TrackingTokenIdDigits"); + this.SetAttributeValue("trackingtokeniddigits", value); + this.OnPropertyChanged("TrackingTokenIdDigits"); + } + } + + /// + /// Number of characters appended to invoice, quote, and order numbers. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquespecifierlength")] + public System.Nullable UniqueSpecifierLength + { + get + { + return this.GetAttributeValue>("uniquespecifierlength"); + } + set + { + this.OnPropertyChanging("UniqueSpecifierLength"); + this.SetAttributeValue("uniquespecifierlength", value); + this.OnPropertyChanged("UniqueSpecifierLength"); + } + } + + /// + /// The interval at which user access is checked for auditing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useraccessauditinginterval")] + public System.Nullable UserAccessAuditingInterval + { + get + { + return this.GetAttributeValue>("useraccessauditinginterval"); + } + set + { + this.OnPropertyChanging("UserAccessAuditingInterval"); + this.SetAttributeValue("useraccessauditinginterval", value); + this.OnPropertyChanged("UserAccessAuditingInterval"); + } + } + + /// + /// Indicates whether the read-optimized form should be enabled for this organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usereadform")] + public System.Nullable UseReadForm + { + get + { + return this.GetAttributeValue>("usereadform"); + } + set + { + this.OnPropertyChanging("UseReadForm"); + this.SetAttributeValue("usereadform", value); + this.OnPropertyChanged("UseReadForm"); + } + } + + /// + /// Unique identifier of the default group of users in the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usergroupid")] + public System.Nullable UserGroupId + { + get + { + return this.GetAttributeValue>("usergroupid"); + } + set + { + this.OnPropertyChanging("UserGroupId"); + this.SetAttributeValue("usergroupid", value); + this.OnPropertyChanged("UserGroupId"); + } + } + + /// + /// Indicates default protocol selected for organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useskypeprotocol")] + public System.Nullable UseSkypeProtocol + { + get + { + return this.GetAttributeValue>("useskypeprotocol"); + } + set + { + this.OnPropertyChanging("UseSkypeProtocol"); + this.SetAttributeValue("useskypeprotocol", value); + this.OnPropertyChanged("UseSkypeProtocol"); + } + } + + /// + /// 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"); + } + } + + /// + /// Hash of the V3 callout configuration file. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("v3calloutconfighash")] + public string V3CalloutConfigHash + { + get + { + return this.GetAttributeValue("v3calloutconfighash"); + } + } + + /// + /// Version number of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Designated first day of the week throughout Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("weekstartdaycode")] + public Microsoft.Xrm.Sdk.OptionSetValue WeekStartDayCode + { + get + { + return this.GetAttributeValue("weekstartdaycode"); + } + set + { + this.OnPropertyChanging("WeekStartDayCode"); + this.SetAttributeValue("weekstartdaycode", value); + this.OnPropertyChanged("WeekStartDayCode"); + } + } + + /// + /// Denotes the Yammer group ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammergroupid")] + public System.Nullable YammerGroupId + { + get + { + return this.GetAttributeValue>("yammergroupid"); + } + set + { + this.OnPropertyChanging("YammerGroupId"); + this.SetAttributeValue("yammergroupid", value); + this.OnPropertyChanged("YammerGroupId"); + } + } + + /// + /// Denotes the Yammer network permalink + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammernetworkpermalink")] + public string YammerNetworkPermalink + { + get + { + return this.GetAttributeValue("yammernetworkpermalink"); + } + set + { + this.OnPropertyChanging("YammerNetworkPermalink"); + this.SetAttributeValue("yammernetworkpermalink", value); + this.OnPropertyChanged("YammerNetworkPermalink"); + } + } + + /// + /// Denotes whether the OAuth access token for Yammer network has expired + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeroauthaccesstokenexpired")] + public System.Nullable YammerOAuthAccessTokenExpired + { + get + { + return this.GetAttributeValue>("yammeroauthaccesstokenexpired"); + } + set + { + this.OnPropertyChanging("YammerOAuthAccessTokenExpired"); + this.SetAttributeValue("yammeroauthaccesstokenexpired", value); + this.OnPropertyChanged("YammerOAuthAccessTokenExpired"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammerpostmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue YammerPostMethod + { + get + { + return this.GetAttributeValue("yammerpostmethod"); + } + set + { + this.OnPropertyChanging("YammerPostMethod"); + this.SetAttributeValue("yammerpostmethod", value); + this.OnPropertyChanged("YammerPostMethod"); + } + } + + /// + /// Information that specifies how the first week of the year is specified in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yearstartweekcode")] + public System.Nullable YearStartWeekCode + { + get + { + return this.GetAttributeValue>("yearstartweekcode"); + } + set + { + this.OnPropertyChanging("YearStartWeekCode"); + this.SetAttributeValue("yearstartweekcode", value); + this.OnPropertyChanged("YearStartWeekCode"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_organizationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_organizationid")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_organizationid + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_organizationid", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_organizationid"); + this.SetRelatedEntities("lk_fieldsecurityprofile_organizationid", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_organizationid"); + } + } + + /// + /// 1:N lk_organizationui_organizationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationui_organizationid")] + public System.Collections.Generic.IEnumerable lk_organizationui_organizationid + { + get + { + return this.GetRelatedEntities("lk_organizationui_organizationid", null); + } + set + { + this.OnPropertyChanging("lk_organizationui_organizationid"); + this.SetRelatedEntities("lk_organizationui_organizationid", null, value); + this.OnPropertyChanged("lk_organizationui_organizationid"); + } + } + + /// + /// 1:N lk_principalobjectattributeaccess_organizationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_principalobjectattributeaccess_organizationid")] + public System.Collections.Generic.IEnumerable lk_principalobjectattributeaccess_organizationid + { + get + { + return this.GetRelatedEntities("lk_principalobjectattributeaccess_organizationid", null); + } + set + { + this.OnPropertyChanging("lk_principalobjectattributeaccess_organizationid"); + this.SetRelatedEntities("lk_principalobjectattributeaccess_organizationid", null, value); + this.OnPropertyChanged("lk_principalobjectattributeaccess_organizationid"); + } + } + + /// + /// 1:N Organization_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_AsyncOperations")] + public System.Collections.Generic.IEnumerable Organization_AsyncOperations + { + get + { + return this.GetRelatedEntities("Organization_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Organization_AsyncOperations"); + this.SetRelatedEntities("Organization_AsyncOperations", null, value); + this.OnPropertyChanged("Organization_AsyncOperations"); + } + } + + /// + /// 1:N organization_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_attributemap")] + public System.Collections.Generic.IEnumerable organization_attributemap + { + get + { + return this.GetRelatedEntities("organization_attributemap", null); + } + set + { + this.OnPropertyChanging("organization_attributemap"); + this.SetRelatedEntities("organization_attributemap", null, value); + this.OnPropertyChanged("organization_attributemap"); + } + } + + /// + /// 1:N Organization_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Organization_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Organization_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Organization_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Organization_BulkDeleteFailures"); + this.SetRelatedEntities("Organization_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Organization_BulkDeleteFailures"); + } + } + + /// + /// 1:N organization_business_unit_news_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_unit_news_articles")] + public System.Collections.Generic.IEnumerable organization_business_unit_news_articles + { + get + { + return this.GetRelatedEntities("organization_business_unit_news_articles", null); + } + set + { + this.OnPropertyChanging("organization_business_unit_news_articles"); + this.SetRelatedEntities("organization_business_unit_news_articles", null, value); + this.OnPropertyChanged("organization_business_unit_news_articles"); + } + } + + /// + /// 1:N organization_business_units + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_business_units")] + public System.Collections.Generic.IEnumerable organization_business_units + { + get + { + return this.GetRelatedEntities("organization_business_units", null); + } + set + { + this.OnPropertyChanging("organization_business_units"); + this.SetRelatedEntities("organization_business_units", null, value); + this.OnPropertyChanged("organization_business_units"); + } + } + + /// + /// 1:N organization_calendars + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_calendars")] + public System.Collections.Generic.IEnumerable organization_calendars + { + get + { + return this.GetRelatedEntities("organization_calendars", null); + } + set + { + this.OnPropertyChanging("organization_calendars"); + this.SetRelatedEntities("organization_calendars", null, value); + this.OnPropertyChanged("organization_calendars"); + } + } + + /// + /// 1:N organization_competitors + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_competitors")] + public System.Collections.Generic.IEnumerable organization_competitors + { + get + { + return this.GetRelatedEntities("organization_competitors", null); + } + set + { + this.OnPropertyChanging("organization_competitors"); + this.SetRelatedEntities("organization_competitors", null, value); + this.OnPropertyChanged("organization_competitors"); + } + } + + /// + /// 1:N organization_connection_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_connection_roles")] + public System.Collections.Generic.IEnumerable organization_connection_roles + { + get + { + return this.GetRelatedEntities("organization_connection_roles", null); + } + set + { + this.OnPropertyChanging("organization_connection_roles"); + this.SetRelatedEntities("organization_connection_roles", null, value); + this.OnPropertyChanged("organization_connection_roles"); + } + } + + /// + /// 1:N organization_constraint_based_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_constraint_based_groups")] + public System.Collections.Generic.IEnumerable organization_constraint_based_groups + { + get + { + return this.GetRelatedEntities("organization_constraint_based_groups", null); + } + set + { + this.OnPropertyChanging("organization_constraint_based_groups"); + this.SetRelatedEntities("organization_constraint_based_groups", null, value); + this.OnPropertyChanged("organization_constraint_based_groups"); + } + } + + /// + /// 1:N organization_contract_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_contract_templates")] + public System.Collections.Generic.IEnumerable organization_contract_templates + { + get + { + return this.GetRelatedEntities("organization_contract_templates", null); + } + set + { + this.OnPropertyChanging("organization_contract_templates"); + this.SetRelatedEntities("organization_contract_templates", null, value); + this.OnPropertyChanged("organization_contract_templates"); + } + } + + /// + /// 1:N organization_custom_displaystrings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_custom_displaystrings")] + public System.Collections.Generic.IEnumerable organization_custom_displaystrings + { + get + { + return this.GetRelatedEntities("organization_custom_displaystrings", null); + } + set + { + this.OnPropertyChanging("organization_custom_displaystrings"); + this.SetRelatedEntities("organization_custom_displaystrings", null, value); + this.OnPropertyChanged("organization_custom_displaystrings"); + } + } + + /// + /// 1:N organization_discount_types + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_discount_types")] + public System.Collections.Generic.IEnumerable organization_discount_types + { + get + { + return this.GetRelatedEntities("organization_discount_types", null); + } + set + { + this.OnPropertyChanging("organization_discount_types"); + this.SetRelatedEntities("organization_discount_types", null, value); + this.OnPropertyChanged("organization_discount_types"); + } + } + + /// + /// 1:N organization_emailserverprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_emailserverprofile")] + public System.Collections.Generic.IEnumerable organization_emailserverprofile + { + get + { + return this.GetRelatedEntities("organization_emailserverprofile", null); + } + set + { + this.OnPropertyChanging("organization_emailserverprofile"); + this.SetRelatedEntities("organization_emailserverprofile", null, value); + this.OnPropertyChanged("organization_emailserverprofile"); + } + } + + /// + /// 1:N organization_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_entitymap")] + public System.Collections.Generic.IEnumerable organization_entitymap + { + get + { + return this.GetRelatedEntities("organization_entitymap", null); + } + set + { + this.OnPropertyChanging("organization_entitymap"); + this.SetRelatedEntities("organization_entitymap", null, value); + this.OnPropertyChanged("organization_entitymap"); + } + } + + /// + /// 1:N organization_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_equipment")] + public System.Collections.Generic.IEnumerable organization_equipment + { + get + { + return this.GetRelatedEntities("organization_equipment", null); + } + set + { + this.OnPropertyChanging("organization_equipment"); + this.SetRelatedEntities("organization_equipment", null, value); + this.OnPropertyChanged("organization_equipment"); + } + } + + /// + /// 1:N organization_importjob + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_importjob")] + public System.Collections.Generic.IEnumerable organization_importjob + { + get + { + return this.GetRelatedEntities("organization_importjob", null); + } + set + { + this.OnPropertyChanging("organization_importjob"); + this.SetRelatedEntities("organization_importjob", null, value); + this.OnPropertyChanged("organization_importjob"); + } + } + + /// + /// 1:N organization_isvconfigs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_isvconfigs")] + public System.Collections.Generic.IEnumerable organization_isvconfigs + { + get + { + return this.GetRelatedEntities("organization_isvconfigs", null); + } + set + { + this.OnPropertyChanging("organization_isvconfigs"); + this.SetRelatedEntities("organization_isvconfigs", null, value); + this.OnPropertyChanged("organization_isvconfigs"); + } + } + + /// + /// 1:N organization_kb_article_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_article_templates")] + public System.Collections.Generic.IEnumerable organization_kb_article_templates + { + get + { + return this.GetRelatedEntities("organization_kb_article_templates", null); + } + set + { + this.OnPropertyChanging("organization_kb_article_templates"); + this.SetRelatedEntities("organization_kb_article_templates", null, value); + this.OnPropertyChanged("organization_kb_article_templates"); + } + } + + /// + /// 1:N organization_kb_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_kb_articles")] + public System.Collections.Generic.IEnumerable organization_kb_articles + { + get + { + return this.GetRelatedEntities("organization_kb_articles", null); + } + set + { + this.OnPropertyChanging("organization_kb_articles"); + this.SetRelatedEntities("organization_kb_articles", null, value); + this.OnPropertyChanged("organization_kb_articles"); + } + } + + /// + /// 1:N organization_licenses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_licenses")] + public System.Collections.Generic.IEnumerable organization_licenses + { + get + { + return this.GetRelatedEntities("organization_licenses", null); + } + set + { + this.OnPropertyChanging("organization_licenses"); + this.SetRelatedEntities("organization_licenses", null, value); + this.OnPropertyChanged("organization_licenses"); + } + } + + /// + /// 1:N organization_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_mailbox")] + public System.Collections.Generic.IEnumerable organization_mailbox + { + get + { + return this.GetRelatedEntities("organization_mailbox", null); + } + set + { + this.OnPropertyChanging("organization_mailbox"); + this.SetRelatedEntities("organization_mailbox", null, value); + this.OnPropertyChanged("organization_mailbox"); + } + } + + /// + /// 1:N organization_metric + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_metric")] + public System.Collections.Generic.IEnumerable organization_metric + { + get + { + return this.GetRelatedEntities("organization_metric", null); + } + set + { + this.OnPropertyChanging("organization_metric"); + this.SetRelatedEntities("organization_metric", null, value); + this.OnPropertyChanged("organization_metric"); + } + } + + /// + /// 1:N organization_msdyn_postconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postconfig")] + public System.Collections.Generic.IEnumerable organization_msdyn_postconfig + { + get + { + return this.GetRelatedEntities("organization_msdyn_postconfig", null); + } + set + { + this.OnPropertyChanging("organization_msdyn_postconfig"); + this.SetRelatedEntities("organization_msdyn_postconfig", null, value); + this.OnPropertyChanged("organization_msdyn_postconfig"); + } + } + + /// + /// 1:N organization_msdyn_postruleconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_postruleconfig")] + public System.Collections.Generic.IEnumerable organization_msdyn_postruleconfig + { + get + { + return this.GetRelatedEntities("organization_msdyn_postruleconfig", null); + } + set + { + this.OnPropertyChanging("organization_msdyn_postruleconfig"); + this.SetRelatedEntities("organization_msdyn_postruleconfig", null, value); + this.OnPropertyChanged("organization_msdyn_postruleconfig"); + } + } + + /// + /// 1:N organization_msdyn_wallsavedquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_msdyn_wallsavedquery")] + public System.Collections.Generic.IEnumerable organization_msdyn_wallsavedquery + { + get + { + return this.GetRelatedEntities("organization_msdyn_wallsavedquery", null); + } + set + { + this.OnPropertyChanging("organization_msdyn_wallsavedquery"); + this.SetRelatedEntities("organization_msdyn_wallsavedquery", null, value); + this.OnPropertyChanged("organization_msdyn_wallsavedquery"); + } + } + + /// + /// 1:N organization_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_pluginassembly")] + public System.Collections.Generic.IEnumerable organization_pluginassembly + { + get + { + return this.GetRelatedEntities("organization_pluginassembly", null); + } + set + { + this.OnPropertyChanging("organization_pluginassembly"); + this.SetRelatedEntities("organization_pluginassembly", null, value); + this.OnPropertyChanged("organization_pluginassembly"); + } + } + + /// + /// 1:N organization_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintype")] + public System.Collections.Generic.IEnumerable organization_plugintype + { + get + { + return this.GetRelatedEntities("organization_plugintype", null); + } + set + { + this.OnPropertyChanging("organization_plugintype"); + this.SetRelatedEntities("organization_plugintype", null, value); + this.OnPropertyChanged("organization_plugintype"); + } + } + + /// + /// 1:N organization_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintypestatistic")] + public System.Collections.Generic.IEnumerable organization_plugintypestatistic + { + get + { + return this.GetRelatedEntities("organization_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("organization_plugintypestatistic"); + this.SetRelatedEntities("organization_plugintypestatistic", null, value); + this.OnPropertyChanged("organization_plugintypestatistic"); + } + } + + /// + /// 1:N organization_post + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_post")] + public System.Collections.Generic.IEnumerable organization_post + { + get + { + return this.GetRelatedEntities("organization_post", null); + } + set + { + this.OnPropertyChanging("organization_post"); + this.SetRelatedEntities("organization_post", null, value); + this.OnPropertyChanged("organization_post"); + } + } + + /// + /// 1:N organization_PostComment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_PostComment")] + public System.Collections.Generic.IEnumerable organization_PostComment + { + get + { + return this.GetRelatedEntities("organization_PostComment", null); + } + set + { + this.OnPropertyChanging("organization_PostComment"); + this.SetRelatedEntities("organization_PostComment", null, value); + this.OnPropertyChanged("organization_PostComment"); + } + } + + /// + /// 1:N organization_postlike + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_postlike")] + public System.Collections.Generic.IEnumerable organization_postlike + { + get + { + return this.GetRelatedEntities("organization_postlike", null); + } + set + { + this.OnPropertyChanging("organization_postlike"); + this.SetRelatedEntities("organization_postlike", null, value); + this.OnPropertyChanged("organization_postlike"); + } + } + + /// + /// 1:N organization_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_price_levels")] + public System.Collections.Generic.IEnumerable organization_price_levels + { + get + { + return this.GetRelatedEntities("organization_price_levels", null); + } + set + { + this.OnPropertyChanging("organization_price_levels"); + this.SetRelatedEntities("organization_price_levels", null, value); + this.OnPropertyChanged("organization_price_levels"); + } + } + + /// + /// 1:N organization_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_products")] + public System.Collections.Generic.IEnumerable organization_products + { + get + { + return this.GetRelatedEntities("organization_products", null); + } + set + { + this.OnPropertyChanging("organization_products"); + this.SetRelatedEntities("organization_products", null, value); + this.OnPropertyChanged("organization_products"); + } + } + + /// + /// 1:N organization_publisher + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_publisher")] + public System.Collections.Generic.IEnumerable organization_publisher + { + get + { + return this.GetRelatedEntities("organization_publisher", null); + } + set + { + this.OnPropertyChanging("organization_publisher"); + this.SetRelatedEntities("organization_publisher", null, value); + this.OnPropertyChanged("organization_publisher"); + } + } + + /// + /// 1:N organization_queueitems + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queueitems")] + public System.Collections.Generic.IEnumerable organization_queueitems + { + get + { + return this.GetRelatedEntities("organization_queueitems", null); + } + set + { + this.OnPropertyChanging("organization_queueitems"); + this.SetRelatedEntities("organization_queueitems", null, value); + this.OnPropertyChanged("organization_queueitems"); + } + } + + /// + /// 1:N organization_queues + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queues")] + public System.Collections.Generic.IEnumerable organization_queues + { + get + { + return this.GetRelatedEntities("organization_queues", null); + } + set + { + this.OnPropertyChanging("organization_queues"); + this.SetRelatedEntities("organization_queues", null, value); + this.OnPropertyChanged("organization_queues"); + } + } + + /// + /// 1:N organization_relationship_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_relationship_roles")] + public System.Collections.Generic.IEnumerable organization_relationship_roles + { + get + { + return this.GetRelatedEntities("organization_relationship_roles", null); + } + set + { + this.OnPropertyChanging("organization_relationship_roles"); + this.SetRelatedEntities("organization_relationship_roles", null, value); + this.OnPropertyChanged("organization_relationship_roles"); + } + } + + /// + /// 1:N organization_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_groups")] + public System.Collections.Generic.IEnumerable organization_resource_groups + { + get + { + return this.GetRelatedEntities("organization_resource_groups", null); + } + set + { + this.OnPropertyChanging("organization_resource_groups"); + this.SetRelatedEntities("organization_resource_groups", null, value); + this.OnPropertyChanged("organization_resource_groups"); + } + } + + /// + /// 1:N organization_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_specs")] + public System.Collections.Generic.IEnumerable organization_resource_specs + { + get + { + return this.GetRelatedEntities("organization_resource_specs", null); + } + set + { + this.OnPropertyChanging("organization_resource_specs"); + this.SetRelatedEntities("organization_resource_specs", null, value); + this.OnPropertyChanged("organization_resource_specs"); + } + } + + /// + /// 1:N organization_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resources")] + public System.Collections.Generic.IEnumerable organization_resources + { + get + { + return this.GetRelatedEntities("organization_resources", null); + } + set + { + this.OnPropertyChanging("organization_resources"); + this.SetRelatedEntities("organization_resources", null, value); + this.OnPropertyChanged("organization_resources"); + } + } + + /// + /// 1:N organization_ribbon_customization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_ribbon_customization")] + public System.Collections.Generic.IEnumerable organization_ribbon_customization + { + get + { + return this.GetRelatedEntities("organization_ribbon_customization", null); + } + set + { + this.OnPropertyChanging("organization_ribbon_customization"); + this.SetRelatedEntities("organization_ribbon_customization", null, value); + this.OnPropertyChanged("organization_ribbon_customization"); + } + } + + /// + /// 1:N organization_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_roles")] + public System.Collections.Generic.IEnumerable organization_roles + { + get + { + return this.GetRelatedEntities("organization_roles", null); + } + set + { + this.OnPropertyChanging("organization_roles"); + this.SetRelatedEntities("organization_roles", null, value); + this.OnPropertyChanged("organization_roles"); + } + } + + /// + /// 1:N organization_sales_literature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sales_literature")] + public System.Collections.Generic.IEnumerable organization_sales_literature + { + get + { + return this.GetRelatedEntities("organization_sales_literature", null); + } + set + { + this.OnPropertyChanging("organization_sales_literature"); + this.SetRelatedEntities("organization_sales_literature", null, value); + this.OnPropertyChanged("organization_sales_literature"); + } + } + + /// + /// 1:N organization_saved_queries + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_queries")] + public System.Collections.Generic.IEnumerable organization_saved_queries + { + get + { + return this.GetRelatedEntities("organization_saved_queries", null); + } + set + { + this.OnPropertyChanging("organization_saved_queries"); + this.SetRelatedEntities("organization_saved_queries", null, value); + this.OnPropertyChanged("organization_saved_queries"); + } + } + + /// + /// 1:N organization_saved_query_visualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_query_visualizations")] + public System.Collections.Generic.IEnumerable organization_saved_query_visualizations + { + get + { + return this.GetRelatedEntities("organization_saved_query_visualizations", null); + } + set + { + this.OnPropertyChanging("organization_saved_query_visualizations"); + this.SetRelatedEntities("organization_saved_query_visualizations", null, value); + this.OnPropertyChanged("organization_saved_query_visualizations"); + } + } + + /// + /// 1:N organization_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessage")] + public System.Collections.Generic.IEnumerable organization_sdkmessage + { + get + { + return this.GetRelatedEntities("organization_sdkmessage", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessage"); + this.SetRelatedEntities("organization_sdkmessage", null, value); + this.OnPropertyChanged("organization_sdkmessage"); + } + } + + /// + /// 1:N organization_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable organization_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("organization_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagefilter"); + this.SetRelatedEntities("organization_sdkmessagefilter", null, value); + this.OnPropertyChanged("organization_sdkmessagefilter"); + } + } + + /// + /// 1:N organization_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagepair")] + public System.Collections.Generic.IEnumerable organization_sdkmessagepair + { + get + { + return this.GetRelatedEntities("organization_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagepair"); + this.SetRelatedEntities("organization_sdkmessagepair", null, value); + this.OnPropertyChanged("organization_sdkmessagepair"); + } + } + + /// + /// 1:N organization_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable organization_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("organization_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageprocessingstep"); + this.SetRelatedEntities("organization_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("organization_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N organization_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable organization_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("organization_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("organization_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("organization_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N organization_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable organization_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("organization_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("organization_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("organization_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// 1:N organization_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable organization_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("organization_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagerequest"); + this.SetRelatedEntities("organization_sdkmessagerequest", null, value); + this.OnPropertyChanged("organization_sdkmessagerequest"); + } + } + + /// + /// 1:N organization_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable organization_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("organization_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessagerequestfield"); + this.SetRelatedEntities("organization_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("organization_sdkmessagerequestfield"); + } + } + + /// + /// 1:N organization_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable organization_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("organization_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageresponse"); + this.SetRelatedEntities("organization_sdkmessageresponse", null, value); + this.OnPropertyChanged("organization_sdkmessageresponse"); + } + } + + /// + /// 1:N organization_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable organization_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("organization_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("organization_sdkmessageresponsefield"); + this.SetRelatedEntities("organization_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("organization_sdkmessageresponsefield"); + } + } + + /// + /// 1:N organization_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_serviceendpoint")] + public System.Collections.Generic.IEnumerable organization_serviceendpoint + { + get + { + return this.GetRelatedEntities("organization_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("organization_serviceendpoint"); + this.SetRelatedEntities("organization_serviceendpoint", null, value); + this.OnPropertyChanged("organization_serviceendpoint"); + } + } + + /// + /// 1:N organization_services + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_services")] + public System.Collections.Generic.IEnumerable organization_services + { + get + { + return this.GetRelatedEntities("organization_services", null); + } + set + { + this.OnPropertyChanging("organization_services"); + this.SetRelatedEntities("organization_services", null, value); + this.OnPropertyChanged("organization_services"); + } + } + + /// + /// 1:N organization_sitemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sitemap")] + public System.Collections.Generic.IEnumerable organization_sitemap + { + get + { + return this.GetRelatedEntities("organization_sitemap", null); + } + set + { + this.OnPropertyChanging("organization_sitemap"); + this.SetRelatedEntities("organization_sitemap", null, value); + this.OnPropertyChanged("organization_sitemap"); + } + } + + /// + /// 1:N organization_sites + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sites")] + public System.Collections.Generic.IEnumerable organization_sites + { + get + { + return this.GetRelatedEntities("organization_sites", null); + } + set + { + this.OnPropertyChanging("organization_sites"); + this.SetRelatedEntities("organization_sites", null, value); + this.OnPropertyChanged("organization_sites"); + } + } + + /// + /// 1:N organization_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_solution")] + public System.Collections.Generic.IEnumerable organization_solution + { + get + { + return this.GetRelatedEntities("organization_solution", null); + } + set + { + this.OnPropertyChanging("organization_solution"); + this.SetRelatedEntities("organization_solution", null, value); + this.OnPropertyChanged("organization_solution"); + } + } + + /// + /// 1:N organization_subjects + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_subjects")] + public System.Collections.Generic.IEnumerable organization_subjects + { + get + { + return this.GetRelatedEntities("organization_subjects", null); + } + set + { + this.OnPropertyChanging("organization_subjects"); + this.SetRelatedEntities("organization_subjects", null, value); + this.OnPropertyChanged("organization_subjects"); + } + } + + /// + /// 1:N organization_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_system_users")] + public System.Collections.Generic.IEnumerable organization_system_users + { + get + { + return this.GetRelatedEntities("organization_system_users", null); + } + set + { + this.OnPropertyChanging("organization_system_users"); + this.SetRelatedEntities("organization_system_users", null, value); + this.OnPropertyChanged("organization_system_users"); + } + } + + /// + /// 1:N organization_systemforms + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_systemforms")] + public System.Collections.Generic.IEnumerable organization_systemforms + { + get + { + return this.GetRelatedEntities("organization_systemforms", null); + } + set + { + this.OnPropertyChanging("organization_systemforms"); + this.SetRelatedEntities("organization_systemforms", null, value); + this.OnPropertyChanged("organization_systemforms"); + } + } + + /// + /// 1:N organization_teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_teams")] + public System.Collections.Generic.IEnumerable organization_teams + { + get + { + return this.GetRelatedEntities("organization_teams", null); + } + set + { + this.OnPropertyChanging("organization_teams"); + this.SetRelatedEntities("organization_teams", null, value); + this.OnPropertyChanged("organization_teams"); + } + } + + /// + /// 1:N organization_territories + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_territories")] + public System.Collections.Generic.IEnumerable organization_territories + { + get + { + return this.GetRelatedEntities("organization_territories", null); + } + set + { + this.OnPropertyChanging("organization_territories"); + this.SetRelatedEntities("organization_territories", null, value); + this.OnPropertyChanged("organization_territories"); + } + } + + /// + /// 1:N organization_tracelog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_tracelog")] + public System.Collections.Generic.IEnumerable organization_tracelog + { + get + { + return this.GetRelatedEntities("organization_tracelog", null); + } + set + { + this.OnPropertyChanging("organization_tracelog"); + this.SetRelatedEntities("organization_tracelog", null, value); + this.OnPropertyChanged("organization_tracelog"); + } + } + + /// + /// 1:N organization_transactioncurrencies + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_transactioncurrencies")] + public System.Collections.Generic.IEnumerable organization_transactioncurrencies + { + get + { + return this.GetRelatedEntities("organization_transactioncurrencies", null); + } + set + { + this.OnPropertyChanging("organization_transactioncurrencies"); + this.SetRelatedEntities("organization_transactioncurrencies", null, value); + this.OnPropertyChanged("organization_transactioncurrencies"); + } + } + + /// + /// 1:N organization_uof_schedules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_uof_schedules")] + public System.Collections.Generic.IEnumerable organization_uof_schedules + { + get + { + return this.GetRelatedEntities("organization_uof_schedules", null); + } + set + { + this.OnPropertyChanging("organization_uof_schedules"); + this.SetRelatedEntities("organization_uof_schedules", null, value); + this.OnPropertyChanged("organization_uof_schedules"); + } + } + + /// + /// 1:N userentityinstancedata_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_organization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_organization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_organization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_organization"); + this.SetRelatedEntities("userentityinstancedata_organization", null, value); + this.OnPropertyChanged("userentityinstancedata_organization"); + } + } + + /// + /// 1:N webresource_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_organization")] + public System.Collections.Generic.IEnumerable webresource_organization + { + get + { + return this.GetRelatedEntities("webresource_organization", null); + } + set + { + this.OnPropertyChanging("webresource_organization"); + this.SetRelatedEntities("webresource_organization", null, value); + this.OnPropertyChanged("webresource_organization"); + } + } + + /// + /// N:1 basecurrency_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basecurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("basecurrency_organization")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency basecurrency_organization + { + get + { + return this.GetRelatedEntity("basecurrency_organization", null); + } + set + { + this.OnPropertyChanging("basecurrency_organization"); + this.SetRelatedEntity("basecurrency_organization", null, value); + this.OnPropertyChanged("basecurrency_organization"); + } + } + + /// + /// N:1 calendar_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessclosurecalendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_organization")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_organization + { + get + { + return this.GetRelatedEntity("calendar_organization", null); + } + set + { + this.OnPropertyChanging("calendar_organization"); + this.SetRelatedEntity("calendar_organization", null, value); + this.OnPropertyChanged("calendar_organization"); + } + } + + /// + /// N:1 EmailServerProfile_Organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultemailserverprofileid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("EmailServerProfile_Organization")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile EmailServerProfile_Organization + { + get + { + return this.GetRelatedEntity("EmailServerProfile_Organization", null); + } + set + { + this.OnPropertyChanging("EmailServerProfile_Organization"); + this.SetRelatedEntity("EmailServerProfile_Organization", null, value); + this.OnPropertyChanged("EmailServerProfile_Organization"); + } + } + + /// + /// N:1 lk_organization_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organization_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_organization_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_organization_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organization_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_organization_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_organizationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organizationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_organizationbase_createdby", null); + } + } + + /// + /// N:1 lk_organizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_organizationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_organizationbase_modifiedby", null); + } + } + + /// + /// N:1 Template_Organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("acknowledgementtemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_Organization")] + public Xrm.Framework.CI.Common.Entities.Template Template_Organization + { + get + { + return this.GetRelatedEntity("Template_Organization", null); + } + set + { + this.OnPropertyChanging("Template_Organization"); + this.SetRelatedEntity("Template_Organization", null, value); + this.OnPropertyChanged("Template_Organization"); + } + } + } + + /// + /// Entity customizations including form layout and icons. Includes current and past versions. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("organizationui")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OrganizationUI : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OrganizationUI() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "organizationui"; + + public const int EntityTypeCode = 1021; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldxml")] + public string FieldXml + { + get + { + return this.GetAttributeValue("fieldxml"); + } + set + { + this.OnPropertyChanging("FieldXml"); + this.SetAttributeValue("fieldxml", value); + this.OnPropertyChanged("FieldXml"); + } + } + + /// + /// Unique identifier of the record type form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public System.Nullable FormId + { + get + { + return this.GetAttributeValue>("formid"); + } + set + { + this.OnPropertyChanging("FormId"); + this.SetAttributeValue("formid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FormId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FormId = value; + } + } + + /// + /// Unique identifier of the form used when synchronizing customizations for the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formidunique")] + public System.Nullable FormIdUnique + { + get + { + return this.GetAttributeValue>("formidunique"); + } + } + + /// + /// XML representation of the form layout. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formxml")] + public string FormXml + { + get + { + return this.GetAttributeValue("formxml"); + } + set + { + this.OnPropertyChanging("FormXml"); + this.SetAttributeValue("formxml", value); + this.OnPropertyChanged("FormXml"); + } + } + + /// + /// Binary representation of the icon used in record type grid views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("gridicon")] + public string GridIcon + { + get + { + return this.GetAttributeValue("gridicon"); + } + set + { + this.OnPropertyChanging("GridIcon"); + this.SetAttributeValue("gridicon", value); + this.OnPropertyChanged("GridIcon"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Binary representation of the large icon used in the record type form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("largeentityicon")] + public string LargeEntityIcon + { + get + { + return this.GetAttributeValue("largeentityicon"); + } + set + { + this.OnPropertyChanging("LargeEntityIcon"); + this.SetAttributeValue("largeentityicon", value); + this.OnPropertyChanged("LargeEntityIcon"); + } + } + + /// + /// Code that represents the record type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Binary representation of the large icon used in the Microsoft Dynamics CRM client for Outlook for this record type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlookshortcuticon")] + public string OutlookShortcutIcon + { + get + { + return this.GetAttributeValue("outlookshortcuticon"); + } + set + { + this.OnPropertyChanging("OutlookShortcutIcon"); + this.SetAttributeValue("outlookshortcuticon", value); + this.OnPropertyChanged("OutlookShortcutIcon"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previewcolumnsetxml")] + public string PreviewColumnsetXml + { + get + { + return this.GetAttributeValue("previewcolumnsetxml"); + } + set + { + this.OnPropertyChanging("PreviewColumnsetXml"); + this.SetAttributeValue("previewcolumnsetxml", value); + this.OnPropertyChanged("PreviewColumnsetXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previewxml")] + public string PreviewXml + { + get + { + return this.GetAttributeValue("previewxml"); + } + set + { + this.OnPropertyChanging("PreviewXml"); + this.SetAttributeValue("previewxml", value); + this.OnPropertyChanged("PreviewXml"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public System.Nullable Version + { + get + { + return this.GetAttributeValue>("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// Represents a version of customizations to be synchronized with the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 lk_organizationui_organizationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationui_organizationid")] + public Xrm.Framework.CI.Common.Entities.Organization lk_organizationui_organizationid + { + get + { + return this.GetRelatedEntity("lk_organizationui_organizationid", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum OwnerMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps ownership data from the source file to Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ownermapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class OwnerMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public OwnerMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "ownermapping"; + + public const int EntityTypeCode = 4420; + + 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 owner mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the owner mapping 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 ownermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the data map with which the owner mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the lookup mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the owner mapping 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 ownermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the owner mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownermappingid")] + public System.Nullable OwnerMappingId + { + get + { + return this.GetAttributeValue>("ownermappingid"); + } + set + { + this.OnPropertyChanging("OwnerMappingId"); + this.SetAttributeValue("ownermappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("OwnerMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownermappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.OwnerMappingId = value; + } + } + + /// + /// Code that indicates whether the owner mapping has to be processed + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Source user name that has to be replaced + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcesystemusername")] + public string SourceSystemUserName + { + get + { + return this.GetAttributeValue("sourcesystemusername"); + } + set + { + this.OnPropertyChanging("SourceSystemUserName"); + this.SetAttributeValue("sourcesystemusername", value); + this.OnPropertyChanged("SourceSystemUserName"); + } + } + + /// + /// Source user value for source Microsoft Dynamics CRM user link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceuservalueforsourcecrmuserlink")] + public string SourceUserValueForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("sourceuservalueforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("SourceUserValueForSourceCRMUserLink"); + this.SetAttributeValue("sourceuservalueforsourcecrmuserlink", value); + this.OnPropertyChanged("SourceUserValueForSourceCRMUserLink"); + } + } + + /// + /// Status of the owner mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.OwnerMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.OwnerMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the owner mapping. + /// + [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"); + } + } + + /// + /// Microsoft Dynamics CRM logon name with which the source user name should be replaced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetsystemuserdomainname")] + public string TargetSystemUserDomainName + { + get + { + return this.GetAttributeValue("targetsystemuserdomainname"); + } + set + { + this.OnPropertyChanging("TargetSystemUserDomainName"); + this.SetAttributeValue("targetsystemuserdomainname", value); + this.OnPropertyChanged("TargetSystemUserDomainName"); + } + } + + /// + /// Unique identifier of the Microsoft Dynamics CRM user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference TargetSystemUserId + { + get + { + return this.GetAttributeValue("targetsystemuserid"); + } + set + { + this.OnPropertyChanging("TargetSystemUserId"); + this.SetAttributeValue("targetsystemuserid", value); + this.OnPropertyChanged("TargetSystemUserId"); + } + } + + /// + /// Microsoft Dynamics CRM user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetuservalueforsourcecrmuserlink")] + public string TargetUserValueForSourceCRMUserLink + { + get + { + return this.GetAttributeValue("targetuservalueforsourcecrmuserlink"); + } + set + { + this.OnPropertyChanging("TargetUserValueForSourceCRMUserLink"); + this.SetAttributeValue("targetuservalueforsourcecrmuserlink", value); + this.OnPropertyChanged("TargetUserValueForSourceCRMUserLink"); + } + } + + /// + /// 1:N userentityinstancedata_ownermapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ownermapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_ownermapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_ownermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ownermapping"); + this.SetRelatedEntities("userentityinstancedata_ownermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_ownermapping"); + } + } + + /// + /// N:1 lk_ownermapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_createdby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_createdby", null); + } + } + + /// + /// N:1 lk_ownermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_ownermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_modifiedby", null); + } + } + + /// + /// N:1 lk_ownermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_ownermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_ownermapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 OwnerMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap OwnerMapping_ImportMap + { + get + { + return this.GetRelatedEntity("OwnerMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_ImportMap"); + this.SetRelatedEntity("OwnerMapping_ImportMap", null, value); + this.OnPropertyChanged("OwnerMapping_ImportMap"); + } + } + + /// + /// N:1 OwnerMapping_SystemUser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_SystemUser")] + public Xrm.Framework.CI.Common.Entities.SystemUser OwnerMapping_SystemUser + { + get + { + return this.GetRelatedEntity("OwnerMapping_SystemUser", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_SystemUser"); + this.SetRelatedEntity("OwnerMapping_SystemUser", null, value); + this.OnPropertyChanged("OwnerMapping_SystemUser"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum PhoneCallState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity to track a telephone call. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("phonecall")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PhoneCall : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PhoneCall() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "phonecall"; + + public const int EntityTypeCode = 4210; + + 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 phone call 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Type the number of minutes spent on the phone call. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the phone call. By default, it displays the date and time when the activity was completed or canceled, but can be edited to capture the actual duration of the phone call. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the phone call. By default, it displays the date and time when the activity was created, but can be edited to capture the actual duration of the phone call. + /// + [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"); + } + } + + /// + /// Type a category to identify the phone call type, such as lead gathering or customer follow-up, to tie the phone call to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the phone call, such as the primary message or the products and services discussed. + /// + [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 the direction of the phone call as incoming or outbound. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("directioncode")] + public System.Nullable DirectionCode + { + get + { + return this.GetAttributeValue>("directioncode"); + } + set + { + this.OnPropertyChanging("DirectionCode"); + this.SetAttributeValue("directioncode", value); + this.OnPropertyChanged("DirectionCode"); + } + } + + /// + /// 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 account, contact, lead, or user who made the phone call. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information which specifies whether the phone call 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indication which specifies if the phone call activity was created by 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"); + } + } + + /// + /// Select whether a voice mail was left for the person. + /// + [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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 phone call 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 phone call 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 phone call activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the phone number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("phonenumber")] + public string PhoneNumber + { + get + { + return this.GetAttributeValue("phonenumber"); + } + set + { + this.OnPropertyChanging("PhoneNumber"); + this.SetAttributeValue("phonenumber", value); + this.OnPropertyChanged("PhoneNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the phone call 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"); + } + } + + /// + /// Scheduled duration of the phone call activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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 for an associated service. + /// + [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"); + } + } + + /// + /// 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 phone call is open, completed, or canceled. Completed and canceled phone calls are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.PhoneCallState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.PhoneCallState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the phone call'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"); + } + } + + /// + /// Type a subcategory to identify the phone call type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the phone call. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the account, contact, lead, or user recipients of the phone call. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 phone call activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N phonecall_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_activity_parties")] + public System.Collections.Generic.IEnumerable phonecall_activity_parties + { + get + { + return this.GetRelatedEntities("phonecall_activity_parties", null); + } + set + { + this.OnPropertyChanging("phonecall_activity_parties"); + this.SetRelatedEntities("phonecall_activity_parties", null, value); + this.OnPropertyChanged("phonecall_activity_parties"); + } + } + + /// + /// 1:N PhoneCall_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_Annotation")] + public System.Collections.Generic.IEnumerable PhoneCall_Annotation + { + get + { + return this.GetRelatedEntities("PhoneCall_Annotation", null); + } + set + { + this.OnPropertyChanging("PhoneCall_Annotation"); + this.SetRelatedEntities("PhoneCall_Annotation", null, value); + this.OnPropertyChanged("PhoneCall_Annotation"); + } + } + + /// + /// 1:N PhoneCall_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_AsyncOperations")] + public System.Collections.Generic.IEnumerable PhoneCall_AsyncOperations + { + get + { + return this.GetRelatedEntities("PhoneCall_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PhoneCall_AsyncOperations"); + this.SetRelatedEntities("PhoneCall_AsyncOperations", null, value); + this.OnPropertyChanged("PhoneCall_AsyncOperations"); + } + } + + /// + /// 1:N PhoneCall_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable PhoneCall_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("PhoneCall_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("PhoneCall_BulkDeleteFailures"); + this.SetRelatedEntities("PhoneCall_BulkDeleteFailures", null, value); + this.OnPropertyChanged("PhoneCall_BulkDeleteFailures"); + } + } + + /// + /// 1:N phonecall_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_campaignresponse")] + public System.Collections.Generic.IEnumerable phonecall_campaignresponse + { + get + { + return this.GetRelatedEntities("phonecall_campaignresponse", null); + } + set + { + this.OnPropertyChanging("phonecall_campaignresponse"); + this.SetRelatedEntities("phonecall_campaignresponse", null, value); + this.OnPropertyChanged("phonecall_campaignresponse"); + } + } + + /// + /// 1:N phonecall_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections1")] + public System.Collections.Generic.IEnumerable phonecall_connections1 + { + get + { + return this.GetRelatedEntities("phonecall_connections1", null); + } + set + { + this.OnPropertyChanging("phonecall_connections1"); + this.SetRelatedEntities("phonecall_connections1", null, value); + this.OnPropertyChanged("phonecall_connections1"); + } + } + + /// + /// 1:N phonecall_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_connections2")] + public System.Collections.Generic.IEnumerable phonecall_connections2 + { + get + { + return this.GetRelatedEntities("phonecall_connections2", null); + } + set + { + this.OnPropertyChanging("phonecall_connections2"); + this.SetRelatedEntities("phonecall_connections2", null, value); + this.OnPropertyChanged("phonecall_connections2"); + } + } + + /// + /// 1:N PhoneCall_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable PhoneCall_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("PhoneCall_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("PhoneCall_DuplicateBaseRecord"); + this.SetRelatedEntities("PhoneCall_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("PhoneCall_DuplicateBaseRecord"); + } + } + + /// + /// 1:N PhoneCall_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable PhoneCall_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("PhoneCall_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("PhoneCall_DuplicateMatchingRecord"); + this.SetRelatedEntities("PhoneCall_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("PhoneCall_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N phonecall_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_PostFollows")] + public System.Collections.Generic.IEnumerable phonecall_PostFollows + { + get + { + return this.GetRelatedEntities("phonecall_PostFollows", null); + } + set + { + this.OnPropertyChanging("phonecall_PostFollows"); + this.SetRelatedEntities("phonecall_PostFollows", null, value); + this.OnPropertyChanged("phonecall_PostFollows"); + } + } + + /// + /// 1:N phonecall_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable phonecall_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("phonecall_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("phonecall_principalobjectattributeaccess"); + this.SetRelatedEntities("phonecall_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("phonecall_principalobjectattributeaccess"); + } + } + + /// + /// 1:N PhoneCall_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_ProcessSessions")] + public System.Collections.Generic.IEnumerable PhoneCall_ProcessSessions + { + get + { + return this.GetRelatedEntities("PhoneCall_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PhoneCall_ProcessSessions"); + this.SetRelatedEntities("PhoneCall_ProcessSessions", null, value); + this.OnPropertyChanged("PhoneCall_ProcessSessions"); + } + } + + /// + /// 1:N PhoneCall_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_QueueItem")] + public System.Collections.Generic.IEnumerable PhoneCall_QueueItem + { + get + { + return this.GetRelatedEntities("PhoneCall_QueueItem", null); + } + set + { + this.OnPropertyChanging("PhoneCall_QueueItem"); + this.SetRelatedEntities("PhoneCall_QueueItem", null, value); + this.OnPropertyChanged("PhoneCall_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_phonecall")] + public System.Collections.Generic.IEnumerable userentityinstancedata_phonecall + { + get + { + return this.GetRelatedEntities("userentityinstancedata_phonecall", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_phonecall"); + this.SetRelatedEntities("userentityinstancedata_phonecall", null, value); + this.OnPropertyChanged("userentityinstancedata_phonecall"); + } + } + + /// + /// N:1 Account_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Account Account_Phonecalls + { + get + { + return this.GetRelatedEntity("Account_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Account_Phonecalls"); + this.SetRelatedEntity("Account_Phonecalls", null, value); + this.OnPropertyChanged("Account_Phonecalls"); + } + } + + /// + /// N:1 activity_pointer_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_phonecall")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_phonecall + { + get + { + return this.GetRelatedEntity("activity_pointer_phonecall", null); + } + set + { + this.OnPropertyChanging("activity_pointer_phonecall"); + this.SetRelatedEntity("activity_pointer_phonecall", null, value); + this.OnPropertyChanged("activity_pointer_phonecall"); + } + } + + /// + /// N:1 BulkOperation_Phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_Phonecall")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_Phonecall + { + get + { + return this.GetRelatedEntity("BulkOperation_Phonecall", null); + } + set + { + this.OnPropertyChanging("BulkOperation_Phonecall"); + this.SetRelatedEntity("BulkOperation_Phonecall", null, value); + this.OnPropertyChanged("BulkOperation_Phonecall"); + } + } + + /// + /// N:1 business_unit_phone_call_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_phone_call_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_phone_call_activities + { + get + { + return this.GetRelatedEntity("business_unit_phone_call_activities", null); + } + } + + /// + /// N:1 Campaign_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Phonecalls + { + get + { + return this.GetRelatedEntity("Campaign_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Campaign_Phonecalls"); + this.SetRelatedEntity("Campaign_Phonecalls", null, value); + this.OnPropertyChanged("Campaign_Phonecalls"); + } + } + + /// + /// N:1 CampaignActivity_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Phonecalls + { + get + { + return this.GetRelatedEntity("CampaignActivity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Phonecalls"); + this.SetRelatedEntity("CampaignActivity_Phonecalls", null, value); + this.OnPropertyChanged("CampaignActivity_Phonecalls"); + } + } + + /// + /// N:1 Contact_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Phonecalls + { + get + { + return this.GetRelatedEntity("Contact_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contact_Phonecalls"); + this.SetRelatedEntity("Contact_Phonecalls", null, value); + this.OnPropertyChanged("Contact_Phonecalls"); + } + } + + /// + /// N:1 Contract_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Phonecalls + { + get + { + return this.GetRelatedEntity("Contract_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Contract_Phonecalls"); + this.SetRelatedEntity("Contract_Phonecalls", null, value); + this.OnPropertyChanged("Contract_Phonecalls"); + } + } + + /// + /// N:1 Incident_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Phonecalls + { + get + { + return this.GetRelatedEntity("Incident_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Incident_Phonecalls"); + this.SetRelatedEntity("Incident_Phonecalls", null, value); + this.OnPropertyChanged("Incident_Phonecalls"); + } + } + + /// + /// N:1 Invoice_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Phonecalls + { + get + { + return this.GetRelatedEntity("Invoice_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Invoice_Phonecalls"); + this.SetRelatedEntity("Invoice_Phonecalls", null, value); + this.OnPropertyChanged("Invoice_Phonecalls"); + } + } + + /// + /// N:1 Lead_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Phonecalls + { + get + { + return this.GetRelatedEntity("Lead_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Lead_Phonecalls"); + this.SetRelatedEntity("Lead_Phonecalls", null, value); + this.OnPropertyChanged("Lead_Phonecalls"); + } + } + + /// + /// N:1 lk_phonecall_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_createdby + { + get + { + return this.GetRelatedEntity("lk_phonecall_createdby", null); + } + } + + /// + /// N:1 lk_phonecall_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_phonecall_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_phonecall_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_modifiedby + { + get + { + return this.GetRelatedEntity("lk_phonecall_modifiedby", null); + } + } + + /// + /// N:1 lk_phonecall_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_phonecall_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_phonecall_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_PhoneCalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PhoneCalls")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_PhoneCalls + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_PhoneCalls", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PhoneCalls"); + this.SetRelatedEntity("msdyn_postalbum_PhoneCalls", null, value); + this.OnPropertyChanged("msdyn_postalbum_PhoneCalls"); + } + } + + /// + /// N:1 Opportunity_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Phonecalls + { + get + { + return this.GetRelatedEntity("Opportunity_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Opportunity_Phonecalls"); + this.SetRelatedEntity("Opportunity_Phonecalls", null, value); + this.OnPropertyChanged("Opportunity_Phonecalls"); + } + } + + /// + /// N:1 processstage_phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_phonecalls")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_phonecalls + { + get + { + return this.GetRelatedEntity("processstage_phonecalls", null); + } + set + { + this.OnPropertyChanging("processstage_phonecalls"); + this.SetRelatedEntity("processstage_phonecalls", null, value); + this.OnPropertyChanged("processstage_phonecalls"); + } + } + + /// + /// N:1 Quote_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Phonecalls + { + get + { + return this.GetRelatedEntity("Quote_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Quote_Phonecalls"); + this.SetRelatedEntity("Quote_Phonecalls", null, value); + this.OnPropertyChanged("Quote_Phonecalls"); + } + } + + /// + /// N:1 SalesOrder_Phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Phonecalls")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Phonecalls + { + get + { + return this.GetRelatedEntity("SalesOrder_Phonecalls", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Phonecalls"); + this.SetRelatedEntity("SalesOrder_Phonecalls", null, value); + this.OnPropertyChanged("SalesOrder_Phonecalls"); + } + } + + /// + /// N:1 service_phonecalls + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_phonecalls")] + public Xrm.Framework.CI.Common.Entities.Service service_phonecalls + { + get + { + return this.GetRelatedEntity("service_phonecalls", null); + } + set + { + this.OnPropertyChanging("service_phonecalls"); + this.SetRelatedEntity("service_phonecalls", null, value); + this.OnPropertyChanged("service_phonecalls"); + } + } + + /// + /// N:1 team_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_phonecall")] + public Xrm.Framework.CI.Common.Entities.Team team_phonecall + { + get + { + return this.GetRelatedEntity("team_phonecall", null); + } + } + + /// + /// N:1 TransactionCurrency_PhoneCall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_PhoneCall")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_PhoneCall + { + get + { + return this.GetRelatedEntity("TransactionCurrency_PhoneCall", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_PhoneCall"); + this.SetRelatedEntity("TransactionCurrency_PhoneCall", null, value); + this.OnPropertyChanged("TransactionCurrency_PhoneCall"); + } + } + + /// + /// N:1 user_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_phonecall")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_phonecall + { + get + { + return this.GetRelatedEntity("user_phonecall", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum PickListMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps list values from the source file to Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("picklistmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PickListMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PickListMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "picklistmapping"; + + public const int EntityTypeCode = 4418; + + 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 column mapping with which this list value mapping is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + public Microsoft.Xrm.Sdk.EntityReference ColumnMappingId + { + get + { + return this.GetAttributeValue("columnmappingid"); + } + set + { + this.OnPropertyChanging("ColumnMappingId"); + this.SetAttributeValue("columnmappingid", value); + this.OnPropertyChanged("ColumnMappingId"); + } + } + + /// + /// Unique identifier of the user who created the list value mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the list value mapping 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 picklistmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the user who last modified the list value mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the list value mapping 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 picklistmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the picklist mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picklistmappingid")] + public System.Nullable PickListMappingId + { + get + { + return this.GetAttributeValue>("picklistmappingid"); + } + set + { + this.OnPropertyChanging("PickListMappingId"); + this.SetAttributeValue("picklistmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PickListMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picklistmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PickListMappingId = value; + } + } + + /// + /// Information about whether the list value mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Source value to be replaced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcevalue")] + public string SourceValue + { + get + { + return this.GetAttributeValue("sourcevalue"); + } + set + { + this.OnPropertyChanging("SourceValue"); + this.SetAttributeValue("sourcevalue", value); + this.OnPropertyChanged("SourceValue"); + } + } + + /// + /// Status of the picklist mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.PickListMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.PickListMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the picklist mapping. + /// + [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"); + } + } + + /// + /// Microsoft Dynamics CRM list value with which to replace the source value. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetvalue")] + public System.Nullable TargetValue + { + get + { + return this.GetAttributeValue>("targetvalue"); + } + set + { + this.OnPropertyChanging("TargetValue"); + this.SetAttributeValue("targetvalue", value); + this.OnPropertyChanged("TargetValue"); + } + } + + /// + /// 1:N userentityinstancedata_picklistmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_picklistmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_picklistmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_picklistmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_picklistmapping"); + this.SetRelatedEntities("userentityinstancedata_picklistmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_picklistmapping"); + } + } + + /// + /// N:1 lk_picklistmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_createdby", null); + } + } + + /// + /// N:1 lk_picklistmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_picklistmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_picklistmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_picklistmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_picklistmapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 PickListMapping_ColumnMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnmappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PickListMapping_ColumnMapping")] + public Xrm.Framework.CI.Common.Entities.ColumnMapping PickListMapping_ColumnMapping + { + get + { + return this.GetRelatedEntity("PickListMapping_ColumnMapping", null); + } + set + { + this.OnPropertyChanging("PickListMapping_ColumnMapping"); + this.SetRelatedEntity("PickListMapping_ColumnMapping", null, value); + this.OnPropertyChanged("PickListMapping_ColumnMapping"); + } + } + } + + /// + /// Assembly that contains one or more plug-in types. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pluginassembly")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PluginAssembly : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PluginAssembly() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "pluginassembly"; + + public const int EntityTypeCode = 4605; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Bytes of the assembly, in Base64 format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Unique identifier of the user who created the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in assembly was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Culture code for the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] + public string Culture + { + get + { + return this.GetAttributeValue("culture"); + } + set + { + this.OnPropertyChanging("Culture"); + this.SetAttributeValue("culture", value); + this.OnPropertyChanged("Culture"); + } + } + + /// + /// Customization Level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about how the plugin assembly is to be isolated at execution time; None / Sandboxed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isolationmode")] + public Microsoft.Xrm.Sdk.OptionSetValue IsolationMode + { + get + { + return this.GetAttributeValue("isolationmode"); + } + set + { + this.OnPropertyChanging("IsolationMode"); + this.SetAttributeValue("isolationmode", value); + this.OnPropertyChanged("IsolationMode"); + } + } + + /// + /// Major of the assembly version. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] + public System.Nullable Major + { + get + { + return this.GetAttributeValue>("major"); + } + } + + /// + /// Minor of the assembly version. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] + public System.Nullable Minor + { + get + { + return this.GetAttributeValue>("minor"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in assembly was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in assembly is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// File name of the plug-in assembly. Used when the source type is set to 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("path")] + public string Path + { + get + { + return this.GetAttributeValue("path"); + } + set + { + this.OnPropertyChanging("Path"); + this.SetAttributeValue("path", value); + this.OnPropertyChanged("Path"); + } + } + + /// + /// Unique identifier of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public System.Nullable PluginAssemblyId + { + get + { + return this.GetAttributeValue>("pluginassemblyid"); + } + set + { + this.OnPropertyChanging("PluginAssemblyId"); + this.SetAttributeValue("pluginassemblyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginAssemblyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginAssemblyId = value; + } + } + + /// + /// Unique identifier of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyidunique")] + public System.Nullable PluginAssemblyIdUnique + { + get + { + return this.GetAttributeValue>("pluginassemblyidunique"); + } + } + + /// + /// Public key token of the assembly. This value can be obtained from the assembly by using reflection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] + public string PublicKeyToken + { + get + { + return this.GetAttributeValue("publickeytoken"); + } + set + { + this.OnPropertyChanging("PublicKeyToken"); + this.SetAttributeValue("publickeytoken", value); + this.OnPropertyChanged("PublicKeyToken"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Hash of the source of the assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcehash")] + public string SourceHash + { + get + { + return this.GetAttributeValue("sourcehash"); + } + set + { + this.OnPropertyChanging("SourceHash"); + this.SetAttributeValue("sourcehash", value); + this.OnPropertyChanged("SourceHash"); + } + } + + /// + /// Location of the assembly, for example 0=database, 1=on-disk. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetype")] + public Microsoft.Xrm.Sdk.OptionSetValue SourceType + { + get + { + return this.GetAttributeValue("sourcetype"); + } + set + { + this.OnPropertyChanging("SourceType"); + this.SetAttributeValue("sourcetype", value); + this.OnPropertyChanged("SourceType"); + } + } + + /// + /// Version number of the assembly. The value can be obtained from the assembly through reflection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N pluginassembly_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] + public System.Collections.Generic.IEnumerable pluginassembly_plugintype + { + get + { + return this.GetRelatedEntities("pluginassembly_plugintype", null); + } + set + { + this.OnPropertyChanging("pluginassembly_plugintype"); + this.SetRelatedEntities("pluginassembly_plugintype", null, value); + this.OnPropertyChanged("pluginassembly_plugintype"); + } + } + + /// + /// 1:N userentityinstancedata_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pluginassembly")] + public System.Collections.Generic.IEnumerable userentityinstancedata_pluginassembly + { + get + { + return this.GetRelatedEntities("userentityinstancedata_pluginassembly", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pluginassembly"); + this.SetRelatedEntities("userentityinstancedata_pluginassembly", null, value); + this.OnPropertyChanged("userentityinstancedata_pluginassembly"); + } + } + + /// + /// N:1 createdby_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_pluginassembly + { + get + { + return this.GetRelatedEntity("createdby_pluginassembly", null); + } + } + + /// + /// N:1 lk_pluginassembly_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pluginassembly_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginassembly_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_pluginassembly_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pluginassembly_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_pluginassembly + { + get + { + return this.GetRelatedEntity("modifiedby_pluginassembly", null); + } + } + + /// + /// N:1 organization_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.Organization organization_pluginassembly + { + get + { + return this.GetRelatedEntity("organization_pluginassembly", null); + } + } + } + + /// + /// Type that inherits from the IPlugin interface and is contained within a plug-in assembly. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("plugintype")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PluginType : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PluginType() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "plugintype"; + + public const int EntityTypeCode = 4602; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Full path name of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("assemblyname")] + public string AssemblyName + { + get + { + return this.GetAttributeValue("assemblyname"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in type was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the plugintype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Culture code for the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] + public string Culture + { + get + { + return this.GetAttributeValue("culture"); + } + } + + /// + /// Customization level of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Serialized Custom Activity Type information, including required arguments. For more information, see SandboxCustomActivityInfo. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customworkflowactivityinfo")] + public string CustomWorkflowActivityInfo + { + get + { + return this.GetAttributeValue("customworkflowactivityinfo"); + } + } + + /// + /// Description of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// User friendly name for the plug-in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates if the plug-in is a custom activity for workflows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowactivity")] + public System.Nullable IsWorkflowActivity + { + get + { + return this.GetAttributeValue>("isworkflowactivity"); + } + } + + /// + /// Major of the version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] + public System.Nullable Major + { + get + { + return this.GetAttributeValue>("major"); + } + } + + /// + /// Minor of the version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] + public System.Nullable Minor + { + get + { + return this.GetAttributeValue>("minor"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in type was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the plugintype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in type is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the plug-in assembly that contains this plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public Microsoft.Xrm.Sdk.EntityReference PluginAssemblyId + { + get + { + return this.GetAttributeValue("pluginassemblyid"); + } + set + { + this.OnPropertyChanging("PluginAssemblyId"); + this.SetAttributeValue("pluginassemblyid", value); + this.OnPropertyChanged("PluginAssemblyId"); + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public System.Nullable PluginTypeId + { + get + { + return this.GetAttributeValue>("plugintypeid"); + } + set + { + this.OnPropertyChanging("PluginTypeId"); + this.SetAttributeValue("plugintypeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginTypeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginTypeId = value; + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeidunique")] + public System.Nullable PluginTypeIdUnique + { + get + { + return this.GetAttributeValue>("plugintypeidunique"); + } + } + + /// + /// Public key token of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] + public string PublicKeyToken + { + get + { + return this.GetAttributeValue("publickeytoken"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Fully qualified type name of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typename")] + public string TypeName + { + get + { + return this.GetAttributeValue("typename"); + } + set + { + this.OnPropertyChanging("TypeName"); + this.SetAttributeValue("typename", value); + this.OnPropertyChanged("TypeName"); + } + } + + /// + /// Version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Group name of workflow custom activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivitygroupname")] + public string WorkflowActivityGroupName + { + get + { + return this.GetAttributeValue("workflowactivitygroupname"); + } + set + { + this.OnPropertyChanging("WorkflowActivityGroupName"); + this.SetAttributeValue("workflowactivitygroupname", value); + this.OnPropertyChanged("WorkflowActivityGroupName"); + } + } + + /// + /// 1:N plugin_type_service + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugin_type_service")] + public System.Collections.Generic.IEnumerable plugin_type_service + { + get + { + return this.GetRelatedEntities("plugin_type_service", null); + } + set + { + this.OnPropertyChanging("plugin_type_service"); + this.SetRelatedEntities("plugin_type_service", null, value); + this.OnPropertyChanged("plugin_type_service"); + } + } + + /// + /// 1:N plugintype_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_plugintypestatistic")] + public System.Collections.Generic.IEnumerable plugintype_plugintypestatistic + { + get + { + return this.GetRelatedEntities("plugintype_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("plugintype_plugintypestatistic"); + this.SetRelatedEntities("plugintype_plugintypestatistic", null, value); + this.OnPropertyChanged("plugintype_plugintypestatistic"); + } + } + + /// + /// 1:N plugintype_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable plugintype_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("plugintype_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintype_sdkmessageprocessingstep"); + this.SetRelatedEntities("plugintype_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintype_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N plugintypeid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable plugintypeid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintypeid_sdkmessageprocessingstep"); + this.SetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintypeid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintype")] + public System.Collections.Generic.IEnumerable userentityinstancedata_plugintype + { + get + { + return this.GetRelatedEntities("userentityinstancedata_plugintype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintype"); + this.SetRelatedEntities("userentityinstancedata_plugintype", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintype"); + } + } + + /// + /// N:1 createdby_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_plugintype + { + get + { + return this.GetRelatedEntity("createdby_plugintype", null); + } + } + + /// + /// N:1 lk_plugintype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintype_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintype_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_plugintype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintype_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_plugintype + { + get + { + return this.GetRelatedEntity("modifiedby_plugintype", null); + } + } + + /// + /// N:1 organization_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintype")] + public Xrm.Framework.CI.Common.Entities.Organization organization_plugintype + { + get + { + return this.GetRelatedEntity("organization_plugintype", null); + } + } + + /// + /// N:1 pluginassembly_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] + public Xrm.Framework.CI.Common.Entities.PluginAssembly pluginassembly_plugintype + { + get + { + return this.GetRelatedEntity("pluginassembly_plugintype", null); + } + set + { + this.OnPropertyChanging("pluginassembly_plugintype"); + this.SetRelatedEntity("pluginassembly_plugintype", null, value); + this.OnPropertyChanged("pluginassembly_plugintype"); + } + } + } + + /// + /// Plug-in type statistic. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("plugintypestatistic")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PluginTypeStatistic : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PluginTypeStatistic() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "plugintypestatistic"; + + public const int EntityTypeCode = 4603; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// The average execution time (in milliseconds) for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("averageexecutetimeinmilliseconds")] + public System.Nullable AverageExecuteTimeInMilliseconds + { + get + { + return this.GetAttributeValue>("averageexecutetimeinmilliseconds"); + } + } + + /// + /// The plug-in type percentage contribution to crashes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crashcontributionpercent")] + public System.Nullable CrashContributionPercent + { + get + { + return this.GetAttributeValue>("crashcontributionpercent"); + } + } + + /// + /// Number of times the plug-in type has crashed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crashcount")] + public System.Nullable CrashCount + { + get + { + return this.GetAttributeValue>("crashcount"); + } + } + + /// + /// Percentage of crashes for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crashpercent")] + public System.Nullable CrashPercent + { + get + { + return this.GetAttributeValue>("crashpercent"); + } + } + + /// + /// Unique identifier of the user who created the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in type statistic 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 plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of times the plug-in type has been executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executecount")] + public System.Nullable ExecuteCount + { + get + { + return this.GetAttributeValue>("executecount"); + } + } + + /// + /// Number of times the plug-in type has failed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurecount")] + public System.Nullable FailureCount + { + get + { + return this.GetAttributeValue>("failurecount"); + } + } + + /// + /// Percentage of failures for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("failurepercent")] + public System.Nullable FailurePercent + { + get + { + return this.GetAttributeValue>("failurepercent"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in type statistic was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in type statistic is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the plug-in type associated with this plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + } + + /// + /// Unique identifier of the plug-in type statistic. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypestatisticid")] + public System.Nullable PluginTypeStatisticId + { + get + { + return this.GetAttributeValue>("plugintypestatisticid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypestatisticid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to excessive CPU usage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminatecpucontributionpercent")] + public System.Nullable TerminateCpuContributionPercent + { + get + { + return this.GetAttributeValue>("terminatecpucontributionpercent"); + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to excessive handle usage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminatehandlescontributionpercent")] + public System.Nullable TerminateHandlesContributionPercent + { + get + { + return this.GetAttributeValue>("terminatehandlescontributionpercent"); + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to excessive memory usage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminatememorycontributionpercent")] + public System.Nullable TerminateMemoryContributionPercent + { + get + { + return this.GetAttributeValue>("terminatememorycontributionpercent"); + } + } + + /// + /// The plug-in type percentage contribution to Worker process termination due to unknown reasons. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("terminateothercontributionpercent")] + public System.Nullable TerminateOtherContributionPercent + { + get + { + return this.GetAttributeValue>("terminateothercontributionpercent"); + } + } + + /// + /// 1:N userentityinstancedata_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintypestatistic")] + public System.Collections.Generic.IEnumerable userentityinstancedata_plugintypestatistic + { + get + { + return this.GetRelatedEntities("userentityinstancedata_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintypestatistic"); + this.SetRelatedEntities("userentityinstancedata_plugintypestatistic", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintypestatistic"); + } + } + + /// + /// N:1 createdby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_plugintypestatistic + { + get + { + return this.GetRelatedEntity("createdby_plugintypestatistic", null); + } + } + + /// + /// N:1 lk_plugintypestatisticbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintypestatisticbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintypestatisticbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_plugintypestatisticbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_plugintypestatisticbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintypestatisticbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_plugintypestatistic + { + get + { + return this.GetRelatedEntity("modifiedby_plugintypestatistic", null); + } + } + + /// + /// N:1 organization_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.Organization organization_plugintypestatistic + { + get + { + return this.GetRelatedEntity("organization_plugintypestatistic", null); + } + } + + /// + /// N:1 plugintype_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.PluginType plugintype_plugintypestatistic + { + get + { + return this.GetRelatedEntity("plugintype_plugintypestatistic", null); + } + } + } + + /// + /// An activity feed post. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("post")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Post : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Post() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "post"; + + public const int EntityTypeCode = 8000; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 CRM options. + /// + [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"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public System.Nullable PostId + { + get + { + return this.GetAttributeValue>("postid"); + } + set + { + this.OnPropertyChanging("PostId"); + this.SetAttributeValue("postid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostId = value; + } + } + + /// + /// Choose the parent record for the post to identify the customer, opportunity, case, or other record that the post most closely relates to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the user or team who owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectownerid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwnerId + { + get + { + return this.GetAttributeValue("regardingobjectownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectowningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwningBusinessUnit + { + get + { + return this.GetAttributeValue("regardingobjectowningbusinessunit"); + } + } + + /// + /// Select whether the post was created manually or automatically. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("source")] + public Microsoft.Xrm.Sdk.OptionSetValue Source + { + get + { + return this.GetAttributeValue("source"); + } + set + { + this.OnPropertyChanging("Source"); + this.SetAttributeValue("source", value); + this.OnPropertyChanged("Source"); + } + } + + /// + /// Shows the text of a post. If this is a manual post, it appears in plain text. If this is an auto post, it appears in XML. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("text")] + public string Text + { + get + { + return this.GetAttributeValue("text"); + } + set + { + this.OnPropertyChanging("Text"); + this.SetAttributeValue("text", value); + this.OnPropertyChanged("Text"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the post type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N post_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_AsyncOperations")] + public System.Collections.Generic.IEnumerable post_AsyncOperations + { + get + { + return this.GetRelatedEntities("post_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("post_AsyncOperations"); + this.SetRelatedEntities("post_AsyncOperations", null, value); + this.OnPropertyChanged("post_AsyncOperations"); + } + } + + /// + /// 1:N post_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("post_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable post_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("post_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("post_BulkDeleteFailures"); + this.SetRelatedEntities("post_BulkDeleteFailures", null, value); + this.OnPropertyChanged("post_BulkDeleteFailures"); + } + } + + /// + /// 1:N Post_Comments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Comments")] + public System.Collections.Generic.IEnumerable Post_Comments + { + get + { + return this.GetRelatedEntities("Post_Comments", null); + } + set + { + this.OnPropertyChanging("Post_Comments"); + this.SetRelatedEntities("Post_Comments", null, value); + this.OnPropertyChanged("Post_Comments"); + } + } + + /// + /// 1:N Post_Likes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Likes")] + public System.Collections.Generic.IEnumerable Post_Likes + { + get + { + return this.GetRelatedEntities("Post_Likes", null); + } + set + { + this.OnPropertyChanging("Post_Likes"); + this.SetRelatedEntities("Post_Likes", null, value); + this.OnPropertyChanged("Post_Likes"); + } + } + + /// + /// N:1 lk_post_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_createdby + { + get + { + return this.GetRelatedEntity("lk_post_createdby", null); + } + } + + /// + /// N:1 lk_post_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_post_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_post_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_modifiedby + { + get + { + return this.GetRelatedEntity("lk_post_modifiedby", null); + } + } + + /// + /// N:1 lk_post_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_post_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_post_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_post + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_post")] + public Xrm.Framework.CI.Common.Entities.Organization organization_post + { + get + { + return this.GetRelatedEntity("organization_post", null); + } + } + } + + /// + /// A comment on an activity feed post. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("postcomment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PostComment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PostComment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "postcomment"; + + public const int EntityTypeCode = 8005; + + 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"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Shows the ID of the post comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postcommentid")] + public System.Nullable PostCommentId + { + get + { + return this.GetAttributeValue>("postcommentid"); + } + set + { + this.OnPropertyChanging("PostCommentId"); + this.SetAttributeValue("postcommentid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostCommentId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postcommentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostCommentId = value; + } + } + + /// + /// Unique identifier of the post with which the comment is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public Microsoft.Xrm.Sdk.EntityReference PostId + { + get + { + return this.GetAttributeValue("postid"); + } + set + { + this.OnPropertyChanging("PostId"); + this.SetAttributeValue("postid", value); + this.OnPropertyChanged("PostId"); + } + } + + /// + /// Text of the comment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("text")] + public string Text + { + get + { + return this.GetAttributeValue("text"); + } + set + { + this.OnPropertyChanging("Text"); + this.SetAttributeValue("text", value); + this.OnPropertyChanged("Text"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// N:1 lk_postcomment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postcomment_createdby + { + get + { + return this.GetRelatedEntity("lk_postcomment_createdby", null); + } + } + + /// + /// N:1 lk_postcomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postcomment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_postcomment_createdonbehalfby", null); + } + } + + /// + /// N:1 organization_PostComment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_PostComment")] + public Xrm.Framework.CI.Common.Entities.Organization organization_PostComment + { + get + { + return this.GetRelatedEntity("organization_PostComment", null); + } + } + + /// + /// N:1 Post_Comments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Comments")] + public Xrm.Framework.CI.Common.Entities.Post Post_Comments + { + get + { + return this.GetRelatedEntity("Post_Comments", null); + } + set + { + this.OnPropertyChanging("Post_Comments"); + this.SetRelatedEntity("Post_Comments", null, value); + this.OnPropertyChanged("Post_Comments"); + } + } + } + + /// + /// Represents a user following the activity feed of an object. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("postfollow")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PostFollow : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PostFollow() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "postfollow"; + + public const int EntityTypeCode = 8003; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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 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 of the team who owns the follow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Shows the ID of the post follow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postfollowid")] + public System.Nullable PostFollowId + { + get + { + return this.GetAttributeValue>("postfollowid"); + } + set + { + this.OnPropertyChanging("PostFollowId"); + this.SetAttributeValue("postfollowid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostFollowId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postfollowid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostFollowId = value; + } + } + + /// + /// Choose the parent record for the followed post to identify the customer, opportunity, case, or other record type that the post most closely relates to. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammerpoststate")] + public System.Nullable YammerPostState + { + get + { + return this.GetAttributeValue>("yammerpoststate"); + } + } + + /// + /// 1:N PostFollow_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PostFollow_AsyncOperations")] + public System.Collections.Generic.IEnumerable PostFollow_AsyncOperations + { + get + { + return this.GetRelatedEntities("PostFollow_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PostFollow_AsyncOperations"); + this.SetRelatedEntities("PostFollow_AsyncOperations", null, value); + this.OnPropertyChanged("PostFollow_AsyncOperations"); + } + } + + /// + /// N:1 account_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Account account_PostFollows + { + get + { + return this.GetRelatedEntity("account_PostFollows", null); + } + set + { + this.OnPropertyChanging("account_PostFollows"); + this.SetRelatedEntity("account_PostFollows", null, value); + this.OnPropertyChanged("account_PostFollows"); + } + } + + /// + /// N:1 appointment_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_PostFollows + { + get + { + return this.GetRelatedEntity("appointment_PostFollows", null); + } + set + { + this.OnPropertyChanging("appointment_PostFollows"); + this.SetRelatedEntity("appointment_PostFollows", null, value); + this.OnPropertyChanged("appointment_PostFollows"); + } + } + + /// + /// N:1 business_unit_postfollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_postfollows")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_postfollows + { + get + { + return this.GetRelatedEntity("business_unit_postfollows", null); + } + } + + /// + /// N:1 competitor_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_PostFollows + { + get + { + return this.GetRelatedEntity("competitor_PostFollows", null); + } + set + { + this.OnPropertyChanging("competitor_PostFollows"); + this.SetRelatedEntity("competitor_PostFollows", null, value); + this.OnPropertyChanged("competitor_PostFollows"); + } + } + + /// + /// N:1 contact_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Contact contact_PostFollows + { + get + { + return this.GetRelatedEntity("contact_PostFollows", null); + } + set + { + this.OnPropertyChanging("contact_PostFollows"); + this.SetRelatedEntity("contact_PostFollows", null, value); + this.OnPropertyChanged("contact_PostFollows"); + } + } + + /// + /// N:1 incident_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Incident incident_PostFollows + { + get + { + return this.GetRelatedEntity("incident_PostFollows", null); + } + set + { + this.OnPropertyChanging("incident_PostFollows"); + this.SetRelatedEntity("incident_PostFollows", null, value); + this.OnPropertyChanged("incident_PostFollows"); + } + } + + /// + /// N:1 lead_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Lead lead_PostFollows + { + get + { + return this.GetRelatedEntity("lead_PostFollows", null); + } + set + { + this.OnPropertyChanging("lead_PostFollows"); + this.SetRelatedEntity("lead_PostFollows", null, value); + this.OnPropertyChanged("lead_PostFollows"); + } + } + + /// + /// N:1 lk_PostFollow_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_PostFollow_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_PostFollow_createdby + { + get + { + return this.GetRelatedEntity("lk_PostFollow_createdby", null); + } + } + + /// + /// N:1 lk_postfollow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postfollow_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postfollow_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_postfollow_createdonbehalfby", null); + } + } + + /// + /// N:1 opportunity_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_PostFollows + { + get + { + return this.GetRelatedEntity("opportunity_PostFollows", null); + } + set + { + this.OnPropertyChanging("opportunity_PostFollows"); + this.SetRelatedEntity("opportunity_PostFollows", null, value); + this.OnPropertyChanged("opportunity_PostFollows"); + } + } + + /// + /// N:1 OwningTeam_postfollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwningTeam_postfollows")] + public Xrm.Framework.CI.Common.Entities.Team OwningTeam_postfollows + { + get + { + return this.GetRelatedEntity("OwningTeam_postfollows", null); + } + } + + /// + /// N:1 phonecall_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_PostFollows")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_PostFollows + { + get + { + return this.GetRelatedEntity("phonecall_PostFollows", null); + } + set + { + this.OnPropertyChanging("phonecall_PostFollows"); + this.SetRelatedEntity("phonecall_PostFollows", null, value); + this.OnPropertyChanged("phonecall_PostFollows"); + } + } + + /// + /// N:1 processsession_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_PostFollows")] + public Xrm.Framework.CI.Common.Entities.ProcessSession processsession_PostFollows + { + get + { + return this.GetRelatedEntity("processsession_PostFollows", null); + } + set + { + this.OnPropertyChanging("processsession_PostFollows"); + this.SetRelatedEntity("processsession_PostFollows", null, value); + this.OnPropertyChanged("processsession_PostFollows"); + } + } + + /// + /// N:1 queue_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Queue queue_PostFollows + { + get + { + return this.GetRelatedEntity("queue_PostFollows", null); + } + set + { + this.OnPropertyChanging("queue_PostFollows"); + this.SetRelatedEntity("queue_PostFollows", null, value); + this.OnPropertyChanged("queue_PostFollows"); + } + } + + /// + /// N:1 recurringappointmentmaster_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_PostFollows")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_PostFollows + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_PostFollows", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_PostFollows"); + this.SetRelatedEntity("recurringappointmentmaster_PostFollows", null, value); + this.OnPropertyChanged("recurringappointmentmaster_PostFollows"); + } + } + + /// + /// N:1 systemuser_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_PostFollows")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_PostFollows + { + get + { + return this.GetRelatedEntity("systemuser_PostFollows", null); + } + set + { + this.OnPropertyChanging("systemuser_PostFollows"); + this.SetRelatedEntity("systemuser_PostFollows", null, value); + this.OnPropertyChanged("systemuser_PostFollows"); + } + } + + /// + /// N:1 task_PostFollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_PostFollows")] + public Xrm.Framework.CI.Common.Entities.Task task_PostFollows + { + get + { + return this.GetRelatedEntity("task_PostFollows", null); + } + set + { + this.OnPropertyChanging("task_PostFollows"); + this.SetRelatedEntity("task_PostFollows", null, value); + this.OnPropertyChanged("task_PostFollows"); + } + } + + /// + /// N:1 user_owner_postfollows + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_owner_postfollows")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_owner_postfollows + { + get + { + return this.GetRelatedEntity("user_owner_postfollows", null); + } + } + } + + /// + /// A like on an activity feed post. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("postlike")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PostLike : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PostLike() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "postlike"; + + public const int EntityTypeCode = 8006; + + 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"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the post with which the like is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + public Microsoft.Xrm.Sdk.EntityReference PostId + { + get + { + return this.GetAttributeValue("postid"); + } + set + { + this.OnPropertyChanging("PostId"); + this.SetAttributeValue("postid", value); + this.OnPropertyChanged("PostId"); + } + } + + /// + /// Shows the ID of the post like. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postlikeid")] + public System.Nullable PostLikeId + { + get + { + return this.GetAttributeValue>("postlikeid"); + } + set + { + this.OnPropertyChanging("PostLikeId"); + this.SetAttributeValue("postlikeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PostLikeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postlikeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PostLikeId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// N:1 lk_postlike_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postlike_createdby + { + get + { + return this.GetRelatedEntity("lk_postlike_createdby", null); + } + } + + /// + /// N:1 lk_postlike_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_postlike_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_postlike_createdonbehalfby", null); + } + } + + /// + /// N:1 organization_postlike + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_postlike")] + public Xrm.Framework.CI.Common.Entities.Organization organization_postlike + { + get + { + return this.GetRelatedEntity("organization_postlike", null); + } + } + + /// + /// N:1 Post_Likes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Post_Likes")] + public Xrm.Framework.CI.Common.Entities.Post Post_Likes + { + get + { + return this.GetRelatedEntity("Post_Likes", null); + } + set + { + this.OnPropertyChanging("Post_Likes"); + this.SetRelatedEntity("Post_Likes", null, value); + this.OnPropertyChanged("Post_Likes"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum PriceLevelState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Entity that defines pricing levels. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pricelevel")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PriceLevel : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PriceLevel() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "pricelevel"; + + public const int EntityTypeCode = 1022; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date on which the price list becomes effective. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("begindate")] + public System.Nullable BeginDate + { + get + { + return this.GetAttributeValue>("begindate"); + } + set + { + this.OnPropertyChanging("BeginDate"); + this.SetAttributeValue("begindate", value); + this.OnPropertyChanged("BeginDate"); + } + } + + /// + /// Unique identifier of the user who created the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the price list 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 pricelevel. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Date that is the last day the price list is valid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enddate")] + public System.Nullable EndDate + { + get + { + return this.GetAttributeValue>("enddate"); + } + set + { + this.OnPropertyChanging("EndDate"); + this.SetAttributeValue("enddate", value); + this.OnPropertyChanged("EndDate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Freight terms for the price list. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the price list 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 pricelevel. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the price list. + /// + [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"); + } + } + + /// + /// Payment terms to use with the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymentmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PaymentMethodCode + { + get + { + return this.GetAttributeValue("paymentmethodcode"); + } + set + { + this.OnPropertyChanging("PaymentMethodCode"); + this.SetAttributeValue("paymentmethodcode", value); + this.OnPropertyChanged("PaymentMethodCode"); + } + } + + /// + /// Unique identifier of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public System.Nullable PriceLevelId + { + get + { + return this.GetAttributeValue>("pricelevelid"); + } + set + { + this.OnPropertyChanging("PriceLevelId"); + this.SetAttributeValue("pricelevelid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PriceLevelId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PriceLevelId = value; + } + } + + /// + /// Method of shipment for products in the price list. + /// + [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"); + } + } + + /// + /// Status of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.PriceLevelState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.PriceLevelState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the price list. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the price level. + /// + [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 of the price level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N price_level_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_accounts")] + public System.Collections.Generic.IEnumerable price_level_accounts + { + get + { + return this.GetRelatedEntities("price_level_accounts", null); + } + set + { + this.OnPropertyChanging("price_level_accounts"); + this.SetRelatedEntities("price_level_accounts", null, value); + this.OnPropertyChanged("price_level_accounts"); + } + } + + /// + /// 1:N price_level_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_contacts")] + public System.Collections.Generic.IEnumerable price_level_contacts + { + get + { + return this.GetRelatedEntities("price_level_contacts", null); + } + set + { + this.OnPropertyChanging("price_level_contacts"); + this.SetRelatedEntities("price_level_contacts", null, value); + this.OnPropertyChanged("price_level_contacts"); + } + } + + /// + /// 1:N price_level_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_invoices")] + public System.Collections.Generic.IEnumerable price_level_invoices + { + get + { + return this.GetRelatedEntities("price_level_invoices", null); + } + set + { + this.OnPropertyChanging("price_level_invoices"); + this.SetRelatedEntities("price_level_invoices", null, value); + this.OnPropertyChanged("price_level_invoices"); + } + } + + /// + /// 1:N price_level_opportunties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_opportunties")] + public System.Collections.Generic.IEnumerable price_level_opportunties + { + get + { + return this.GetRelatedEntities("price_level_opportunties", null); + } + set + { + this.OnPropertyChanging("price_level_opportunties"); + this.SetRelatedEntities("price_level_opportunties", null, value); + this.OnPropertyChanged("price_level_opportunties"); + } + } + + /// + /// 1:N price_level_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_orders")] + public System.Collections.Generic.IEnumerable price_level_orders + { + get + { + return this.GetRelatedEntities("price_level_orders", null); + } + set + { + this.OnPropertyChanging("price_level_orders"); + this.SetRelatedEntities("price_level_orders", null, value); + this.OnPropertyChanged("price_level_orders"); + } + } + + /// + /// 1:N price_level_product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_product_price_levels")] + public System.Collections.Generic.IEnumerable price_level_product_price_levels + { + get + { + return this.GetRelatedEntities("price_level_product_price_levels", null); + } + set + { + this.OnPropertyChanging("price_level_product_price_levels"); + this.SetRelatedEntities("price_level_product_price_levels", null, value); + this.OnPropertyChanged("price_level_product_price_levels"); + } + } + + /// + /// 1:N price_level_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_products")] + public System.Collections.Generic.IEnumerable price_level_products + { + get + { + return this.GetRelatedEntities("price_level_products", null); + } + set + { + this.OnPropertyChanging("price_level_products"); + this.SetRelatedEntities("price_level_products", null, value); + this.OnPropertyChanged("price_level_products"); + } + } + + /// + /// 1:N price_level_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_quotes")] + public System.Collections.Generic.IEnumerable price_level_quotes + { + get + { + return this.GetRelatedEntities("price_level_quotes", null); + } + set + { + this.OnPropertyChanging("price_level_quotes"); + this.SetRelatedEntities("price_level_quotes", null, value); + this.OnPropertyChanged("price_level_quotes"); + } + } + + /// + /// 1:N PriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_AsyncOperations")] + public System.Collections.Generic.IEnumerable PriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntities("PriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("PriceLevel_AsyncOperations"); + this.SetRelatedEntities("PriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("PriceLevel_AsyncOperations"); + } + } + + /// + /// 1:N PriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable PriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("PriceLevel_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("PriceLevel_BulkDeleteFailures"); + this.SetRelatedEntities("PriceLevel_BulkDeleteFailures", null, value); + this.OnPropertyChanged("PriceLevel_BulkDeleteFailures"); + } + } + + /// + /// 1:N pricelevel_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pricelevel_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable pricelevel_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("pricelevel_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("pricelevel_principalobjectattributeaccess"); + this.SetRelatedEntities("pricelevel_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("pricelevel_principalobjectattributeaccess"); + } + } + + /// + /// 1:N PriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_ProcessSessions")] + public System.Collections.Generic.IEnumerable PriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntities("PriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PriceLevel_ProcessSessions"); + this.SetRelatedEntities("PriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("PriceLevel_ProcessSessions"); + } + } + + /// + /// 1:N PriceList_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceList_Campaigns")] + public System.Collections.Generic.IEnumerable PriceList_Campaigns + { + get + { + return this.GetRelatedEntities("PriceList_Campaigns", null); + } + set + { + this.OnPropertyChanging("PriceList_Campaigns"); + this.SetRelatedEntities("PriceList_Campaigns", null, value); + this.OnPropertyChanged("PriceList_Campaigns"); + } + } + + /// + /// 1:N userentityinstancedata_pricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pricelevel")] + public System.Collections.Generic.IEnumerable userentityinstancedata_pricelevel + { + get + { + return this.GetRelatedEntities("userentityinstancedata_pricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pricelevel"); + this.SetRelatedEntities("userentityinstancedata_pricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_pricelevel"); + } + } + + /// + /// N:1 lk_pricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pricelevel_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_pricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pricelevel_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_pricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevelbase_createdby + { + get + { + return this.GetRelatedEntity("lk_pricelevelbase_createdby", null); + } + } + + /// + /// N:1 lk_pricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_pricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_pricelevelbase_modifiedby", null); + } + } + + /// + /// N:1 organization_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_price_levels")] + public Xrm.Framework.CI.Common.Entities.Organization organization_price_levels + { + get + { + return this.GetRelatedEntity("organization_price_levels", null); + } + } + + /// + /// N:1 transactioncurrency_pricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_pricelevel")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_pricelevel + { + get + { + return this.GetRelatedEntity("transactioncurrency_pricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_pricelevel"); + this.SetRelatedEntity("transactioncurrency_pricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_pricelevel"); + } + } + } + + /// + /// Map CRM security principals (users and teams) to user/team owned entities with basic read privilege. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("principalentitymap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PrincipalEntityMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PrincipalEntityMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "principalentitymap"; + + public const int EntityTypeCode = 41; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalentitymapid")] + public System.Nullable PrincipalEntityMapId + { + get + { + return this.GetAttributeValue>("principalentitymapid"); + } + set + { + this.OnPropertyChanging("PrincipalEntityMapId"); + this.SetAttributeValue("principalentitymapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PrincipalEntityMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalentitymapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PrincipalEntityMapId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + public System.Nullable PrincipalId + { + get + { + return this.GetAttributeValue>("principalid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_principalentitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalentitymap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_principalentitymap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_principalentitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalentitymap"); + this.SetRelatedEntities("userentityinstancedata_principalentitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_principalentitymap"); + } + } + } + + /// + /// Defines CRM security principals (users and teams) access rights to secured field for an entity instance. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("principalobjectattributeaccess")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PrincipalObjectAttributeAccess : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PrincipalObjectAttributeAccess() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "principalobjectattributeaccess"; + + public const int EntityTypeCode = 44; + + 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 shared secured field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributeid")] + public System.Nullable AttributeId + { + get + { + return this.GetAttributeValue>("attributeid"); + } + set + { + this.OnPropertyChanging("AttributeId"); + this.SetAttributeValue("attributeid", value); + this.OnPropertyChanged("AttributeId"); + } + } + + /// + /// Unique identifier of the entity instance with shared secured field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Unique identifier of the associated organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the principal to which secured field is shared + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + public Microsoft.Xrm.Sdk.EntityReference PrincipalId + { + get + { + return this.GetAttributeValue("principalid"); + } + set + { + this.OnPropertyChanging("PrincipalId"); + this.SetAttributeValue("principalid", value); + this.OnPropertyChanged("PrincipalId"); + } + } + + /// + /// Unique identifier of the shared secured field instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalobjectattributeaccessid")] + public System.Nullable PrincipalObjectAttributeAccessId + { + get + { + return this.GetAttributeValue>("principalobjectattributeaccessid"); + } + set + { + this.OnPropertyChanging("PrincipalObjectAttributeAccessId"); + this.SetAttributeValue("principalobjectattributeaccessid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PrincipalObjectAttributeAccessId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalobjectattributeaccessid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PrincipalObjectAttributeAccessId = value; + } + } + + /// + /// Read permission for secured field instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("readaccess")] + public System.Nullable ReadAccess + { + get + { + return this.GetAttributeValue>("readaccess"); + } + set + { + this.OnPropertyChanging("ReadAccess"); + this.SetAttributeValue("readaccess", value); + this.OnPropertyChanged("ReadAccess"); + } + } + + /// + /// Update permission for secured field instance + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("updateaccess")] + public System.Nullable UpdateAccess + { + get + { + return this.GetAttributeValue>("updateaccess"); + } + set + { + this.OnPropertyChanging("UpdateAccess"); + this.SetAttributeValue("updateaccess", value); + this.OnPropertyChanged("UpdateAccess"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable userentityinstancedata_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("userentityinstancedata_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalobjectattributeaccess"); + this.SetRelatedEntities("userentityinstancedata_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("userentityinstancedata_principalobjectattributeaccess"); + } + } + + /// + /// N:1 account_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("account_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Account account_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("account_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("account_principalobjectattributeaccess"); + this.SetRelatedEntity("account_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("account_principalobjectattributeaccess"); + } + } + + /// + /// N:1 appointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("appointment_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Appointment appointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("appointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("appointment_principalobjectattributeaccess"); + this.SetRelatedEntity("appointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("appointment_principalobjectattributeaccess"); + } + } + + /// + /// N:1 businessunit_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("businessunit_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit businessunit_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("businessunit_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("businessunit_principalobjectattributeaccess"); + this.SetRelatedEntity("businessunit_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("businessunit_principalobjectattributeaccess"); + } + } + + /// + /// N:1 campaign_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("campaign_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaign_principalobjectattributeaccess"); + this.SetRelatedEntity("campaign_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaign_principalobjectattributeaccess"); + } + } + + /// + /// N:1 campaignactivity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivity_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity campaignactivity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("campaignactivity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignactivity_principalobjectattributeaccess"); + this.SetRelatedEntity("campaignactivity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignactivity_principalobjectattributeaccess"); + } + } + + /// + /// N:1 campaignresponse_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignresponse_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse campaignresponse_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("campaignresponse_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("campaignresponse_principalobjectattributeaccess"); + this.SetRelatedEntity("campaignresponse_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("campaignresponse_principalobjectattributeaccess"); + } + } + + /// + /// N:1 competitor_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitor_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Competitor competitor_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("competitor_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("competitor_principalobjectattributeaccess"); + this.SetRelatedEntity("competitor_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("competitor_principalobjectattributeaccess"); + } + } + + /// + /// N:1 connection_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("connection_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Connection connection_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("connection_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("connection_principalobjectattributeaccess"); + this.SetRelatedEntity("connection_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("connection_principalobjectattributeaccess"); + } + } + + /// + /// N:1 contact_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Contact contact_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("contact_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contact_principalobjectattributeaccess"); + this.SetRelatedEntity("contact_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contact_principalobjectattributeaccess"); + } + } + + /// + /// N:1 contract_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Contract contract_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("contract_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contract_principalobjectattributeaccess"); + this.SetRelatedEntity("contract_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contract_principalobjectattributeaccess"); + } + } + + /// + /// N:1 contractdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contractdetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.ContractDetail contractdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("contractdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("contractdetail_principalobjectattributeaccess"); + this.SetRelatedEntity("contractdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("contractdetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 customeraddress_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customeraddress_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress customeraddress_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("customeraddress_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("customeraddress_principalobjectattributeaccess"); + this.SetRelatedEntity("customeraddress_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("customeraddress_principalobjectattributeaccess"); + } + } + + /// + /// N:1 email_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("email_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Email email_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("email_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("email_principalobjectattributeaccess"); + this.SetRelatedEntity("email_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("email_principalobjectattributeaccess"); + } + } + + /// + /// N:1 equipment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("equipment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("equipment_principalobjectattributeaccess"); + this.SetRelatedEntity("equipment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("equipment_principalobjectattributeaccess"); + } + } + + /// + /// N:1 fax_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("fax_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Fax fax_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("fax_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("fax_principalobjectattributeaccess"); + this.SetRelatedEntity("fax_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("fax_principalobjectattributeaccess"); + } + } + + /// + /// N:1 goal_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goal_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Goal goal_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("goal_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("goal_principalobjectattributeaccess"); + this.SetRelatedEntity("goal_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("goal_principalobjectattributeaccess"); + } + } + + /// + /// N:1 incident_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("incident_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Incident incident_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("incident_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("incident_principalobjectattributeaccess"); + this.SetRelatedEntity("incident_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("incident_principalobjectattributeaccess"); + } + } + + /// + /// N:1 invoice_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoice_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Invoice invoice_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("invoice_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoice_principalobjectattributeaccess"); + this.SetRelatedEntity("invoice_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoice_principalobjectattributeaccess"); + } + } + + /// + /// N:1 invoicedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("invoicedetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail invoicedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("invoicedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("invoicedetail_principalobjectattributeaccess"); + this.SetRelatedEntity("invoicedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("invoicedetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 kbarticle_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("kbarticle_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.KbArticle kbarticle_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("kbarticle_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("kbarticle_principalobjectattributeaccess"); + this.SetRelatedEntity("kbarticle_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("kbarticle_principalobjectattributeaccess"); + } + } + + /// + /// N:1 lead_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Lead lead_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("lead_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("lead_principalobjectattributeaccess"); + this.SetRelatedEntity("lead_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("lead_principalobjectattributeaccess"); + } + } + + /// + /// N:1 letter_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("letter_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Letter letter_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("letter_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("letter_principalobjectattributeaccess"); + this.SetRelatedEntity("letter_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("letter_principalobjectattributeaccess"); + } + } + + /// + /// N:1 list_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("list_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.List list_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("list_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("list_principalobjectattributeaccess"); + this.SetRelatedEntity("list_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("list_principalobjectattributeaccess"); + } + } + + /// + /// N:1 lk_principalobjectattributeaccess_organizationid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_principalobjectattributeaccess_organizationid")] + public Xrm.Framework.CI.Common.Entities.Organization lk_principalobjectattributeaccess_organizationid + { + get + { + return this.GetRelatedEntity("lk_principalobjectattributeaccess_organizationid", null); + } + } + + /// + /// N:1 mailmergetemplate_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailmergetemplate_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate mailmergetemplate_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("mailmergetemplate_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("mailmergetemplate_principalobjectattributeaccess"); + this.SetRelatedEntity("mailmergetemplate_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("mailmergetemplate_principalobjectattributeaccess"); + } + } + + /// + /// N:1 msdyn_postalbum_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_postalbum_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postalbum_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_postconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_postconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_postruleconfig_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_postruleconfig_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_PrincipalObjectAttributeAccesses"); + } + } + + /// + /// N:1 opportunity_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("opportunity_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunity_principalobjectattributeaccess"); + this.SetRelatedEntity("opportunity_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunity_principalobjectattributeaccess"); + } + } + + /// + /// N:1 opportunityproduct_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunityproduct_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct opportunityproduct_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("opportunityproduct_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("opportunityproduct_principalobjectattributeaccess"); + this.SetRelatedEntity("opportunityproduct_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("opportunityproduct_principalobjectattributeaccess"); + } + } + + /// + /// N:1 phonecall_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("phonecall_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.PhoneCall phonecall_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("phonecall_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("phonecall_principalobjectattributeaccess"); + this.SetRelatedEntity("phonecall_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("phonecall_principalobjectattributeaccess"); + } + } + + /// + /// N:1 pricelevel_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pricelevel_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.PriceLevel pricelevel_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("pricelevel_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("pricelevel_principalobjectattributeaccess"); + this.SetRelatedEntity("pricelevel_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("pricelevel_principalobjectattributeaccess"); + } + } + + /// + /// N:1 product_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Product product_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("product_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("product_principalobjectattributeaccess"); + this.SetRelatedEntity("product_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("product_principalobjectattributeaccess"); + } + } + + /// + /// N:1 queue_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Queue queue_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("queue_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queue_principalobjectattributeaccess"); + this.SetRelatedEntity("queue_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queue_principalobjectattributeaccess"); + } + } + + /// + /// N:1 queueitem_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queueitem_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.QueueItem queueitem_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("queueitem_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queueitem_principalobjectattributeaccess"); + this.SetRelatedEntity("queueitem_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queueitem_principalobjectattributeaccess"); + } + } + + /// + /// N:1 quote_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Quote quote_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("quote_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quote_principalobjectattributeaccess"); + this.SetRelatedEntity("quote_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quote_principalobjectattributeaccess"); + } + } + + /// + /// N:1 quotedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quotedetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail quotedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("quotedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quotedetail_principalobjectattributeaccess"); + this.SetRelatedEntity("quotedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quotedetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 recurringappointmentmaster_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster recurringappointmentmaster_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("recurringappointmentmaster_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_principalobjectattributeaccess"); + this.SetRelatedEntity("recurringappointmentmaster_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("recurringappointmentmaster_principalobjectattributeaccess"); + } + } + + /// + /// N:1 reportcategory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("reportcategory_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.ReportCategory reportcategory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("reportcategory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("reportcategory_principalobjectattributeaccess"); + this.SetRelatedEntity("reportcategory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("reportcategory_principalobjectattributeaccess"); + } + } + + /// + /// N:1 salesliterature_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesliterature_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature salesliterature_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("salesliterature_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesliterature_principalobjectattributeaccess"); + this.SetRelatedEntity("salesliterature_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesliterature_principalobjectattributeaccess"); + } + } + + /// + /// N:1 salesorder_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SalesOrder salesorder_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("salesorder_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorder_principalobjectattributeaccess"); + this.SetRelatedEntity("salesorder_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorder_principalobjectattributeaccess"); + } + } + + /// + /// N:1 salesorderdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorderdetail_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail salesorderdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("salesorderdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorderdetail_principalobjectattributeaccess"); + this.SetRelatedEntity("salesorderdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorderdetail_principalobjectattributeaccess"); + } + } + + /// + /// N:1 serviceappointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment serviceappointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("serviceappointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("serviceappointment_principalobjectattributeaccess"); + this.SetRelatedEntity("serviceappointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("serviceappointment_principalobjectattributeaccess"); + } + } + + /// + /// N:1 sharepointdocumentlocation_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation sharepointdocumentlocation_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("sharepointdocumentlocation_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_principalobjectattributeaccess"); + this.SetRelatedEntity("sharepointdocumentlocation_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_principalobjectattributeaccess"); + } + } + + /// + /// N:1 sharepointsite_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SharePointSite sharepointsite_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("sharepointsite_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointsite_principalobjectattributeaccess"); + this.SetRelatedEntity("sharepointsite_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointsite_principalobjectattributeaccess"); + } + } + + /// + /// N:1 systemuser_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("systemuser_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess"); + this.SetRelatedEntity("systemuser_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess"); + } + } + + /// + /// N:1 systemuser_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess_principalid")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntity("systemuser_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess_principalid"); + this.SetRelatedEntity("systemuser_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess_principalid"); + } + } + + /// + /// N:1 task_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Task task_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("task_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("task_principalobjectattributeaccess"); + this.SetRelatedEntity("task_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("task_principalobjectattributeaccess"); + } + } + + /// + /// N:1 team_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Team team_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("team_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess"); + this.SetRelatedEntity("team_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess"); + } + } + + /// + /// N:1 team_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("principalid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess_principalid")] + public Xrm.Framework.CI.Common.Entities.Team team_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntity("team_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess_principalid"); + this.SetRelatedEntity("team_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess_principalid"); + } + } + + /// + /// N:1 territory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.Territory territory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("territory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("territory_principalobjectattributeaccess"); + this.SetRelatedEntity("territory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("territory_principalobjectattributeaccess"); + } + } + } + + /// + /// Permission to perform an action in Microsoft CRM. The platform checks for the privilege and rejects the attempt if the user does not hold the privilege. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("privilege")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Privilege : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Privilege() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "privilege"; + + public const int EntityTypeCode = 1023; + + 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)); + } + } + + /// + /// Rights a user has to an instance of an entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessright")] + public System.Nullable AccessRight + { + get + { + return this.GetAttributeValue>("accessright"); + } + set + { + this.OnPropertyChanging("AccessRight"); + this.SetAttributeValue("accessright", value); + this.OnPropertyChanged("AccessRight"); + } + } + + /// + /// Information that specifies whether the privilege applies to the user, the user's team, or objects shared by the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbebasic")] + public System.Nullable CanBeBasic + { + get + { + return this.GetAttributeValue>("canbebasic"); + } + set + { + this.OnPropertyChanging("CanBeBasic"); + this.SetAttributeValue("canbebasic", value); + this.OnPropertyChanged("CanBeBasic"); + } + } + + /// + /// Information that specifies whether the privilege applies to child business units of the business unit associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeep")] + public System.Nullable CanBeDeep + { + get + { + return this.GetAttributeValue>("canbedeep"); + } + set + { + this.OnPropertyChanging("CanBeDeep"); + this.SetAttributeValue("canbedeep", value); + this.OnPropertyChanged("CanBeDeep"); + } + } + + /// + /// Information that specifies whether the privilege applies to the entire organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbeglobal")] + public System.Nullable CanBeGlobal + { + get + { + return this.GetAttributeValue>("canbeglobal"); + } + set + { + this.OnPropertyChanging("CanBeGlobal"); + this.SetAttributeValue("canbeglobal", value); + this.OnPropertyChanged("CanBeGlobal"); + } + } + + /// + /// Information that specifies whether the privilege applies to the user's business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbelocal")] + public System.Nullable CanBeLocal + { + get + { + return this.GetAttributeValue>("canbelocal"); + } + set + { + this.OnPropertyChanging("CanBeLocal"); + this.SetAttributeValue("canbelocal", value); + this.OnPropertyChanged("CanBeLocal"); + } + } + + /// + /// Name of the privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public System.Nullable PrivilegeId + { + get + { + return this.GetAttributeValue>("privilegeid"); + } + set + { + this.OnPropertyChanging("PrivilegeId"); + this.SetAttributeValue("privilegeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PrivilegeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PrivilegeId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Privilege_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_AsyncOperations")] + public System.Collections.Generic.IEnumerable Privilege_AsyncOperations + { + get + { + return this.GetRelatedEntities("Privilege_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Privilege_AsyncOperations"); + this.SetRelatedEntities("Privilege_AsyncOperations", null, value); + this.OnPropertyChanged("Privilege_AsyncOperations"); + } + } + + /// + /// 1:N Privilege_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Privilege_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Privilege_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Privilege_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Privilege_BulkDeleteFailures"); + this.SetRelatedEntities("Privilege_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Privilege_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_privilege + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_privilege")] + public System.Collections.Generic.IEnumerable userentityinstancedata_privilege + { + get + { + return this.GetRelatedEntities("userentityinstancedata_privilege", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_privilege"); + this.SetRelatedEntities("userentityinstancedata_privilege", null, value); + this.OnPropertyChanged("userentityinstancedata_privilege"); + } + } + + /// + /// N:N roleprivileges_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("roleprivileges_association")] + public System.Collections.Generic.IEnumerable roleprivileges_association + { + get + { + return this.GetRelatedEntities("roleprivileges_association", null); + } + set + { + this.OnPropertyChanging("roleprivileges_association"); + this.SetRelatedEntities("roleprivileges_association", null, value); + this.OnPropertyChanged("roleprivileges_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ProcessSessionState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Incomplete = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Complete = 1, + } + + /// + /// Information that is generated when a dialog is run. Every time that you run a dialog, a dialog session is created. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("processsession")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProcessSession : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProcessSession() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "processsession"; + + public const int EntityTypeCode = 4710; + + 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)); + } + } + + /// + /// Name of the activity that is being executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityname")] + public string ActivityName + { + get + { + return this.GetAttributeValue("activityname"); + } + set + { + this.OnPropertyChanging("ActivityName"); + this.SetAttributeValue("activityname", value); + this.OnPropertyChanged("ActivityName"); + } + } + + /// + /// Unique identifier of the user who canceled the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canceledby")] + public Microsoft.Xrm.Sdk.EntityReference CanceledBy + { + get + { + return this.GetAttributeValue("canceledby"); + } + } + + /// + /// Date and time when the dialog session was canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canceledon")] + public System.Nullable CanceledOn + { + get + { + return this.GetAttributeValue>("canceledon"); + } + set + { + this.OnPropertyChanging("CanceledOn"); + this.SetAttributeValue("canceledon", value); + this.OnPropertyChanged("CanceledOn"); + } + } + + /// + /// User comments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("comments")] + public string Comments + { + get + { + return this.GetAttributeValue("comments"); + } + set + { + this.OnPropertyChanging("Comments"); + this.SetAttributeValue("comments", value); + this.OnPropertyChanged("Comments"); + } + } + + /// + /// Unique identifier of the user who completed the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedby")] + public Microsoft.Xrm.Sdk.EntityReference CompletedBy + { + get + { + return this.GetAttributeValue("completedby"); + } + } + + /// + /// Date and time when the dialog session was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + set + { + this.OnPropertyChanging("CompletedOn"); + this.SetAttributeValue("completedon", value); + this.OnPropertyChanged("CompletedOn"); + } + } + + /// + /// Unique identifier of the user who started the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the dialog session 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 dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Error code related to the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + set + { + this.OnPropertyChanging("ErrorCode"); + this.SetAttributeValue("errorcode", value); + this.OnPropertyChanged("ErrorCode"); + } + } + + /// + /// Unique identifier of the user who ran the dialog process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executedby")] + public Microsoft.Xrm.Sdk.EntityReference ExecutedBy + { + get + { + return this.GetAttributeValue("executedby"); + } + set + { + this.OnPropertyChanging("ExecutedBy"); + this.SetAttributeValue("executedby", value); + this.OnPropertyChanged("ExecutedBy"); + } + } + + /// + /// Date and time when the dialog process was run. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executedon")] + public System.Nullable ExecutedOn + { + get + { + return this.GetAttributeValue>("executedon"); + } + } + + /// + /// Input arguments for the child dialog process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inputarguments")] + public string InputArguments + { + get + { + return this.GetAttributeValue("inputarguments"); + } + set + { + this.OnPropertyChanging("InputArguments"); + this.SetAttributeValue("inputarguments", value); + this.OnPropertyChanged("InputArguments"); + } + } + + /// + /// Unique identifier of the user who last modified the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the dialog session was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the succeeding linked dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextlinkedsessionid")] + public Microsoft.Xrm.Sdk.EntityReference NextLinkedSessionId + { + get + { + return this.GetAttributeValue("nextlinkedsessionid"); + } + set + { + this.OnPropertyChanging("NextLinkedSessionId"); + this.SetAttributeValue("nextlinkedsessionid", value); + this.OnPropertyChanged("NextLinkedSessionId"); + } + } + + /// + /// Unique identifier of the originating dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingsessionid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingSessionId + { + get + { + return this.GetAttributeValue("originatingsessionid"); + } + set + { + this.OnPropertyChanging("OriginatingSessionId"); + this.SetAttributeValue("originatingsessionid", value); + this.OnPropertyChanged("OriginatingSessionId"); + } + } + + /// + /// Unique identifier of the user or team who owns the dialog session. + /// + [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 dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the preceding linked dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previouslinkedsessionid")] + public Microsoft.Xrm.Sdk.EntityReference PreviousLinkedSessionId + { + get + { + return this.GetAttributeValue("previouslinkedsessionid"); + } + set + { + this.OnPropertyChanging("PreviousLinkedSessionId"); + this.SetAttributeValue("previouslinkedsessionid", value); + this.OnPropertyChanged("PreviousLinkedSessionId"); + } + } + + /// + /// Select the process activation record that is related to the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public Microsoft.Xrm.Sdk.EntityReference ProcessId + { + get + { + return this.GetAttributeValue("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processsessionid")] + public System.Nullable ProcessSessionId + { + get + { + return this.GetAttributeValue>("processsessionid"); + } + set + { + this.OnPropertyChanging("ProcessSessionId"); + this.SetAttributeValue("processsessionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProcessSessionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processsessionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProcessSessionId = value; + } + } + + /// + /// Name of the dialog stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstagename")] + public string ProcessStageName + { + get + { + return this.GetAttributeValue("processstagename"); + } + set + { + this.OnPropertyChanging("ProcessStageName"); + this.SetAttributeValue("processstagename", value); + this.OnPropertyChanged("ProcessStageName"); + } + } + + /// + /// State of the dialog process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstate")] + public string ProcessState + { + get + { + return this.GetAttributeValue("processstate"); + } + set + { + this.OnPropertyChanging("ProcessState"); + this.SetAttributeValue("processstate", value); + this.OnPropertyChanged("ProcessState"); + } + } + + /// + /// Unique identifier of the object with which the dialog session is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the user who started the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedby")] + public Microsoft.Xrm.Sdk.EntityReference StartedBy + { + get + { + return this.GetAttributeValue("startedby"); + } + } + + /// + /// Date and time when the dialog session was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + set + { + this.OnPropertyChanging("StartedOn"); + this.SetAttributeValue("startedon", value); + this.OnPropertyChanged("StartedOn"); + } + } + + /// + /// Status of the dialog session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ProcessSessionState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ProcessSessionState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the dialog session. + /// + [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"); + } + } + + /// + /// Name of the dialog step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepname")] + public string StepName + { + get + { + return this.GetAttributeValue("stepname"); + } + set + { + this.OnPropertyChanging("StepName"); + this.SetAttributeValue("stepname", value); + this.OnPropertyChanged("StepName"); + } + } + + /// + /// 1:N lk_processsession_nextlinkedsessionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_processsession_nextlinkedsessionid + { + get + { + return this.GetRelatedEntities("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_processsession_nextlinkedsessionid"); + this.SetRelatedEntities("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_processsession_nextlinkedsessionid"); + } + } + + /// + /// 1:N lk_processsession_originatingsessionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_processsession_originatingsessionid + { + get + { + return this.GetRelatedEntities("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_processsession_originatingsessionid"); + this.SetRelatedEntities("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_processsession_originatingsessionid"); + } + } + + /// + /// 1:N lk_processsession_previouslinkedsessionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_processsession_previouslinkedsessionid + { + get + { + return this.GetRelatedEntities("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_processsession_previouslinkedsessionid"); + this.SetRelatedEntities("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_processsession_previouslinkedsessionid"); + } + } + + /// + /// 1:N lk_workflowlog_processsession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession")] + public System.Collections.Generic.IEnumerable lk_workflowlog_processsession + { + get + { + return this.GetRelatedEntities("lk_workflowlog_processsession", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession"); + this.SetRelatedEntities("lk_workflowlog_processsession", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession"); + } + } + + /// + /// 1:N lk_workflowlog_processsession_childworkflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession_childworkflow")] + public System.Collections.Generic.IEnumerable lk_workflowlog_processsession_childworkflow + { + get + { + return this.GetRelatedEntities("lk_workflowlog_processsession_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession_childworkflow"); + this.SetRelatedEntities("lk_workflowlog_processsession_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession_childworkflow"); + } + } + + /// + /// 1:N processsession_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections1")] + public System.Collections.Generic.IEnumerable processsession_connections1 + { + get + { + return this.GetRelatedEntities("processsession_connections1", null); + } + set + { + this.OnPropertyChanging("processsession_connections1"); + this.SetRelatedEntities("processsession_connections1", null, value); + this.OnPropertyChanged("processsession_connections1"); + } + } + + /// + /// 1:N processsession_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_connections2")] + public System.Collections.Generic.IEnumerable processsession_connections2 + { + get + { + return this.GetRelatedEntities("processsession_connections2", null); + } + set + { + this.OnPropertyChanging("processsession_connections2"); + this.SetRelatedEntities("processsession_connections2", null, value); + this.OnPropertyChanged("processsession_connections2"); + } + } + + /// + /// 1:N processsession_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processsession_PostFollows")] + public System.Collections.Generic.IEnumerable processsession_PostFollows + { + get + { + return this.GetRelatedEntities("processsession_PostFollows", null); + } + set + { + this.OnPropertyChanging("processsession_PostFollows"); + this.SetRelatedEntities("processsession_PostFollows", null, value); + this.OnPropertyChanged("processsession_PostFollows"); + } + } + + /// + /// 1:N userentityinstancedata_processsession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_processsession")] + public System.Collections.Generic.IEnumerable userentityinstancedata_processsession + { + get + { + return this.GetRelatedEntities("userentityinstancedata_processsession", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_processsession"); + this.SetRelatedEntities("userentityinstancedata_processsession", null, value); + this.OnPropertyChanged("userentityinstancedata_processsession"); + } + } + + /// + /// N:1 Account_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Account Account_ProcessSessions + { + get + { + return this.GetRelatedEntity("Account_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Account_ProcessSessions"); + this.SetRelatedEntity("Account_ProcessSessions", null, value); + this.OnPropertyChanged("Account_ProcessSessions"); + } + } + + /// + /// N:1 Annotation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Annotation_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Annotation Annotation_ProcessSessions + { + get + { + return this.GetRelatedEntity("Annotation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Annotation_ProcessSessions"); + this.SetRelatedEntity("Annotation_ProcessSessions", null, value); + this.OnPropertyChanged("Annotation_ProcessSessions"); + } + } + + /// + /// N:1 Appointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_ProcessSessions + { + get + { + return this.GetRelatedEntity("Appointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Appointment_ProcessSessions"); + this.SetRelatedEntity("Appointment_ProcessSessions", null, value); + this.OnPropertyChanged("Appointment_ProcessSessions"); + } + } + + /// + /// N:1 BusinessUnit_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnit_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit BusinessUnit_ProcessSessions + { + get + { + return this.GetRelatedEntity("BusinessUnit_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnit_ProcessSessions"); + this.SetRelatedEntity("BusinessUnit_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnit_ProcessSessions"); + } + } + + /// + /// N:1 BusinessUnitNewsArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BusinessUnitNewsArticle_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle BusinessUnitNewsArticle_ProcessSessions + { + get + { + return this.GetRelatedEntity("BusinessUnitNewsArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("BusinessUnitNewsArticle_ProcessSessions"); + this.SetRelatedEntity("BusinessUnitNewsArticle_ProcessSessions", null, value); + this.OnPropertyChanged("BusinessUnitNewsArticle_ProcessSessions"); + } + } + + /// + /// N:1 Campaign_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_ProcessSessions + { + get + { + return this.GetRelatedEntity("Campaign_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Campaign_ProcessSessions"); + this.SetRelatedEntity("Campaign_ProcessSessions", null, value); + this.OnPropertyChanged("Campaign_ProcessSessions"); + } + } + + /// + /// N:1 CampaignActivity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_ProcessSessions + { + get + { + return this.GetRelatedEntity("CampaignActivity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_ProcessSessions"); + this.SetRelatedEntity("CampaignActivity_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignActivity_ProcessSessions"); + } + } + + /// + /// N:1 CampaignResponse_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_ProcessSessions + { + get + { + return this.GetRelatedEntity("CampaignResponse_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_ProcessSessions"); + this.SetRelatedEntity("CampaignResponse_ProcessSessions", null, value); + this.OnPropertyChanged("CampaignResponse_ProcessSessions"); + } + } + + /// + /// N:1 Competitor_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Competitor Competitor_ProcessSessions + { + get + { + return this.GetRelatedEntity("Competitor_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Competitor_ProcessSessions"); + this.SetRelatedEntity("Competitor_ProcessSessions", null, value); + this.OnPropertyChanged("Competitor_ProcessSessions"); + } + } + + /// + /// N:1 Connection_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Connection_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Connection Connection_ProcessSessions + { + get + { + return this.GetRelatedEntity("Connection_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Connection_ProcessSessions"); + this.SetRelatedEntity("Connection_ProcessSessions", null, value); + this.OnPropertyChanged("Connection_ProcessSessions"); + } + } + + /// + /// N:1 ConnectionRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConnectionRole_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole ConnectionRole_ProcessSessions + { + get + { + return this.GetRelatedEntity("ConnectionRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConnectionRole_ProcessSessions"); + this.SetRelatedEntity("ConnectionRole_ProcessSessions", null, value); + this.OnPropertyChanged("ConnectionRole_ProcessSessions"); + } + } + + /// + /// N:1 ConstraintBasedGroup_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ConstraintBasedGroup_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup ConstraintBasedGroup_ProcessSessions + { + get + { + return this.GetRelatedEntity("ConstraintBasedGroup_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ConstraintBasedGroup_ProcessSessions"); + this.SetRelatedEntity("ConstraintBasedGroup_ProcessSessions", null, value); + this.OnPropertyChanged("ConstraintBasedGroup_ProcessSessions"); + } + } + + /// + /// N:1 Contact_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_ProcessSessions + { + get + { + return this.GetRelatedEntity("Contact_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contact_ProcessSessions"); + this.SetRelatedEntity("Contact_ProcessSessions", null, value); + this.OnPropertyChanged("Contact_ProcessSessions"); + } + } + + /// + /// N:1 Contract_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_ProcessSessions + { + get + { + return this.GetRelatedEntity("Contract_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Contract_ProcessSessions"); + this.SetRelatedEntity("Contract_ProcessSessions", null, value); + this.OnPropertyChanged("Contract_ProcessSessions"); + } + } + + /// + /// N:1 ContractDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ContractDetail ContractDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("ContractDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractDetail_ProcessSessions"); + this.SetRelatedEntity("ContractDetail_ProcessSessions", null, value); + this.OnPropertyChanged("ContractDetail_ProcessSessions"); + } + } + + /// + /// N:1 ContractTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ContractTemplate_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate ContractTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntity("ContractTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ContractTemplate_ProcessSessions"); + this.SetRelatedEntity("ContractTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("ContractTemplate_ProcessSessions"); + } + } + + /// + /// N:1 CustomerAddress_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerAddress_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress CustomerAddress_ProcessSessions + { + get + { + return this.GetRelatedEntity("CustomerAddress_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerAddress_ProcessSessions"); + this.SetRelatedEntity("CustomerAddress_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerAddress_ProcessSessions"); + } + } + + /// + /// N:1 CustomerOpportunityRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerOpportunityRole_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole CustomerOpportunityRole_ProcessSessions + { + get + { + return this.GetRelatedEntity("CustomerOpportunityRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerOpportunityRole_ProcessSessions"); + this.SetRelatedEntity("CustomerOpportunityRole_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerOpportunityRole_ProcessSessions"); + } + } + + /// + /// N:1 CustomerRelationship_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CustomerRelationship_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship CustomerRelationship_ProcessSessions + { + get + { + return this.GetRelatedEntity("CustomerRelationship_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("CustomerRelationship_ProcessSessions"); + this.SetRelatedEntity("CustomerRelationship_ProcessSessions", null, value); + this.OnPropertyChanged("CustomerRelationship_ProcessSessions"); + } + } + + /// + /// N:1 Discount_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Discount_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Discount Discount_ProcessSessions + { + get + { + return this.GetRelatedEntity("Discount_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Discount_ProcessSessions"); + this.SetRelatedEntity("Discount_ProcessSessions", null, value); + this.OnPropertyChanged("Discount_ProcessSessions"); + } + } + + /// + /// N:1 DiscountType_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DiscountType_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.DiscountType DiscountType_ProcessSessions + { + get + { + return this.GetRelatedEntity("DiscountType_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("DiscountType_ProcessSessions"); + this.SetRelatedEntity("DiscountType_ProcessSessions", null, value); + this.OnPropertyChanged("DiscountType_ProcessSessions"); + } + } + + /// + /// N:1 Email_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Email Email_ProcessSessions + { + get + { + return this.GetRelatedEntity("Email_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Email_ProcessSessions"); + this.SetRelatedEntity("Email_ProcessSessions", null, value); + this.OnPropertyChanged("Email_ProcessSessions"); + } + } + + /// + /// N:1 Equipment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Equipment Equipment_ProcessSessions + { + get + { + return this.GetRelatedEntity("Equipment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Equipment_ProcessSessions"); + this.SetRelatedEntity("Equipment_ProcessSessions", null, value); + this.OnPropertyChanged("Equipment_ProcessSessions"); + } + } + + /// + /// N:1 Fax_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_ProcessSessions + { + get + { + return this.GetRelatedEntity("Fax_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Fax_ProcessSessions"); + this.SetRelatedEntity("Fax_ProcessSessions", null, value); + this.OnPropertyChanged("Fax_ProcessSessions"); + } + } + + /// + /// N:1 Goal_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Goal Goal_ProcessSessions + { + get + { + return this.GetRelatedEntity("Goal_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Goal_ProcessSessions"); + this.SetRelatedEntity("Goal_ProcessSessions", null, value); + this.OnPropertyChanged("Goal_ProcessSessions"); + } + } + + /// + /// N:1 goalrollupquery_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("goalrollupquery_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery goalrollupquery_ProcessSessions + { + get + { + return this.GetRelatedEntity("goalrollupquery_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("goalrollupquery_ProcessSessions"); + this.SetRelatedEntity("goalrollupquery_ProcessSessions", null, value); + this.OnPropertyChanged("goalrollupquery_ProcessSessions"); + } + } + + /// + /// N:1 Incident_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_ProcessSessions + { + get + { + return this.GetRelatedEntity("Incident_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Incident_ProcessSessions"); + this.SetRelatedEntity("Incident_ProcessSessions", null, value); + this.OnPropertyChanged("Incident_ProcessSessions"); + } + } + + /// + /// N:1 Invoice_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_ProcessSessions + { + get + { + return this.GetRelatedEntity("Invoice_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Invoice_ProcessSessions"); + this.SetRelatedEntity("Invoice_ProcessSessions", null, value); + this.OnPropertyChanged("Invoice_ProcessSessions"); + } + } + + /// + /// N:1 InvoiceDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("InvoiceDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail InvoiceDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("InvoiceDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("InvoiceDetail_ProcessSessions"); + this.SetRelatedEntity("InvoiceDetail_ProcessSessions", null, value); + this.OnPropertyChanged("InvoiceDetail_ProcessSessions"); + } + } + + /// + /// N:1 KbArticle_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_ProcessSessions + { + get + { + return this.GetRelatedEntity("KbArticle_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticle_ProcessSessions"); + this.SetRelatedEntity("KbArticle_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticle_ProcessSessions"); + } + } + + /// + /// N:1 KbArticleComment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleComment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment KbArticleComment_ProcessSessions + { + get + { + return this.GetRelatedEntity("KbArticleComment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleComment_ProcessSessions"); + this.SetRelatedEntity("KbArticleComment_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleComment_ProcessSessions"); + } + } + + /// + /// N:1 KbArticleTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticleTemplate_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate KbArticleTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntity("KbArticleTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("KbArticleTemplate_ProcessSessions"); + this.SetRelatedEntity("KbArticleTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("KbArticleTemplate_ProcessSessions"); + } + } + + /// + /// N:1 Lead_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_ProcessSessions + { + get + { + return this.GetRelatedEntity("Lead_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Lead_ProcessSessions"); + this.SetRelatedEntity("Lead_ProcessSessions", null, value); + this.OnPropertyChanged("Lead_ProcessSessions"); + } + } + + /// + /// N:1 Letter_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_ProcessSessions + { + get + { + return this.GetRelatedEntity("Letter_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Letter_ProcessSessions"); + this.SetRelatedEntity("Letter_ProcessSessions", null, value); + this.OnPropertyChanged("Letter_ProcessSessions"); + } + } + + /// + /// N:1 List_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.List List_ProcessSessions + { + get + { + return this.GetRelatedEntity("List_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("List_ProcessSessions"); + this.SetRelatedEntity("List_ProcessSessions", null, value); + this.OnPropertyChanged("List_ProcessSessions"); + } + } + + /// + /// N:1 lk_processsession_canceledby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canceledby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_canceledby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_canceledby + { + get + { + return this.GetRelatedEntity("lk_processsession_canceledby", null); + } + } + + /// + /// N:1 lk_processsession_completedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_completedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_completedby + { + get + { + return this.GetRelatedEntity("lk_processsession_completedby", null); + } + } + + /// + /// N:1 lk_processsession_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_createdby + { + get + { + return this.GetRelatedEntity("lk_processsession_createdby", null); + } + } + + /// + /// N:1 lk_processsession_executedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_executedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_executedby + { + get + { + return this.GetRelatedEntity("lk_processsession_executedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_executedby"); + this.SetRelatedEntity("lk_processsession_executedby", null, value); + this.OnPropertyChanged("lk_processsession_executedby"); + } + } + + /// + /// N:1 lk_processsession_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_modifiedby + { + get + { + return this.GetRelatedEntity("lk_processsession_modifiedby", null); + } + } + + /// + /// N:1 lk_processsession_nextlinkedsessionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextlinkedsessionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.ProcessSession Referencinglk_processsession_nextlinkedsessionid + { + get + { + return this.GetRelatedEntity("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinglk_processsession_nextlinkedsessionid"); + this.SetRelatedEntity("lk_processsession_nextlinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinglk_processsession_nextlinkedsessionid"); + } + } + + /// + /// N:1 lk_processsession_originatingsessionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingsessionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.ProcessSession Referencinglk_processsession_originatingsessionid + { + get + { + return this.GetRelatedEntity("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinglk_processsession_originatingsessionid"); + this.SetRelatedEntity("lk_processsession_originatingsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinglk_processsession_originatingsessionid"); + } + } + + /// + /// N:1 lk_processsession_previouslinkedsessionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("previouslinkedsessionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.ProcessSession Referencinglk_processsession_previouslinkedsessionid + { + get + { + return this.GetRelatedEntity("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinglk_processsession_previouslinkedsessionid"); + this.SetRelatedEntity("lk_processsession_previouslinkedsessionid", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinglk_processsession_previouslinkedsessionid"); + } + } + + /// + /// N:1 lk_processsession_processid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_processid")] + public Xrm.Framework.CI.Common.Entities.Workflow lk_processsession_processid + { + get + { + return this.GetRelatedEntity("lk_processsession_processid", null); + } + set + { + this.OnPropertyChanging("lk_processsession_processid"); + this.SetRelatedEntity("lk_processsession_processid", null, value); + this.OnPropertyChanged("lk_processsession_processid"); + } + } + + /// + /// N:1 lk_processsession_startedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_startedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsession_startedby + { + get + { + return this.GetRelatedEntity("lk_processsession_startedby", null); + } + } + + /// + /// N:1 lk_processsessionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsessionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processsessionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_processsessionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processsessionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processsessionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 mailbox_processsessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_processsessions")] + public Xrm.Framework.CI.Common.Entities.Mailbox mailbox_processsessions + { + get + { + return this.GetRelatedEntity("mailbox_processsessions", null); + } + set + { + this.OnPropertyChanging("mailbox_processsessions"); + this.SetRelatedEntity("mailbox_processsessions", null, value); + this.OnPropertyChanged("mailbox_processsessions"); + } + } + + /// + /// N:1 MailMergeTemplate_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("MailMergeTemplate_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate MailMergeTemplate_ProcessSessions + { + get + { + return this.GetRelatedEntity("MailMergeTemplate_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("MailMergeTemplate_ProcessSessions"); + this.SetRelatedEntity("MailMergeTemplate_ProcessSessions", null, value); + this.OnPropertyChanged("MailMergeTemplate_ProcessSessions"); + } + } + + /// + /// N:1 metric_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Metric metric_ProcessSessions + { + get + { + return this.GetRelatedEntity("metric_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("metric_ProcessSessions"); + this.SetRelatedEntity("metric_ProcessSessions", null, value); + this.OnPropertyChanged("metric_ProcessSessions"); + } + } + + /// + /// N:1 msdyn_postalbum_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ProcessSession"); + this.SetRelatedEntity("msdyn_postalbum_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postalbum_ProcessSession"); + } + } + + /// + /// N:1 msdyn_postconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_ProcessSession"); + this.SetRelatedEntity("msdyn_postconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postconfig_ProcessSession"); + } + } + + /// + /// N:1 msdyn_postruleconfig_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_ProcessSession"); + this.SetRelatedEntity("msdyn_postruleconfig_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_ProcessSession"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_ProcessSession"); + this.SetRelatedEntity("msdyn_wallsavedquery_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_ProcessSession"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_ProcessSession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_ProcessSession")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_ProcessSession + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_ProcessSession", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_ProcessSession"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_ProcessSession", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_ProcessSession"); + } + } + + /// + /// N:1 Opportunity_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_ProcessSessions + { + get + { + return this.GetRelatedEntity("Opportunity_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Opportunity_ProcessSessions"); + this.SetRelatedEntity("Opportunity_ProcessSessions", null, value); + this.OnPropertyChanged("Opportunity_ProcessSessions"); + } + } + + /// + /// N:1 OpportunityProduct_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OpportunityProduct_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct OpportunityProduct_ProcessSessions + { + get + { + return this.GetRelatedEntity("OpportunityProduct_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("OpportunityProduct_ProcessSessions"); + this.SetRelatedEntity("OpportunityProduct_ProcessSessions", null, value); + this.OnPropertyChanged("OpportunityProduct_ProcessSessions"); + } + } + + /// + /// N:1 Owning_businessunit_processsessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Owning_businessunit_processsessions")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit Owning_businessunit_processsessions + { + get + { + return this.GetRelatedEntity("Owning_businessunit_processsessions", null); + } + } + + /// + /// N:1 PhoneCall_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_ProcessSessions + { + get + { + return this.GetRelatedEntity("PhoneCall_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PhoneCall_ProcessSessions"); + this.SetRelatedEntity("PhoneCall_ProcessSessions", null, value); + this.OnPropertyChanged("PhoneCall_ProcessSessions"); + } + } + + /// + /// N:1 PriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PriceLevel_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.PriceLevel PriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntity("PriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("PriceLevel_ProcessSessions"); + this.SetRelatedEntity("PriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("PriceLevel_ProcessSessions"); + } + } + + /// + /// N:1 Product_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Product Product_ProcessSessions + { + get + { + return this.GetRelatedEntity("Product_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Product_ProcessSessions"); + this.SetRelatedEntity("Product_ProcessSessions", null, value); + this.OnPropertyChanged("Product_ProcessSessions"); + } + } + + /// + /// N:1 ProductPriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel ProductPriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntity("ProductPriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_ProcessSessions"); + this.SetRelatedEntity("ProductPriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("ProductPriceLevel_ProcessSessions"); + } + } + + /// + /// N:1 Queue_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Queue Queue_ProcessSessions + { + get + { + return this.GetRelatedEntity("Queue_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Queue_ProcessSessions"); + this.SetRelatedEntity("Queue_ProcessSessions", null, value); + this.OnPropertyChanged("Queue_ProcessSessions"); + } + } + + /// + /// N:1 QueueItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.QueueItem QueueItem_ProcessSessions + { + get + { + return this.GetRelatedEntity("QueueItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QueueItem_ProcessSessions"); + this.SetRelatedEntity("QueueItem_ProcessSessions", null, value); + this.OnPropertyChanged("QueueItem_ProcessSessions"); + } + } + + /// + /// N:1 Quote_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_ProcessSessions + { + get + { + return this.GetRelatedEntity("Quote_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Quote_ProcessSessions"); + this.SetRelatedEntity("Quote_ProcessSessions", null, value); + this.OnPropertyChanged("Quote_ProcessSessions"); + } + } + + /// + /// N:1 QuoteDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail QuoteDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("QuoteDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_ProcessSessions"); + this.SetRelatedEntity("QuoteDetail_ProcessSessions", null, value); + this.OnPropertyChanged("QuoteDetail_ProcessSessions"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_ProcessSessions + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_ProcessSessions"); + this.SetRelatedEntity("RecurringAppointmentMaster_ProcessSessions", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_ProcessSessions"); + } + } + + /// + /// N:1 RelationshipRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole RelationshipRole_ProcessSessions + { + get + { + return this.GetRelatedEntity("RelationshipRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_ProcessSessions"); + this.SetRelatedEntity("RelationshipRole_ProcessSessions", null, value); + this.OnPropertyChanged("RelationshipRole_ProcessSessions"); + } + } + + /// + /// N:1 Report_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Report Report_ProcessSessions + { + get + { + return this.GetRelatedEntity("Report_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Report_ProcessSessions"); + this.SetRelatedEntity("Report_ProcessSessions", null, value); + this.OnPropertyChanged("Report_ProcessSessions"); + } + } + + /// + /// N:1 rollupfield_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.RollupField rollupfield_ProcessSessions + { + get + { + return this.GetRelatedEntity("rollupfield_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("rollupfield_ProcessSessions"); + this.SetRelatedEntity("rollupfield_ProcessSessions", null, value); + this.OnPropertyChanged("rollupfield_ProcessSessions"); + } + } + + /// + /// N:1 SalesLiterature_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesLiterature_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_ProcessSessions"); + this.SetRelatedEntity("SalesLiterature_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiterature_ProcessSessions"); + } + } + + /// + /// N:1 SalesLiteratureItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem SalesLiteratureItem_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesLiteratureItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_ProcessSessions"); + this.SetRelatedEntity("SalesLiteratureItem_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiteratureItem_ProcessSessions"); + } + } + + /// + /// N:1 SalesOrder_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesOrder_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ProcessSessions"); + this.SetRelatedEntity("SalesOrder_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrder_ProcessSessions"); + } + } + + /// + /// N:1 SalesOrderDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail SalesOrderDetail_ProcessSessions + { + get + { + return this.GetRelatedEntity("SalesOrderDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_ProcessSessions"); + this.SetRelatedEntity("SalesOrderDetail_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrderDetail_ProcessSessions"); + } + } + + /// + /// N:1 Service_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Service Service_ProcessSessions + { + get + { + return this.GetRelatedEntity("Service_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Service_ProcessSessions"); + this.SetRelatedEntity("Service_ProcessSessions", null, value); + this.OnPropertyChanged("Service_ProcessSessions"); + } + } + + /// + /// N:1 ServiceAppointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_ProcessSessions + { + get + { + return this.GetRelatedEntity("ServiceAppointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_ProcessSessions"); + this.SetRelatedEntity("ServiceAppointment_ProcessSessions", null, value); + this.OnPropertyChanged("ServiceAppointment_ProcessSessions"); + } + } + + /// + /// N:1 SharePointDocumentLocation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation SharePointDocumentLocation_ProcessSessions + { + get + { + return this.GetRelatedEntity("SharePointDocumentLocation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_ProcessSessions"); + this.SetRelatedEntity("SharePointDocumentLocation_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_ProcessSessions"); + } + } + + /// + /// N:1 SharePointSite_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SharePointSite SharePointSite_ProcessSessions + { + get + { + return this.GetRelatedEntity("SharePointSite_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointSite_ProcessSessions"); + this.SetRelatedEntity("SharePointSite_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointSite_ProcessSessions"); + } + } + + /// + /// N:1 Site_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Site Site_ProcessSessions + { + get + { + return this.GetRelatedEntity("Site_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Site_ProcessSessions"); + this.SetRelatedEntity("Site_ProcessSessions", null, value); + this.OnPropertyChanged("Site_ProcessSessions"); + } + } + + /// + /// N:1 Subject_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Subject Subject_ProcessSessions + { + get + { + return this.GetRelatedEntity("Subject_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Subject_ProcessSessions"); + this.SetRelatedEntity("Subject_ProcessSessions", null, value); + this.OnPropertyChanged("Subject_ProcessSessions"); + } + } + + /// + /// N:1 SystemUser_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.SystemUser SystemUser_ProcessSessions + { + get + { + return this.GetRelatedEntity("SystemUser_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SystemUser_ProcessSessions"); + this.SetRelatedEntity("SystemUser_ProcessSessions", null, value); + this.OnPropertyChanged("SystemUser_ProcessSessions"); + } + } + + /// + /// N:1 Task_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Task Task_ProcessSessions + { + get + { + return this.GetRelatedEntity("Task_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Task_ProcessSessions"); + this.SetRelatedEntity("Task_ProcessSessions", null, value); + this.OnPropertyChanged("Task_ProcessSessions"); + } + } + + /// + /// N:1 team_processsession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_processsession")] + public Xrm.Framework.CI.Common.Entities.Team team_processsession + { + get + { + return this.GetRelatedEntity("team_processsession", null); + } + } + + /// + /// N:1 Team_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Team Team_ProcessSessions + { + get + { + return this.GetRelatedEntity("Team_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Team_ProcessSessions"); + this.SetRelatedEntity("Team_ProcessSessions", null, value); + this.OnPropertyChanged("Team_ProcessSessions"); + } + } + + /// + /// N:1 Template_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Template Template_ProcessSessions + { + get + { + return this.GetRelatedEntity("Template_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Template_ProcessSessions"); + this.SetRelatedEntity("Template_ProcessSessions", null, value); + this.OnPropertyChanged("Template_ProcessSessions"); + } + } + + /// + /// N:1 Territory_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.Territory Territory_ProcessSessions + { + get + { + return this.GetRelatedEntity("Territory_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Territory_ProcessSessions"); + this.SetRelatedEntity("Territory_ProcessSessions", null, value); + this.OnPropertyChanged("Territory_ProcessSessions"); + } + } + + /// + /// N:1 TransactionCurrency_ProcessSessions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ProcessSessions")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ProcessSessions + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ProcessSessions"); + this.SetRelatedEntity("TransactionCurrency_ProcessSessions", null, value); + this.OnPropertyChanged("TransactionCurrency_ProcessSessions"); + } + } + } + + /// + /// Stage associated with a process. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("processstage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProcessStage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProcessStage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "processstage"; + + public const int EntityTypeCode = 4724; + + 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)); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the business unit that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Primary entity associated with the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public Microsoft.Xrm.Sdk.EntityReference ProcessId + { + get + { + return this.GetAttributeValue("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Shows the ID of the process stage record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstageid")] + public System.Nullable ProcessStageId + { + get + { + return this.GetAttributeValue>("processstageid"); + } + set + { + this.OnPropertyChanging("ProcessStageId"); + this.SetAttributeValue("processstageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProcessStageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processstageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProcessStageId = value; + } + } + + /// + /// Select the category of the sales process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagecategory")] + public Microsoft.Xrm.Sdk.OptionSetValue StageCategory + { + get + { + return this.GetAttributeValue("stagecategory"); + } + set + { + this.OnPropertyChanging("StageCategory"); + this.SetAttributeValue("stagecategory", value); + this.OnPropertyChanged("StageCategory"); + } + } + + /// + /// Type a name for the process stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagename")] + public string StageName + { + get + { + return this.GetAttributeValue("stagename"); + } + set + { + this.OnPropertyChanging("StageName"); + this.SetAttributeValue("stagename", value); + this.OnPropertyChanged("StageName"); + } + } + + /// + /// Version number of the process stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N processstage_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_account")] + public System.Collections.Generic.IEnumerable processstage_account + { + get + { + return this.GetRelatedEntities("processstage_account", null); + } + set + { + this.OnPropertyChanging("processstage_account"); + this.SetRelatedEntities("processstage_account", null, value); + this.OnPropertyChanged("processstage_account"); + } + } + + /// + /// 1:N processstage_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_appointments")] + public System.Collections.Generic.IEnumerable processstage_appointments + { + get + { + return this.GetRelatedEntities("processstage_appointments", null); + } + set + { + this.OnPropertyChanging("processstage_appointments"); + this.SetRelatedEntities("processstage_appointments", null, value); + this.OnPropertyChanged("processstage_appointments"); + } + } + + /// + /// 1:N processstage_campaignactivities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignactivities")] + public System.Collections.Generic.IEnumerable processstage_campaignactivities + { + get + { + return this.GetRelatedEntities("processstage_campaignactivities", null); + } + set + { + this.OnPropertyChanging("processstage_campaignactivities"); + this.SetRelatedEntities("processstage_campaignactivities", null, value); + this.OnPropertyChanged("processstage_campaignactivities"); + } + } + + /// + /// 1:N processstage_campaignresponses + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaignresponses")] + public System.Collections.Generic.IEnumerable processstage_campaignresponses + { + get + { + return this.GetRelatedEntities("processstage_campaignresponses", null); + } + set + { + this.OnPropertyChanging("processstage_campaignresponses"); + this.SetRelatedEntities("processstage_campaignresponses", null, value); + this.OnPropertyChanged("processstage_campaignresponses"); + } + } + + /// + /// 1:N processstage_campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_campaigns")] + public System.Collections.Generic.IEnumerable processstage_campaigns + { + get + { + return this.GetRelatedEntities("processstage_campaigns", null); + } + set + { + this.OnPropertyChanging("processstage_campaigns"); + this.SetRelatedEntities("processstage_campaigns", null, value); + this.OnPropertyChanged("processstage_campaigns"); + } + } + + /// + /// 1:N processstage_competitors + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_competitors")] + public System.Collections.Generic.IEnumerable processstage_competitors + { + get + { + return this.GetRelatedEntities("processstage_competitors", null); + } + set + { + this.OnPropertyChanging("processstage_competitors"); + this.SetRelatedEntities("processstage_competitors", null, value); + this.OnPropertyChanged("processstage_competitors"); + } + } + + /// + /// 1:N processstage_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_contact")] + public System.Collections.Generic.IEnumerable processstage_contact + { + get + { + return this.GetRelatedEntities("processstage_contact", null); + } + set + { + this.OnPropertyChanging("processstage_contact"); + this.SetRelatedEntities("processstage_contact", null, value); + this.OnPropertyChanged("processstage_contact"); + } + } + + /// + /// 1:N processstage_emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_emails")] + public System.Collections.Generic.IEnumerable processstage_emails + { + get + { + return this.GetRelatedEntities("processstage_emails", null); + } + set + { + this.OnPropertyChanging("processstage_emails"); + this.SetRelatedEntities("processstage_emails", null, value); + this.OnPropertyChanged("processstage_emails"); + } + } + + /// + /// 1:N processstage_faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_faxes")] + public System.Collections.Generic.IEnumerable processstage_faxes + { + get + { + return this.GetRelatedEntities("processstage_faxes", null); + } + set + { + this.OnPropertyChanging("processstage_faxes"); + this.SetRelatedEntities("processstage_faxes", null, value); + this.OnPropertyChanged("processstage_faxes"); + } + } + + /// + /// 1:N processstage_incident + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_incident")] + public System.Collections.Generic.IEnumerable processstage_incident + { + get + { + return this.GetRelatedEntities("processstage_incident", null); + } + set + { + this.OnPropertyChanging("processstage_incident"); + this.SetRelatedEntities("processstage_incident", null, value); + this.OnPropertyChanged("processstage_incident"); + } + } + + /// + /// 1:N processstage_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_invoices")] + public System.Collections.Generic.IEnumerable processstage_invoices + { + get + { + return this.GetRelatedEntities("processstage_invoices", null); + } + set + { + this.OnPropertyChanging("processstage_invoices"); + this.SetRelatedEntities("processstage_invoices", null, value); + this.OnPropertyChanged("processstage_invoices"); + } + } + + /// + /// 1:N processstage_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lead")] + public System.Collections.Generic.IEnumerable processstage_lead + { + get + { + return this.GetRelatedEntities("processstage_lead", null); + } + set + { + this.OnPropertyChanging("processstage_lead"); + this.SetRelatedEntities("processstage_lead", null, value); + this.OnPropertyChanged("processstage_lead"); + } + } + + /// + /// 1:N processstage_letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_letters")] + public System.Collections.Generic.IEnumerable processstage_letters + { + get + { + return this.GetRelatedEntities("processstage_letters", null); + } + set + { + this.OnPropertyChanging("processstage_letters"); + this.SetRelatedEntities("processstage_letters", null, value); + this.OnPropertyChanged("processstage_letters"); + } + } + + /// + /// 1:N processstage_lists + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_lists")] + public System.Collections.Generic.IEnumerable processstage_lists + { + get + { + return this.GetRelatedEntities("processstage_lists", null); + } + set + { + this.OnPropertyChanging("processstage_lists"); + this.SetRelatedEntities("processstage_lists", null, value); + this.OnPropertyChanged("processstage_lists"); + } + } + + /// + /// 1:N processstage_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_opportunity")] + public System.Collections.Generic.IEnumerable processstage_opportunity + { + get + { + return this.GetRelatedEntities("processstage_opportunity", null); + } + set + { + this.OnPropertyChanging("processstage_opportunity"); + this.SetRelatedEntities("processstage_opportunity", null, value); + this.OnPropertyChanged("processstage_opportunity"); + } + } + + /// + /// 1:N processstage_phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_phonecalls")] + public System.Collections.Generic.IEnumerable processstage_phonecalls + { + get + { + return this.GetRelatedEntities("processstage_phonecalls", null); + } + set + { + this.OnPropertyChanging("processstage_phonecalls"); + this.SetRelatedEntities("processstage_phonecalls", null, value); + this.OnPropertyChanged("processstage_phonecalls"); + } + } + + /// + /// 1:N processstage_productpricelevels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_productpricelevels")] + public System.Collections.Generic.IEnumerable processstage_productpricelevels + { + get + { + return this.GetRelatedEntities("processstage_productpricelevels", null); + } + set + { + this.OnPropertyChanging("processstage_productpricelevels"); + this.SetRelatedEntities("processstage_productpricelevels", null, value); + this.OnPropertyChanged("processstage_productpricelevels"); + } + } + + /// + /// 1:N processstage_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_products")] + public System.Collections.Generic.IEnumerable processstage_products + { + get + { + return this.GetRelatedEntities("processstage_products", null); + } + set + { + this.OnPropertyChanging("processstage_products"); + this.SetRelatedEntities("processstage_products", null, value); + this.OnPropertyChanged("processstage_products"); + } + } + + /// + /// 1:N processstage_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_quotes")] + public System.Collections.Generic.IEnumerable processstage_quotes + { + get + { + return this.GetRelatedEntities("processstage_quotes", null); + } + set + { + this.OnPropertyChanging("processstage_quotes"); + this.SetRelatedEntities("processstage_quotes", null, value); + this.OnPropertyChanged("processstage_quotes"); + } + } + + /// + /// 1:N processstage_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_recurringappointmentmasters")] + public System.Collections.Generic.IEnumerable processstage_recurringappointmentmasters + { + get + { + return this.GetRelatedEntities("processstage_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("processstage_recurringappointmentmasters"); + this.SetRelatedEntities("processstage_recurringappointmentmasters", null, value); + this.OnPropertyChanged("processstage_recurringappointmentmasters"); + } + } + + /// + /// 1:N processstage_salesliteratures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesliteratures")] + public System.Collections.Generic.IEnumerable processstage_salesliteratures + { + get + { + return this.GetRelatedEntities("processstage_salesliteratures", null); + } + set + { + this.OnPropertyChanging("processstage_salesliteratures"); + this.SetRelatedEntities("processstage_salesliteratures", null, value); + this.OnPropertyChanged("processstage_salesliteratures"); + } + } + + /// + /// 1:N processstage_salesorders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesorders")] + public System.Collections.Generic.IEnumerable processstage_salesorders + { + get + { + return this.GetRelatedEntities("processstage_salesorders", null); + } + set + { + this.OnPropertyChanging("processstage_salesorders"); + this.SetRelatedEntities("processstage_salesorders", null, value); + this.OnPropertyChanged("processstage_salesorders"); + } + } + + /// + /// 1:N processstage_systemusers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_systemusers")] + public System.Collections.Generic.IEnumerable processstage_systemusers + { + get + { + return this.GetRelatedEntities("processstage_systemusers", null); + } + set + { + this.OnPropertyChanging("processstage_systemusers"); + this.SetRelatedEntities("processstage_systemusers", null, value); + this.OnPropertyChanged("processstage_systemusers"); + } + } + + /// + /// 1:N processstage_tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_tasks")] + public System.Collections.Generic.IEnumerable processstage_tasks + { + get + { + return this.GetRelatedEntities("processstage_tasks", null); + } + set + { + this.OnPropertyChanging("processstage_tasks"); + this.SetRelatedEntities("processstage_tasks", null, value); + this.OnPropertyChanged("processstage_tasks"); + } + } + + /// + /// 1:N processstage_teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_teams")] + public System.Collections.Generic.IEnumerable processstage_teams + { + get + { + return this.GetRelatedEntities("processstage_teams", null); + } + set + { + this.OnPropertyChanging("processstage_teams"); + this.SetRelatedEntities("processstage_teams", null, value); + this.OnPropertyChanged("processstage_teams"); + } + } + + /// + /// N:1 process_processstage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processstage")] + public Xrm.Framework.CI.Common.Entities.Workflow process_processstage + { + get + { + return this.GetRelatedEntity("process_processstage", null); + } + set + { + this.OnPropertyChanging("process_processstage"); + this.SetRelatedEntity("process_processstage", null, value); + this.OnPropertyChanged("process_processstage"); + } + } + } + + /// + /// Trigger that invoke a rule. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("processtrigger")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProcessTrigger : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProcessTrigger() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "processtrigger"; + + public const int EntityTypeCode = 4712; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Name of the control. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("controlname")] + public string ControlName + { + get + { + return this.GetAttributeValue("controlname"); + } + set + { + this.OnPropertyChanging("ControlName"); + this.SetAttributeValue("controlname", value); + this.OnPropertyChanged("ControlName"); + } + } + + /// + /// Type of the control to which this trigger is bound + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("controltype")] + public Microsoft.Xrm.Sdk.OptionSetValue ControlType + { + get + { + return this.GetAttributeValue("controltype"); + } + set + { + this.OnPropertyChanging("ControlType"); + this.SetAttributeValue("controltype", value); + this.OnPropertyChanged("ControlType"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Indicates the event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("event")] + public string Event + { + get + { + return this.GetAttributeValue("event"); + } + set + { + this.OnPropertyChanging("Event"); + this.SetAttributeValue("event", value); + this.OnPropertyChanged("Event"); + } + } + + /// + /// Unique identifier of the form associated with the trigger. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public Microsoft.Xrm.Sdk.EntityReference FormId + { + get + { + return this.GetAttributeValue("formid"); + } + set + { + this.OnPropertyChanging("FormId"); + this.SetAttributeValue("formid", value); + this.OnPropertyChanged("FormId"); + } + } + + /// + /// Indicates whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the business unit that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Primary entity for the process which is invoked by the event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public Microsoft.Xrm.Sdk.EntityReference ProcessId + { + get + { + return this.GetAttributeValue("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the process trigger record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processtriggerid")] + public System.Nullable ProcessTriggerId + { + get + { + return this.GetAttributeValue>("processtriggerid"); + } + set + { + this.OnPropertyChanging("ProcessTriggerId"); + this.SetAttributeValue("processtriggerid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProcessTriggerId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processtriggerid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProcessTriggerId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processtriggeridunique")] + public System.Nullable ProcessTriggerIdUnique + { + get + { + return this.GetAttributeValue>("processtriggeridunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 lk_processtriggerbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_createdby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_createdby", null); + } + } + + /// + /// N:1 lk_processtriggerbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_processtriggerbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_modifiedby", null); + } + } + + /// + /// N:1 lk_processtriggerbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_processtriggerbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_processtriggerbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 process_processtrigger + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processtrigger")] + public Xrm.Framework.CI.Common.Entities.Workflow process_processtrigger + { + get + { + return this.GetRelatedEntity("process_processtrigger", null); + } + set + { + this.OnPropertyChanging("process_processtrigger"); + this.SetRelatedEntity("process_processtrigger", null, value); + this.OnPropertyChanged("process_processtrigger"); + } + } + + /// + /// N:1 processtrigger_systemform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processtrigger_systemform")] + public Xrm.Framework.CI.Common.Entities.SystemForm processtrigger_systemform + { + get + { + return this.GetRelatedEntity("processtrigger_systemform", null); + } + set + { + this.OnPropertyChanging("processtrigger_systemform"); + this.SetRelatedEntity("processtrigger_systemform", null, value); + this.OnPropertyChanged("processtrigger_systemform"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ProductState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Information about products and their pricing information. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("product")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Product : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Product() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "product"; + + 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"); + } + } + + /// + /// Date and time when the product 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Base currency equivalent of the current cost for the product item. + /// + [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"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the product with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Date and time when the product 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 product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("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 of the organization associated with the product. + /// + [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"); + } + } + + /// + /// List price of the product. + /// + [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"); + } + } + + /// + /// Base currency equivalent of the list price of the product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("price_base")] + public Microsoft.Xrm.Sdk.Money Price_Base + { + get + { + return this.GetAttributeValue("price_base"); + } + } + + /// + /// Unique identifier of the price list associated with 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the 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 number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productnumber")] + public string ProductNumber + { + get + { + return this.GetAttributeValue("productnumber"); + } + set + { + this.OnPropertyChanging("ProductNumber"); + this.SetAttributeValue("productnumber", value); + this.OnPropertyChanged("ProductNumber"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Standard cost of the product. + /// + [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"); + } + } + + /// + /// Base currency equivalent of the standard cost of the product. + /// + [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 ((Xrm.Framework.CI.Common.Entities.ProductState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ProductState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the subject associated with 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Part number for the vendor's 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 of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N opportunity_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_products")] + public System.Collections.Generic.IEnumerable opportunity_products + { + get + { + return this.GetRelatedEntities("opportunity_products", null); + } + set + { + this.OnPropertyChanging("opportunity_products"); + this.SetRelatedEntities("opportunity_products", null, value); + this.OnPropertyChanged("opportunity_products"); + } + } + + /// + /// 1:N Product_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_Annotation")] + public System.Collections.Generic.IEnumerable Product_Annotation + { + get + { + return this.GetRelatedEntities("Product_Annotation", null); + } + set + { + this.OnPropertyChanging("Product_Annotation"); + this.SetRelatedEntities("Product_Annotation", null, value); + this.OnPropertyChanged("Product_Annotation"); + } + } + + /// + /// 1:N Product_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_AsyncOperations")] + public System.Collections.Generic.IEnumerable Product_AsyncOperations + { + get + { + return this.GetRelatedEntities("Product_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Product_AsyncOperations"); + this.SetRelatedEntities("Product_AsyncOperations", null, value); + this.OnPropertyChanged("Product_AsyncOperations"); + } + } + + /// + /// 1:N Product_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Product_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Product_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Product_BulkDeleteFailures"); + this.SetRelatedEntities("Product_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Product_BulkDeleteFailures"); + } + } + + /// + /// 1:N product_contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_contract_line_items")] + public System.Collections.Generic.IEnumerable product_contract_line_items + { + get + { + return this.GetRelatedEntities("product_contract_line_items", null); + } + set + { + this.OnPropertyChanging("product_contract_line_items"); + this.SetRelatedEntities("product_contract_line_items", null, value); + this.OnPropertyChanged("product_contract_line_items"); + } + } + + /// + /// 1:N product_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_incidents")] + public System.Collections.Generic.IEnumerable product_incidents + { + get + { + return this.GetRelatedEntities("product_incidents", null); + } + set + { + this.OnPropertyChanging("product_incidents"); + this.SetRelatedEntities("product_incidents", null, value); + this.OnPropertyChanged("product_incidents"); + } + } + + /// + /// 1:N product_invoice_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_invoice_details")] + public System.Collections.Generic.IEnumerable product_invoice_details + { + get + { + return this.GetRelatedEntities("product_invoice_details", null); + } + set + { + this.OnPropertyChanging("product_invoice_details"); + this.SetRelatedEntities("product_invoice_details", null, value); + this.OnPropertyChanged("product_invoice_details"); + } + } + + /// + /// 1:N product_order_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_order_details")] + public System.Collections.Generic.IEnumerable product_order_details + { + get + { + return this.GetRelatedEntities("product_order_details", null); + } + set + { + this.OnPropertyChanging("product_order_details"); + this.SetRelatedEntities("product_order_details", null, value); + this.OnPropertyChanged("product_order_details"); + } + } + + /// + /// 1:N product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_price_levels")] + public System.Collections.Generic.IEnumerable product_price_levels + { + get + { + return this.GetRelatedEntities("product_price_levels", null); + } + set + { + this.OnPropertyChanging("product_price_levels"); + this.SetRelatedEntities("product_price_levels", null, value); + this.OnPropertyChanged("product_price_levels"); + } + } + + /// + /// 1:N product_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable product_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("product_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("product_principalobjectattributeaccess"); + this.SetRelatedEntities("product_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("product_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Product_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_ProcessSessions")] + public System.Collections.Generic.IEnumerable Product_ProcessSessions + { + get + { + return this.GetRelatedEntities("Product_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Product_ProcessSessions"); + this.SetRelatedEntities("Product_ProcessSessions", null, value); + this.OnPropertyChanged("Product_ProcessSessions"); + } + } + + /// + /// 1:N product_quote_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_quote_details")] + public System.Collections.Generic.IEnumerable product_quote_details + { + get + { + return this.GetRelatedEntities("product_quote_details", null); + } + set + { + this.OnPropertyChanging("product_quote_details"); + this.SetRelatedEntities("product_quote_details", null, value); + this.OnPropertyChanged("product_quote_details"); + } + } + + /// + /// 1:N Product_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Product_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Product_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Product_SharepointDocumentLocation"); + this.SetRelatedEntities("Product_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Product_SharepointDocumentLocation"); + } + } + + /// + /// 1:N userentityinstancedata_product + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_product")] + public System.Collections.Generic.IEnumerable userentityinstancedata_product + { + get + { + return this.GetRelatedEntities("userentityinstancedata_product", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_product"); + this.SetRelatedEntities("userentityinstancedata_product", null, value); + this.OnPropertyChanged("userentityinstancedata_product"); + } + } + + /// + /// N:N campaignproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignproduct_association")] + public System.Collections.Generic.IEnumerable campaignproduct_association + { + get + { + return this.GetRelatedEntities("campaignproduct_association", null); + } + set + { + this.OnPropertyChanging("campaignproduct_association"); + this.SetRelatedEntities("campaignproduct_association", null, value); + this.OnPropertyChanged("campaignproduct_association"); + } + } + + /// + /// N:N competitorproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorproduct_association")] + public System.Collections.Generic.IEnumerable competitorproduct_association + { + get + { + return this.GetRelatedEntities("competitorproduct_association", null); + } + set + { + this.OnPropertyChanging("competitorproduct_association"); + this.SetRelatedEntities("competitorproduct_association", null, value); + this.OnPropertyChanged("competitorproduct_association"); + } + } + + /// + /// N:N leadproduct_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("leadproduct_association")] + public System.Collections.Generic.IEnumerable leadproduct_association + { + get + { + return this.GetRelatedEntities("leadproduct_association", null); + } + set + { + this.OnPropertyChanging("leadproduct_association"); + this.SetRelatedEntities("leadproduct_association", null, value); + this.OnPropertyChanged("leadproduct_association"); + } + } + + /// + /// N:N productassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingproductassociation_association + { + get + { + return this.GetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingproductassociation_association"); + this.SetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingproductassociation_association"); + } + } + + /// + /// N:N productassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedproductassociation_association + { + get + { + return this.GetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedproductassociation_association"); + this.SetRelatedEntities("productassociation_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedproductassociation_association"); + } + } + + /// + /// N:N productsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsalesliterature_association")] + public System.Collections.Generic.IEnumerable productsalesliterature_association + { + get + { + return this.GetRelatedEntities("productsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("productsalesliterature_association"); + this.SetRelatedEntities("productsalesliterature_association", null, value); + this.OnPropertyChanged("productsalesliterature_association"); + } + } + + /// + /// N:N productsubstitute_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public System.Collections.Generic.IEnumerable Referencingproductsubstitute_association + { + get + { + return this.GetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingproductsubstitute_association"); + this.SetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingproductsubstitute_association"); + } + } + + /// + /// N:N productsubstitute_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedproductsubstitute_association + { + get + { + return this.GetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedproductsubstitute_association"); + this.SetRelatedEntities("productsubstitute_association", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedproductsubstitute_association"); + } + } + + /// + /// N:1 lk_product_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_product_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_product_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_product_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_product_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_product_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_productbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productbase_createdby + { + get + { + return this.GetRelatedEntity("lk_productbase_createdby", null); + } + } + + /// + /// N:1 lk_productbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_productbase_modifiedby", null); + } + } + + /// + /// N:1 organization_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_products")] + public Xrm.Framework.CI.Common.Entities.Organization organization_products + { + get + { + return this.GetRelatedEntity("organization_products", null); + } + } + + /// + /// N:1 price_level_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_products")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_products + { + get + { + return this.GetRelatedEntity("price_level_products", null); + } + set + { + this.OnPropertyChanging("price_level_products"); + this.SetRelatedEntity("price_level_products", null, value); + this.OnPropertyChanged("price_level_products"); + } + } + + /// + /// N:1 processstage_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_products")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_products + { + get + { + return this.GetRelatedEntity("processstage_products", null); + } + set + { + this.OnPropertyChanging("processstage_products"); + this.SetRelatedEntity("processstage_products", null, value); + this.OnPropertyChanged("processstage_products"); + } + } + + /// + /// N:1 subject_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_products")] + public Xrm.Framework.CI.Common.Entities.Subject subject_products + { + get + { + return this.GetRelatedEntity("subject_products", null); + } + set + { + this.OnPropertyChanging("subject_products"); + this.SetRelatedEntity("subject_products", null, value); + this.OnPropertyChanged("subject_products"); + } + } + + /// + /// N:1 transactioncurrency_product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_product")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_product + { + get + { + return this.GetRelatedEntity("transactioncurrency_product", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_product"); + this.SetRelatedEntity("transactioncurrency_product", null, value); + this.OnPropertyChanged("transactioncurrency_product"); + } + } + + /// + /// N:1 unit_of_measurement_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultuomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_products")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_products + { + get + { + return this.GetRelatedEntity("unit_of_measurement_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_products"); + this.SetRelatedEntity("unit_of_measurement_products", null, value); + this.OnPropertyChanged("unit_of_measurement_products"); + } + } + + /// + /// N:1 unit_of_measurement_schedule_products + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultuomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_schedule_products")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule unit_of_measurement_schedule_products + { + get + { + return this.GetRelatedEntity("unit_of_measurement_schedule_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_schedule_products"); + this.SetRelatedEntity("unit_of_measurement_schedule_products", null, value); + this.OnPropertyChanged("unit_of_measurement_schedule_products"); + } + } + } + + /// + /// Relationship that stores information about products that belong to a kit. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productassociation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductAssociation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductAssociation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productassociation"; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedproduct")] + public System.Nullable AssociatedProduct + { + get + { + return this.GetAttributeValue>("associatedproduct"); + } + set + { + this.OnPropertyChanging("AssociatedProduct"); + this.SetAttributeValue("associatedproduct", value); + this.OnPropertyChanged("AssociatedProduct"); + } + } + + /// + /// 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; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_productassociation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productassociation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productassociation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productassociation"); + this.SetRelatedEntities("userentityinstancedata_productassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_productassociation"); + } + } + + /// + /// N:N productassociation_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productassociation_association")] + public System.Collections.Generic.IEnumerable productassociation_association + { + get + { + return this.GetRelatedEntities("productassociation_association", null); + } + set + { + this.OnPropertyChanging("productassociation_association"); + this.SetRelatedEntities("productassociation_association", null, value); + this.OnPropertyChanged("productassociation_association"); + } + } + } + + /// + /// Information about how to price a product in the specified price level, including pricing method, rounding option, and discount type based on a specified product unit. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productpricelevel")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductPriceLevel : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductPriceLevel() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productpricelevel"; + + public const int EntityTypeCode = 1026; + + 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)); + } + } + + /// + /// Monetary amount for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount")] + public Microsoft.Xrm.Sdk.Money Amount + { + get + { + return this.GetAttributeValue("amount"); + } + set + { + this.OnPropertyChanging("Amount"); + this.SetAttributeValue("amount", value); + this.OnPropertyChanged("Amount"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency, if specified as a fixed amount. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amount_base")] + public Microsoft.Xrm.Sdk.Money Amount_Base + { + get + { + return this.GetAttributeValue("amount_base"); + } + } + + /// + /// Unique identifier of the user who created the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the price list 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"); + } + } + + /// + /// Unique identifier of the discount list associated with the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + public Microsoft.Xrm.Sdk.EntityReference DiscountTypeId + { + get + { + return this.GetAttributeValue("discounttypeid"); + } + set + { + this.OnPropertyChanging("DiscountTypeId"); + this.SetAttributeValue("discounttypeid", value); + this.OnPropertyChanged("DiscountTypeId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the price list was last 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"); + } + } + + /// + /// Unique identifier of the organization associated with the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Percentage for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentage")] + public System.Nullable Percentage + { + get + { + return this.GetAttributeValue>("percentage"); + } + set + { + this.OnPropertyChanging("Percentage"); + this.SetAttributeValue("percentage", value); + this.OnPropertyChanged("Percentage"); + } + } + + /// + /// Unique identifier of the price level associated with this price list. + /// + [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 method applied to the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PricingMethodCode + { + get + { + return this.GetAttributeValue("pricingmethodcode"); + } + set + { + this.OnPropertyChanging("PricingMethodCode"); + this.SetAttributeValue("pricingmethodcode", value); + this.OnPropertyChanged("PricingMethodCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Product associated with the price list. + /// + [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"); + } + } + + /// + /// Unique identifier of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productpricelevelid")] + public System.Nullable ProductPriceLevelId + { + get + { + return this.GetAttributeValue>("productpricelevelid"); + } + set + { + this.OnPropertyChanging("ProductPriceLevelId"); + this.SetAttributeValue("productpricelevelid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductPriceLevelId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productpricelevelid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductPriceLevelId = value; + } + } + + /// + /// Quantity of the product that must be sold for a given price level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantitysellingcode")] + public Microsoft.Xrm.Sdk.OptionSetValue QuantitySellingCode + { + get + { + return this.GetAttributeValue("quantitysellingcode"); + } + set + { + this.OnPropertyChanging("QuantitySellingCode"); + this.SetAttributeValue("quantitysellingcode", value); + this.OnPropertyChanged("QuantitySellingCode"); + } + } + + /// + /// Rounding option amount for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roundingoptionamount")] + public Microsoft.Xrm.Sdk.Money RoundingOptionAmount + { + get + { + return this.GetAttributeValue("roundingoptionamount"); + } + set + { + this.OnPropertyChanging("RoundingOptionAmount"); + this.SetAttributeValue("roundingoptionamount", value); + this.OnPropertyChanged("RoundingOptionAmount"); + } + } + + /// + /// Shows the Rounding Amount 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("roundingoptionamount_base")] + public Microsoft.Xrm.Sdk.Money RoundingOptionAmount_Base + { + get + { + return this.GetAttributeValue("roundingoptionamount_base"); + } + } + + /// + /// Option for rounding the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roundingoptioncode")] + public Microsoft.Xrm.Sdk.OptionSetValue RoundingOptionCode + { + get + { + return this.GetAttributeValue("roundingoptioncode"); + } + set + { + this.OnPropertyChanging("RoundingOptionCode"); + this.SetAttributeValue("roundingoptioncode", value); + this.OnPropertyChanged("RoundingOptionCode"); + } + } + + /// + /// Policy for rounding the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roundingpolicycode")] + public Microsoft.Xrm.Sdk.OptionSetValue RoundingPolicyCode + { + get + { + return this.GetAttributeValue("roundingpolicycode"); + } + set + { + this.OnPropertyChanging("RoundingPolicyCode"); + this.SetAttributeValue("roundingpolicycode", value); + this.OnPropertyChanged("RoundingPolicyCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the unit for the price list. + /// + [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"); + } + } + + /// + /// Unique identifier of the unit schedule for the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference UoMScheduleId + { + get + { + return this.GetAttributeValue("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + this.OnPropertyChanged("UoMScheduleId"); + } + } + + /// + /// Version number of the price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ProductPriceLevel_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_AsyncOperations")] + public System.Collections.Generic.IEnumerable ProductPriceLevel_AsyncOperations + { + get + { + return this.GetRelatedEntities("ProductPriceLevel_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_AsyncOperations"); + this.SetRelatedEntities("ProductPriceLevel_AsyncOperations", null, value); + this.OnPropertyChanged("ProductPriceLevel_AsyncOperations"); + } + } + + /// + /// 1:N ProductPriceLevel_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ProductPriceLevel_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ProductPriceLevel_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_BulkDeleteFailures"); + this.SetRelatedEntities("ProductPriceLevel_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ProductPriceLevel_BulkDeleteFailures"); + } + } + + /// + /// 1:N ProductPriceLevel_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ProductPriceLevel_ProcessSessions")] + public System.Collections.Generic.IEnumerable ProductPriceLevel_ProcessSessions + { + get + { + return this.GetRelatedEntities("ProductPriceLevel_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ProductPriceLevel_ProcessSessions"); + this.SetRelatedEntities("ProductPriceLevel_ProcessSessions", null, value); + this.OnPropertyChanged("ProductPriceLevel_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_productpricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productpricelevel")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productpricelevel + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productpricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productpricelevel"); + this.SetRelatedEntities("userentityinstancedata_productpricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_productpricelevel"); + } + } + + /// + /// N:1 discount_type_product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discounttypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("discount_type_product_price_levels")] + public Xrm.Framework.CI.Common.Entities.DiscountType discount_type_product_price_levels + { + get + { + return this.GetRelatedEntity("discount_type_product_price_levels", null); + } + set + { + this.OnPropertyChanging("discount_type_product_price_levels"); + this.SetRelatedEntity("discount_type_product_price_levels", null, value); + this.OnPropertyChanged("discount_type_product_price_levels"); + } + } + + /// + /// N:1 lk_productpricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_productpricelevel_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_productpricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_productpricelevel_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_productpricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevelbase_createdby + { + get + { + return this.GetRelatedEntity("lk_productpricelevelbase_createdby", null); + } + } + + /// + /// N:1 lk_productpricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_productpricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_productpricelevelbase_modifiedby", null); + } + } + + /// + /// N:1 price_level_product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_product_price_levels")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_product_price_levels + { + get + { + return this.GetRelatedEntity("price_level_product_price_levels", null); + } + set + { + this.OnPropertyChanging("price_level_product_price_levels"); + this.SetRelatedEntity("price_level_product_price_levels", null, value); + this.OnPropertyChanged("price_level_product_price_levels"); + } + } + + /// + /// N:1 processstage_productpricelevels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_productpricelevels")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_productpricelevels + { + get + { + return this.GetRelatedEntity("processstage_productpricelevels", null); + } + set + { + this.OnPropertyChanging("processstage_productpricelevels"); + this.SetRelatedEntity("processstage_productpricelevels", null, value); + this.OnPropertyChanged("processstage_productpricelevels"); + } + } + + /// + /// N:1 product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_price_levels")] + public Xrm.Framework.CI.Common.Entities.Product product_price_levels + { + get + { + return this.GetRelatedEntity("product_price_levels", null); + } + set + { + this.OnPropertyChanging("product_price_levels"); + this.SetRelatedEntity("product_price_levels", null, value); + this.OnPropertyChanged("product_price_levels"); + } + } + + /// + /// N:1 transactioncurrency_productpricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_productpricelevel")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_productpricelevel + { + get + { + return this.GetRelatedEntity("transactioncurrency_productpricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_productpricelevel"); + this.SetRelatedEntity("transactioncurrency_productpricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_productpricelevel"); + } + } + + /// + /// N:1 unit_of_measure_schedule_product_price_level + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_product_price_level")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule unit_of_measure_schedule_product_price_level + { + get + { + return this.GetRelatedEntity("unit_of_measure_schedule_product_price_level", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_product_price_level"); + this.SetRelatedEntity("unit_of_measure_schedule_product_price_level", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_product_price_level"); + } + } + + /// + /// N:1 unit_of_measurement_product_price_levels + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_product_price_levels")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_product_price_levels + { + get + { + return this.GetRelatedEntity("unit_of_measurement_product_price_levels", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_product_price_levels"); + this.SetRelatedEntity("unit_of_measurement_product_price_levels", null, value); + this.OnPropertyChanged("unit_of_measurement_product_price_levels"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productsalesliterature")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductSalesLiterature : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductSalesLiterature() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productsalesliterature"; + + public const int EntityTypeCode = 21; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + } + + /// + /// Unique identifier of the product sales literature associated with this price list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productsalesliteratureid")] + public System.Nullable ProductSalesLiteratureId + { + get + { + return this.GetAttributeValue>("productsalesliteratureid"); + } + set + { + this.OnPropertyChanging("ProductSalesLiteratureId"); + this.SetAttributeValue("productsalesliteratureid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductSalesLiteratureId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productsalesliteratureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductSalesLiteratureId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public System.Nullable SalesLiteratureId + { + get + { + return this.GetAttributeValue>("salesliteratureid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_productsalesliterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsalesliterature")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productsalesliterature + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsalesliterature"); + this.SetRelatedEntities("userentityinstancedata_productsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_productsalesliterature"); + } + } + + /// + /// N:N productsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsalesliterature_association")] + public System.Collections.Generic.IEnumerable productsalesliterature_association + { + get + { + return this.GetRelatedEntities("productsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("productsalesliterature_association"); + this.SetRelatedEntities("productsalesliterature_association", null, value); + this.OnPropertyChanged("productsalesliterature_association"); + } + } + } + + /// + /// Storage of an association between a product and a substitute product. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productsubstitute")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ProductSubstitute : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ProductSubstitute() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productsubstitute"; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// Unique identifier of the product substitute. + /// + [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; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("substitutedproductid")] + public System.Nullable SubstitutedProductId + { + get + { + return this.GetAttributeValue>("substitutedproductid"); + } + set + { + this.OnPropertyChanging("SubstitutedProductId"); + this.SetAttributeValue("substitutedproductid", value); + this.OnPropertyChanged("SubstitutedProductId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_productsubstitute + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsubstitute")] + public System.Collections.Generic.IEnumerable userentityinstancedata_productsubstitute + { + get + { + return this.GetRelatedEntities("userentityinstancedata_productsubstitute", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsubstitute"); + this.SetRelatedEntities("userentityinstancedata_productsubstitute", null, value); + this.OnPropertyChanged("userentityinstancedata_productsubstitute"); + } + } + + /// + /// N:N productsubstitute_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsubstitute_association")] + public System.Collections.Generic.IEnumerable productsubstitute_association + { + get + { + return this.GetRelatedEntities("productsubstitute_association", null); + } + set + { + this.OnPropertyChanging("productsubstitute_association"); + this.SetRelatedEntities("productsubstitute_association", null, value); + this.OnPropertyChanged("productsubstitute_association"); + } + } + } + + /// + /// A publisher of a CRM solution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("publisher")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Publisher : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Publisher() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "publisher"; + + public const int EntityTypeCode = 7101; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2. such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the user who created the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the publisher was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default option value prefix used for newly created options for solutions associated with this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationoptionvalueprefix")] + public System.Nullable CustomizationOptionValuePrefix + { + get + { + return this.GetAttributeValue>("customizationoptionvalueprefix"); + } + set + { + this.OnPropertyChanging("CustomizationOptionValuePrefix"); + this.SetAttributeValue("customizationoptionvalueprefix", value); + this.OnPropertyChanged("CustomizationOptionValuePrefix"); + } + } + + /// + /// Prefix used for new entities, attributes, and entity relationships for solutions associated with this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationprefix")] + public string CustomizationPrefix + { + get + { + return this.GetAttributeValue("customizationprefix"); + } + set + { + this.OnPropertyChanging("CustomizationPrefix"); + this.SetAttributeValue("customizationprefix", value); + this.OnPropertyChanged("CustomizationPrefix"); + } + } + + /// + /// Description of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address for the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// User display name for this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// Indicates whether the publisher was created as part of a managed solution installation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] + public System.Nullable IsReadonly + { + get + { + return this.GetAttributeValue>("isreadonly"); + } + } + + /// + /// Unique identifier of the user who last modified the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the publisher was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Default locale of the publisher in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherdefaultlocale")] + public string PinpointPublisherDefaultLocale + { + get + { + return this.GetAttributeValue("pinpointpublisherdefaultlocale"); + } + } + + /// + /// Identifier of the publisher in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] + public System.Nullable PinpointPublisherId + { + get + { + return this.GetAttributeValue>("pinpointpublisherid"); + } + } + + /// + /// Unique identifier of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public System.Nullable PublisherId + { + get + { + return this.GetAttributeValue>("publisherid"); + } + set + { + this.OnPropertyChanging("PublisherId"); + this.SetAttributeValue("publisherid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PublisherId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PublisherId = value; + } + } + + /// + /// URL for the supporting website of this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supportingwebsiteurl")] + public string SupportingWebsiteUrl + { + get + { + return this.GetAttributeValue("supportingwebsiteurl"); + } + set + { + this.OnPropertyChanging("SupportingWebsiteUrl"); + this.SetAttributeValue("supportingwebsiteurl", value); + this.OnPropertyChanged("SupportingWebsiteUrl"); + } + } + + /// + /// The unique name of this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Publisher_PublisherAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Publisher_PublisherAddress")] + public System.Collections.Generic.IEnumerable Publisher_PublisherAddress + { + get + { + return this.GetRelatedEntities("Publisher_PublisherAddress", null); + } + set + { + this.OnPropertyChanging("Publisher_PublisherAddress"); + this.SetRelatedEntities("Publisher_PublisherAddress", null, value); + this.OnPropertyChanged("Publisher_PublisherAddress"); + } + } + + /// + /// 1:N publisher_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] + public System.Collections.Generic.IEnumerable publisher_solution + { + get + { + return this.GetRelatedEntities("publisher_solution", null); + } + set + { + this.OnPropertyChanging("publisher_solution"); + this.SetRelatedEntities("publisher_solution", null, value); + this.OnPropertyChanged("publisher_solution"); + } + } + + /// + /// 1:N userentityinstancedata_publisher + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisher")] + public System.Collections.Generic.IEnumerable userentityinstancedata_publisher + { + get + { + return this.GetRelatedEntities("userentityinstancedata_publisher", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisher"); + this.SetRelatedEntities("userentityinstancedata_publisher", null, value); + this.OnPropertyChanged("userentityinstancedata_publisher"); + } + } + + /// + /// N:1 lk_publisher_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisher_createdby + { + get + { + return this.GetRelatedEntity("lk_publisher_createdby", null); + } + } + + /// + /// N:1 lk_publisher_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisher_modifiedby + { + get + { + return this.GetRelatedEntity("lk_publisher_modifiedby", null); + } + } + + /// + /// N:1 lk_publisherbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisherbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisherbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_publisherbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisherbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_publisher + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_publisher")] + public Xrm.Framework.CI.Common.Entities.Organization organization_publisher + { + get + { + return this.GetRelatedEntity("organization_publisher", null); + } + } + } + + /// + /// Address and shipping information. Used to store additional addresses for a publisher. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("publisheraddress")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class PublisherAddress : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public PublisherAddress() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "publisheraddress"; + + public const int EntityTypeCode = 7102; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Specifies which publisher address is applicable. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressnumber")] + public System.Nullable AddressNumber + { + get + { + return this.GetAttributeValue>("addressnumber"); + } + set + { + this.OnPropertyChanging("AddressNumber"); + this.SetAttributeValue("addressnumber", value); + this.OnPropertyChanged("AddressNumber"); + } + } + + /// + /// Type of address for the publisher, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AddressTypeCode + { + get + { + return this.GetAttributeValue("addresstypecode"); + } + set + { + this.OnPropertyChanging("AddressTypeCode"); + this.SetAttributeValue("addresstypecode", value); + this.OnPropertyChanged("AddressTypeCode"); + } + } + + /// + /// City name in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("city")] + public string City + { + get + { + return this.GetAttributeValue("city"); + } + set + { + this.OnPropertyChanging("City"); + this.SetAttributeValue("city", value); + this.OnPropertyChanged("City"); + } + } + + /// + /// Country/region name in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("country")] + public string Country + { + get + { + return this.GetAttributeValue("country"); + } + set + { + this.OnPropertyChanging("Country"); + this.SetAttributeValue("country", value); + this.OnPropertyChanged("Country"); + } + } + + /// + /// County name in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("county")] + public string County + { + get + { + return this.GetAttributeValue("county"); + } + set + { + this.OnPropertyChanging("County"); + this.SetAttributeValue("county", value); + this.OnPropertyChanged("County"); + } + } + + /// + /// Unique identifier of the user who created the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the publisher address was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Fax number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// Freight terms for the publisher address. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Latitude for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("latitude")] + public System.Nullable Latitude + { + get + { + return this.GetAttributeValue>("latitude"); + } + set + { + this.OnPropertyChanging("Latitude"); + this.SetAttributeValue("latitude", value); + this.OnPropertyChanged("Latitude"); + } + } + + /// + /// First line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line1")] + public string Line1 + { + get + { + return this.GetAttributeValue("line1"); + } + set + { + this.OnPropertyChanging("Line1"); + this.SetAttributeValue("line1", value); + this.OnPropertyChanged("Line1"); + } + } + + /// + /// Second line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line2")] + public string Line2 + { + get + { + return this.GetAttributeValue("line2"); + } + set + { + this.OnPropertyChanging("Line2"); + this.SetAttributeValue("line2", value); + this.OnPropertyChanged("Line2"); + } + } + + /// + /// Third line for entering address information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("line3")] + public string Line3 + { + get + { + return this.GetAttributeValue("line3"); + } + set + { + this.OnPropertyChanging("Line3"); + this.SetAttributeValue("line3", value); + this.OnPropertyChanged("Line3"); + } + } + + /// + /// Longitude for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longitude")] + public System.Nullable Longitude + { + get + { + return this.GetAttributeValue>("longitude"); + } + set + { + this.OnPropertyChanging("Longitude"); + this.SetAttributeValue("longitude", value); + this.OnPropertyChanged("Longitude"); + } + } + + /// + /// Unique identifier of the user who last modified the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the publisher address was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name used to identify the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the parent object with which the publisher address is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + public Microsoft.Xrm.Sdk.EntityReference ParentId + { + get + { + return this.GetAttributeValue("parentid"); + } + set + { + this.OnPropertyChanging("ParentId"); + this.SetAttributeValue("parentid", value); + this.OnPropertyChanged("ParentId"); + } + } + + /// + /// ZIP Code or postal code in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postalcode")] + public string PostalCode + { + get + { + return this.GetAttributeValue("postalcode"); + } + set + { + this.OnPropertyChanging("PostalCode"); + this.SetAttributeValue("postalcode", value); + this.OnPropertyChanged("PostalCode"); + } + } + + /// + /// Post office box number in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postofficebox")] + public string PostOfficeBox + { + get + { + return this.GetAttributeValue("postofficebox"); + } + set + { + this.OnPropertyChanging("PostOfficeBox"); + this.SetAttributeValue("postofficebox", value); + this.OnPropertyChanged("PostOfficeBox"); + } + } + + /// + /// Name of the primary contact at the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactname")] + public string PrimaryContactName + { + get + { + return this.GetAttributeValue("primarycontactname"); + } + set + { + this.OnPropertyChanging("PrimaryContactName"); + this.SetAttributeValue("primarycontactname", value); + this.OnPropertyChanged("PrimaryContactName"); + } + } + + /// + /// Unique identifier of the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheraddressid")] + public System.Nullable PublisherAddressId + { + get + { + return this.GetAttributeValue>("publisheraddressid"); + } + set + { + this.OnPropertyChanging("PublisherAddressId"); + this.SetAttributeValue("publisheraddressid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PublisherAddressId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheraddressid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PublisherAddressId = value; + } + } + + /// + /// Method of shipment for the publisher 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"); + } + } + + /// + /// State or province in the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stateorprovince")] + public string StateOrProvince + { + get + { + return this.GetAttributeValue("stateorprovince"); + } + set + { + this.OnPropertyChanging("StateOrProvince"); + this.SetAttributeValue("stateorprovince", value); + this.OnPropertyChanged("StateOrProvince"); + } + } + + /// + /// First telephone number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone1")] + public string Telephone1 + { + get + { + return this.GetAttributeValue("telephone1"); + } + set + { + this.OnPropertyChanging("Telephone1"); + this.SetAttributeValue("telephone1", value); + this.OnPropertyChanged("Telephone1"); + } + } + + /// + /// Second telephone number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone2")] + public string Telephone2 + { + get + { + return this.GetAttributeValue("telephone2"); + } + set + { + this.OnPropertyChanging("Telephone2"); + this.SetAttributeValue("telephone2", value); + this.OnPropertyChanged("Telephone2"); + } + } + + /// + /// Third telephone number for the publisher address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// 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"); + } + } + + /// + /// United Parcel Service (UPS) zone for the address of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upszone")] + public string UPSZone + { + get + { + return this.GetAttributeValue("upszone"); + } + set + { + this.OnPropertyChanging("UPSZone"); + this.SetAttributeValue("upszone", value); + this.OnPropertyChanged("UPSZone"); + } + } + + /// + /// 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"); + } + } + + /// + /// UTC offset for the address. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] + public System.Nullable UTCOffset + { + get + { + return this.GetAttributeValue>("utcoffset"); + } + set + { + this.OnPropertyChanging("UTCOffset"); + this.SetAttributeValue("utcoffset", value); + this.OnPropertyChanged("UTCOffset"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_publisheraddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisheraddress")] + public System.Collections.Generic.IEnumerable userentityinstancedata_publisheraddress + { + get + { + return this.GetRelatedEntities("userentityinstancedata_publisheraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisheraddress"); + this.SetRelatedEntities("userentityinstancedata_publisheraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_publisheraddress"); + } + } + + /// + /// N:1 lk_publisheraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_createdby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_createdby", null); + } + } + + /// + /// N:1 lk_publisheraddressbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_publisheraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_modifiedby", null); + } + } + + /// + /// N:1 lk_publisheraddressbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_publisheraddressbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisheraddressbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Publisher_PublisherAddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Publisher_PublisherAddress")] + public Xrm.Framework.CI.Common.Entities.Publisher Publisher_PublisherAddress + { + get + { + return this.GetRelatedEntity("Publisher_PublisherAddress", null); + } + set + { + this.OnPropertyChanging("Publisher_PublisherAddress"); + this.SetRelatedEntity("Publisher_PublisherAddress", null, value); + this.OnPropertyChanged("Publisher_PublisherAddress"); + } + } + } + + /// + /// Quarterly fiscal calendar of an organization. A span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("quarterlyfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QuarterlyFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QuarterlyFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quarterlyfiscalcalendar"; + + public const int EntityTypeCode = 2002; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the quarterly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the quarterly fiscal calendar 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 quarterlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the quarterly fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the quarterly fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// Unique identifier of the user who last modified the quarterly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the quarterly fiscal calendar 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 quarterlyfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Sales quota for the first quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter1")] + public Microsoft.Xrm.Sdk.Money Quarter1 + { + get + { + return this.GetAttributeValue("quarter1"); + } + set + { + this.OnPropertyChanging("Quarter1"); + this.SetAttributeValue("quarter1", value); + this.OnPropertyChanged("Quarter1"); + } + } + + /// + /// Base currency equivalent of the sales quota for the first quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter1_base")] + public Microsoft.Xrm.Sdk.Money Quarter1_Base + { + get + { + return this.GetAttributeValue("quarter1_base"); + } + } + + /// + /// Sales quota for the second quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter2")] + public Microsoft.Xrm.Sdk.Money Quarter2 + { + get + { + return this.GetAttributeValue("quarter2"); + } + set + { + this.OnPropertyChanging("Quarter2"); + this.SetAttributeValue("quarter2", value); + this.OnPropertyChanged("Quarter2"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second quarter in the fiscal year + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter2_base")] + public Microsoft.Xrm.Sdk.Money Quarter2_Base + { + get + { + return this.GetAttributeValue("quarter2_base"); + } + } + + /// + /// Sales quota for the third quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter3")] + public Microsoft.Xrm.Sdk.Money Quarter3 + { + get + { + return this.GetAttributeValue("quarter3"); + } + set + { + this.OnPropertyChanging("Quarter3"); + this.SetAttributeValue("quarter3", value); + this.OnPropertyChanged("Quarter3"); + } + } + + /// + /// Base currency equivalent of the sales quota for the third quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter3_base")] + public Microsoft.Xrm.Sdk.Money Quarter3_Base + { + get + { + return this.GetAttributeValue("quarter3_base"); + } + } + + /// + /// Sales quota for the fourth quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter4")] + public Microsoft.Xrm.Sdk.Money Quarter4 + { + get + { + return this.GetAttributeValue("quarter4"); + } + set + { + this.OnPropertyChanging("Quarter4"); + this.SetAttributeValue("quarter4", value); + this.OnPropertyChanged("Quarter4"); + } + } + + /// + /// Base currency equivalent of the sales quota for the fourth quarter in the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quarter4_base")] + public Microsoft.Xrm.Sdk.Money Quarter4_Base + { + get + { + return this.GetAttributeValue("quarter4_base"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// 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 quarterly fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier of the quarterly fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N QuarterlyFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable QuarterlyFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("QuarterlyFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuarterlyFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("QuarterlyFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("QuarterlyFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N QuarterlyFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuarterlyFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QuarterlyFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QuarterlyFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QuarterlyFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("QuarterlyFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QuarterlyFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_quarterlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quarterlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_quarterlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_quarterlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_quarterlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quarterlyfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_quarterlyfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_quarterlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quarterlyfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_quarterlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_quarterlyfiscalcalendar"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum QueueState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// A list of records requiring action, such as accounts, cases, and activities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("queue")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Queue : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Queue() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "queue"; + + public const int EntityTypeCode = 2020; + + 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)); + } + } + + /// + /// Choose whether to allow server-side synchronization or the Email Router to use credentials for email processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowemailcredentials")] + [System.ObsoleteAttribute()] + public System.Nullable AllowEmailCredentials + { + get + { + return this.GetAttributeValue>("allowemailcredentials"); + } + } + + /// + /// Unique identifier of the business unit with which the queue is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the user who created the queue record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the queue 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 queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Select the mailbox associated with this queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + public Microsoft.Xrm.Sdk.EntityReference DefaultMailbox + { + get + { + return this.GetAttributeValue("defaultmailbox"); + } + } + + /// + /// Description of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address that is associated with the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Password for email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailpassword")] + [System.ObsoleteAttribute()] + public string EmailPassword + { + get + { + return this.GetAttributeValue("emailpassword"); + } + } + + /// + /// Shows the status of the primary email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailRouterAccessApproval + { + get + { + return this.GetAttributeValue("emailrouteraccessapproval"); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// User name for email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailusername")] + [System.ObsoleteAttribute()] + public string EmailUsername + { + get + { + return this.GetAttributeValue("emailusername"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the queue with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Information that specifies whether a queue is to ignore unsolicited email (deprecated). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreunsolicitedemail")] + public System.Nullable IgnoreUnsolicitedEmail + { + get + { + return this.GetAttributeValue>("ignoreunsolicitedemail"); + } + set + { + this.OnPropertyChanging("IgnoreUnsolicitedEmail"); + this.SetAttributeValue("ignoreunsolicitedemail", value); + this.OnPropertyChanged("IgnoreUnsolicitedEmail"); + } + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Incoming email delivery method for the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("incomingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Incoming email filtering method. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailfilteringmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailFilteringMethod + { + get + { + return this.GetAttributeValue("incomingemailfilteringmethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailFilteringMethod"); + this.SetAttributeValue("incomingemailfilteringmethod", value); + this.OnPropertyChanged("IncomingEmailFilteringMethod"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Indication of whether a queue is the fax delivery queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfaxqueue")] + [System.ObsoleteAttribute()] + public System.Nullable IsFaxQueue + { + get + { + return this.GetAttributeValue>("isfaxqueue"); + } + } + + /// + /// Unique identifier of the user who last modified the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the queue 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 queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Outgoing email delivery method for the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("outgoingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Unique identifier of the user or team who owns the queue. + /// + [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 queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the owner of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryuserid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference PrimaryUserId + { + get + { + return this.GetAttributeValue("primaryuserid"); + } + set + { + this.OnPropertyChanging("PrimaryUserId"); + this.SetAttributeValue("primaryuserid", value); + this.OnPropertyChanged("PrimaryUserId"); + } + } + + /// + /// Unique identifier of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public System.Nullable QueueId + { + get + { + return this.GetAttributeValue>("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QueueId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QueueId = value; + } + } + + /// + /// Type of queue that is automatically assigned when a user or queue is created. The type can be public, private, or work in process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queuetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue QueueTypeCode + { + get + { + return this.GetAttributeValue("queuetypecode"); + } + } + + /// + /// Status of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.QueueState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QueueState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the queue. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the queue. + /// + [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"); + } + } + + /// + /// Version number of the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N mailbox_regarding_queue + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_queue")] + public System.Collections.Generic.IEnumerable mailbox_regarding_queue + { + get + { + return this.GetRelatedEntities("mailbox_regarding_queue", null); + } + set + { + this.OnPropertyChanging("mailbox_regarding_queue"); + this.SetRelatedEntities("mailbox_regarding_queue", null, value); + this.OnPropertyChanged("mailbox_regarding_queue"); + } + } + + /// + /// 1:N queue_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_activity_parties")] + public System.Collections.Generic.IEnumerable queue_activity_parties + { + get + { + return this.GetRelatedEntities("queue_activity_parties", null); + } + set + { + this.OnPropertyChanging("queue_activity_parties"); + this.SetRelatedEntities("queue_activity_parties", null, value); + this.OnPropertyChanged("queue_activity_parties"); + } + } + + /// + /// 1:N Queue_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_AsyncOperations")] + public System.Collections.Generic.IEnumerable Queue_AsyncOperations + { + get + { + return this.GetRelatedEntities("Queue_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Queue_AsyncOperations"); + this.SetRelatedEntities("Queue_AsyncOperations", null, value); + this.OnPropertyChanged("Queue_AsyncOperations"); + } + } + + /// + /// 1:N Queue_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Queue_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Queue_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Queue_BulkDeleteFailures"); + this.SetRelatedEntities("Queue_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Queue_BulkDeleteFailures"); + } + } + + /// + /// 1:N Queue_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Queue_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Queue_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Queue_DuplicateBaseRecord"); + this.SetRelatedEntities("Queue_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Queue_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Queue_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Queue_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Queue_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Queue_DuplicateMatchingRecord"); + this.SetRelatedEntities("Queue_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Queue_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N queue_entries + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_entries")] + public System.Collections.Generic.IEnumerable queue_entries + { + get + { + return this.GetRelatedEntities("queue_entries", null); + } + set + { + this.OnPropertyChanging("queue_entries"); + this.SetRelatedEntities("queue_entries", null, value); + this.OnPropertyChanged("queue_entries"); + } + } + + /// + /// 1:N queue_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_PostFollows")] + public System.Collections.Generic.IEnumerable queue_PostFollows + { + get + { + return this.GetRelatedEntities("queue_PostFollows", null); + } + set + { + this.OnPropertyChanging("queue_PostFollows"); + this.SetRelatedEntities("queue_PostFollows", null, value); + this.OnPropertyChanged("queue_PostFollows"); + } + } + + /// + /// 1:N queue_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable queue_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("queue_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queue_principalobjectattributeaccess"); + this.SetRelatedEntities("queue_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queue_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Queue_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_ProcessSessions")] + public System.Collections.Generic.IEnumerable Queue_ProcessSessions + { + get + { + return this.GetRelatedEntities("Queue_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Queue_ProcessSessions"); + this.SetRelatedEntities("Queue_ProcessSessions", null, value); + this.OnPropertyChanged("Queue_ProcessSessions"); + } + } + + /// + /// 1:N queue_system_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_system_user")] + public System.Collections.Generic.IEnumerable queue_system_user + { + get + { + return this.GetRelatedEntities("queue_system_user", null); + } + set + { + this.OnPropertyChanging("queue_system_user"); + this.SetRelatedEntities("queue_system_user", null, value); + this.OnPropertyChanged("queue_system_user"); + } + } + + /// + /// 1:N queue_team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_team")] + public System.Collections.Generic.IEnumerable queue_team + { + get + { + return this.GetRelatedEntities("queue_team", null); + } + set + { + this.OnPropertyChanging("queue_team"); + this.SetRelatedEntities("queue_team", null, value); + this.OnPropertyChanged("queue_team"); + } + } + + /// + /// 1:N userentityinstancedata_queue + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queue")] + public System.Collections.Generic.IEnumerable userentityinstancedata_queue + { + get + { + return this.GetRelatedEntities("userentityinstancedata_queue", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queue"); + this.SetRelatedEntities("userentityinstancedata_queue", null, value); + this.OnPropertyChanged("userentityinstancedata_queue"); + } + } + + /// + /// N:1 business_unit_queues + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_queues + { + get + { + return this.GetRelatedEntity("business_unit_queues", null); + } + set + { + this.OnPropertyChanging("business_unit_queues"); + this.SetRelatedEntity("business_unit_queues", null, value); + this.OnPropertyChanged("business_unit_queues"); + } + } + + /// + /// N:1 business_unit_queues2 + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_queues2")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_queues2 + { + get + { + return this.GetRelatedEntity("business_unit_queues2", null); + } + } + + /// + /// N:1 lk_queue_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queue_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queue_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_queue_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queue_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queue_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_queuebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queuebase_createdby + { + get + { + return this.GetRelatedEntity("lk_queuebase_createdby", null); + } + } + + /// + /// N:1 lk_queuebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queuebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_queuebase_modifiedby", null); + } + } + + /// + /// N:1 organization_queues + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queues")] + public Xrm.Framework.CI.Common.Entities.Organization organization_queues + { + get + { + return this.GetRelatedEntity("organization_queues", null); + } + } + + /// + /// N:1 queue_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_defaultmailbox_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox queue_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntity("queue_defaultmailbox_mailbox", null); + } + } + + /// + /// N:1 queue_primary_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_primary_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser queue_primary_user + { + get + { + return this.GetRelatedEntity("queue_primary_user", null); + } + set + { + this.OnPropertyChanging("queue_primary_user"); + this.SetRelatedEntity("queue_primary_user", null, value); + this.OnPropertyChanged("queue_primary_user"); + } + } + + /// + /// N:1 TransactionCurrency_Queue + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Queue")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Queue + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Queue", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Queue"); + this.SetRelatedEntity("TransactionCurrency_Queue", null, value); + this.OnPropertyChanged("TransactionCurrency_Queue"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum QueueItemState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// A specific item in a queue, such as a case record or an activity record. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("queueitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QueueItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QueueItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "queueitem"; + + public const int EntityTypeCode = 2029; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Shows the date the record was assigned to the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enteredon")] + public System.Nullable EnteredOn + { + get + { + return this.GetAttributeValue>("enteredon"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the queueitem. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Choose the activity, case, or article assigned to the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Select the type of the queue item, such as activity, case, or appointment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + } + + /// + /// Unique identifier of the organization with which the queue item is associated. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Priority of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priority")] + [System.ObsoleteAttribute()] + public System.Nullable Priority + { + get + { + return this.GetAttributeValue>("priority"); + } + set + { + this.OnPropertyChanging("Priority"); + this.SetAttributeValue("priority", value); + this.OnPropertyChanged("Priority"); + } + } + + /// + /// Choose the queue that the item is assigned to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Unique identifier of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueitemid")] + public System.Nullable QueueItemId + { + get + { + return this.GetAttributeValue>("queueitemid"); + } + set + { + this.OnPropertyChanging("QueueItemId"); + this.SetAttributeValue("queueitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QueueItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QueueItemId = value; + } + } + + /// + /// Sender who created the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sender")] + [System.ObsoleteAttribute()] + public string Sender + { + get + { + return this.GetAttributeValue("sender"); + } + set + { + this.OnPropertyChanging("Sender"); + this.SetAttributeValue("sender", value); + this.OnPropertyChanged("Sender"); + } + } + + /// + /// Status of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("state")] + [System.ObsoleteAttribute()] + public System.Nullable State + { + get + { + return this.GetAttributeValue>("state"); + } + set + { + this.OnPropertyChanging("State"); + this.SetAttributeValue("state", value); + this.OnPropertyChanged("State"); + } + } + + /// + /// Shows whether the queue record is active or inactive. Inactive queue records 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 ((Xrm.Framework.CI.Common.Entities.QueueItemState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QueueItemState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("status")] + [System.ObsoleteAttribute()] + public System.Nullable Status + { + get + { + return this.GetAttributeValue>("status"); + } + set + { + this.OnPropertyChanging("Status"); + this.SetAttributeValue("status", value); + this.OnPropertyChanged("Status"); + } + } + + /// + /// Select the item'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 title or name that describes the queue record. This value is copied from the record that was assigned to the queue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + } + + /// + /// Recipients listed on the To line of the message for email queue items. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("torecipients")] + [System.ObsoleteAttribute()] + public string ToRecipients + { + get + { + return this.GetAttributeValue("torecipients"); + } + set + { + this.OnPropertyChanging("ToRecipients"); + this.SetAttributeValue("torecipients", value); + this.OnPropertyChanged("ToRecipients"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Shows who is working on the queue item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workerid")] + public Microsoft.Xrm.Sdk.EntityReference WorkerId + { + get + { + return this.GetAttributeValue("workerid"); + } + set + { + this.OnPropertyChanging("WorkerId"); + this.SetAttributeValue("workerid", value); + this.OnPropertyChanged("WorkerId"); + } + } + + /// + /// Shows the date and time when the queue item was last assigned to a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workeridmodifiedon")] + public System.Nullable WorkerIdModifiedOn + { + get + { + return this.GetAttributeValue>("workeridmodifiedon"); + } + } + + /// + /// 1:N QueueItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_AsyncOperations")] + public System.Collections.Generic.IEnumerable QueueItem_AsyncOperations + { + get + { + return this.GetRelatedEntities("QueueItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QueueItem_AsyncOperations"); + this.SetRelatedEntities("QueueItem_AsyncOperations", null, value); + this.OnPropertyChanged("QueueItem_AsyncOperations"); + } + } + + /// + /// 1:N QueueItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QueueItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QueueItem_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QueueItem_BulkDeleteFailures"); + this.SetRelatedEntities("QueueItem_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QueueItem_BulkDeleteFailures"); + } + } + + /// + /// 1:N queueitem_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queueitem_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable queueitem_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("queueitem_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("queueitem_principalobjectattributeaccess"); + this.SetRelatedEntities("queueitem_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("queueitem_principalobjectattributeaccess"); + } + } + + /// + /// 1:N QueueItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QueueItem_ProcessSessions")] + public System.Collections.Generic.IEnumerable QueueItem_ProcessSessions + { + get + { + return this.GetRelatedEntities("QueueItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QueueItem_ProcessSessions"); + this.SetRelatedEntities("QueueItem_ProcessSessions", null, value); + this.OnPropertyChanged("QueueItem_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_queueitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queueitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_queueitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_queueitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queueitem"); + this.SetRelatedEntities("userentityinstancedata_queueitem", null, value); + this.OnPropertyChanged("userentityinstancedata_queueitem"); + } + } + + /// + /// N:1 ActivityPointer_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPointer_QueueItem")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer ActivityPointer_QueueItem + { + get + { + return this.GetRelatedEntity("ActivityPointer_QueueItem", null); + } + set + { + this.OnPropertyChanging("ActivityPointer_QueueItem"); + this.SetRelatedEntity("ActivityPointer_QueueItem", null, value); + this.OnPropertyChanged("ActivityPointer_QueueItem"); + } + } + + /// + /// N:1 Appointment_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Appointment Appointment_QueueItem + { + get + { + return this.GetRelatedEntity("Appointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("Appointment_QueueItem"); + this.SetRelatedEntity("Appointment_QueueItem", null, value); + this.OnPropertyChanged("Appointment_QueueItem"); + } + } + + /// + /// N:1 BulkOperation_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_QueueItem")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_QueueItem + { + get + { + return this.GetRelatedEntity("BulkOperation_QueueItem", null); + } + set + { + this.OnPropertyChanging("BulkOperation_QueueItem"); + this.SetRelatedEntity("BulkOperation_QueueItem", null, value); + this.OnPropertyChanged("BulkOperation_QueueItem"); + } + } + + /// + /// N:1 CampaignActivity_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_QueueItem")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_QueueItem + { + get + { + return this.GetRelatedEntity("CampaignActivity_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_QueueItem"); + this.SetRelatedEntity("CampaignActivity_QueueItem", null, value); + this.OnPropertyChanged("CampaignActivity_QueueItem"); + } + } + + /// + /// N:1 CampaignResponse_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_QueueItem")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse CampaignResponse_QueueItem + { + get + { + return this.GetRelatedEntity("CampaignResponse_QueueItem", null); + } + set + { + this.OnPropertyChanging("CampaignResponse_QueueItem"); + this.SetRelatedEntity("CampaignResponse_QueueItem", null, value); + this.OnPropertyChanged("CampaignResponse_QueueItem"); + } + } + + /// + /// N:1 Email_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Email Email_QueueItem + { + get + { + return this.GetRelatedEntity("Email_QueueItem", null); + } + set + { + this.OnPropertyChanging("Email_QueueItem"); + this.SetRelatedEntity("Email_QueueItem", null, value); + this.OnPropertyChanged("Email_QueueItem"); + } + } + + /// + /// N:1 Fax_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Fax Fax_QueueItem + { + get + { + return this.GetRelatedEntity("Fax_QueueItem", null); + } + set + { + this.OnPropertyChanging("Fax_QueueItem"); + this.SetRelatedEntity("Fax_QueueItem", null, value); + this.OnPropertyChanged("Fax_QueueItem"); + } + } + + /// + /// N:1 Incident_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_QueueItem + { + get + { + return this.GetRelatedEntity("Incident_QueueItem", null); + } + set + { + this.OnPropertyChanging("Incident_QueueItem"); + this.SetRelatedEntity("Incident_QueueItem", null, value); + this.OnPropertyChanged("Incident_QueueItem"); + } + } + + /// + /// N:1 Letter_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Letter Letter_QueueItem + { + get + { + return this.GetRelatedEntity("Letter_QueueItem", null); + } + set + { + this.OnPropertyChanging("Letter_QueueItem"); + this.SetRelatedEntity("Letter_QueueItem", null, value); + this.OnPropertyChanged("Letter_QueueItem"); + } + } + + /// + /// N:1 lk_queueitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitem_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queueitem_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_queueitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_queueitem_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_queueitembase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitembase_createdby + { + get + { + return this.GetRelatedEntity("lk_queueitembase_createdby", null); + } + } + + /// + /// N:1 lk_queueitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitembase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_queueitembase_modifiedby", null); + } + } + + /// + /// N:1 lk_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_workerid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_queueitembase_workerid + { + get + { + return this.GetRelatedEntity("lk_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_workerid"); + this.SetRelatedEntity("lk_queueitembase_workerid", null, value); + this.OnPropertyChanged("lk_queueitembase_workerid"); + } + } + + /// + /// N:1 organization_queueitems + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_queueitems")] + public Xrm.Framework.CI.Common.Entities.Organization organization_queueitems + { + get + { + return this.GetRelatedEntity("organization_queueitems", null); + } + } + + /// + /// N:1 PhoneCall_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_QueueItem")] + public Xrm.Framework.CI.Common.Entities.PhoneCall PhoneCall_QueueItem + { + get + { + return this.GetRelatedEntity("PhoneCall_QueueItem", null); + } + set + { + this.OnPropertyChanging("PhoneCall_QueueItem"); + this.SetRelatedEntity("PhoneCall_QueueItem", null, value); + this.OnPropertyChanged("PhoneCall_QueueItem"); + } + } + + /// + /// N:1 queue_entries + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_entries")] + public Xrm.Framework.CI.Common.Entities.Queue queue_entries + { + get + { + return this.GetRelatedEntity("queue_entries", null); + } + set + { + this.OnPropertyChanging("queue_entries"); + this.SetRelatedEntity("queue_entries", null, value); + this.OnPropertyChanged("queue_entries"); + } + } + + /// + /// N:1 RecurringAppointmentMaster_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_QueueItem")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster RecurringAppointmentMaster_QueueItem + { + get + { + return this.GetRelatedEntity("RecurringAppointmentMaster_QueueItem", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_QueueItem"); + this.SetRelatedEntity("RecurringAppointmentMaster_QueueItem", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_QueueItem"); + } + } + + /// + /// N:1 ServiceAppointment_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_QueueItem")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment ServiceAppointment_QueueItem + { + get + { + return this.GetRelatedEntity("ServiceAppointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_QueueItem"); + this.SetRelatedEntity("ServiceAppointment_QueueItem", null, value); + this.OnPropertyChanged("ServiceAppointment_QueueItem"); + } + } + + /// + /// N:1 Task_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_QueueItem")] + public Xrm.Framework.CI.Common.Entities.Task Task_QueueItem + { + get + { + return this.GetRelatedEntity("Task_QueueItem", null); + } + set + { + this.OnPropertyChanging("Task_QueueItem"); + this.SetRelatedEntity("Task_QueueItem", null, value); + this.OnPropertyChanged("Task_QueueItem"); + } + } + + /// + /// N:1 team_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_queueitembase_workerid")] + public Xrm.Framework.CI.Common.Entities.Team team_queueitembase_workerid + { + get + { + return this.GetRelatedEntity("team_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("team_queueitembase_workerid"); + this.SetRelatedEntity("team_queueitembase_workerid", null, value); + this.OnPropertyChanged("team_queueitembase_workerid"); + } + } + + /// + /// N:1 TransactionCurrency_QueueItem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_QueueItem")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_QueueItem + { + get + { + return this.GetRelatedEntity("TransactionCurrency_QueueItem", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_QueueItem"); + this.SetRelatedEntity("TransactionCurrency_QueueItem", null, value); + this.OnPropertyChanged("TransactionCurrency_QueueItem"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Quote : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Quote() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quote"; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the quote. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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 ((Xrm.Framework.CI.Common.Entities.QuoteState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QuoteState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Pre-Freight Amount converted field to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Discount Amount converted field to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Line Item Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 quote. + /// + [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"); + } + } + + /// + /// 1:N quote_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_activity_parties")] + public System.Collections.Generic.IEnumerable quote_activity_parties + { + get + { + return this.GetRelatedEntities("quote_activity_parties", null); + } + set + { + this.OnPropertyChanging("quote_activity_parties"); + this.SetRelatedEntities("quote_activity_parties", null, value); + this.OnPropertyChanged("quote_activity_parties"); + } + } + + /// + /// 1:N Quote_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ActivityPointers")] + public System.Collections.Generic.IEnumerable Quote_ActivityPointers + { + get + { + return this.GetRelatedEntities("Quote_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("Quote_ActivityPointers"); + this.SetRelatedEntities("Quote_ActivityPointers", null, value); + this.OnPropertyChanged("Quote_ActivityPointers"); + } + } + + /// + /// 1:N Quote_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Annotation")] + public System.Collections.Generic.IEnumerable Quote_Annotation + { + get + { + return this.GetRelatedEntities("Quote_Annotation", null); + } + set + { + this.OnPropertyChanging("Quote_Annotation"); + this.SetRelatedEntities("Quote_Annotation", null, value); + this.OnPropertyChanged("Quote_Annotation"); + } + } + + /// + /// 1:N Quote_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Appointments")] + public System.Collections.Generic.IEnumerable Quote_Appointments + { + get + { + return this.GetRelatedEntities("Quote_Appointments", null); + } + set + { + this.OnPropertyChanging("Quote_Appointments"); + this.SetRelatedEntities("Quote_Appointments", null, value); + this.OnPropertyChanged("Quote_Appointments"); + } + } + + /// + /// 1:N Quote_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_AsyncOperations")] + public System.Collections.Generic.IEnumerable Quote_AsyncOperations + { + get + { + return this.GetRelatedEntities("Quote_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Quote_AsyncOperations"); + this.SetRelatedEntities("Quote_AsyncOperations", null, value); + this.OnPropertyChanged("Quote_AsyncOperations"); + } + } + + /// + /// 1:N Quote_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Quote_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Quote_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Quote_BulkDeleteFailures"); + this.SetRelatedEntities("Quote_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Quote_BulkDeleteFailures"); + } + } + + /// + /// 1:N quote_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections1")] + public System.Collections.Generic.IEnumerable quote_connections1 + { + get + { + return this.GetRelatedEntities("quote_connections1", null); + } + set + { + this.OnPropertyChanging("quote_connections1"); + this.SetRelatedEntities("quote_connections1", null, value); + this.OnPropertyChanged("quote_connections1"); + } + } + + /// + /// 1:N quote_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_connections2")] + public System.Collections.Generic.IEnumerable quote_connections2 + { + get + { + return this.GetRelatedEntities("quote_connections2", null); + } + set + { + this.OnPropertyChanging("quote_connections2"); + this.SetRelatedEntities("quote_connections2", null, value); + this.OnPropertyChanged("quote_connections2"); + } + } + + /// + /// 1:N quote_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_details")] + public System.Collections.Generic.IEnumerable quote_details + { + get + { + return this.GetRelatedEntities("quote_details", null); + } + set + { + this.OnPropertyChanging("quote_details"); + this.SetRelatedEntities("quote_details", null, value); + this.OnPropertyChanged("quote_details"); + } + } + + /// + /// 1:N Quote_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Quote_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Quote_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Quote_DuplicateBaseRecord"); + this.SetRelatedEntities("Quote_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Quote_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Quote_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Quote_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Quote_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Quote_DuplicateMatchingRecord"); + this.SetRelatedEntities("Quote_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Quote_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N Quote_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Emails")] + public System.Collections.Generic.IEnumerable Quote_Emails + { + get + { + return this.GetRelatedEntities("Quote_Emails", null); + } + set + { + this.OnPropertyChanging("Quote_Emails"); + this.SetRelatedEntities("Quote_Emails", null, value); + this.OnPropertyChanged("Quote_Emails"); + } + } + + /// + /// 1:N Quote_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Faxes")] + public System.Collections.Generic.IEnumerable Quote_Faxes + { + get + { + return this.GetRelatedEntities("Quote_Faxes", null); + } + set + { + this.OnPropertyChanging("Quote_Faxes"); + this.SetRelatedEntities("Quote_Faxes", null, value); + this.OnPropertyChanged("Quote_Faxes"); + } + } + + /// + /// 1:N Quote_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Letters")] + public System.Collections.Generic.IEnumerable Quote_Letters + { + get + { + return this.GetRelatedEntities("Quote_Letters", null); + } + set + { + this.OnPropertyChanging("Quote_Letters"); + this.SetRelatedEntities("Quote_Letters", null, value); + this.OnPropertyChanged("Quote_Letters"); + } + } + + /// + /// 1:N quote_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_orders")] + public System.Collections.Generic.IEnumerable quote_orders + { + get + { + return this.GetRelatedEntities("quote_orders", null); + } + set + { + this.OnPropertyChanging("quote_orders"); + this.SetRelatedEntities("quote_orders", null, value); + this.OnPropertyChanged("quote_orders"); + } + } + + /// + /// 1:N Quote_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Phonecalls")] + public System.Collections.Generic.IEnumerable Quote_Phonecalls + { + get + { + return this.GetRelatedEntities("Quote_Phonecalls", null); + } + set + { + this.OnPropertyChanging("Quote_Phonecalls"); + this.SetRelatedEntities("Quote_Phonecalls", null, value); + this.OnPropertyChanged("Quote_Phonecalls"); + } + } + + /// + /// 1:N quote_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable quote_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("quote_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quote_principalobjectattributeaccess"); + this.SetRelatedEntities("quote_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quote_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Quote_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ProcessSessions")] + public System.Collections.Generic.IEnumerable Quote_ProcessSessions + { + get + { + return this.GetRelatedEntities("Quote_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Quote_ProcessSessions"); + this.SetRelatedEntities("Quote_ProcessSessions", null, value); + this.OnPropertyChanged("Quote_ProcessSessions"); + } + } + + /// + /// 1:N Quote_QuoteClose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_QuoteClose")] + public System.Collections.Generic.IEnumerable Quote_QuoteClose + { + get + { + return this.GetRelatedEntities("Quote_QuoteClose", null); + } + set + { + this.OnPropertyChanging("Quote_QuoteClose"); + this.SetRelatedEntities("Quote_QuoteClose", null, value); + this.OnPropertyChanged("Quote_QuoteClose"); + } + } + + /// + /// 1:N Quote_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable Quote_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("Quote_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Quote_RecurringAppointmentMasters"); + this.SetRelatedEntities("Quote_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Quote_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N Quote_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ServiceAppointments")] + public System.Collections.Generic.IEnumerable Quote_ServiceAppointments + { + get + { + return this.GetRelatedEntities("Quote_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Quote_ServiceAppointments"); + this.SetRelatedEntities("Quote_ServiceAppointments", null, value); + this.OnPropertyChanged("Quote_ServiceAppointments"); + } + } + + /// + /// 1:N Quote_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable Quote_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("Quote_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Quote_SharepointDocumentLocation"); + this.SetRelatedEntities("Quote_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Quote_SharepointDocumentLocation"); + } + } + + /// + /// 1:N Quote_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Tasks")] + public System.Collections.Generic.IEnumerable Quote_Tasks + { + get + { + return this.GetRelatedEntities("Quote_Tasks", null); + } + set + { + this.OnPropertyChanging("Quote_Tasks"); + this.SetRelatedEntities("Quote_Tasks", null, value); + this.OnPropertyChanged("Quote_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_quote + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quote")] + public System.Collections.Generic.IEnumerable userentityinstancedata_quote + { + get + { + return this.GetRelatedEntities("userentityinstancedata_quote", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quote"); + this.SetRelatedEntities("userentityinstancedata_quote", null, value); + this.OnPropertyChanged("userentityinstancedata_quote"); + } + } + + /// + /// N:N contactquotes_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactquotes_association")] + public System.Collections.Generic.IEnumerable contactquotes_association + { + get + { + return this.GetRelatedEntities("contactquotes_association", null); + } + set + { + this.OnPropertyChanging("contactquotes_association"); + this.SetRelatedEntities("contactquotes_association", null, value); + this.OnPropertyChanged("contactquotes_association"); + } + } + + /// + /// N:1 business_unit_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quotes")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_quotes + { + get + { + return this.GetRelatedEntity("business_unit_quotes", null); + } + } + + /// + /// N:1 campaign_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_quotes")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_quotes + { + get + { + return this.GetRelatedEntity("campaign_quotes", null); + } + set + { + this.OnPropertyChanging("campaign_quotes"); + this.SetRelatedEntity("campaign_quotes", null, value); + this.OnPropertyChanged("campaign_quotes"); + } + } + + /// + /// N:1 lk_quote_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quote_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quote_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quote_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quote_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quote_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_quotebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotebase_createdby + { + get + { + return this.GetRelatedEntity("lk_quotebase_createdby", null); + } + } + + /// + /// N:1 lk_quotebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quotebase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_quotes")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_quotes + { + get + { + return this.GetRelatedEntity("opportunity_quotes", null); + } + set + { + this.OnPropertyChanging("opportunity_quotes"); + this.SetRelatedEntity("opportunity_quotes", null, value); + this.OnPropertyChanged("opportunity_quotes"); + } + } + + /// + /// N:1 price_level_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_quotes")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_quotes + { + get + { + return this.GetRelatedEntity("price_level_quotes", null); + } + set + { + this.OnPropertyChanging("price_level_quotes"); + this.SetRelatedEntity("price_level_quotes", null, value); + this.OnPropertyChanged("price_level_quotes"); + } + } + + /// + /// N:1 processstage_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_quotes")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_quotes + { + get + { + return this.GetRelatedEntity("processstage_quotes", null); + } + set + { + this.OnPropertyChanging("processstage_quotes"); + this.SetRelatedEntity("processstage_quotes", null, value); + this.OnPropertyChanged("processstage_quotes"); + } + } + + /// + /// N:1 quote_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account quote_customer_accounts + { + get + { + return this.GetRelatedEntity("quote_customer_accounts", null); + } + set + { + this.OnPropertyChanging("quote_customer_accounts"); + this.SetRelatedEntity("quote_customer_accounts", null, value); + this.OnPropertyChanged("quote_customer_accounts"); + } + } + + /// + /// N:1 quote_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact quote_customer_contacts + { + get + { + return this.GetRelatedEntity("quote_customer_contacts", null); + } + set + { + this.OnPropertyChanging("quote_customer_contacts"); + this.SetRelatedEntity("quote_customer_contacts", null, value); + this.OnPropertyChanged("quote_customer_contacts"); + } + } + + /// + /// N:1 system_user_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotes")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_quotes + { + get + { + return this.GetRelatedEntity("system_user_quotes", null); + } + } + + /// + /// N:1 team_quotes + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quotes")] + public Xrm.Framework.CI.Common.Entities.Team team_quotes + { + get + { + return this.GetRelatedEntity("team_quotes", null); + } + } + + /// + /// N:1 transactioncurrency_quote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quote")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_quote + { + get + { + return this.GetRelatedEntity("transactioncurrency_quote", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quote"); + this.SetRelatedEntity("transactioncurrency_quote", null, value); + this.OnPropertyChanged("transactioncurrency_quote"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QuoteClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QuoteClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quoteclose"; + + 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)); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 quote close 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 quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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 ((Xrm.Framework.CI.Common.Entities.QuoteCloseState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.QuoteCloseState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N quoteclose_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quoteclose_activity_parties")] + public System.Collections.Generic.IEnumerable quoteclose_activity_parties + { + get + { + return this.GetRelatedEntities("quoteclose_activity_parties", null); + } + set + { + this.OnPropertyChanging("quoteclose_activity_parties"); + this.SetRelatedEntities("quoteclose_activity_parties", null, value); + this.OnPropertyChanged("quoteclose_activity_parties"); + } + } + + /// + /// 1:N QuoteClose_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_Annotation")] + public System.Collections.Generic.IEnumerable QuoteClose_Annotation + { + get + { + return this.GetRelatedEntities("QuoteClose_Annotation", null); + } + set + { + this.OnPropertyChanging("QuoteClose_Annotation"); + this.SetRelatedEntities("QuoteClose_Annotation", null, value); + this.OnPropertyChanged("QuoteClose_Annotation"); + } + } + + /// + /// 1:N QuoteClose_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_AsyncOperations")] + public System.Collections.Generic.IEnumerable QuoteClose_AsyncOperations + { + get + { + return this.GetRelatedEntities("QuoteClose_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteClose_AsyncOperations"); + this.SetRelatedEntities("QuoteClose_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteClose_AsyncOperations"); + } + } + + /// + /// 1:N QuoteClose_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteClose_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QuoteClose_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QuoteClose_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QuoteClose_BulkDeleteFailures"); + this.SetRelatedEntities("QuoteClose_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QuoteClose_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quoteclose")] + public System.Collections.Generic.IEnumerable userentityinstancedata_quoteclose + { + get + { + return this.GetRelatedEntities("userentityinstancedata_quoteclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quoteclose"); + this.SetRelatedEntities("userentityinstancedata_quoteclose", null, value); + this.OnPropertyChanged("userentityinstancedata_quoteclose"); + } + } + + /// + /// N:1 activity_pointer_quote_close + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_quote_close")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_quote_close + { + get + { + return this.GetRelatedEntity("activity_pointer_quote_close", null); + } + set + { + this.OnPropertyChanging("activity_pointer_quote_close"); + this.SetRelatedEntity("activity_pointer_quote_close", null, value); + this.OnPropertyChanged("activity_pointer_quote_close"); + } + } + + /// + /// N:1 business_unit_quote_close_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_quote_close_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_quote_close_activities + { + get + { + return this.GetRelatedEntity("business_unit_quote_close_activities", null); + } + } + + /// + /// N:1 lk_quoteclose_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_createdby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_createdby", null); + } + } + + /// + /// N:1 lk_quoteclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quoteclose_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_modifiedby", null); + } + } + + /// + /// N:1 lk_quoteclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quoteclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quoteclose_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Quote_QuoteClose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_QuoteClose")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_QuoteClose + { + get + { + return this.GetRelatedEntity("Quote_QuoteClose", null); + } + set + { + this.OnPropertyChanging("Quote_QuoteClose"); + this.SetRelatedEntity("Quote_QuoteClose", null, value); + this.OnPropertyChanged("Quote_QuoteClose"); + } + } + + /// + /// N:1 service_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_quoteclose")] + public Xrm.Framework.CI.Common.Entities.Service service_quoteclose + { + get + { + return this.GetRelatedEntity("service_quoteclose", null); + } + set + { + this.OnPropertyChanging("service_quoteclose"); + this.SetRelatedEntity("service_quoteclose", null, value); + this.OnPropertyChanged("service_quoteclose"); + } + } + + /// + /// N:1 team_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quoteclose")] + public Xrm.Framework.CI.Common.Entities.Team team_quoteclose + { + get + { + return this.GetRelatedEntity("team_quoteclose", null); + } + } + + /// + /// N:1 user_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_quoteclose")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_quoteclose + { + get + { + return this.GetRelatedEntity("user_quoteclose", null); + } + } + } + + /// + /// Product line item in a quote. The details include such information as product ID, description, quantity, and cost. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("quotedetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class QuoteDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public QuoteDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quotedetail"; + + public const int EntityTypeCode = 1085; + + 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 quote 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the quote 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 quote 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"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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 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 quote 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 CRM product catalog or is a write-in product specific to the quote. + /// + [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 quote product to easily identify the product in the quote and make sure it's listed in the correct order. + /// + [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 quote product to deduct any negotiated or other savings from the product total on the quote. + /// + [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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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 quote detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the quote detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the quote detail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Type the price per unit of the quote product. The default is to the value in the price list specified on the quote 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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Type a name or description to identify the type of write-in product included in the quote. + /// + [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 quote to link the product's pricing and other information to the quote. + /// + [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"); + } + } + + /// + /// Type the amount or quantity of the product requested 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"); + } + } + + /// + /// Unique identifier of the product line item in the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotedetailid")] + public System.Nullable QuoteDetailId + { + get + { + return this.GetAttributeValue>("quotedetailid"); + } + set + { + this.OnPropertyChanging("QuoteDetailId"); + this.SetAttributeValue("quotedetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QuoteDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotedetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QuoteDetailId = value; + } + } + + /// + /// Unique identifier of the quote for the quote product. + /// + [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"); + } + } + + /// + /// Status of the quote product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotestatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue QuoteStateCode + { + get + { + return this.GetAttributeValue("quotestatecode"); + } + } + + /// + /// Enter the delivery date requested by the customer for the quote 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"); + } + } + + /// + /// Choose the user responsible for the sale of the quote 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"); + } + } + + /// + /// Unique identifier 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Type the tax amount for the quote 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the quote detail. + /// + [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"); + } + } + + /// + /// 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_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// Select whether the quote 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"); + } + } + + /// + /// 1:N QuoteDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable QuoteDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("QuoteDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_AsyncOperations"); + this.SetRelatedEntities("QuoteDetail_AsyncOperations", null, value); + this.OnPropertyChanged("QuoteDetail_AsyncOperations"); + } + } + + /// + /// 1:N QuoteDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable QuoteDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("QuoteDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_BulkDeleteFailures"); + this.SetRelatedEntities("QuoteDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("QuoteDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N quotedetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quotedetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable quotedetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("quotedetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("quotedetail_principalobjectattributeaccess"); + this.SetRelatedEntities("quotedetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("quotedetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N QuoteDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("QuoteDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable QuoteDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("QuoteDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("QuoteDetail_ProcessSessions"); + this.SetRelatedEntities("QuoteDetail_ProcessSessions", null, value); + this.OnPropertyChanged("QuoteDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_quotedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quotedetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_quotedetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_quotedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quotedetail"); + this.SetRelatedEntities("userentityinstancedata_quotedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_quotedetail"); + } + } + + /// + /// N:1 lk_quotedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quotedetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_quotedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_quotedetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_quotedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_quotedetailbase_createdby", null); + } + } + + /// + /// N:1 lk_quotedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_quotedetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_quotedetailbase_modifiedby", null); + } + } + + /// + /// N:1 product_quote_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_quote_details")] + public Xrm.Framework.CI.Common.Entities.Product product_quote_details + { + get + { + return this.GetRelatedEntity("product_quote_details", null); + } + set + { + this.OnPropertyChanging("product_quote_details"); + this.SetRelatedEntity("product_quote_details", null, value); + this.OnPropertyChanged("product_quote_details"); + } + } + + /// + /// N:1 quote_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_details")] + public Xrm.Framework.CI.Common.Entities.Quote quote_details + { + get + { + return this.GetRelatedEntity("quote_details", null); + } + set + { + this.OnPropertyChanging("quote_details"); + this.SetRelatedEntity("quote_details", null, value); + this.OnPropertyChanged("quote_details"); + } + } + + /// + /// N:1 system_user_quotedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotedetail")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_quotedetail + { + get + { + return this.GetRelatedEntity("system_user_quotedetail", null); + } + set + { + this.OnPropertyChanging("system_user_quotedetail"); + this.SetRelatedEntity("system_user_quotedetail", null, value); + this.OnPropertyChanged("system_user_quotedetail"); + } + } + + /// + /// N:1 transactioncurrency_quotedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quotedetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_quotedetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_quotedetail", null); + } + } + + /// + /// N:1 unit_of_measurement_quote_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_quote_details")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_quote_details + { + get + { + return this.GetRelatedEntity("unit_of_measurement_quote_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_quote_details"); + this.SetRelatedEntity("unit_of_measurement_quote_details", null, value); + this.OnPropertyChanged("unit_of_measurement_quote_details"); + } + } + } + + /// + /// Recurrence Rule represents the pattern of incidence of recurring entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("recurrencerule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RecurrenceRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RecurrenceRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "recurrencerule"; + + public const int EntityTypeCode = 4250; + + 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 recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the recurrence rule 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 recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// The day of the month on which the recurring appointment or task occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dayofmonth")] + public System.Nullable DayOfMonth + { + get + { + return this.GetAttributeValue>("dayofmonth"); + } + set + { + this.OnPropertyChanging("DayOfMonth"); + this.SetAttributeValue("dayofmonth", value); + this.OnPropertyChanged("DayOfMonth"); + } + } + + /// + /// Bitmask representing the days of the week on which the recurring appointment or task occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daysofweekmask")] + public System.Nullable DaysOfWeekMask + { + get + { + return this.GetAttributeValue>("daysofweekmask"); + } + set + { + this.OnPropertyChanging("DaysOfWeekMask"); + this.SetAttributeValue("daysofweekmask", value); + this.OnPropertyChanged("DaysOfWeekMask"); + } + } + + /// + /// Duration of the recurrence pattern in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// The actual end date for expansion of the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveenddate")] + public System.Nullable EffectiveEndDate + { + get + { + return this.GetAttributeValue>("effectiveenddate"); + } + set + { + this.OnPropertyChanging("EffectiveEndDate"); + this.SetAttributeValue("effectiveenddate", value); + this.OnPropertyChanged("EffectiveEndDate"); + } + } + + /// + /// The actual start date for expansion of the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivestartdate")] + public System.Nullable EffectiveStartDate + { + get + { + return this.GetAttributeValue>("effectivestartdate"); + } + set + { + this.OnPropertyChanging("EffectiveStartDate"); + this.SetAttributeValue("effectivestartdate", value); + this.OnPropertyChanged("EffectiveStartDate"); + } + } + + /// + /// End time of the associated activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endtime")] + public System.Nullable EndTime + { + get + { + return this.GetAttributeValue>("endtime"); + } + set + { + this.OnPropertyChanging("EndTime"); + this.SetAttributeValue("endtime", value); + this.OnPropertyChanged("EndTime"); + } + } + + /// + /// First day Of week for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstdayofweek")] + public System.Nullable FirstDayOfWeek + { + get + { + return this.GetAttributeValue>("firstdayofweek"); + } + set + { + this.OnPropertyChanging("FirstDayOfWeek"); + this.SetAttributeValue("firstdayofweek", value); + this.OnPropertyChanged("FirstDayOfWeek"); + } + } + + /// + /// Specifies the count for which the recurrence pattern is valid for a given interval. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instance")] + public Microsoft.Xrm.Sdk.OptionSetValue Instance + { + get + { + return this.GetAttributeValue("instance"); + } + set + { + this.OnPropertyChanging("Instance"); + this.SetAttributeValue("instance", value); + this.OnPropertyChanged("Instance"); + } + } + + /// + /// Number of units of a given recurrence type between occurrences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("interval")] + public System.Nullable Interval + { + get + { + return this.GetAttributeValue>("interval"); + } + set + { + this.OnPropertyChanging("Interval"); + this.SetAttributeValue("interval", value); + this.OnPropertyChanged("Interval"); + } + } + + /// + /// Specifies whether the monthly recurrence pattern is Nth monthly, valid only for monthly recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthmonthly")] + public System.Nullable IsNthMonthly + { + get + { + return this.GetAttributeValue>("isnthmonthly"); + } + set + { + this.OnPropertyChanging("IsNthMonthly"); + this.SetAttributeValue("isnthmonthly", value); + this.OnPropertyChanged("IsNthMonthly"); + } + } + + /// + /// Specifies whether the yearly recurrence pattern is Nth yearly, valid only for yearly recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthyearly")] + public System.Nullable IsNthYearly + { + get + { + return this.GetAttributeValue>("isnthyearly"); + } + set + { + this.OnPropertyChanging("IsNthYearly"); + this.SetAttributeValue("isnthyearly", value); + this.OnPropertyChanged("IsNthYearly"); + } + } + + /// + /// Valid only for task type recurrence,indicates whether task should be regenerated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isregenerate")] + public System.Nullable IsRegenerate + { + get + { + return this.GetAttributeValue>("isregenerate"); + } + set + { + this.OnPropertyChanging("IsRegenerate"); + this.SetAttributeValue("isregenerate", value); + this.OnPropertyChanged("IsRegenerate"); + } + } + + /// + /// Specifies whether the weekly recurrence pattern is actually a daily every weekday pattern, valid only for weekly recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isweekdaypattern")] + public System.Nullable IsWeekDayPattern + { + get + { + return this.GetAttributeValue>("isweekdaypattern"); + } + set + { + this.OnPropertyChanging("IsWeekDayPattern"); + this.SetAttributeValue("isweekdaypattern", value); + this.OnPropertyChanged("IsWeekDayPattern"); + } + } + + /// + /// Unique identifier of the user who last modified the recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the recurrence rule was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Specifies the month of the year valid for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("monthofyear")] + public Microsoft.Xrm.Sdk.OptionSetValue MonthOfYear + { + get + { + return this.GetAttributeValue("monthofyear"); + } + set + { + this.OnPropertyChanging("MonthOfYear"); + this.SetAttributeValue("monthofyear", value); + this.OnPropertyChanged("MonthOfYear"); + } + } + + /// + /// Unique identifier of the object with which the recurrence rule is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Number of occurrences of the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("occurrences")] + public System.Nullable Occurrences + { + get + { + return this.GetAttributeValue>("occurrences"); + } + set + { + this.OnPropertyChanging("Occurrences"); + this.SetAttributeValue("occurrences", value); + this.OnPropertyChanged("Occurrences"); + } + } + + /// + /// Unique identifier of the user or team who owns the recurrence rule. + /// + [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 recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// End date of the Recurrence Range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternenddate")] + public System.Nullable PatternEndDate + { + get + { + return this.GetAttributeValue>("patternenddate"); + } + set + { + this.OnPropertyChanging("PatternEndDate"); + this.SetAttributeValue("patternenddate", value); + this.OnPropertyChanged("PatternEndDate"); + } + } + + /// + /// Pattern End Type of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternendtype")] + public Microsoft.Xrm.Sdk.OptionSetValue PatternEndType + { + get + { + return this.GetAttributeValue("patternendtype"); + } + set + { + this.OnPropertyChanging("PatternEndType"); + this.SetAttributeValue("patternendtype", value); + this.OnPropertyChanged("PatternEndType"); + } + } + + /// + /// Start date of the Recurrence Range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternstartdate")] + public System.Nullable PatternStartDate + { + get + { + return this.GetAttributeValue>("patternstartdate"); + } + set + { + this.OnPropertyChanging("PatternStartDate"); + this.SetAttributeValue("patternstartdate", value); + this.OnPropertyChanged("PatternStartDate"); + } + } + + /// + /// Type of Recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepatterntype")] + public Microsoft.Xrm.Sdk.OptionSetValue RecurrencePatternType + { + get + { + return this.GetAttributeValue("recurrencepatterntype"); + } + set + { + this.OnPropertyChanging("RecurrencePatternType"); + this.SetAttributeValue("recurrencepatterntype", value); + this.OnPropertyChanged("RecurrencePatternType"); + } + } + + /// + /// Unique identifier of the entity associated with recurrence rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ruleid")] + public System.Nullable RuleId + { + get + { + return this.GetAttributeValue>("ruleid"); + } + set + { + this.OnPropertyChanging("RuleId"); + this.SetAttributeValue("ruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RuleId = value; + } + } + + /// + /// Start time of the recurring activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N recurrencerule_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurrencerule_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable recurrencerule_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("recurrencerule_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("recurrencerule_recurringappointmentmaster"); + this.SetRelatedEntities("recurrencerule_recurringappointmentmaster", null, value); + this.OnPropertyChanged("recurrencerule_recurringappointmentmaster"); + } + } + + /// + /// N:1 activity_pointer_recurrencerule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurrencerule")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_recurrencerule + { + get + { + return this.GetRelatedEntity("activity_pointer_recurrencerule", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurrencerule"); + this.SetRelatedEntity("activity_pointer_recurrencerule", null, value); + this.OnPropertyChanged("activity_pointer_recurrencerule"); + } + } + + /// + /// N:1 business_unit_recurrencerule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurrencerule")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_recurrencerule + { + get + { + return this.GetRelatedEntity("business_unit_recurrencerule", null); + } + } + + /// + /// N:1 lk_recurrencerule_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerule_createdby + { + get + { + return this.GetRelatedEntity("lk_recurrencerule_createdby", null); + } + } + + /// + /// N:1 lk_recurrencerule_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerule_modifiedby + { + get + { + return this.GetRelatedEntity("lk_recurrencerule_modifiedby", null); + } + } + + /// + /// N:1 lk_recurrencerulebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerulebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurrencerulebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_recurrencerulebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurrencerulebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurrencerulebase_modifiedonbehalfby", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum RecurringAppointmentMasterState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// The Master appointment of a recurring appointment series. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("recurringappointmentmaster")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RecurringAppointmentMaster : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RecurringAppointmentMaster() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "recurringappointmentmaster"; + + public const int EntityTypeCode = 4251; + + 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 recurring appointment series. + /// + [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"); + } + } + + /// + /// Type a category to identify the recurring appointment type, such as status meeting or service call, to tie the appointment to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// The day of the month on which the recurring appointment occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dayofmonth")] + public System.Nullable DayOfMonth + { + get + { + return this.GetAttributeValue>("dayofmonth"); + } + set + { + this.OnPropertyChanging("DayOfMonth"); + this.SetAttributeValue("dayofmonth", value); + this.OnPropertyChanged("DayOfMonth"); + } + } + + /// + /// Bitmask that represents the days of the week on which the recurring appointment occurs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daysofweekmask")] + public System.Nullable DaysOfWeekMask + { + get + { + return this.GetAttributeValue>("daysofweekmask"); + } + set + { + this.OnPropertyChanging("DaysOfWeekMask"); + this.SetAttributeValue("daysofweekmask", value); + this.OnPropertyChanged("DaysOfWeekMask"); + } + } + + /// + /// List of deleted instances of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletedexceptionslist")] + public string DeletedExceptionsList + { + get + { + return this.GetAttributeValue("deletedexceptionslist"); + } + } + + /// + /// Type additional information to describe the recurring appointment, such as key talking points or objectives. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Duration of the recurring appointment series in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// Actual end date of the recurring appointment series based on the specified end date and recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveenddate")] + public System.Nullable EffectiveEndDate + { + get + { + return this.GetAttributeValue>("effectiveenddate"); + } + set + { + this.OnPropertyChanging("EffectiveEndDate"); + this.SetAttributeValue("effectiveenddate", value); + this.OnPropertyChanged("EffectiveEndDate"); + } + } + + /// + /// Actual start date of the recurring appointment series based on the specified start date and recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivestartdate")] + public System.Nullable EffectiveStartDate + { + get + { + return this.GetAttributeValue>("effectivestartdate"); + } + set + { + this.OnPropertyChanging("EffectiveStartDate"); + this.SetAttributeValue("effectivestartdate", value); + this.OnPropertyChanged("EffectiveStartDate"); + } + } + + /// + /// End time of the associated activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endtime")] + public System.Nullable EndTime + { + get + { + return this.GetAttributeValue>("endtime"); + } + set + { + this.OnPropertyChanging("EndTime"); + this.SetAttributeValue("endtime", value); + this.OnPropertyChanged("EndTime"); + } + } + + /// + /// 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"); + } + } + + /// + /// State code to indicate whether the recurring appointment series is expanded fully or partially. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expansionstatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ExpansionStateCode + { + get + { + return this.GetAttributeValue("expansionstatecode"); + } + } + + /// + /// First day of week for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstdayofweek")] + public System.Nullable FirstDayOfWeek + { + get + { + return this.GetAttributeValue>("firstdayofweek"); + } + set + { + this.OnPropertyChanging("FirstDayOfWeek"); + this.SetAttributeValue("firstdayofweek", value); + this.OnPropertyChanged("FirstDayOfWeek"); + } + } + + /// + /// Unique Outlook identifier to correlate recurring appointment series across Exchange mailboxes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("globalobjectid")] + public string GlobalObjectId + { + get + { + return this.GetAttributeValue("globalobjectid"); + } + set + { + this.OnPropertyChanging("GlobalObjectId"); + this.SetAttributeValue("globalobjectid", value); + this.OnPropertyChanged("GlobalObjectId"); + } + } + + /// + /// Unique identifier of the recurring appointment series for which the recurrence information was updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupid")] + public Microsoft.Xrm.Sdk.EntityReference GroupId + { + get + { + return this.GetAttributeValue("groupid"); + } + } + + /// + /// 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"); + } + } + + /// + /// Specifies the recurring appointment series to occur on every Nth day of a month. Valid for monthly and yearly recurrence patterns only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instance")] + public Microsoft.Xrm.Sdk.OptionSetValue Instance + { + get + { + return this.GetAttributeValue("instance"); + } + set + { + this.OnPropertyChanging("Instance"); + this.SetAttributeValue("instance", value); + this.OnPropertyChanged("Instance"); + } + } + + /// + /// Type of instance of a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Number of units of a given recurrence type between occurrences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("interval")] + public System.Nullable Interval + { + get + { + return this.GetAttributeValue>("interval"); + } + set + { + this.OnPropertyChanging("Interval"); + this.SetAttributeValue("interval", value); + this.OnPropertyChanged("Interval"); + } + } + + /// + /// Select whether the recurring appointment is an all-day event to make sure that the required resources are scheduled for the full day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isalldayevent")] + public System.Nullable IsAllDayEvent + { + get + { + return this.GetAttributeValue>("isalldayevent"); + } + set + { + this.OnPropertyChanging("IsAllDayEvent"); + this.SetAttributeValue("isalldayevent", value); + this.OnPropertyChanged("IsAllDayEvent"); + } + } + + /// + /// Indicates whether the recurring appointment series 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"); + } + } + + /// + /// Indicates whether the recurring appointment series should occur after every N months. Valid for monthly recurrence pattern only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthmonthly")] + public System.Nullable IsNthMonthly + { + get + { + return this.GetAttributeValue>("isnthmonthly"); + } + set + { + this.OnPropertyChanging("IsNthMonthly"); + this.SetAttributeValue("isnthmonthly", value); + this.OnPropertyChanged("IsNthMonthly"); + } + } + + /// + /// Indicates whether the recurring appointment series should occur after every N years. Valid for yearly recurrence pattern only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isnthyearly")] + public System.Nullable IsNthYearly + { + get + { + return this.GetAttributeValue>("isnthyearly"); + } + set + { + this.OnPropertyChanging("IsNthYearly"); + this.SetAttributeValue("isnthyearly", value); + this.OnPropertyChanged("IsNthYearly"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isregenerate")] + public System.Nullable IsRegenerate + { + get + { + return this.GetAttributeValue>("isregenerate"); + } + set + { + this.OnPropertyChanging("IsRegenerate"); + this.SetAttributeValue("isregenerate", value); + this.OnPropertyChanged("IsRegenerate"); + } + } + + /// + /// Indicates 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"); + } + } + + /// + /// Indicates whether the weekly recurrence pattern is a daily weekday pattern. Valid for weekly recurrence pattern only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isweekdaypattern")] + public System.Nullable IsWeekDayPattern + { + get + { + return this.GetAttributeValue>("isweekdaypattern"); + } + set + { + this.OnPropertyChanging("IsWeekDayPattern"); + this.SetAttributeValue("isweekdaypattern", value); + this.OnPropertyChanged("IsWeekDayPattern"); + } + } + + /// + /// Indicates whether the recurring appointment series 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"); + } + } + + /// + /// Date of last expanded instance of a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastexpandedinstancedate")] + public System.Nullable LastExpandedInstanceDate + { + get + { + return this.GetAttributeValue>("lastexpandedinstancedate"); + } + } + + /// + /// Type the location where the recurring appointment will take place, such as a conference room or customer office. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("location")] + public string Location + { + get + { + return this.GetAttributeValue("location"); + } + set + { + this.OnPropertyChanging("Location"); + this.SetAttributeValue("location", value); + this.OnPropertyChanged("Location"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Indicates the month of the year for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("monthofyear")] + public Microsoft.Xrm.Sdk.OptionSetValue MonthOfYear + { + get + { + return this.GetAttributeValue("monthofyear"); + } + set + { + this.OnPropertyChanging("MonthOfYear"); + this.SetAttributeValue("monthofyear", value); + this.OnPropertyChanged("MonthOfYear"); + } + } + + /// + /// Date of the next expanded instance of a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nextexpansioninstancedate")] + public System.Nullable NextExpansionInstanceDate + { + get + { + return this.GetAttributeValue>("nextexpansioninstancedate"); + } + } + + /// + /// Number of appointment occurrences in a recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("occurrences")] + public System.Nullable Occurrences + { + get + { + return this.GetAttributeValue>("occurrences"); + } + set + { + this.OnPropertyChanging("Occurrences"); + this.SetAttributeValue("occurrences", value); + this.OnPropertyChanged("Occurrences"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are not needed at the recurring appointment, but can optionally attend. + /// + [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"); + } + } + + /// + /// Enter the user who is in charge of coordinating or leading the recurring appointment to make sure the appointment is displayed in the user's My Activities view. + /// + [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"); + } + } + + /// + /// Unique identifier of the Microsoft Office Outlook recurring appointment series owner that correlates to the PR_OWNER_APPT_ID MAPI property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlookownerapptid")] + public System.Nullable OutlookOwnerApptId + { + get + { + return this.GetAttributeValue>("outlookownerapptid"); + } + set + { + this.OnPropertyChanging("OutlookOwnerApptId"); + this.SetAttributeValue("outlookownerapptid", value); + this.OnPropertyChanged("OutlookOwnerApptId"); + } + } + + /// + /// 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 recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// End date of the recurrence range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternenddate")] + public System.Nullable PatternEndDate + { + get + { + return this.GetAttributeValue>("patternenddate"); + } + set + { + this.OnPropertyChanging("PatternEndDate"); + this.SetAttributeValue("patternenddate", value); + this.OnPropertyChanged("PatternEndDate"); + } + } + + /// + /// Select the type of end date for the recurring appointment, such as no end date or the number of occurrences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternendtype")] + public Microsoft.Xrm.Sdk.OptionSetValue PatternEndType + { + get + { + return this.GetAttributeValue("patternendtype"); + } + set + { + this.OnPropertyChanging("PatternEndType"); + this.SetAttributeValue("patternendtype", value); + this.OnPropertyChanged("PatternEndType"); + } + } + + /// + /// Start date of the recurrence range. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("patternstartdate")] + public System.Nullable PatternStartDate + { + get + { + return this.GetAttributeValue>("patternstartdate"); + } + set + { + this.OnPropertyChanging("PatternStartDate"); + this.SetAttributeValue("patternstartdate", value); + this.OnPropertyChanged("PatternStartDate"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Select the pattern type for the recurring appointment to indicate whether the appointment occurs daily, weekly, monthly, or yearly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepatterntype")] + public Microsoft.Xrm.Sdk.OptionSetValue RecurrencePatternType + { + get + { + return this.GetAttributeValue("recurrencepatterntype"); + } + set + { + this.OnPropertyChanging("RecurrencePatternType"); + this.SetAttributeValue("recurrencepatterntype", value); + this.OnPropertyChanged("RecurrencePatternType"); + } + } + + /// + /// Unique identifier of the object with which the recurring appointment series 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"); + } + } + + /// + /// Enter the account, contact, lead, user, or other equipment resources that are required to attend the recurring appointment. + /// + [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"); + } + } + + /// + /// Unique identifier of the recurrence rule that is associated with the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ruleid")] + public Microsoft.Xrm.Sdk.EntityReference RuleId + { + get + { + return this.GetAttributeValue("ruleid"); + } + } + + /// + /// Scheduled end time of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + } + + /// + /// Scheduled start time of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + } + + /// + /// Indicates whether the recurring appointment series is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesstatus")] + public System.Nullable SeriesStatus + { + get + { + return this.GetAttributeValue>("seriesstatus"); + } + set + { + this.OnPropertyChanging("SeriesStatus"); + this.SetAttributeValue("seriesstatus", value); + this.OnPropertyChanged("SeriesStatus"); + } + } + + /// + /// Unique identifier for an associated service. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Start time of the recurring appointment series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// Shows whether the recurring appointment is open, scheduled, completed, or canceled. Completed and canceled appointments are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.RecurringAppointmentMasterState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.RecurringAppointmentMasterState), 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 recurring appointment'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"); + } + } + + /// + /// Type a subcategory to identify the recurring appointment type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the recurring appointment. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N recurringappointmentmaster_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_activity_parties")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_activity_parties + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_activity_parties", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_activity_parties"); + this.SetRelatedEntities("recurringappointmentmaster_activity_parties", null, value); + this.OnPropertyChanged("recurringappointmentmaster_activity_parties"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_Annotation")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_Annotation + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_Annotation", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_Annotation"); + this.SetRelatedEntities("RecurringAppointmentMaster_Annotation", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_Annotation"); + } + } + + /// + /// 1:N recurringappointmentmaster_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_appointment")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_appointment + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_appointment", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_appointment"); + this.SetRelatedEntities("recurringappointmentmaster_appointment", null, value); + this.OnPropertyChanged("recurringappointmentmaster_appointment"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_AsyncOperations")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_AsyncOperations + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_AsyncOperations"); + this.SetRelatedEntities("RecurringAppointmentMaster_AsyncOperations", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_AsyncOperations"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_BulkDeleteFailures"); + this.SetRelatedEntities("RecurringAppointmentMaster_BulkDeleteFailures", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_BulkDeleteFailures"); + } + } + + /// + /// 1:N recurringappointmentmaster_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_campaignresponse")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_campaignresponse + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_campaignresponse", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_campaignresponse"); + this.SetRelatedEntities("recurringappointmentmaster_campaignresponse", null, value); + this.OnPropertyChanged("recurringappointmentmaster_campaignresponse"); + } + } + + /// + /// 1:N recurringappointmentmaster_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections1")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_connections1 + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_connections1", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections1"); + this.SetRelatedEntities("recurringappointmentmaster_connections1", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections1"); + } + } + + /// + /// 1:N recurringappointmentmaster_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_connections2")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_connections2 + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_connections2", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_connections2"); + this.SetRelatedEntities("recurringappointmentmaster_connections2", null, value); + this.OnPropertyChanged("recurringappointmentmaster_connections2"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_DuplicateBaseRecord"); + this.SetRelatedEntities("RecurringAppointmentMaster_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_DuplicateBaseRecord"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_DuplicateMatchingRecord"); + this.SetRelatedEntities("RecurringAppointmentMaster_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N recurringappointmentmaster_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_PostFollows")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_PostFollows + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_PostFollows", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_PostFollows"); + this.SetRelatedEntities("recurringappointmentmaster_PostFollows", null, value); + this.OnPropertyChanged("recurringappointmentmaster_PostFollows"); + } + } + + /// + /// 1:N recurringappointmentmaster_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurringappointmentmaster_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable recurringappointmentmaster_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("recurringappointmentmaster_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("recurringappointmentmaster_principalobjectattributeaccess"); + this.SetRelatedEntities("recurringappointmentmaster_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("recurringappointmentmaster_principalobjectattributeaccess"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_ProcessSessions")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_ProcessSessions + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_ProcessSessions"); + this.SetRelatedEntities("RecurringAppointmentMaster_ProcessSessions", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_ProcessSessions"); + } + } + + /// + /// 1:N RecurringAppointmentMaster_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_QueueItem")] + public System.Collections.Generic.IEnumerable RecurringAppointmentMaster_QueueItem + { + get + { + return this.GetRelatedEntities("RecurringAppointmentMaster_QueueItem", null); + } + set + { + this.OnPropertyChanging("RecurringAppointmentMaster_QueueItem"); + this.SetRelatedEntities("RecurringAppointmentMaster_QueueItem", null, value); + this.OnPropertyChanged("RecurringAppointmentMaster_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable userentityinstancedata_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("userentityinstancedata_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_recurringappointmentmaster"); + this.SetRelatedEntities("userentityinstancedata_recurringappointmentmaster", null, value); + this.OnPropertyChanged("userentityinstancedata_recurringappointmentmaster"); + } + } + + /// + /// N:1 Account_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Account Account_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Account_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Account_RecurringAppointmentMasters"); + this.SetRelatedEntity("Account_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Account_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 activity_pointer_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("activity_pointer_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("activity_pointer_recurringappointmentmaster"); + this.SetRelatedEntity("activity_pointer_recurringappointmentmaster", null, value); + this.OnPropertyChanged("activity_pointer_recurringappointmentmaster"); + } + } + + /// + /// N:1 BulkOperation_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("BulkOperation_RecurringAppointmentMaster")] + public Xrm.Framework.CI.Common.Entities.BulkOperation BulkOperation_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntity("BulkOperation_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("BulkOperation_RecurringAppointmentMaster"); + this.SetRelatedEntity("BulkOperation_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("BulkOperation_RecurringAppointmentMaster"); + } + } + + /// + /// N:1 business_unit_recurringappointmentmaster_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_recurringappointmentmaster_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_recurringappointmentmaster_activities + { + get + { + return this.GetRelatedEntity("business_unit_recurringappointmentmaster_activities", null); + } + } + + /// + /// N:1 Campaign_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Campaign_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Campaign_RecurringAppointmentMasters"); + this.SetRelatedEntity("Campaign_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Campaign_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 CampaignActivity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("CampaignActivity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_RecurringAppointmentMasters"); + this.SetRelatedEntity("CampaignActivity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("CampaignActivity_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Contact_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Contact_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contact_RecurringAppointmentMasters"); + this.SetRelatedEntity("Contact_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contact_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Contract_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Contract_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Contract_RecurringAppointmentMasters"); + this.SetRelatedEntity("Contract_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Contract_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Incident_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Incident_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Incident_RecurringAppointmentMasters"); + this.SetRelatedEntity("Incident_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Incident_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Invoice_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Invoice_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Invoice_RecurringAppointmentMasters"); + this.SetRelatedEntity("Invoice_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Invoice_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Lead_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Lead_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Lead_RecurringAppointmentMasters"); + this.SetRelatedEntity("Lead_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Lead_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_createdby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_createdby", null); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_modifiedby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_modifiedby", null); + } + } + + /// + /// N:1 lk_recurringappointmentmaster_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_recurringappointmentmaster_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_recurringappointmentmaster_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_RecurringAppointmentMasters"); + this.SetRelatedEntity("msdyn_postalbum_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("msdyn_postalbum_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 Opportunity_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Opportunity_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Opportunity_RecurringAppointmentMasters"); + this.SetRelatedEntity("Opportunity_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Opportunity_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 processstage_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_recurringappointmentmasters")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_recurringappointmentmasters + { + get + { + return this.GetRelatedEntity("processstage_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("processstage_recurringappointmentmasters"); + this.SetRelatedEntity("processstage_recurringappointmentmasters", null, value); + this.OnPropertyChanged("processstage_recurringappointmentmasters"); + } + } + + /// + /// N:1 Quote_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("Quote_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("Quote_RecurringAppointmentMasters"); + this.SetRelatedEntity("Quote_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("Quote_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 recurrencerule_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("recurrencerule_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.RecurrenceRule recurrencerule_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("recurrencerule_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("recurrencerule_recurringappointmentmaster"); + this.SetRelatedEntity("recurrencerule_recurringappointmentmaster", null, value); + this.OnPropertyChanged("recurrencerule_recurringappointmentmaster"); + } + } + + /// + /// N:1 SalesOrder_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_RecurringAppointmentMasters")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntity("SalesOrder_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_RecurringAppointmentMasters"); + this.SetRelatedEntity("SalesOrder_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("SalesOrder_RecurringAppointmentMasters"); + } + } + + /// + /// N:1 service_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_recurringappointmentmasters")] + public Xrm.Framework.CI.Common.Entities.Service service_recurringappointmentmasters + { + get + { + return this.GetRelatedEntity("service_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("service_recurringappointmentmasters"); + this.SetRelatedEntity("service_recurringappointmentmasters", null, value); + this.OnPropertyChanged("service_recurringappointmentmasters"); + } + } + + /// + /// N:1 team_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.Team team_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("team_recurringappointmentmaster", null); + } + } + + /// + /// N:1 TransactionCurrency_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_RecurringAppointmentMaster")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntity("TransactionCurrency_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_RecurringAppointmentMaster"); + this.SetRelatedEntity("TransactionCurrency_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("TransactionCurrency_RecurringAppointmentMaster"); + } + } + + /// + /// N:1 user_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("user_recurringappointmentmaster", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum RelationshipRoleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Relationship between an account or contact and an opportunity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("relationshiprole")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RelationshipRole : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RelationshipRole() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "relationshiprole"; + + public const int EntityTypeCode = 4500; + + 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 relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the relationship role 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 relationshiprole. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the relationship role 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 relationshiprole. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique Identifier of the organization that this relationship role belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + public System.Nullable RelationshipRoleId + { + get + { + return this.GetAttributeValue>("relationshiproleid"); + } + set + { + this.OnPropertyChanging("RelationshipRoleId"); + this.SetAttributeValue("relationshiproleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RelationshipRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RelationshipRoleId = value; + } + } + + /// + /// Status of the relationship role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.RelationshipRoleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.RelationshipRoleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the relationship role. + /// + [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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N relationship_role_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable relationship_role_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("relationship_role_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_opportunity_roles"); + this.SetRelatedEntities("relationship_role_customer_opportunity_roles", null, value); + this.OnPropertyChanged("relationship_role_customer_opportunity_roles"); + } + } + + /// + /// 1:N relationship_role_customer_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_customer_role")] + public System.Collections.Generic.IEnumerable relationship_role_customer_role + { + get + { + return this.GetRelatedEntities("relationship_role_customer_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_customer_role"); + this.SetRelatedEntities("relationship_role_customer_role", null, value); + this.OnPropertyChanged("relationship_role_customer_role"); + } + } + + /// + /// 1:N relationship_role_partner_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_partner_role")] + public System.Collections.Generic.IEnumerable relationship_role_partner_role + { + get + { + return this.GetRelatedEntities("relationship_role_partner_role", null); + } + set + { + this.OnPropertyChanging("relationship_role_partner_role"); + this.SetRelatedEntities("relationship_role_partner_role", null, value); + this.OnPropertyChanged("relationship_role_partner_role"); + } + } + + /// + /// 1:N relationship_role_relationship_role_map + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_relationship_role_map")] + public System.Collections.Generic.IEnumerable relationship_role_relationship_role_map + { + get + { + return this.GetRelatedEntities("relationship_role_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("relationship_role_relationship_role_map"); + this.SetRelatedEntities("relationship_role_relationship_role_map", null, value); + this.OnPropertyChanged("relationship_role_relationship_role_map"); + } + } + + /// + /// 1:N RelationshipRole_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_AsyncOperations")] + public System.Collections.Generic.IEnumerable RelationshipRole_AsyncOperations + { + get + { + return this.GetRelatedEntities("RelationshipRole_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_AsyncOperations"); + this.SetRelatedEntities("RelationshipRole_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRole_AsyncOperations"); + } + } + + /// + /// 1:N RelationshipRole_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable RelationshipRole_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("RelationshipRole_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_BulkDeleteFailures"); + this.SetRelatedEntities("RelationshipRole_BulkDeleteFailures", null, value); + this.OnPropertyChanged("RelationshipRole_BulkDeleteFailures"); + } + } + + /// + /// 1:N RelationshipRole_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRole_ProcessSessions")] + public System.Collections.Generic.IEnumerable RelationshipRole_ProcessSessions + { + get + { + return this.GetRelatedEntities("RelationshipRole_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("RelationshipRole_ProcessSessions"); + this.SetRelatedEntities("RelationshipRole_ProcessSessions", null, value); + this.OnPropertyChanged("RelationshipRole_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_relationshiprole + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprole")] + public System.Collections.Generic.IEnumerable userentityinstancedata_relationshiprole + { + get + { + return this.GetRelatedEntities("userentityinstancedata_relationshiprole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprole"); + this.SetRelatedEntities("userentityinstancedata_relationshiprole", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprole"); + } + } + + /// + /// N:1 createdby_relationship_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_relationship_role + { + get + { + return this.GetRelatedEntity("createdby_relationship_role", null); + } + } + + /// + /// N:1 lk_relationshiprole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprole_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprole_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_relationshiprole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprole_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_relationship_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_relationship_role + { + get + { + return this.GetRelatedEntity("modifiedby_relationship_role", null); + } + } + + /// + /// N:1 organization_relationship_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_relationship_roles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_relationship_roles + { + get + { + return this.GetRelatedEntity("organization_relationship_roles", null); + } + } + } + + /// + /// Mapping of the primary associated objects between which the relationship role is valid. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("relationshiprolemap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RelationshipRoleMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RelationshipRoleMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "relationshiprolemap"; + + public const int EntityTypeCode = 4501; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type of the associated entity in the relationship role mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associateobjecttypecode")] + public string AssociateObjectTypeCode + { + get + { + return this.GetAttributeValue("associateobjecttypecode"); + } + set + { + this.OnPropertyChanging("AssociateObjectTypeCode"); + this.SetAttributeValue("associateobjecttypecode", value); + this.OnPropertyChanged("AssociateObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user who created the relationship role map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the relationship role map 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 relationshiprolemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the user who last modified the relationship role map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the relationship role map record 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 relationshiprolemap. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the relationship role map is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Type of the primary entity in the relationship role mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + set + { + this.OnPropertyChanging("PrimaryObjectTypeCode"); + this.SetAttributeValue("primaryobjecttypecode", value); + this.OnPropertyChanged("PrimaryObjectTypeCode"); + } + } + + /// + /// Unique identifier of the relationship role. This relationship role is only valid in a relationship between an entity of type specified in the primaryobjecttypecode property and an entity of type specified in the associateobjecttypecode property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + public Microsoft.Xrm.Sdk.EntityReference RelationshipRoleId + { + get + { + return this.GetAttributeValue("relationshiproleid"); + } + set + { + this.OnPropertyChanging("RelationshipRoleId"); + this.SetAttributeValue("relationshiproleid", value); + this.OnPropertyChanged("RelationshipRoleId"); + } + } + + /// + /// Unique identifier of the relationship role map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiprolemapid")] + public System.Nullable RelationshipRoleMapId + { + get + { + return this.GetAttributeValue>("relationshiprolemapid"); + } + set + { + this.OnPropertyChanging("RelationshipRoleMapId"); + this.SetAttributeValue("relationshiprolemapid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RelationshipRoleMapId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiprolemapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RelationshipRoleMapId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N RelationshipRoleMap_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_AsyncOperations")] + public System.Collections.Generic.IEnumerable RelationshipRoleMap_AsyncOperations + { + get + { + return this.GetRelatedEntities("RelationshipRoleMap_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("RelationshipRoleMap_AsyncOperations"); + this.SetRelatedEntities("RelationshipRoleMap_AsyncOperations", null, value); + this.OnPropertyChanged("RelationshipRoleMap_AsyncOperations"); + } + } + + /// + /// 1:N RelationshipRoleMap_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RelationshipRoleMap_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable RelationshipRoleMap_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("RelationshipRoleMap_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("RelationshipRoleMap_BulkDeleteFailures"); + this.SetRelatedEntities("RelationshipRoleMap_BulkDeleteFailures", null, value); + this.OnPropertyChanged("RelationshipRoleMap_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_relationshiprolemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprolemap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_relationshiprolemap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_relationshiprolemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprolemap"); + this.SetRelatedEntities("userentityinstancedata_relationshiprolemap", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprolemap"); + } + } + + /// + /// N:1 createdby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role_map")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_relationship_role_map + { + get + { + return this.GetRelatedEntity("createdby_relationship_role_map", null); + } + } + + /// + /// N:1 lk_relationshiprolemap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprolemap_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprolemap_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_relationshiprolemap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_relationshiprolemap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_relationshiprolemap_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role_map")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_relationship_role_map + { + get + { + return this.GetRelatedEntity("modifiedby_relationship_role_map", null); + } + } + + /// + /// N:1 relationship_role_relationship_role_map + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relationshiproleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("relationship_role_relationship_role_map")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole relationship_role_relationship_role_map + { + get + { + return this.GetRelatedEntity("relationship_role_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("relationship_role_relationship_role_map"); + this.SetRelatedEntity("relationship_role_relationship_role_map", null, value); + this.OnPropertyChanged("relationship_role_relationship_role_map"); + } + } + } + + /// + /// Data summary in an easy-to-read layout. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("report")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Report : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Report() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "report"; + + public const int EntityTypeCode = 9100; + + 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)); + } + } + + /// + /// Binary report contents (base-64 encoded). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bodybinary")] + public string BodyBinary + { + get + { + return this.GetAttributeValue("bodybinary"); + } + set + { + this.OnPropertyChanging("BodyBinary"); + this.SetAttributeValue("bodybinary", value); + this.OnPropertyChanged("BodyBinary"); + } + } + + /// + /// Text contents of the RDL file for a Reporting Services report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bodytext")] + public string BodyText + { + get + { + return this.GetAttributeValue("bodytext"); + } + set + { + this.OnPropertyChanging("BodyText"); + this.SetAttributeValue("bodytext", value); + this.OnPropertyChanged("BodyText"); + } + } + + /// + /// URL for a linked report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bodyurl")] + public string BodyUrl + { + get + { + return this.GetAttributeValue("bodyurl"); + } + set + { + this.OnPropertyChanging("BodyUrl"); + this.SetAttributeValue("bodyurl", value); + this.OnPropertyChanged("BodyUrl"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report 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 report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// XML used to define a custom report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customreportxml")] + public string CustomReportXml + { + get + { + return this.GetAttributeValue("customreportxml"); + } + } + + /// + /// Default filter for the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilter")] + public string DefaultFilter + { + get + { + return this.GetAttributeValue("defaultfilter"); + } + set + { + this.OnPropertyChanging("DefaultFilter"); + this.SetAttributeValue("defaultfilter", value); + this.OnPropertyChanged("DefaultFilter"); + } + } + + /// + /// Description of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// File name of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information about whether the report is a custom report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomreport")] + public System.Nullable IsCustomReport + { + get + { + return this.GetAttributeValue>("iscustomreport"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether the report is personal or is available to all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispersonal")] + public System.Nullable IsPersonal + { + get + { + return this.GetAttributeValue>("ispersonal"); + } + set + { + this.OnPropertyChanging("IsPersonal"); + this.SetAttributeValue("ispersonal", value); + this.OnPropertyChanged("IsPersonal"); + } + } + + /// + /// Information about whether the report is a scheduled report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isscheduledreport")] + public System.Nullable IsScheduledReport + { + get + { + return this.GetAttributeValue>("isscheduledreport"); + } + } + + /// + /// Language in which the report will be displayed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// MIME type of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report 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 report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Original Text contents of the RDL file for a Reporting Services report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originalbodytext")] + public string OriginalBodyText + { + get + { + return this.GetAttributeValue("originalbodytext"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report. + /// + [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 report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the parent report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentreportid")] + public Microsoft.Xrm.Sdk.EntityReference ParentReportId + { + get + { + return this.GetAttributeValue("parentreportid"); + } + set + { + this.OnPropertyChanging("ParentReportId"); + this.SetAttributeValue("parentreportid", value); + this.OnPropertyChanged("ParentReportId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryinfo")] + public string QueryInfo + { + get + { + return this.GetAttributeValue("queryinfo"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public System.Nullable ReportId + { + get + { + return this.GetAttributeValue>("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportidunique")] + public System.Nullable ReportIdUnique + { + get + { + return this.GetAttributeValue>("reportidunique"); + } + } + + /// + /// Name of the report on SRS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportnameonsrs")] + public string ReportNameOnSRS + { + get + { + return this.GetAttributeValue("reportnameonsrs"); + } + } + + /// + /// Type of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reporttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ReportTypeCode + { + get + { + return this.GetAttributeValue("reporttypecode"); + } + set + { + this.OnPropertyChanging("ReportTypeCode"); + this.SetAttributeValue("reporttypecode", value); + this.OnPropertyChanged("ReportTypeCode"); + } + } + + /// + /// XML used for defining the report schedule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("schedulexml")] + public string ScheduleXml + { + get + { + return this.GetAttributeValue("schedulexml"); + } + } + + /// + /// Report signature date, used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signaturedate")] + public System.Nullable SignatureDate + { + get + { + return this.GetAttributeValue>("signaturedate"); + } + set + { + this.OnPropertyChanging("SignatureDate"); + this.SetAttributeValue("signaturedate", value); + this.OnPropertyChanged("SignatureDate"); + } + } + + /// + /// Unique identifier of the report signature used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signatureid")] + public System.Nullable SignatureId + { + get + { + return this.GetAttributeValue>("signatureid"); + } + set + { + this.OnPropertyChanging("SignatureId"); + this.SetAttributeValue("signatureid", value); + this.OnPropertyChanged("SignatureId"); + } + } + + /// + /// Report signature language code used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signaturelcid")] + public System.Nullable SignatureLcid + { + get + { + return this.GetAttributeValue>("signaturelcid"); + } + set + { + this.OnPropertyChanging("SignatureLcid"); + this.SetAttributeValue("signaturelcid", value); + this.OnPropertyChanged("SignatureLcid"); + } + } + + /// + /// Report signature major version, used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signaturemajorversion")] + public System.Nullable SignatureMajorVersion + { + get + { + return this.GetAttributeValue>("signaturemajorversion"); + } + set + { + this.OnPropertyChanging("SignatureMajorVersion"); + this.SetAttributeValue("signaturemajorversion", value); + this.OnPropertyChanged("SignatureMajorVersion"); + } + } + + /// + /// Report signature minor version, used to identify a report for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("signatureminorversion")] + public System.Nullable SignatureMinorVersion + { + get + { + return this.GetAttributeValue>("signatureminorversion"); + } + set + { + this.OnPropertyChanging("SignatureMinorVersion"); + this.SetAttributeValue("signatureminorversion", value); + this.OnPropertyChanged("SignatureMinorVersion"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// 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 of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Report_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_AsyncOperations")] + public System.Collections.Generic.IEnumerable Report_AsyncOperations + { + get + { + return this.GetRelatedEntities("Report_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Report_AsyncOperations"); + this.SetRelatedEntities("Report_AsyncOperations", null, value); + this.OnPropertyChanged("Report_AsyncOperations"); + } + } + + /// + /// 1:N report_parent_report + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedreport_parent_report + { + get + { + return this.GetRelatedEntities("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedreport_parent_report"); + this.SetRelatedEntities("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedreport_parent_report"); + } + } + + /// + /// 1:N Report_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Report_ProcessSessions")] + public System.Collections.Generic.IEnumerable Report_ProcessSessions + { + get + { + return this.GetRelatedEntities("Report_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Report_ProcessSessions"); + this.SetRelatedEntities("Report_ProcessSessions", null, value); + this.OnPropertyChanged("Report_ProcessSessions"); + } + } + + /// + /// 1:N report_reportcategories + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportcategories")] + public System.Collections.Generic.IEnumerable report_reportcategories + { + get + { + return this.GetRelatedEntities("report_reportcategories", null); + } + set + { + this.OnPropertyChanging("report_reportcategories"); + this.SetRelatedEntities("report_reportcategories", null, value); + this.OnPropertyChanged("report_reportcategories"); + } + } + + /// + /// 1:N report_reportentities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportentities")] + public System.Collections.Generic.IEnumerable report_reportentities + { + get + { + return this.GetRelatedEntities("report_reportentities", null); + } + set + { + this.OnPropertyChanging("report_reportentities"); + this.SetRelatedEntities("report_reportentities", null, value); + this.OnPropertyChanged("report_reportentities"); + } + } + + /// + /// 1:N report_reportlink + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink")] + public System.Collections.Generic.IEnumerable report_reportlink + { + get + { + return this.GetRelatedEntities("report_reportlink", null); + } + set + { + this.OnPropertyChanging("report_reportlink"); + this.SetRelatedEntities("report_reportlink", null, value); + this.OnPropertyChanged("report_reportlink"); + } + } + + /// + /// 1:N report_reportlink_sub + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink_sub")] + public System.Collections.Generic.IEnumerable report_reportlink_sub + { + get + { + return this.GetRelatedEntities("report_reportlink_sub", null); + } + set + { + this.OnPropertyChanging("report_reportlink_sub"); + this.SetRelatedEntities("report_reportlink_sub", null, value); + this.OnPropertyChanged("report_reportlink_sub"); + } + } + + /// + /// 1:N report_reportvisibility + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportvisibility")] + public System.Collections.Generic.IEnumerable report_reportvisibility + { + get + { + return this.GetRelatedEntities("report_reportvisibility", null); + } + set + { + this.OnPropertyChanging("report_reportvisibility"); + this.SetRelatedEntities("report_reportvisibility", null, value); + this.OnPropertyChanged("report_reportvisibility"); + } + } + + /// + /// 1:N userentityinstancedata_report + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_report")] + public System.Collections.Generic.IEnumerable userentityinstancedata_report + { + get + { + return this.GetRelatedEntities("userentityinstancedata_report", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_report"); + this.SetRelatedEntities("userentityinstancedata_report", null, value); + this.OnPropertyChanged("userentityinstancedata_report"); + } + } + + /// + /// N:1 business_unit_reports + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_reports")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_reports + { + get + { + return this.GetRelatedEntity("business_unit_reports", null); + } + } + + /// + /// N:1 lk_report_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_report_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_report_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_report_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_report_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_report_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportbase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportbase_createdby", null); + } + } + + /// + /// N:1 lk_reportbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportbase_modifiedby", null); + } + } + + /// + /// N:1 report_parent_report + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentreportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Report Referencingreport_parent_report + { + get + { + return this.GetRelatedEntity("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingreport_parent_report"); + this.SetRelatedEntity("report_parent_report", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingreport_parent_report"); + } + } + } + + /// + /// Categories related to a report. A report can be related to multiple categories. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportcategory")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportCategory : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportCategory() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportcategory"; + + public const int EntityTypeCode = 9102; + + 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)); + } + } + + /// + /// Category of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("categorycode")] + public Microsoft.Xrm.Sdk.OptionSetValue CategoryCode + { + get + { + return this.GetAttributeValue("categorycode"); + } + set + { + this.OnPropertyChanging("CategoryCode"); + this.SetAttributeValue("categorycode", value); + this.OnPropertyChanged("CategoryCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report category 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 report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Exchange rate for the currency associated with the report category with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report category 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 report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportcategoryid")] + public System.Nullable ReportCategoryId + { + get + { + return this.GetAttributeValue>("reportcategoryid"); + } + set + { + this.OnPropertyChanging("ReportCategoryId"); + this.SetAttributeValue("reportcategoryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportCategoryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportcategoryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportCategoryId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportcategoryidunique")] + public System.Nullable ReportCategoryIdUnique + { + get + { + return this.GetAttributeValue>("reportcategoryidunique"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// 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 Report category. + /// + [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 of the report category. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N reportcategory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("reportcategory_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable reportcategory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("reportcategory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("reportcategory_principalobjectattributeaccess"); + this.SetRelatedEntities("reportcategory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("reportcategory_principalobjectattributeaccess"); + } + } + + /// + /// 1:N userentityinstancedata_reportcategory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportcategory")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportcategory + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportcategory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportcategory"); + this.SetRelatedEntities("userentityinstancedata_reportcategory", null, value); + this.OnPropertyChanged("userentityinstancedata_reportcategory"); + } + } + + /// + /// N:1 lk_reportcategory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategory_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportcategory_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportcategory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportcategory_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportcategorybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategorybase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportcategorybase_createdby", null); + } + } + + /// + /// N:1 lk_reportcategorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportcategorybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportcategorybase_modifiedby", null); + } + } + + /// + /// N:1 report_reportcategories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportcategories")] + public Xrm.Framework.CI.Common.Entities.Report report_reportcategories + { + get + { + return this.GetRelatedEntity("report_reportcategories", null); + } + set + { + this.OnPropertyChanging("report_reportcategories"); + this.SetRelatedEntity("report_reportcategories", null, value); + this.OnPropertyChanged("report_reportcategories"); + } + } + + /// + /// N:1 TransactionCurrency_ReportCategory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ReportCategory")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ReportCategory + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ReportCategory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ReportCategory"); + this.SetRelatedEntity("TransactionCurrency_ReportCategory", null, value); + this.OnPropertyChanged("TransactionCurrency_ReportCategory"); + } + } + } + + /// + /// Entities related to a report. A report can be related to multiple entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportentity")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportEntity : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportEntity() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportentity"; + + public const int EntityTypeCode = 9101; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report 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 reportentity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information about whether the report is filterable. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfilterable")] + public System.Nullable IsFilterable + { + get + { + return this.GetAttributeValue>("isfilterable"); + } + set + { + this.OnPropertyChanging("IsFilterable"); + this.SetAttributeValue("isfilterable", value); + this.OnPropertyChanged("IsFilterable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report record 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 reportentity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Type of record with which the report is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the report record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportentityid")] + public System.Nullable ReportEntityId + { + get + { + return this.GetAttributeValue>("reportentityid"); + } + set + { + this.OnPropertyChanging("ReportEntityId"); + this.SetAttributeValue("reportentityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportEntityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportentityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportEntityId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportentityidunique")] + public System.Nullable ReportEntityIdUnique + { + get + { + return this.GetAttributeValue>("reportentityidunique"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_reportentity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportentity")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportentity + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportentity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportentity"); + this.SetRelatedEntities("userentityinstancedata_reportentity", null, value); + this.OnPropertyChanged("userentityinstancedata_reportentity"); + } + } + + /// + /// N:1 lk_reportentity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentity_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportentity_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportentity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportentity_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportentitybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentitybase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportentitybase_createdby", null); + } + } + + /// + /// N:1 lk_reportentitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportentitybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportentitybase_modifiedby", null); + } + } + + /// + /// N:1 report_reportentities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportentities")] + public Xrm.Framework.CI.Common.Entities.Report report_reportentities + { + get + { + return this.GetRelatedEntity("report_reportentities", null); + } + set + { + this.OnPropertyChanging("report_reportentities"); + this.SetRelatedEntity("report_reportentities", null, value); + this.OnPropertyChanged("report_reportentities"); + } + } + } + + /// + /// Links and dependencies between reports. A report may drill through to another report, or it may have another report as a sub-report. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportlink")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportLink : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportLink() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportlink"; + + public const int EntityTypeCode = 9104; + + 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 report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report link 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 reportlink. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the linked report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linkedreportid")] + public Microsoft.Xrm.Sdk.EntityReference LinkedReportId + { + get + { + return this.GetAttributeValue("linkedreportid"); + } + set + { + this.OnPropertyChanging("LinkedReportId"); + this.SetAttributeValue("linkedreportid", value); + this.OnPropertyChanged("LinkedReportId"); + } + } + + /// + /// Name of the linked report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linkedreportname")] + public string LinkedReportName + { + get + { + return this.GetAttributeValue("linkedreportname"); + } + set + { + this.OnPropertyChanging("LinkedReportName"); + this.SetAttributeValue("linkedreportname", value); + this.OnPropertyChanged("LinkedReportName"); + } + } + + /// + /// Link type of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linktypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LinkTypeCode + { + get + { + return this.GetAttributeValue("linktypecode"); + } + set + { + this.OnPropertyChanging("LinkTypeCode"); + this.SetAttributeValue("linktypecode", value); + this.OnPropertyChanged("LinkTypeCode"); + } + } + + /// + /// Unique identifier of the user who last modified the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report link 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 reportlink. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the main report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the report link. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportlinkid")] + public System.Nullable ReportLinkId + { + get + { + return this.GetAttributeValue>("reportlinkid"); + } + set + { + this.OnPropertyChanging("ReportLinkId"); + this.SetAttributeValue("reportlinkid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportLinkId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportlinkid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportLinkId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportlinkidunique")] + public System.Nullable ReportLinkIdUnique + { + get + { + return this.GetAttributeValue>("reportlinkidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_reportlink + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportlink")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportlink + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportlink", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportlink"); + this.SetRelatedEntities("userentityinstancedata_reportlink", null, value); + this.OnPropertyChanged("userentityinstancedata_reportlink"); + } + } + + /// + /// N:1 lk_reportlink_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlink_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportlink_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportlink_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlink_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportlink_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportlinkbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlinkbase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportlinkbase_createdby", null); + } + } + + /// + /// N:1 lk_reportlinkbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportlinkbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportlinkbase_modifiedby", null); + } + } + + /// + /// N:1 report_reportlink + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink")] + public Xrm.Framework.CI.Common.Entities.Report report_reportlink + { + get + { + return this.GetRelatedEntity("report_reportlink", null); + } + set + { + this.OnPropertyChanging("report_reportlink"); + this.SetRelatedEntity("report_reportlink", null, value); + this.OnPropertyChanged("report_reportlink"); + } + } + + /// + /// N:1 report_reportlink_sub + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("linkedreportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportlink_sub")] + public Xrm.Framework.CI.Common.Entities.Report report_reportlink_sub + { + get + { + return this.GetRelatedEntity("report_reportlink_sub", null); + } + set + { + this.OnPropertyChanging("report_reportlink_sub"); + this.SetRelatedEntity("report_reportlink_sub", null, value); + this.OnPropertyChanged("report_reportlink_sub"); + } + } + } + + /// + /// Area in which to show a report. A report can be shown in multiple areas. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("reportvisibility")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ReportVisibility : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ReportVisibility() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "reportvisibility"; + + public const int EntityTypeCode = 9103; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the report visibility 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 reportvisibility. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the report visibility record 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 reportvisibility. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the report visibility. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Unique identifier of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + public Microsoft.Xrm.Sdk.EntityReference ReportId + { + get + { + return this.GetAttributeValue("reportid"); + } + set + { + this.OnPropertyChanging("ReportId"); + this.SetAttributeValue("reportid", value); + this.OnPropertyChanged("ReportId"); + } + } + + /// + /// Unique identifier of the report visibility record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportvisibilityid")] + public System.Nullable ReportVisibilityId + { + get + { + return this.GetAttributeValue>("reportvisibilityid"); + } + set + { + this.OnPropertyChanging("ReportVisibilityId"); + this.SetAttributeValue("reportvisibilityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ReportVisibilityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportvisibilityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ReportVisibilityId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportvisibilityidunique")] + public System.Nullable ReportVisibilityIdUnique + { + get + { + return this.GetAttributeValue>("reportvisibilityidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type of visibility of the report. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("visibilitycode")] + public Microsoft.Xrm.Sdk.OptionSetValue VisibilityCode + { + get + { + return this.GetAttributeValue("visibilitycode"); + } + set + { + this.OnPropertyChanging("VisibilityCode"); + this.SetAttributeValue("visibilitycode", value); + this.OnPropertyChanged("VisibilityCode"); + } + } + + /// + /// 1:N userentityinstancedata_reportvisibility + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportvisibility")] + public System.Collections.Generic.IEnumerable userentityinstancedata_reportvisibility + { + get + { + return this.GetRelatedEntities("userentityinstancedata_reportvisibility", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportvisibility"); + this.SetRelatedEntities("userentityinstancedata_reportvisibility", null, value); + this.OnPropertyChanged("userentityinstancedata_reportvisibility"); + } + } + + /// + /// N:1 lk_reportvisibility_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibility_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportvisibility_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_reportvisibility_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibility_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_reportvisibility_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_reportvisibilitybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibilitybase_createdby + { + get + { + return this.GetRelatedEntity("lk_reportvisibilitybase_createdby", null); + } + } + + /// + /// N:1 lk_reportvisibilitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_reportvisibilitybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_reportvisibilitybase_modifiedby", null); + } + } + + /// + /// N:1 report_reportvisibility + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("report_reportvisibility")] + public Xrm.Framework.CI.Common.Entities.Report report_reportvisibility + { + get + { + return this.GetRelatedEntity("report_reportvisibility", null); + } + set + { + this.OnPropertyChanging("report_reportvisibility"); + this.SetRelatedEntity("report_reportvisibility", null, value); + this.OnPropertyChanged("report_reportvisibility"); + } + } + } + + /// + /// User or facility/equipment that can be scheduled for a service. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("resource")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Resource : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Resource() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "resource"; + + public const int EntityTypeCode = 4002; + + 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 business unit with which the resource is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the calendar for the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public System.Nullable CalendarId + { + get + { + return this.GetAttributeValue>("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the resource is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + set + { + this.OnPropertyChanging("IsDisabled"); + this.SetAttributeValue("isdisabled", value); + this.OnPropertyChanged("IsDisabled"); + } + } + + /// + /// Name of the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of entity with which the resource is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization with which the resource is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + public System.Nullable ResourceId + { + get + { + return this.GetAttributeValue>("resourceid"); + } + set + { + this.OnPropertyChanging("ResourceId"); + this.SetAttributeValue("resourceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ResourceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ResourceId = value; + } + } + + /// + /// Unique identifier of the site at which the resource is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Version number of the resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Resource_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_AsyncOperations")] + public System.Collections.Generic.IEnumerable Resource_AsyncOperations + { + get + { + return this.GetRelatedEntities("Resource_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Resource_AsyncOperations"); + this.SetRelatedEntities("Resource_AsyncOperations", null, value); + this.OnPropertyChanged("Resource_AsyncOperations"); + } + } + + /// + /// 1:N Resource_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Resource_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Resource_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Resource_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Resource_BulkDeleteFailures"); + this.SetRelatedEntities("Resource_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Resource_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_resource + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resource")] + public System.Collections.Generic.IEnumerable userentityinstancedata_resource + { + get + { + return this.GetRelatedEntities("userentityinstancedata_resource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resource"); + this.SetRelatedEntities("userentityinstancedata_resource", null, value); + this.OnPropertyChanged("userentityinstancedata_resource"); + } + } + + /// + /// N:1 business_unit_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resources")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_resources + { + get + { + return this.GetRelatedEntity("business_unit_resources", null); + } + set + { + this.OnPropertyChanging("business_unit_resources"); + this.SetRelatedEntity("business_unit_resources", null, value); + this.OnPropertyChanged("business_unit_resources"); + } + } + + /// + /// N:1 equipment_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_resources")] + public Xrm.Framework.CI.Common.Entities.Equipment equipment_resources + { + get + { + return this.GetRelatedEntity("equipment_resources", null); + } + set + { + this.OnPropertyChanging("equipment_resources"); + this.SetRelatedEntity("equipment_resources", null, value); + this.OnPropertyChanged("equipment_resources"); + } + } + + /// + /// N:1 organization_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resources")] + public Xrm.Framework.CI.Common.Entities.Organization organization_resources + { + get + { + return this.GetRelatedEntity("organization_resources", null); + } + } + + /// + /// N:1 resourcespec_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcespec_resources")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec resourcespec_resources + { + get + { + return this.GetRelatedEntity("resourcespec_resources", null); + } + set + { + this.OnPropertyChanging("resourcespec_resources"); + this.SetRelatedEntity("resourcespec_resources", null, value); + this.OnPropertyChanged("resourcespec_resources"); + } + } + + /// + /// N:1 site_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_resources")] + public Xrm.Framework.CI.Common.Entities.Site site_resources + { + get + { + return this.GetRelatedEntity("site_resources", null); + } + set + { + this.OnPropertyChanging("site_resources"); + this.SetRelatedEntity("site_resources", null, value); + this.OnPropertyChanged("site_resources"); + } + } + + /// + /// N:1 systemuser_resources + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_resources")] + public Xrm.Framework.CI.Common.Entities.SystemUser systemuser_resources + { + get + { + return this.GetRelatedEntity("systemuser_resources", null); + } + set + { + this.OnPropertyChanging("systemuser_resources"); + this.SetRelatedEntity("systemuser_resources", null, value); + this.OnPropertyChanged("systemuser_resources"); + } + } + } + + /// + /// Resource group or team whose members can be scheduled for a service. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("resourcegroup")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ResourceGroup : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ResourceGroup() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "resourcegroup"; + + public const int EntityTypeCode = 4005; + + 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 business unit with which the scheduling group is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Scheduling group type code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("grouptypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue GroupTypeCode + { + get + { + return this.GetAttributeValue("grouptypecode"); + } + } + + /// + /// Name of the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of entity with which the scheduling group is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization associated with the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + public System.Nullable ResourceGroupId + { + get + { + return this.GetAttributeValue>("resourcegroupid"); + } + set + { + this.OnPropertyChanging("ResourceGroupId"); + this.SetAttributeValue("resourcegroupid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ResourceGroupId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ResourceGroupId = value; + } + } + + /// + /// Version number of the scheduling group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ResourceGroup_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_AsyncOperations")] + public System.Collections.Generic.IEnumerable ResourceGroup_AsyncOperations + { + get + { + return this.GetRelatedEntities("ResourceGroup_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_AsyncOperations"); + this.SetRelatedEntities("ResourceGroup_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceGroup_AsyncOperations"); + } + } + + /// + /// 1:N ResourceGroup_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ResourceGroup_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ResourceGroup_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_BulkDeleteFailures"); + this.SetRelatedEntities("ResourceGroup_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ResourceGroup_BulkDeleteFailures"); + } + } + + /// + /// 1:N resourcegroup_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections1")] + public System.Collections.Generic.IEnumerable resourcegroup_connections1 + { + get + { + return this.GetRelatedEntities("resourcegroup_connections1", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections1"); + this.SetRelatedEntities("resourcegroup_connections1", null, value); + this.OnPropertyChanged("resourcegroup_connections1"); + } + } + + /// + /// 1:N resourcegroup_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcegroup_connections2")] + public System.Collections.Generic.IEnumerable resourcegroup_connections2 + { + get + { + return this.GetRelatedEntities("resourcegroup_connections2", null); + } + set + { + this.OnPropertyChanging("resourcegroup_connections2"); + this.SetRelatedEntities("resourcegroup_connections2", null, value); + this.OnPropertyChanged("resourcegroup_connections2"); + } + } + + /// + /// 1:N ResourceGroup_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable ResourceGroup_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("ResourceGroup_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_DuplicateBaseRecord"); + this.SetRelatedEntities("ResourceGroup_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("ResourceGroup_DuplicateBaseRecord"); + } + } + + /// + /// 1:N ResourceGroup_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable ResourceGroup_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("ResourceGroup_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("ResourceGroup_DuplicateMatchingRecord"); + this.SetRelatedEntities("ResourceGroup_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("ResourceGroup_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N userentityinstancedata_resourcegroup + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcegroup")] + public System.Collections.Generic.IEnumerable userentityinstancedata_resourcegroup + { + get + { + return this.GetRelatedEntities("userentityinstancedata_resourcegroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcegroup"); + this.SetRelatedEntities("userentityinstancedata_resourcegroup", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcegroup"); + } + } + + /// + /// N:1 business_unit_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_groups")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_resource_groups + { + get + { + return this.GetRelatedEntity("business_unit_resource_groups", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_groups"); + this.SetRelatedEntity("business_unit_resource_groups", null, value); + this.OnPropertyChanged("business_unit_resource_groups"); + } + } + + /// + /// N:1 constraintbasedgroup_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_resource_groups")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraintbasedgroup_resource_groups + { + get + { + return this.GetRelatedEntity("constraintbasedgroup_resource_groups", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_resource_groups"); + this.SetRelatedEntity("constraintbasedgroup_resource_groups", null, value); + this.OnPropertyChanged("constraintbasedgroup_resource_groups"); + } + } + + /// + /// N:1 organization_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_groups")] + public Xrm.Framework.CI.Common.Entities.Organization organization_resource_groups + { + get + { + return this.GetRelatedEntity("organization_resource_groups", null); + } + } + + /// + /// N:1 team_resource_groups + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcegroupid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_groups")] + public Xrm.Framework.CI.Common.Entities.Team team_resource_groups + { + get + { + return this.GetRelatedEntity("team_resource_groups", null); + } + set + { + this.OnPropertyChanging("team_resource_groups"); + this.SetRelatedEntity("team_resource_groups", null, value); + this.OnPropertyChanged("team_resource_groups"); + } + } + } + + /// + /// Selection rule that allows the scheduling engine to select a number of resources from a pool of resources. The rules can be associated with a service. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("resourcespec")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ResourceSpec : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ResourceSpec() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "resourcespec"; + + public const int EntityTypeCode = 4006; + + 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 business unit with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Additional constraints, specified as expressions, which are used to filter a set of valid resources. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("constraints")] + public string Constraints + { + get + { + return this.GetAttributeValue("constraints"); + } + set + { + this.OnPropertyChanging("Constraints"); + this.SetAttributeValue("constraints", value); + this.OnPropertyChanged("Constraints"); + } + } + + /// + /// Unique identifier of the user who created the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the resource specification 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 resourcespec. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Selection rule that allows the scheduling engine to select a number of resources from a pool of resources. The rules can be associated with a service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Number that specifies the minimal effort required from resources. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effortrequired")] + public System.Nullable EffortRequired + { + get + { + return this.GetAttributeValue>("effortrequired"); + } + set + { + this.OnPropertyChanging("EffortRequired"); + this.SetAttributeValue("effortrequired", value); + this.OnPropertyChanged("EffortRequired"); + } + } + + /// + /// Unique identifier of the scheduling group with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupobjectid")] + public System.Nullable GroupObjectId + { + get + { + return this.GetAttributeValue>("groupobjectid"); + } + set + { + this.OnPropertyChanging("GroupObjectId"); + this.SetAttributeValue("groupobjectid", value); + this.OnPropertyChanged("GroupObjectId"); + } + } + + /// + /// Unique identifier of the user who last modified the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the resource specification 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 resourcespec. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Search strategy to use for the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectiveexpression")] + public string ObjectiveExpression + { + get + { + return this.GetAttributeValue("objectiveexpression"); + } + set + { + this.OnPropertyChanging("ObjectiveExpression"); + this.SetAttributeValue("objectiveexpression", value); + this.OnPropertyChanged("ObjectiveExpression"); + } + } + + /// + /// Type of entity with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization with which the resource specification is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Required number of resources that must be available. Use -1 to indicate all resources. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcount")] + public System.Nullable RequiredCount + { + get + { + return this.GetAttributeValue>("requiredcount"); + } + set + { + this.OnPropertyChanging("RequiredCount"); + this.SetAttributeValue("requiredcount", value); + this.OnPropertyChanged("RequiredCount"); + } + } + + /// + /// Unique identifier of the resource specification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public System.Nullable ResourceSpecId + { + get + { + return this.GetAttributeValue>("resourcespecid"); + } + set + { + this.OnPropertyChanging("ResourceSpecId"); + this.SetAttributeValue("resourcespecid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ResourceSpecId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ResourceSpecId = value; + } + } + + /// + /// Value that specifies that all valid and available resources must be in the same site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("samesite")] + public System.Nullable SameSite + { + get + { + return this.GetAttributeValue>("samesite"); + } + set + { + this.OnPropertyChanging("SameSite"); + this.SetAttributeValue("samesite", value); + this.OnPropertyChanged("SameSite"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N ActivityPartyResourceSpec + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ActivityPartyResourceSpec")] + public System.Collections.Generic.IEnumerable ActivityPartyResourceSpec + { + get + { + return this.GetRelatedEntities("ActivityPartyResourceSpec", null); + } + set + { + this.OnPropertyChanging("ActivityPartyResourceSpec"); + this.SetRelatedEntities("ActivityPartyResourceSpec", null, value); + this.OnPropertyChanged("ActivityPartyResourceSpec"); + } + } + + /// + /// 1:N resource_spec_services + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resource_spec_services")] + public System.Collections.Generic.IEnumerable resource_spec_services + { + get + { + return this.GetRelatedEntities("resource_spec_services", null); + } + set + { + this.OnPropertyChanging("resource_spec_services"); + this.SetRelatedEntities("resource_spec_services", null, value); + this.OnPropertyChanged("resource_spec_services"); + } + } + + /// + /// 1:N ResourceSpec_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_Annotation")] + public System.Collections.Generic.IEnumerable ResourceSpec_Annotation + { + get + { + return this.GetRelatedEntities("ResourceSpec_Annotation", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_Annotation"); + this.SetRelatedEntities("ResourceSpec_Annotation", null, value); + this.OnPropertyChanged("ResourceSpec_Annotation"); + } + } + + /// + /// 1:N ResourceSpec_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_AsyncOperations")] + public System.Collections.Generic.IEnumerable ResourceSpec_AsyncOperations + { + get + { + return this.GetRelatedEntities("ResourceSpec_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_AsyncOperations"); + this.SetRelatedEntities("ResourceSpec_AsyncOperations", null, value); + this.OnPropertyChanged("ResourceSpec_AsyncOperations"); + } + } + + /// + /// 1:N ResourceSpec_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceSpec_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ResourceSpec_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ResourceSpec_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ResourceSpec_BulkDeleteFailures"); + this.SetRelatedEntities("ResourceSpec_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ResourceSpec_BulkDeleteFailures"); + } + } + + /// + /// 1:N resourcespec_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resourcespec_resources")] + public System.Collections.Generic.IEnumerable resourcespec_resources + { + get + { + return this.GetRelatedEntities("resourcespec_resources", null); + } + set + { + this.OnPropertyChanging("resourcespec_resources"); + this.SetRelatedEntities("resourcespec_resources", null, value); + this.OnPropertyChanged("resourcespec_resources"); + } + } + + /// + /// 1:N userentityinstancedata_resourcespec + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcespec")] + public System.Collections.Generic.IEnumerable userentityinstancedata_resourcespec + { + get + { + return this.GetRelatedEntities("userentityinstancedata_resourcespec", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcespec"); + this.SetRelatedEntities("userentityinstancedata_resourcespec", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcespec"); + } + } + + /// + /// N:1 business_unit_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_resource_specs")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_resource_specs + { + get + { + return this.GetRelatedEntity("business_unit_resource_specs", null); + } + set + { + this.OnPropertyChanging("business_unit_resource_specs"); + this.SetRelatedEntity("business_unit_resource_specs", null, value); + this.OnPropertyChanged("business_unit_resource_specs"); + } + } + + /// + /// N:1 constraint_based_group_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraint_based_group_resource_specs")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup constraint_based_group_resource_specs + { + get + { + return this.GetRelatedEntity("constraint_based_group_resource_specs", null); + } + set + { + this.OnPropertyChanging("constraint_based_group_resource_specs"); + this.SetRelatedEntity("constraint_based_group_resource_specs", null, value); + this.OnPropertyChanged("constraint_based_group_resource_specs"); + } + } + + /// + /// N:1 lk_resourcespec_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_createdby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_createdby", null); + } + } + + /// + /// N:1 lk_resourcespec_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_resourcespec_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_modifiedby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_modifiedby", null); + } + } + + /// + /// N:1 lk_resourcespec_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_resourcespec_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_resourcespec_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_resource_specs")] + public Xrm.Framework.CI.Common.Entities.Organization organization_resource_specs + { + get + { + return this.GetRelatedEntity("organization_resource_specs", null); + } + } + + /// + /// N:1 team_resource_specs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("groupobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_specs")] + public Xrm.Framework.CI.Common.Entities.Team team_resource_specs + { + get + { + return this.GetRelatedEntity("team_resource_specs", null); + } + set + { + this.OnPropertyChanging("team_resource_specs"); + this.SetRelatedEntity("team_resource_specs", null, value); + this.OnPropertyChanged("team_resource_specs"); + } + } + } + + /// + /// Ribbon customizations for the application ribbon and entity ribbon templates. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ribboncustomization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RibbonCustomization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RibbonCustomization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "ribboncustomization"; + + public const int EntityTypeCode = 1120; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Specifies which entity's ribbons this customization applies to. If null, then the customizations apply to the global ribbons. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entity")] + public string Entity + { + get + { + return this.GetAttributeValue("entity"); + } + set + { + this.OnPropertyChanging("Entity"); + this.SetAttributeValue("entity", value); + this.OnPropertyChanged("Entity"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publishedon")] + public System.Nullable PublishedOn + { + get + { + return this.GetAttributeValue>("publishedon"); + } + } + + /// + /// Unique identifier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ribboncustomizationid")] + public System.Nullable RibbonCustomizationId + { + get + { + return this.GetAttributeValue>("ribboncustomizationid"); + } + set + { + this.OnPropertyChanging("RibbonCustomizationId"); + this.SetAttributeValue("ribboncustomizationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RibbonCustomizationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ribboncustomizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RibbonCustomizationId = value; + } + } + + /// + /// Unique identifier for this row. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ribboncustomizationuniqueid")] + public System.Nullable RibbonCustomizationUniqueId + { + get + { + return this.GetAttributeValue>("ribboncustomizationuniqueid"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Represents a version of customizations to be synchronized with the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_ribboncustomization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ribboncustomization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_ribboncustomization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_ribboncustomization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ribboncustomization"); + this.SetRelatedEntities("userentityinstancedata_ribboncustomization", null, value); + this.OnPropertyChanged("userentityinstancedata_ribboncustomization"); + } + } + + /// + /// N:1 organization_ribbon_customization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_ribbon_customization")] + public Xrm.Framework.CI.Common.Entities.Organization organization_ribbon_customization + { + get + { + return this.GetRelatedEntity("organization_ribbon_customization", null); + } + } + } + + /// + /// Grouping of security privileges. Users are assigned roles that authorize their access to the Microsoft CRM system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("role")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Role : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Role() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "role"; + + public const int EntityTypeCode = 1036; + + 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 business unit with which the role is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the role 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 role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the role 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 role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the parent role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentroleid")] + public Microsoft.Xrm.Sdk.EntityReference ParentRoleId + { + get + { + return this.GetAttributeValue("parentroleid"); + } + } + + /// + /// Unique identifier of the parent root role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentrootroleid")] + public Microsoft.Xrm.Sdk.EntityReference ParentRootRoleId + { + get + { + return this.GetAttributeValue("parentrootroleid"); + } + } + + /// + /// Unique identifier of the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + set + { + this.OnPropertyChanging("RoleId"); + this.SetAttributeValue("roleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RoleId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleidunique")] + public System.Nullable RoleIdUnique + { + get + { + return this.GetAttributeValue>("roleidunique"); + } + } + + /// + /// Unique identifier of the role template that is associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateid")] + public Microsoft.Xrm.Sdk.EntityReference RoleTemplateId + { + get + { + return this.GetAttributeValue("roletemplateid"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Version number of the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Role_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_AsyncOperations")] + public System.Collections.Generic.IEnumerable Role_AsyncOperations + { + get + { + return this.GetRelatedEntities("Role_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Role_AsyncOperations"); + this.SetRelatedEntities("Role_AsyncOperations", null, value); + this.OnPropertyChanged("Role_AsyncOperations"); + } + } + + /// + /// 1:N Role_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Role_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Role_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Role_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Role_BulkDeleteFailures"); + this.SetRelatedEntities("Role_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Role_BulkDeleteFailures"); + } + } + + /// + /// 1:N role_parent_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedrole_parent_role + { + get + { + return this.GetRelatedEntities("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedrole_parent_role"); + this.SetRelatedEntities("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedrole_parent_role"); + } + } + + /// + /// 1:N role_parent_root_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedrole_parent_root_role + { + get + { + return this.GetRelatedEntities("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedrole_parent_root_role"); + this.SetRelatedEntities("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedrole_parent_root_role"); + } + } + + /// + /// 1:N userentityinstancedata_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_role")] + public System.Collections.Generic.IEnumerable userentityinstancedata_role + { + get + { + return this.GetRelatedEntities("userentityinstancedata_role", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_role"); + this.SetRelatedEntities("userentityinstancedata_role", null, value); + this.OnPropertyChanged("userentityinstancedata_role"); + } + } + + /// + /// N:N roleprivileges_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("roleprivileges_association")] + public System.Collections.Generic.IEnumerable roleprivileges_association + { + get + { + return this.GetRelatedEntities("roleprivileges_association", null); + } + set + { + this.OnPropertyChanging("roleprivileges_association"); + this.SetRelatedEntities("roleprivileges_association", null, value); + this.OnPropertyChanged("roleprivileges_association"); + } + } + + /// + /// N:N systemuserroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserroles_association")] + public System.Collections.Generic.IEnumerable systemuserroles_association + { + get + { + return this.GetRelatedEntities("systemuserroles_association", null); + } + set + { + this.OnPropertyChanging("systemuserroles_association"); + this.SetRelatedEntities("systemuserroles_association", null, value); + this.OnPropertyChanged("systemuserroles_association"); + } + } + + /// + /// N:N teamroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamroles_association")] + public System.Collections.Generic.IEnumerable teamroles_association + { + get + { + return this.GetRelatedEntities("teamroles_association", null); + } + set + { + this.OnPropertyChanging("teamroles_association"); + this.SetRelatedEntities("teamroles_association", null, value); + this.OnPropertyChanged("teamroles_association"); + } + } + + /// + /// N:1 business_unit_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_roles")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_roles + { + get + { + return this.GetRelatedEntity("business_unit_roles", null); + } + set + { + this.OnPropertyChanging("business_unit_roles"); + this.SetRelatedEntity("business_unit_roles", null, value); + this.OnPropertyChanged("business_unit_roles"); + } + } + + /// + /// N:1 lk_role_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_role_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_role_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_role_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_role_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_role_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_rolebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rolebase_createdby + { + get + { + return this.GetRelatedEntity("lk_rolebase_createdby", null); + } + } + + /// + /// N:1 lk_rolebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rolebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_rolebase_modifiedby", null); + } + } + + /// + /// N:1 organization_roles + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_roles")] + public Xrm.Framework.CI.Common.Entities.Organization organization_roles + { + get + { + return this.GetRelatedEntity("organization_roles", null); + } + } + + /// + /// N:1 role_parent_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Role Referencingrole_parent_role + { + get + { + return this.GetRelatedEntity("role_parent_role", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 role_parent_root_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentrootroleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Role Referencingrole_parent_root_role + { + get + { + return this.GetRelatedEntity("role_parent_root_role", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + } + + /// + /// Group of privileges used to categorize users to provide appropriate access to entities. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("roleprivileges")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RolePrivileges : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RolePrivileges() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "roleprivileges"; + + public const int EntityTypeCode = 12; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// System-generated attribute that stores the privileges associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegedepthmask")] + public System.Nullable PrivilegeDepthMask + { + get + { + return this.GetAttributeValue>("privilegedepthmask"); + } + set + { + this.OnPropertyChanging("PrivilegeDepthMask"); + this.SetAttributeValue("privilegedepthmask", value); + this.OnPropertyChanged("PrivilegeDepthMask"); + } + } + + /// + /// Unique identifier of the privilege associated with the role. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public System.Nullable PrivilegeId + { + get + { + return this.GetAttributeValue>("privilegeid"); + } + } + + /// + /// Unique identifier of the role that is associated with the role privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + } + + /// + /// Unique identifier of the role privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleprivilegeid")] + public System.Nullable RolePrivilegeId + { + get + { + return this.GetAttributeValue>("roleprivilegeid"); + } + set + { + this.OnPropertyChanging("RolePrivilegeId"); + this.SetAttributeValue("roleprivilegeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RolePrivilegeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleprivilegeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RolePrivilegeId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleprivilegeidunique")] + public System.Nullable RolePrivilegeIdUnique + { + get + { + return this.GetAttributeValue>("roleprivilegeidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N roleprivileges_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("roleprivileges_association")] + public System.Collections.Generic.IEnumerable roleprivileges_association + { + get + { + return this.GetRelatedEntities("roleprivileges_association", null); + } + set + { + this.OnPropertyChanging("roleprivileges_association"); + this.SetRelatedEntities("roleprivileges_association", null, value); + this.OnPropertyChanged("roleprivileges_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("roletemplateprivileges")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RoleTemplatePrivileges : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RoleTemplatePrivileges() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "roletemplateprivileges"; + + public const int EntityTypeCode = 28; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about whether the role in the template applies to the user, the user's team, or objects shared by the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isbasic")] + public System.Nullable IsBasic + { + get + { + return this.GetAttributeValue>("isbasic"); + } + set + { + this.OnPropertyChanging("IsBasic"); + this.SetAttributeValue("isbasic", value); + this.OnPropertyChanged("IsBasic"); + } + } + + /// + /// Information about whether the role in the template applies to child business units of the business unit associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdeep")] + public System.Nullable IsDeep + { + get + { + return this.GetAttributeValue>("isdeep"); + } + set + { + this.OnPropertyChanging("IsDeep"); + this.SetAttributeValue("isdeep", value); + this.OnPropertyChanged("IsDeep"); + } + } + + /// + /// Information about whether the role in the template applies to the entire organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isglobal")] + public System.Nullable IsGlobal + { + get + { + return this.GetAttributeValue>("isglobal"); + } + set + { + this.OnPropertyChanging("IsGlobal"); + this.SetAttributeValue("isglobal", value); + this.OnPropertyChanged("IsGlobal"); + } + } + + /// + /// Information about whether the role in the template applies to the user's business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islocal")] + public System.Nullable IsLocal + { + get + { + return this.GetAttributeValue>("islocal"); + } + set + { + this.OnPropertyChanging("IsLocal"); + this.SetAttributeValue("islocal", value); + this.OnPropertyChanged("IsLocal"); + } + } + + /// + /// Unique identifier of the privilege assigned to the role template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("privilegeid")] + public System.Nullable PrivilegeId + { + get + { + return this.GetAttributeValue>("privilegeid"); + } + } + + /// + /// Unique identifier of the role template that is associated with the role privilege. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateid")] + public System.Nullable RoleTemplateId + { + get + { + return this.GetAttributeValue>("roletemplateid"); + } + } + + /// + /// Unique identifier of the role template privileges. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateprivilegeid")] + public System.Nullable RoleTemplatePrivilegeId + { + get + { + return this.GetAttributeValue>("roletemplateprivilegeid"); + } + set + { + this.OnPropertyChanging("RoleTemplatePrivilegeId"); + this.SetAttributeValue("roletemplateprivilegeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RoleTemplatePrivilegeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roletemplateprivilegeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RoleTemplatePrivilegeId = value; + } + } + } + + /// + /// Field to be rolled up to calculate the actual and in-progress values against the goal. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("rollupfield")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class RollupField : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public RollupField() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "rollupfield"; + + public const int EntityTypeCode = 9604; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Select a date field for the selected record type, such as Actual Closed Date for the Opportunity record type. A record participates in the goal rollup, if the selected date falls between the start date and the end date for the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateattribute")] + public string DateAttribute + { + get + { + return this.GetAttributeValue("dateattribute"); + } + set + { + this.OnPropertyChanging("DateAttribute"); + this.SetAttributeValue("dateattribute", value); + this.OnPropertyChanged("DateAttribute"); + } + } + + /// + /// Select the record type that contains the date field that will be considered while rolling up data to the goal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityfordateattribute")] + public string EntityForDateAttribute + { + get + { + return this.GetAttributeValue("entityfordateattribute"); + } + set + { + this.OnPropertyChanging("EntityForDateAttribute"); + this.SetAttributeValue("entityfordateattribute", value); + this.OnPropertyChanged("EntityForDateAttribute"); + } + } + + /// + /// Select a rollup field where the metric rollup data will be displayed in the goal. The options are an integer or money, depending on the Metric Type you chose for the goal metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("goalattribute")] + public string GoalAttribute + { + get + { + return this.GetAttributeValue("goalattribute"); + } + set + { + this.OnPropertyChanging("GoalAttribute"); + this.SetAttributeValue("goalattribute", value); + this.OnPropertyChanged("GoalAttribute"); + } + } + + /// + /// 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"); + } + } + + /// + /// Tells whether the state or status belongs to the parent entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isstateparententityattribute")] + public System.Nullable IsStateParentEntityAttribute + { + get + { + return this.GetAttributeValue>("isstateparententityattribute"); + } + set + { + this.OnPropertyChanging("IsStateParentEntityAttribute"); + this.SetAttributeValue("isstateparententityattribute", value); + this.OnPropertyChanged("IsStateParentEntityAttribute"); + } + } + + /// + /// Unique identifier of the goal metric associated with the rollup field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + public Microsoft.Xrm.Sdk.EntityReference MetricId + { + get + { + return this.GetAttributeValue("metricid"); + } + set + { + this.OnPropertyChanging("MetricId"); + this.SetAttributeValue("metricid", value); + this.OnPropertyChanged("MetricId"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Choose the ID of the organization that the record is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the rollup field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupfieldid")] + public System.Nullable RollupFieldId + { + get + { + return this.GetAttributeValue>("rollupfieldid"); + } + set + { + this.OnPropertyChanging("RollupFieldId"); + this.SetAttributeValue("rollupfieldid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("RollupFieldId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rollupfieldid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.RollupFieldId = value; + } + } + + /// + /// Type the name of the field that the data for the goal rolls up from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceattribute")] + public string SourceAttribute + { + get + { + return this.GetAttributeValue("sourceattribute"); + } + set + { + this.OnPropertyChanging("SourceAttribute"); + this.SetAttributeValue("sourceattribute", value); + this.OnPropertyChanged("SourceAttribute"); + } + } + + /// + /// Type the name of the record type (entity) that the data for the goal must roll up from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentity")] + public string SourceEntity + { + get + { + return this.GetAttributeValue("sourceentity"); + } + set + { + this.OnPropertyChanging("SourceEntity"); + this.SetAttributeValue("sourceentity", value); + this.OnPropertyChanged("SourceEntity"); + } + } + + /// + /// Select the state of the records you want to use as the source of the rollup data for the metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcestate")] + public System.Nullable SourceState + { + get + { + return this.GetAttributeValue>("sourcestate"); + } + set + { + this.OnPropertyChanging("SourceState"); + this.SetAttributeValue("sourcestate", value); + this.OnPropertyChanged("SourceState"); + } + } + + /// + /// Select the status of the records you want to use as the source of the rollup data for the metric. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcestatus")] + public System.Nullable SourceStatus + { + get + { + return this.GetAttributeValue>("sourcestatus"); + } + set + { + this.OnPropertyChanging("SourceStatus"); + this.SetAttributeValue("sourcestatus", value); + this.OnPropertyChanged("SourceStatus"); + } + } + + /// + /// 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 of the rollup field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N rollupfield_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_AsyncOperations")] + public System.Collections.Generic.IEnumerable rollupfield_AsyncOperations + { + get + { + return this.GetRelatedEntities("rollupfield_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("rollupfield_AsyncOperations"); + this.SetRelatedEntities("rollupfield_AsyncOperations", null, value); + this.OnPropertyChanged("rollupfield_AsyncOperations"); + } + } + + /// + /// 1:N rollupfield_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("rollupfield_ProcessSessions")] + public System.Collections.Generic.IEnumerable rollupfield_ProcessSessions + { + get + { + return this.GetRelatedEntities("rollupfield_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("rollupfield_ProcessSessions"); + this.SetRelatedEntities("rollupfield_ProcessSessions", null, value); + this.OnPropertyChanged("rollupfield_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_rollupfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_rollupfield")] + public System.Collections.Generic.IEnumerable userentityinstancedata_rollupfield + { + get + { + return this.GetRelatedEntities("userentityinstancedata_rollupfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_rollupfield"); + this.SetRelatedEntities("userentityinstancedata_rollupfield", null, value); + this.OnPropertyChanged("userentityinstancedata_rollupfield"); + } + } + + /// + /// N:1 lk_rollupfield_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_createdby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_createdby", null); + } + } + + /// + /// N:1 lk_rollupfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_rollupfield_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_modifiedby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_modifiedby", null); + } + } + + /// + /// N:1 lk_rollupfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_rollupfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_rollupfield_modifiedonbehalfby", null); + } + } + + /// + /// N:1 metric_rollupfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("metricid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("metric_rollupfield")] + public Xrm.Framework.CI.Common.Entities.Metric metric_rollupfield + { + get + { + return this.GetRelatedEntity("metric_rollupfield", null); + } + set + { + this.OnPropertyChanging("metric_rollupfield"); + this.SetRelatedEntity("metric_rollupfield", null, value); + this.OnPropertyChanged("metric_rollupfield"); + } + } + } + + /// + /// Storage of sales literature, which may contain one or more documents. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesliterature")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesLiterature : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesLiterature() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesliterature"; + + public const int EntityTypeCode = 1038; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the sales literature, such as the intended audience or primary messages. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Choose the user who is responsible for maintaining or updating the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeecontactid")] + public Microsoft.Xrm.Sdk.EntityReference EmployeeContactId + { + get + { + return this.GetAttributeValue("employeecontactid"); + } + set + { + this.OnPropertyChanging("EmployeeContactId"); + this.SetAttributeValue("employeecontactid", value); + this.OnPropertyChanged("EmployeeContactId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Enter the expiration date or last day the sales literature can be distributed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expirationdate")] + public System.Nullable ExpirationDate + { + get + { + return this.GetAttributeValue>("expirationdate"); + } + set + { + this.OnPropertyChanging("ExpirationDate"); + this.SetAttributeValue("expirationdate", value); + this.OnPropertyChanged("ExpirationDate"); + } + } + + /// + /// Tells whether the sales literature has one or more attachments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hasattachments")] + public System.Nullable HasAttachments + { + get + { + return this.GetAttributeValue>("hasattachments"); + } + set + { + this.OnPropertyChanging("HasAttachments"); + this.SetAttributeValue("hasattachments", value); + this.OnPropertyChanged("HasAttachments"); + } + } + + /// + /// 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 sales literature can be distributed to prospects and customers or is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomerviewable")] + public System.Nullable IsCustomerViewable + { + get + { + return this.GetAttributeValue>("iscustomerviewable"); + } + set + { + this.OnPropertyChanging("IsCustomerViewable"); + this.SetAttributeValue("iscustomerviewable", value); + this.OnPropertyChanged("IsCustomerViewable"); + } + } + + /// + /// Type one or more topics or keywords that can be used to search for the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keywords")] + public string KeyWords + { + get + { + return this.GetAttributeValue("keywords"); + } + set + { + this.OnPropertyChanging("KeyWords"); + this.SetAttributeValue("keywords", value); + this.OnPropertyChanged("KeyWords"); + } + } + + /// + /// Select a category or type to help others identify the intended use of the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("literaturetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LiteratureTypeCode + { + get + { + return this.GetAttributeValue("literaturetypecode"); + } + set + { + this.OnPropertyChanging("LiteratureTypeCode"); + this.SetAttributeValue("literaturetypecode", value); + this.OnPropertyChanged("LiteratureTypeCode"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive title for the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose the ID of the organization that the record is associated with. + /// + [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 ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public System.Nullable SalesLiteratureId + { + get + { + return this.GetAttributeValue>("salesliteratureid"); + } + set + { + this.OnPropertyChanging("SalesLiteratureId"); + this.SetAttributeValue("salesliteratureid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SalesLiteratureId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SalesLiteratureId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// Choose the subject for the sales literature to relate the item to a product or business group. Administrators can configure subjects under Business Management in the Settings area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 sales literature. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N sales_literature_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sales_literature_items")] + public System.Collections.Generic.IEnumerable sales_literature_items + { + get + { + return this.GetRelatedEntities("sales_literature_items", null); + } + set + { + this.OnPropertyChanging("sales_literature_items"); + this.SetRelatedEntities("sales_literature_items", null, value); + this.OnPropertyChanged("sales_literature_items"); + } + } + + /// + /// 1:N SalesLiterature_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesLiterature_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesLiterature_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_AsyncOperations"); + this.SetRelatedEntities("SalesLiterature_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiterature_AsyncOperations"); + } + } + + /// + /// 1:N SalesLiterature_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesLiterature_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesLiterature_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_BulkDeleteFailures"); + this.SetRelatedEntities("SalesLiterature_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesLiterature_BulkDeleteFailures"); + } + } + + /// + /// 1:N salesliterature_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesliterature_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable salesliterature_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("salesliterature_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesliterature_principalobjectattributeaccess"); + this.SetRelatedEntities("salesliterature_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesliterature_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SalesLiterature_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesLiterature_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesLiterature_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_ProcessSessions"); + this.SetRelatedEntities("SalesLiterature_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiterature_ProcessSessions"); + } + } + + /// + /// 1:N SalesLiterature_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_SharepointDocumentLocation")] + public System.Collections.Generic.IEnumerable SalesLiterature_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntities("SalesLiterature_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_SharepointDocumentLocation"); + this.SetRelatedEntities("SalesLiterature_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("SalesLiterature_SharepointDocumentLocation"); + } + } + + /// + /// 1:N userentityinstancedata_salesliterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliterature")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesliterature + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliterature"); + this.SetRelatedEntities("userentityinstancedata_salesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliterature"); + } + } + + /// + /// N:N campaignactivitysalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignactivitysalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignactivitysalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignactivitysalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignactivitysalesliterature_association"); + this.SetRelatedEntities("campaignactivitysalesliterature_association", null, value); + this.OnPropertyChanged("campaignactivitysalesliterature_association"); + } + } + + /// + /// N:N campaignsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaignsalesliterature_association")] + public System.Collections.Generic.IEnumerable campaignsalesliterature_association + { + get + { + return this.GetRelatedEntities("campaignsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("campaignsalesliterature_association"); + this.SetRelatedEntities("campaignsalesliterature_association", null, value); + this.OnPropertyChanged("campaignsalesliterature_association"); + } + } + + /// + /// N:N competitorsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("competitorsalesliterature_association")] + public System.Collections.Generic.IEnumerable competitorsalesliterature_association + { + get + { + return this.GetRelatedEntities("competitorsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("competitorsalesliterature_association"); + this.SetRelatedEntities("competitorsalesliterature_association", null, value); + this.OnPropertyChanged("competitorsalesliterature_association"); + } + } + + /// + /// N:N productsalesliterature_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("productsalesliterature_association")] + public System.Collections.Generic.IEnumerable productsalesliterature_association + { + get + { + return this.GetRelatedEntities("productsalesliterature_association", null); + } + set + { + this.OnPropertyChanging("productsalesliterature_association"); + this.SetRelatedEntities("productsalesliterature_association", null, value); + this.OnPropertyChanged("productsalesliterature_association"); + } + } + + /// + /// N:1 lk_salesliterature_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliterature_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliterature_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliterature_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliterature_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliterature_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliteraturebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteraturebase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesliteraturebase_createdby", null); + } + } + + /// + /// N:1 lk_salesliteraturebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteraturebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesliteraturebase_modifiedby", null); + } + } + + /// + /// N:1 organization_sales_literature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sales_literature")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sales_literature + { + get + { + return this.GetRelatedEntity("organization_sales_literature", null); + } + } + + /// + /// N:1 processstage_salesliteratures + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesliteratures")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_salesliteratures + { + get + { + return this.GetRelatedEntity("processstage_salesliteratures", null); + } + set + { + this.OnPropertyChanging("processstage_salesliteratures"); + this.SetRelatedEntity("processstage_salesliteratures", null, value); + this.OnPropertyChanged("processstage_salesliteratures"); + } + } + + /// + /// N:1 subject_sales_literature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_sales_literature")] + public Xrm.Framework.CI.Common.Entities.Subject subject_sales_literature + { + get + { + return this.GetRelatedEntity("subject_sales_literature", null); + } + set + { + this.OnPropertyChanging("subject_sales_literature"); + this.SetRelatedEntity("subject_sales_literature", null, value); + this.OnPropertyChanged("subject_sales_literature"); + } + } + + /// + /// N:1 system_user_sales_literature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeecontactid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_sales_literature")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_sales_literature + { + get + { + return this.GetRelatedEntity("system_user_sales_literature", null); + } + set + { + this.OnPropertyChanging("system_user_sales_literature"); + this.SetRelatedEntity("system_user_sales_literature", null, value); + this.OnPropertyChanged("system_user_sales_literature"); + } + } + + /// + /// N:1 TransactionCurrency_SalesLiterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SalesLiterature")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SalesLiterature + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SalesLiterature", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SalesLiterature"); + this.SetRelatedEntity("TransactionCurrency_SalesLiterature", null, value); + this.OnPropertyChanged("TransactionCurrency_SalesLiterature"); + } + } + } + + /// + /// Item in the sales literature collection. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesliteratureitem")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesLiteratureItem : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesLiteratureItem() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesliteratureitem"; + + public const int EntityTypeCode = 1070; + + 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)); + } + } + + /// + /// Abstract of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("abstract")] + public string Abstract + { + get + { + return this.GetAttributeValue("abstract"); + } + set + { + this.OnPropertyChanging("Abstract"); + this.SetAttributeValue("abstract", value); + this.OnPropertyChanged("Abstract"); + } + } + + /// + /// URL of the Website on which the document is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attacheddocumenturl")] + public string AttachedDocumentUrl + { + get + { + return this.GetAttributeValue("attacheddocumenturl"); + } + set + { + this.OnPropertyChanging("AttachedDocumentUrl"); + this.SetAttributeValue("attacheddocumenturl", value); + this.OnPropertyChanged("AttachedDocumentUrl"); + } + } + + /// + /// Author name for the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("authorname")] + public string AuthorName + { + get + { + return this.GetAttributeValue("authorname"); + } + set + { + this.OnPropertyChanging("AuthorName"); + this.SetAttributeValue("authorname", value); + this.OnPropertyChanged("AuthorName"); + } + } + + /// + /// Unique identifier of the user who created the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the document 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 salesliteratureitem. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Shows the encoded contents of the sales literature document attachment. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("documentbody")] + public string DocumentBody + { + get + { + return this.GetAttributeValue("documentbody"); + } + set + { + this.OnPropertyChanging("DocumentBody"); + this.SetAttributeValue("documentbody", value); + this.OnPropertyChanged("DocumentBody"); + } + } + + /// + /// File name of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filename")] + public string FileName + { + get + { + return this.GetAttributeValue("filename"); + } + set + { + this.OnPropertyChanging("FileName"); + this.SetAttributeValue("filename", value); + this.OnPropertyChanged("FileName"); + } + } + + /// + /// File size of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filesize")] + public System.Nullable FileSize + { + get + { + return this.GetAttributeValue>("filesize"); + } + } + + /// + /// Select the file type of the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue FileTypeCode + { + get + { + return this.GetAttributeValue("filetypecode"); + } + set + { + this.OnPropertyChanging("FileTypeCode"); + this.SetAttributeValue("filetypecode", value); + this.OnPropertyChanged("FileTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Tells whether the document can be shared with customers or is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomerviewable")] + public System.Nullable IsCustomerViewable + { + get + { + return this.GetAttributeValue>("iscustomerviewable"); + } + set + { + this.OnPropertyChanging("IsCustomerViewable"); + this.SetAttributeValue("iscustomerviewable", value); + this.OnPropertyChanged("IsCustomerViewable"); + } + } + + /// + /// Keywords to use for searches in documents. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("keywords")] + public string KeyWords + { + get + { + return this.GetAttributeValue("keywords"); + } + set + { + this.OnPropertyChanging("KeyWords"); + this.SetAttributeValue("keywords", value); + this.OnPropertyChanged("KeyWords"); + } + } + + /// + /// Shows the file type of the sales literature document attachment, such as text or document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the document 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 salesliteratureitem. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Unique identifier of the sales literature that is associated with the individual item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + public Microsoft.Xrm.Sdk.EntityReference SalesLiteratureId + { + get + { + return this.GetAttributeValue("salesliteratureid"); + } + set + { + this.OnPropertyChanging("SalesLiteratureId"); + this.SetAttributeValue("salesliteratureid", value); + this.OnPropertyChanged("SalesLiteratureId"); + } + } + + /// + /// Unique identifier for the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureitemid")] + public System.Nullable SalesLiteratureItemId + { + get + { + return this.GetAttributeValue>("salesliteratureitemid"); + } + set + { + this.OnPropertyChanging("SalesLiteratureItemId"); + this.SetAttributeValue("salesliteratureitemid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SalesLiteratureItemId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureitemid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SalesLiteratureItemId = value; + } + } + + /// + /// Type the title or name that describes the document. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Version number of the sales literature item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SalesLiteratureItem_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesLiteratureItem_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesLiteratureItem_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_AsyncOperations"); + this.SetRelatedEntities("SalesLiteratureItem_AsyncOperations", null, value); + this.OnPropertyChanged("SalesLiteratureItem_AsyncOperations"); + } + } + + /// + /// 1:N SalesLiteratureItem_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesLiteratureItem_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesLiteratureItem_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_BulkDeleteFailures"); + this.SetRelatedEntities("SalesLiteratureItem_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesLiteratureItem_BulkDeleteFailures"); + } + } + + /// + /// 1:N SalesLiteratureItem_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiteratureItem_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesLiteratureItem_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesLiteratureItem_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesLiteratureItem_ProcessSessions"); + this.SetRelatedEntities("SalesLiteratureItem_ProcessSessions", null, value); + this.OnPropertyChanged("SalesLiteratureItem_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_salesliteratureitem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliteratureitem")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesliteratureitem + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesliteratureitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliteratureitem"); + this.SetRelatedEntities("userentityinstancedata_salesliteratureitem", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliteratureitem"); + } + } + + /// + /// N:1 lk_salesliteratureitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitem_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitem_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliteratureitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitem_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesliteratureitembase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitembase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitembase_createdby", null); + } + } + + /// + /// N:1 lk_salesliteratureitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesliteratureitembase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesliteratureitembase_modifiedby", null); + } + } + + /// + /// N:1 sales_literature_items + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesliteratureid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sales_literature_items")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature sales_literature_items + { + get + { + return this.GetRelatedEntity("sales_literature_items", null); + } + set + { + this.OnPropertyChanging("sales_literature_items"); + this.SetRelatedEntity("sales_literature_items", null, value); + this.OnPropertyChanged("sales_literature_items"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesOrder : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesOrder() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesorder"; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Order Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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 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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the order. + /// + [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"); + } + } + + /// + /// 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 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 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 ((Xrm.Framework.CI.Common.Entities.SalesOrderState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SalesOrderState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Line Item Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 order. + /// + [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"); + } + } + + /// + /// 1:N order_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_details")] + public System.Collections.Generic.IEnumerable order_details + { + get + { + return this.GetRelatedEntities("order_details", null); + } + set + { + this.OnPropertyChanging("order_details"); + this.SetRelatedEntities("order_details", null, value); + this.OnPropertyChanged("order_details"); + } + } + + /// + /// 1:N order_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_invoices")] + public System.Collections.Generic.IEnumerable order_invoices + { + get + { + return this.GetRelatedEntities("order_invoices", null); + } + set + { + this.OnPropertyChanging("order_invoices"); + this.SetRelatedEntities("order_invoices", null, value); + this.OnPropertyChanged("order_invoices"); + } + } + + /// + /// 1:N salesorder_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_activity_parties")] + public System.Collections.Generic.IEnumerable salesorder_activity_parties + { + get + { + return this.GetRelatedEntities("salesorder_activity_parties", null); + } + set + { + this.OnPropertyChanging("salesorder_activity_parties"); + this.SetRelatedEntities("salesorder_activity_parties", null, value); + this.OnPropertyChanged("salesorder_activity_parties"); + } + } + + /// + /// 1:N SalesOrder_ActivityPointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ActivityPointers")] + public System.Collections.Generic.IEnumerable SalesOrder_ActivityPointers + { + get + { + return this.GetRelatedEntities("SalesOrder_ActivityPointers", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ActivityPointers"); + this.SetRelatedEntities("SalesOrder_ActivityPointers", null, value); + this.OnPropertyChanged("SalesOrder_ActivityPointers"); + } + } + + /// + /// 1:N SalesOrder_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Annotation")] + public System.Collections.Generic.IEnumerable SalesOrder_Annotation + { + get + { + return this.GetRelatedEntities("SalesOrder_Annotation", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Annotation"); + this.SetRelatedEntities("SalesOrder_Annotation", null, value); + this.OnPropertyChanged("SalesOrder_Annotation"); + } + } + + /// + /// 1:N SalesOrder_Appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Appointments")] + public System.Collections.Generic.IEnumerable SalesOrder_Appointments + { + get + { + return this.GetRelatedEntities("SalesOrder_Appointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Appointments"); + this.SetRelatedEntities("SalesOrder_Appointments", null, value); + this.OnPropertyChanged("SalesOrder_Appointments"); + } + } + + /// + /// 1:N SalesOrder_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesOrder_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesOrder_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrder_AsyncOperations"); + this.SetRelatedEntities("SalesOrder_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrder_AsyncOperations"); + } + } + + /// + /// 1:N SalesOrder_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesOrder_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesOrder_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesOrder_BulkDeleteFailures"); + this.SetRelatedEntities("SalesOrder_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesOrder_BulkDeleteFailures"); + } + } + + /// + /// 1:N salesorder_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections1")] + public System.Collections.Generic.IEnumerable salesorder_connections1 + { + get + { + return this.GetRelatedEntities("salesorder_connections1", null); + } + set + { + this.OnPropertyChanging("salesorder_connections1"); + this.SetRelatedEntities("salesorder_connections1", null, value); + this.OnPropertyChanged("salesorder_connections1"); + } + } + + /// + /// 1:N salesorder_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_connections2")] + public System.Collections.Generic.IEnumerable salesorder_connections2 + { + get + { + return this.GetRelatedEntities("salesorder_connections2", null); + } + set + { + this.OnPropertyChanging("salesorder_connections2"); + this.SetRelatedEntities("salesorder_connections2", null, value); + this.OnPropertyChanged("salesorder_connections2"); + } + } + + /// + /// 1:N SalesOrder_Emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Emails")] + public System.Collections.Generic.IEnumerable SalesOrder_Emails + { + get + { + return this.GetRelatedEntities("SalesOrder_Emails", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Emails"); + this.SetRelatedEntities("SalesOrder_Emails", null, value); + this.OnPropertyChanged("SalesOrder_Emails"); + } + } + + /// + /// 1:N SalesOrder_Faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Faxes")] + public System.Collections.Generic.IEnumerable SalesOrder_Faxes + { + get + { + return this.GetRelatedEntities("SalesOrder_Faxes", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Faxes"); + this.SetRelatedEntities("SalesOrder_Faxes", null, value); + this.OnPropertyChanged("SalesOrder_Faxes"); + } + } + + /// + /// 1:N SalesOrder_Letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Letters")] + public System.Collections.Generic.IEnumerable SalesOrder_Letters + { + get + { + return this.GetRelatedEntities("SalesOrder_Letters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Letters"); + this.SetRelatedEntities("SalesOrder_Letters", null, value); + this.OnPropertyChanged("SalesOrder_Letters"); + } + } + + /// + /// 1:N SalesOrder_OrderClose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_OrderClose")] + public System.Collections.Generic.IEnumerable SalesOrder_OrderClose + { + get + { + return this.GetRelatedEntities("SalesOrder_OrderClose", null); + } + set + { + this.OnPropertyChanging("SalesOrder_OrderClose"); + this.SetRelatedEntities("SalesOrder_OrderClose", null, value); + this.OnPropertyChanged("SalesOrder_OrderClose"); + } + } + + /// + /// 1:N SalesOrder_Phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Phonecalls")] + public System.Collections.Generic.IEnumerable SalesOrder_Phonecalls + { + get + { + return this.GetRelatedEntities("SalesOrder_Phonecalls", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Phonecalls"); + this.SetRelatedEntities("SalesOrder_Phonecalls", null, value); + this.OnPropertyChanged("SalesOrder_Phonecalls"); + } + } + + /// + /// 1:N salesorder_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorder_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable salesorder_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("salesorder_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorder_principalobjectattributeaccess"); + this.SetRelatedEntities("salesorder_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorder_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SalesOrder_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesOrder_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesOrder_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ProcessSessions"); + this.SetRelatedEntities("SalesOrder_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrder_ProcessSessions"); + } + } + + /// + /// 1:N SalesOrder_RecurringAppointmentMasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_RecurringAppointmentMasters")] + public System.Collections.Generic.IEnumerable SalesOrder_RecurringAppointmentMasters + { + get + { + return this.GetRelatedEntities("SalesOrder_RecurringAppointmentMasters", null); + } + set + { + this.OnPropertyChanging("SalesOrder_RecurringAppointmentMasters"); + this.SetRelatedEntities("SalesOrder_RecurringAppointmentMasters", null, value); + this.OnPropertyChanged("SalesOrder_RecurringAppointmentMasters"); + } + } + + /// + /// 1:N SalesOrder_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ServiceAppointments")] + public System.Collections.Generic.IEnumerable SalesOrder_ServiceAppointments + { + get + { + return this.GetRelatedEntities("SalesOrder_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ServiceAppointments"); + this.SetRelatedEntities("SalesOrder_ServiceAppointments", null, value); + this.OnPropertyChanged("SalesOrder_ServiceAppointments"); + } + } + + /// + /// 1:N SalesOrder_Tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Tasks")] + public System.Collections.Generic.IEnumerable SalesOrder_Tasks + { + get + { + return this.GetRelatedEntities("SalesOrder_Tasks", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Tasks"); + this.SetRelatedEntities("SalesOrder_Tasks", null, value); + this.OnPropertyChanged("SalesOrder_Tasks"); + } + } + + /// + /// 1:N userentityinstancedata_salesorder + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorder")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesorder + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesorder", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorder"); + this.SetRelatedEntities("userentityinstancedata_salesorder", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorder"); + } + } + + /// + /// N:N contactorders_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contactorders_association")] + public System.Collections.Generic.IEnumerable contactorders_association + { + get + { + return this.GetRelatedEntities("contactorders_association", null); + } + set + { + this.OnPropertyChanging("contactorders_association"); + this.SetRelatedEntities("contactorders_association", null, value); + this.OnPropertyChanged("contactorders_association"); + } + } + + /// + /// N:1 business_unit_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_orders")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_orders + { + get + { + return this.GetRelatedEntity("business_unit_orders", null); + } + } + + /// + /// N:1 campaign_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("campaign_orders")] + public Xrm.Framework.CI.Common.Entities.Campaign campaign_orders + { + get + { + return this.GetRelatedEntity("campaign_orders", null); + } + set + { + this.OnPropertyChanging("campaign_orders"); + this.SetRelatedEntity("campaign_orders", null, value); + this.OnPropertyChanged("campaign_orders"); + } + } + + /// + /// N:1 lk_salesorder_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorder_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorder_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorder_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorder_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorder_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorderbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderbase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesorderbase_createdby", null); + } + } + + /// + /// N:1 lk_salesorderbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesorderbase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_sales_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_sales_orders")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_sales_orders + { + get + { + return this.GetRelatedEntity("opportunity_sales_orders", null); + } + set + { + this.OnPropertyChanging("opportunity_sales_orders"); + this.SetRelatedEntity("opportunity_sales_orders", null, value); + this.OnPropertyChanged("opportunity_sales_orders"); + } + } + + /// + /// N:1 order_customer_accounts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_accounts")] + public Xrm.Framework.CI.Common.Entities.Account order_customer_accounts + { + get + { + return this.GetRelatedEntity("order_customer_accounts", null); + } + set + { + this.OnPropertyChanging("order_customer_accounts"); + this.SetRelatedEntity("order_customer_accounts", null, value); + this.OnPropertyChanged("order_customer_accounts"); + } + } + + /// + /// N:1 order_customer_contacts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_customer_contacts")] + public Xrm.Framework.CI.Common.Entities.Contact order_customer_contacts + { + get + { + return this.GetRelatedEntity("order_customer_contacts", null); + } + set + { + this.OnPropertyChanging("order_customer_contacts"); + this.SetRelatedEntity("order_customer_contacts", null, value); + this.OnPropertyChanged("order_customer_contacts"); + } + } + + /// + /// N:1 price_level_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("price_level_orders")] + public Xrm.Framework.CI.Common.Entities.PriceLevel price_level_orders + { + get + { + return this.GetRelatedEntity("price_level_orders", null); + } + set + { + this.OnPropertyChanging("price_level_orders"); + this.SetRelatedEntity("price_level_orders", null, value); + this.OnPropertyChanged("price_level_orders"); + } + } + + /// + /// N:1 processstage_salesorders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_salesorders")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_salesorders + { + get + { + return this.GetRelatedEntity("processstage_salesorders", null); + } + set + { + this.OnPropertyChanging("processstage_salesorders"); + this.SetRelatedEntity("processstage_salesorders", null, value); + this.OnPropertyChanged("processstage_salesorders"); + } + } + + /// + /// N:1 quote_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("quote_orders")] + public Xrm.Framework.CI.Common.Entities.Quote quote_orders + { + get + { + return this.GetRelatedEntity("quote_orders", null); + } + set + { + this.OnPropertyChanging("quote_orders"); + this.SetRelatedEntity("quote_orders", null, value); + this.OnPropertyChanged("quote_orders"); + } + } + + /// + /// N:1 system_user_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_orders")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_orders + { + get + { + return this.GetRelatedEntity("system_user_orders", null); + } + } + + /// + /// N:1 team_orders + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orders")] + public Xrm.Framework.CI.Common.Entities.Team team_orders + { + get + { + return this.GetRelatedEntity("team_orders", null); + } + } + + /// + /// N:1 transactioncurrency_salesorder + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorder")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_salesorder + { + get + { + return this.GetRelatedEntity("transactioncurrency_salesorder", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_salesorder"); + this.SetRelatedEntity("transactioncurrency_salesorder", null, value); + this.OnPropertyChanged("transactioncurrency_salesorder"); + } + } + } + + /// + /// Line item in a sales order. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesorderdetail")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SalesOrderDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SalesOrderDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesorderdetail"; + + 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"); + } + } + + /// + /// Shows the Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Extended Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// 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 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 CRM 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"); + } + } + + /// + /// Shows the Manual Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the business unit that owns the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Price Per Unit field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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; + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the status of the order that the order detail is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderstatecode")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesOrderStateCode + { + get + { + return this.GetAttributeValue("salesorderstatecode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 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 of the sales order detail. + /// + [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"); + } + } + + /// + /// Shows the Volume Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area. + /// + [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"); + } + } + + /// + /// 1:N SalesOrderDetail_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_AsyncOperations")] + public System.Collections.Generic.IEnumerable SalesOrderDetail_AsyncOperations + { + get + { + return this.GetRelatedEntities("SalesOrderDetail_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_AsyncOperations"); + this.SetRelatedEntities("SalesOrderDetail_AsyncOperations", null, value); + this.OnPropertyChanged("SalesOrderDetail_AsyncOperations"); + } + } + + /// + /// 1:N SalesOrderDetail_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SalesOrderDetail_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SalesOrderDetail_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_BulkDeleteFailures"); + this.SetRelatedEntities("SalesOrderDetail_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SalesOrderDetail_BulkDeleteFailures"); + } + } + + /// + /// 1:N salesorderdetail_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("salesorderdetail_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable salesorderdetail_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("salesorderdetail_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("salesorderdetail_principalobjectattributeaccess"); + this.SetRelatedEntities("salesorderdetail_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("salesorderdetail_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SalesOrderDetail_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrderDetail_ProcessSessions")] + public System.Collections.Generic.IEnumerable SalesOrderDetail_ProcessSessions + { + get + { + return this.GetRelatedEntities("SalesOrderDetail_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SalesOrderDetail_ProcessSessions"); + this.SetRelatedEntities("SalesOrderDetail_ProcessSessions", null, value); + this.OnPropertyChanged("SalesOrderDetail_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_salesorderdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorderdetail")] + public System.Collections.Generic.IEnumerable userentityinstancedata_salesorderdetail + { + get + { + return this.GetRelatedEntities("userentityinstancedata_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorderdetail"); + this.SetRelatedEntities("userentityinstancedata_salesorderdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorderdetail"); + } + } + + /// + /// N:1 lk_salesorderdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetail_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorderdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetail_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_salesorderdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetailbase_createdby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetailbase_createdby", null); + } + } + + /// + /// N:1 lk_salesorderdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_salesorderdetailbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_salesorderdetailbase_modifiedby", null); + } + } + + /// + /// N:1 order_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("order_details")] + public Xrm.Framework.CI.Common.Entities.SalesOrder order_details + { + get + { + return this.GetRelatedEntity("order_details", null); + } + set + { + this.OnPropertyChanging("order_details"); + this.SetRelatedEntity("order_details", null, value); + this.OnPropertyChanged("order_details"); + } + } + + /// + /// N:1 product_order_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("product_order_details")] + public Xrm.Framework.CI.Common.Entities.Product product_order_details + { + get + { + return this.GetRelatedEntity("product_order_details", null); + } + set + { + this.OnPropertyChanging("product_order_details"); + this.SetRelatedEntity("product_order_details", null, value); + this.OnPropertyChanged("product_order_details"); + } + } + + /// + /// N:1 system_user_salesorderdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_salesorderdetail")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_salesorderdetail + { + get + { + return this.GetRelatedEntity("system_user_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("system_user_salesorderdetail"); + this.SetRelatedEntity("system_user_salesorderdetail", null, value); + this.OnPropertyChanged("system_user_salesorderdetail"); + } + } + + /// + /// N:1 transactioncurrency_salesorderdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorderdetail")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_salesorderdetail + { + get + { + return this.GetRelatedEntity("transactioncurrency_salesorderdetail", null); + } + } + + /// + /// N:1 unit_of_measurement_order_details + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_order_details")] + public Xrm.Framework.CI.Common.Entities.UoM unit_of_measurement_order_details + { + get + { + return this.GetRelatedEntity("unit_of_measurement_order_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_order_details"); + this.SetRelatedEntity("unit_of_measurement_order_details", null, value); + this.OnPropertyChanged("unit_of_measurement_order_details"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SavedQueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Saved query against the database. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("savedquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SavedQuery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SavedQuery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "savedquery"; + + public const int EntityTypeCode = 1039; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type the column name that will be used to group the results from the data collected across multiple records from a system view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("advancedgroupby")] + public string AdvancedGroupBy + { + get + { + return this.GetAttributeValue("advancedgroupby"); + } + set + { + this.OnPropertyChanging("AdvancedGroupBy"); + this.SetAttributeValue("advancedgroupby", value); + this.OnPropertyChanged("AdvancedGroupBy"); + } + } + + /// + /// Tells whether the view can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty CanBeDeleted + { + get + { + return this.GetAttributeValue("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// Contains the columns and sorting criteria for the view, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnsetxml")] + public string ColumnSetXml + { + get + { + return this.GetAttributeValue("columnsetxml"); + } + set + { + this.OnPropertyChanging("ColumnSetXml"); + this.SetAttributeValue("columnsetxml", value); + this.OnPropertyChanged("ColumnSetXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Type information about how the items in the system view are formatted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("conditionalformatting")] + public string ConditionalFormatting + { + get + { + return this.GetAttributeValue("conditionalformatting"); + } + set + { + this.OnPropertyChanging("ConditionalFormatting"); + this.SetAttributeValue("conditionalformatting", value); + this.OnPropertyChanged("ConditionalFormatting"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the view, such as the filter criteria or intended results set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// String specifying the query in Fetch XML language. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fetchxml")] + public string FetchXml + { + get + { + return this.GetAttributeValue("fetchxml"); + } + set + { + this.OnPropertyChanging("FetchXml"); + this.SetAttributeValue("fetchxml", value); + this.OnPropertyChanged("FetchXml"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Tells whether the component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Tells whether the view is the default view for the specified record type (entity). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Tells whether the record is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether or not this is viewable by the entire organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] + [System.ObsoleteAttribute()] + public System.Nullable IsPrivate + { + get + { + return this.GetAttributeValue>("isprivate"); + } + } + + /// + /// Choose whether the view is compatible with Quick Find. When users search for specific items, you define the fields that are searched in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isquickfindquery")] + public System.Nullable IsQuickFindQuery + { + get + { + return this.GetAttributeValue>("isquickfindquery"); + } + set + { + this.OnPropertyChanging("IsQuickFindQuery"); + this.SetAttributeValue("isquickfindquery", value); + this.OnPropertyChanged("IsQuickFindQuery"); + } + } + + /// + /// Tells whether the view was created by a user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isuserdefined")] + public System.Nullable IsUserDefined + { + get + { + return this.GetAttributeValue>("isuserdefined"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("layoutxml")] + public string LayoutXml + { + get + { + return this.GetAttributeValue("layoutxml"); + } + set + { + this.OnPropertyChanging("LayoutXml"); + this.SetAttributeValue("layoutxml", value); + this.OnPropertyChanged("LayoutXml"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a name for the view to describe what results the view will contain. This name is visible to users in the View list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Choose the ID of the organization that the record is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For the organization, type the tab order to determine how users navigate through the screen using only the Tab key. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationtaborder")] + public System.Nullable OrganizationTabOrder + { + get + { + return this.GetAttributeValue>("organizationtaborder"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryapi")] + public string QueryAPI + { + get + { + return this.GetAttributeValue("queryapi"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queryappusage")] + public System.Nullable QueryAppUsage + { + get + { + return this.GetAttributeValue>("queryappusage"); + } + set + { + this.OnPropertyChanging("QueryAppUsage"); + this.SetAttributeValue("queryappusage", value); + this.OnPropertyChanged("QueryAppUsage"); + } + } + + /// + /// Shows the type of the query. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("querytype")] + public System.Nullable QueryType + { + get + { + return this.GetAttributeValue>("querytype"); + } + set + { + this.OnPropertyChanging("QueryType"); + this.SetAttributeValue("querytype", value); + this.OnPropertyChanged("QueryType"); + } + } + + /// + /// Type of entity displayed in the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("returnedtypecode")] + public string ReturnedTypeCode + { + get + { + return this.GetAttributeValue("returnedtypecode"); + } + set + { + this.OnPropertyChanging("ReturnedTypeCode"); + this.SetAttributeValue("returnedtypecode", value); + this.OnPropertyChanged("ReturnedTypeCode"); + } + } + + /// + /// Unique identifier of the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryid")] + public System.Nullable SavedQueryId + { + get + { + return this.GetAttributeValue>("savedqueryid"); + } + set + { + this.OnPropertyChanging("SavedQueryId"); + this.SetAttributeValue("savedqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SavedQueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SavedQueryId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryidunique")] + public System.Nullable SavedQueryIdUnique + { + get + { + return this.GetAttributeValue>("savedqueryidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Shows the status of the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SavedQueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SavedQueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows the reason code that explains the status of the record. + /// + [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"); + } + } + + /// + /// Version number of the view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SavedQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_AsyncOperations")] + public System.Collections.Generic.IEnumerable SavedQuery_AsyncOperations + { + get + { + return this.GetRelatedEntities("SavedQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SavedQuery_AsyncOperations"); + this.SetRelatedEntities("SavedQuery_AsyncOperations", null, value); + this.OnPropertyChanged("SavedQuery_AsyncOperations"); + } + } + + /// + /// 1:N SavedQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SavedQuery_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SavedQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SavedQuery_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SavedQuery_BulkDeleteFailures"); + this.SetRelatedEntities("SavedQuery_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SavedQuery_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_savedquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedquery")] + public System.Collections.Generic.IEnumerable userentityinstancedata_savedquery + { + get + { + return this.GetRelatedEntities("userentityinstancedata_savedquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedquery"); + this.SetRelatedEntities("userentityinstancedata_savedquery", null, value); + this.OnPropertyChanged("userentityinstancedata_savedquery"); + } + } + + /// + /// N:1 lk_savedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_savedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_savedquerybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquerybase_createdby + { + get + { + return this.GetRelatedEntity("lk_savedquerybase_createdby", null); + } + } + + /// + /// N:1 lk_savedquerybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedquerybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_savedquerybase_modifiedby", null); + } + } + + /// + /// N:1 organization_saved_queries + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_queries")] + public Xrm.Framework.CI.Common.Entities.Organization organization_saved_queries + { + get + { + return this.GetRelatedEntity("organization_saved_queries", null); + } + } + } + + /// + /// System chart attached to an entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("savedqueryvisualization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SavedQueryVisualization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SavedQueryVisualization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "savedqueryvisualization"; + + public const int EntityTypeCode = 1111; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the system chart 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 system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// XML string used to define the underlying data for the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datadescription")] + public string DataDescription + { + get + { + return this.GetAttributeValue("datadescription"); + } + set + { + this.OnPropertyChanging("DataDescription"); + this.SetAttributeValue("datadescription", value); + this.OnPropertyChanged("DataDescription"); + } + } + + /// + /// Description of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the system chart is the default chart for the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the system chart 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 system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// XML string used to define the presentation properties of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentationdescription")] + public string PresentationDescription + { + get + { + return this.GetAttributeValue("presentationdescription"); + } + set + { + this.OnPropertyChanging("PresentationDescription"); + this.SetAttributeValue("presentationdescription", value); + this.OnPropertyChanged("PresentationDescription"); + } + } + + /// + /// Type of entity with which the system chart is attached. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Unique identifier of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryvisualizationid")] + public System.Nullable SavedQueryVisualizationId + { + get + { + return this.GetAttributeValue>("savedqueryvisualizationid"); + } + set + { + this.OnPropertyChanging("SavedQueryVisualizationId"); + this.SetAttributeValue("savedqueryvisualizationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SavedQueryVisualizationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryvisualizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SavedQueryVisualizationId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("savedqueryvisualizationidunique")] + public System.Nullable SavedQueryVisualizationIdUnique + { + get + { + return this.GetAttributeValue>("savedqueryvisualizationidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Version number of the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Unique identifier of the Web resource that will be displayed in the system chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public Microsoft.Xrm.Sdk.EntityReference WebResourceId + { + get + { + return this.GetAttributeValue("webresourceid"); + } + set + { + this.OnPropertyChanging("WebResourceId"); + this.SetAttributeValue("webresourceid", value); + this.OnPropertyChanged("WebResourceId"); + } + } + + /// + /// 1:N userentityinstancedata_savedqueryvisualization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedqueryvisualization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_savedqueryvisualization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_savedqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedqueryvisualization"); + this.SetRelatedEntities("userentityinstancedata_savedqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_savedqueryvisualization"); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_createdby", null); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_modifiedby", null); + } + } + + /// + /// N:1 lk_savedqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_savedqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_savedqueryvisualizationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_saved_query_visualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_saved_query_visualizations")] + public Xrm.Framework.CI.Common.Entities.Organization organization_saved_query_visualizations + { + get + { + return this.GetRelatedEntity("organization_saved_query_visualizations", null); + } + } + + /// + /// N:1 webresource_savedqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_savedqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.WebResource webresource_savedqueryvisualizations + { + get + { + return this.GetRelatedEntity("webresource_savedqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_savedqueryvisualizations"); + this.SetRelatedEntity("webresource_savedqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_savedqueryvisualizations"); + } + } + } + + /// + /// Message that is supported by the SDK. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessage"; + + public const int EntityTypeCode = 4606; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about whether the SDK message is automatically transacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autotransact")] + public System.Nullable AutoTransact + { + get + { + return this.GetAttributeValue>("autotransact"); + } + set + { + this.OnPropertyChanging("AutoTransact"); + this.SetAttributeValue("autotransact", value); + this.OnPropertyChanged("AutoTransact"); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] + public System.Nullable Availability + { + get + { + return this.GetAttributeValue>("availability"); + } + set + { + this.OnPropertyChanging("Availability"); + this.SetAttributeValue("availability", value); + this.OnPropertyChanged("Availability"); + } + } + + /// + /// If this is a categorized method, this is the name, otherwise None. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("categoryname")] + public string CategoryName + { + get + { + return this.GetAttributeValue("categoryname"); + } + set + { + this.OnPropertyChanging("CategoryName"); + this.SetAttributeValue("categoryname", value); + this.OnPropertyChanged("CategoryName"); + } + } + + /// + /// Unique identifier of the user who created the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Indicates whether the SDK message should have its requests expanded per primary entity defined in its filters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expand")] + public System.Nullable Expand + { + get + { + return this.GetAttributeValue>("expand"); + } + set + { + this.OnPropertyChanging("Expand"); + this.SetAttributeValue("expand", value); + this.OnPropertyChanged("Expand"); + } + } + + /// + /// Information about whether the SDK message is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactive")] + public System.Nullable IsActive + { + get + { + return this.GetAttributeValue>("isactive"); + } + set + { + this.OnPropertyChanging("IsActive"); + this.SetAttributeValue("isactive", value); + this.OnPropertyChanged("IsActive"); + } + } + + /// + /// Indicates whether the SDK message is private. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] + public System.Nullable IsPrivate + { + get + { + return this.GetAttributeValue>("isprivate"); + } + set + { + this.OnPropertyChanging("IsPrivate"); + this.SetAttributeValue("isprivate", value); + this.OnPropertyChanged("IsPrivate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvalidforexecuteasync")] + public System.Nullable IsValidForExecuteAsync + { + get + { + return this.GetAttributeValue>("isvalidforexecuteasync"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the SDK message entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public System.Nullable SdkMessageId + { + get + { + return this.GetAttributeValue>("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageId = value; + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidunique")] + public System.Nullable SdkMessageIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageidunique"); + } + } + + /// + /// Indicates whether the SDK message is a template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("template")] + public System.Nullable Template + { + get + { + return this.GetAttributeValue>("template"); + } + set + { + this.OnPropertyChanging("Template"); + this.SetAttributeValue("template", value); + this.OnPropertyChanged("Template"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("throttlesettings")] + public string ThrottleSettings + { + get + { + return this.GetAttributeValue("throttlesettings"); + } + } + + /// + /// Number that identifies a specific revision of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N message_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("message_sdkmessagepair")] + public System.Collections.Generic.IEnumerable message_sdkmessagepair + { + get + { + return this.GetRelatedEntities("message_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("message_sdkmessagepair"); + this.SetRelatedEntities("message_sdkmessagepair", null, value); + this.OnPropertyChanged("message_sdkmessagepair"); + } + } + + /// + /// 1:N sdkmessageid_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable sdkmessageid_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("sdkmessageid_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessagefilter"); + this.SetRelatedEntities("sdkmessageid_sdkmessagefilter", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessagefilter"); + } + } + + /// + /// 1:N sdkmessageid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessageid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N sdkmessageid_workflow_dependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_workflow_dependency")] + public System.Collections.Generic.IEnumerable sdkmessageid_workflow_dependency + { + get + { + return this.GetRelatedEntities("sdkmessageid_workflow_dependency", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_workflow_dependency"); + this.SetRelatedEntities("sdkmessageid_workflow_dependency", null, value); + this.OnPropertyChanged("sdkmessageid_workflow_dependency"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessage")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessage + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessage"); + this.SetRelatedEntities("userentityinstancedata_sdkmessage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessage"); + } + } + + /// + /// N:1 createdby_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessage + { + get + { + return this.GetRelatedEntity("createdby_sdkmessage", null); + } + } + + /// + /// N:1 lk_sdkmessage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessage + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessage", null); + } + } + + /// + /// N:1 organization_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessage + { + get + { + return this.GetRelatedEntity("organization_sdkmessage", null); + } + } + } + + /// + /// Filter that defines which SDK messages are valid for each type of entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagefilter")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageFilter : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageFilter() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagefilter"; + + public const int EntityTypeCode = 4607; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] + public System.Nullable Availability + { + get + { + return this.GetAttributeValue>("availability"); + } + set + { + this.OnPropertyChanging("Availability"); + this.SetAttributeValue("availability", value); + this.OnPropertyChanged("Availability"); + } + } + + /// + /// Unique identifier of the user who created the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message filter was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessagefilter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Indicates whether a custom SDK message processing step is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomprocessingstepallowed")] + public System.Nullable IsCustomProcessingStepAllowed + { + get + { + return this.GetAttributeValue>("iscustomprocessingstepallowed"); + } + set + { + this.OnPropertyChanging("IsCustomProcessingStepAllowed"); + this.SetAttributeValue("iscustomprocessingstepallowed", value); + this.OnPropertyChanged("IsCustomProcessingStepAllowed"); + } + } + + /// + /// Indicates whether the filter should be visible. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message filter was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessagefilter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message filter is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Type of entity with which the SDK message filter is primarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + } + + /// + /// Unique identifier of the SDK message filter entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public System.Nullable SdkMessageFilterId + { + get + { + return this.GetAttributeValue>("sdkmessagefilterid"); + } + set + { + this.OnPropertyChanging("SdkMessageFilterId"); + this.SetAttributeValue("sdkmessagefilterid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageFilterId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageFilterId = value; + } + } + + /// + /// Unique identifier of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilteridunique")] + public System.Nullable SdkMessageFilterIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagefilteridunique"); + } + } + + /// + /// Unique identifier of the related SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Type of entity with which the SDK message filter is secondarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondaryobjecttypecode")] + public string SecondaryObjectTypeCode + { + get + { + return this.GetAttributeValue("secondaryobjecttypecode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N sdkmessagefilterid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessagefilterid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessagefilterid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessagefilterid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagefilter"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagefilter", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagefilter"); + } + } + + /// + /// N:1 createdby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagefilter", null); + } + } + + /// + /// N:1 lk_sdkmessagefilter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagefilter_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagefilter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagefilter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagefilter", null); + } + } + + /// + /// N:1 organization_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("organization_sdkmessagefilter", null); + } + } + + /// + /// N:1 sdkmessageid_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SdkMessage sdkmessageid_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("sdkmessageid_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessagefilter"); + this.SetRelatedEntity("sdkmessageid_sdkmessagefilter", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessagefilter"); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagepair")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessagePair : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessagePair() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagepair"; + + public const int EntityTypeCode = 4613; + + 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 SDK message pair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message pair 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 sdkmessagepair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Endpoint that the message pair is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("endpoint")] + public string Endpoint + { + get + { + return this.GetAttributeValue("endpoint"); + } + set + { + this.OnPropertyChanging("Endpoint"); + this.SetAttributeValue("endpoint", value); + this.OnPropertyChanged("Endpoint"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message pair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message pair 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 sdkmessagepair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Namespace that the message pair is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("namespace")] + public string Namespace + { + get + { + return this.GetAttributeValue("namespace"); + } + set + { + this.OnPropertyChanging("Namespace"); + this.SetAttributeValue("namespace", value); + this.OnPropertyChanged("Namespace"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message pair is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the message with which the SDK message pair is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + } + + /// + /// Unique identifier of the SDK message pair entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + public System.Nullable SdkMessagePairId + { + get + { + return this.GetAttributeValue>("sdkmessagepairid"); + } + set + { + this.OnPropertyChanging("SdkMessagePairId"); + this.SetAttributeValue("sdkmessagepairid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessagePairId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessagePairId = value; + } + } + + /// + /// Unique identifier of the SDK message pair. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairidunique")] + public System.Nullable SdkMessagePairIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagepairidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N messagepair_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagepair_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable messagepair_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("messagepair_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("messagepair_sdkmessagerequest"); + this.SetRelatedEntities("messagepair_sdkmessagerequest", null, value); + this.OnPropertyChanged("messagepair_sdkmessagerequest"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagepair")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagepair + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagepair"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagepair", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagepair"); + } + } + + /// + /// N:1 createdby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagepair + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagepair", null); + } + } + + /// + /// N:1 lk_sdkmessagepair_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagepair_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagepair_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagepair_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagepair_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagepair_modifiedonbehalfby", null); + } + } + + /// + /// N:1 message_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("message_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SdkMessage message_sdkmessagepair + { + get + { + return this.GetRelatedEntity("message_sdkmessagepair", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagepair + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagepair", null); + } + } + + /// + /// N:1 organization_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagepair + { + get + { + return this.GetRelatedEntity("organization_sdkmessagepair", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SdkMessageProcessingStepState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Enabled = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disabled = 1, + } + + /// + /// Stage in the execution pipeline that a plug-in is to execute. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstep")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageProcessingStep : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStep() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstep"; + + public const int EntityTypeCode = 4608; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Indicates whether the asynchronous system job is automatically deleted on completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodelete")] + public System.Nullable AsyncAutoDelete + { + get + { + return this.GetAttributeValue>("asyncautodelete"); + } + set + { + this.OnPropertyChanging("AsyncAutoDelete"); + this.SetAttributeValue("asyncautodelete", value); + this.OnPropertyChanged("AsyncAutoDelete"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Step-specific configuration for the plug-in type. Passed to the plug-in constructor at run time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configuration")] + public string Configuration + { + get + { + return this.GetAttributeValue("configuration"); + } + set + { + this.OnPropertyChanging("Configuration"); + this.SetAttributeValue("configuration", value); + this.OnPropertyChanged("Configuration"); + } + } + + /// + /// Unique identifier of the user who created the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Unique identifier of the associated event handler. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + public Microsoft.Xrm.Sdk.EntityReference EventHandler + { + get + { + return this.GetAttributeValue("eventhandler"); + } + set + { + this.OnPropertyChanging("EventHandler"); + this.SetAttributeValue("eventhandler", value); + this.OnPropertyChanged("EventHandler"); + } + } + + /// + /// Comma-separated list of attributes. If at least one of these attributes is modified, the plug-in should execute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filteringattributes")] + public string FilteringAttributes + { + get + { + return this.GetAttributeValue("filteringattributes"); + } + set + { + this.OnPropertyChanging("FilteringAttributes"); + this.SetAttributeValue("filteringattributes", value); + this.OnPropertyChanged("FilteringAttributes"); + } + } + + /// + /// Unique identifier of the user to impersonate context when step is executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] + public Microsoft.Xrm.Sdk.EntityReference ImpersonatingUserId + { + get + { + return this.GetAttributeValue("impersonatinguserid"); + } + set + { + this.OnPropertyChanging("ImpersonatingUserId"); + this.SetAttributeValue("impersonatinguserid", value); + this.OnPropertyChanged("ImpersonatingUserId"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Identifies if a plug-in should be executed from a parent pipeline, a child pipeline, or both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invocationsource")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.OptionSetValue InvocationSource + { + get + { + return this.GetAttributeValue("invocationsource"); + } + set + { + this.OnPropertyChanging("InvocationSource"); + this.SetAttributeValue("invocationsource", value); + this.OnPropertyChanged("InvocationSource"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Run-time mode of execution, for example, synchronous or asynchronous. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mode")] + public Microsoft.Xrm.Sdk.OptionSetValue Mode + { + get + { + return this.GetAttributeValue("mode"); + } + set + { + this.OnPropertyChanging("Mode"); + this.SetAttributeValue("mode", value); + this.OnPropertyChanged("Mode"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of SdkMessage processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the plug-in type associated with the step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + set + { + this.OnPropertyChanging("PluginTypeId"); + this.SetAttributeValue("plugintypeid", value); + this.OnPropertyChanged("PluginTypeId"); + } + } + + /// + /// Processing order within the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// Unique identifier of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageFilterId + { + get + { + return this.GetAttributeValue("sdkmessagefilterid"); + } + set + { + this.OnPropertyChanging("SdkMessageFilterId"); + this.SetAttributeValue("sdkmessagefilterid", value); + this.OnPropertyChanged("SdkMessageFilterId"); + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Unique identifier of the SDK message processing step entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public System.Nullable SdkMessageProcessingStepId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepId"); + this.SetAttributeValue("sdkmessageprocessingstepid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepidunique")] + public System.Nullable SdkMessageProcessingStepIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepidunique"); + } + } + + /// + /// Unique identifier of the Sdk message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageProcessingStepSecureConfigId + { + get + { + return this.GetAttributeValue("sdkmessageprocessingstepsecureconfigid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepSecureConfigId"); + this.SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); + this.OnPropertyChanged("SdkMessageProcessingStepSecureConfigId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Stage in the execution pipeline that the SDK message processing step is in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stage")] + public Microsoft.Xrm.Sdk.OptionSetValue Stage + { + get + { + return this.GetAttributeValue("stage"); + } + set + { + this.OnPropertyChanging("Stage"); + this.SetAttributeValue("stage", value); + this.OnPropertyChanged("Stage"); + } + } + + /// + /// Status of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the SDK message processing step. + /// + [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"); + } + } + + /// + /// Deployment that the SDK message processing step should be executed on; server, client, or both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supporteddeployment")] + public Microsoft.Xrm.Sdk.OptionSetValue SupportedDeployment + { + get + { + return this.GetAttributeValue("supporteddeployment"); + } + set + { + this.OnPropertyChanging("SupportedDeployment"); + this.SetAttributeValue("supporteddeployment", value); + this.OnPropertyChanged("SupportedDeployment"); + } + } + + /// + /// Number that identifies a specific revision of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SdkMessageProcessingStep_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SdkMessageProcessingStep_AsyncOperations")] + public System.Collections.Generic.IEnumerable SdkMessageProcessingStep_AsyncOperations + { + get + { + return this.GetRelatedEntities("SdkMessageProcessingStep_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStep_AsyncOperations"); + this.SetRelatedEntities("SdkMessageProcessingStep_AsyncOperations", null, value); + this.OnPropertyChanged("SdkMessageProcessingStep_AsyncOperations"); + } + } + + /// + /// 1:N sdkmessageprocessingstepid_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstep"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 impersonatinguserid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SystemUser impersonatinguserid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("impersonatinguserid_sdkmessageprocessingstep"); + this.SetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("impersonatinguserid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstep_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstep_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstep_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 organization_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("organization_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 plugintype_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.PluginType plugintype_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("plugintype_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintype_sdkmessageprocessingstep"); + this.SetRelatedEntity("plugintype_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintype_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 plugintypeid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.PluginType plugintypeid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintypeid_sdkmessageprocessingstep"); + this.SetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintypeid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessagefilterid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessageFilter sdkmessagefilterid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessagefilterid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessagefilterid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessageid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessage sdkmessageid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepSecureConfig sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 serviceendpoint_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceendpoint_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.ServiceEndpoint serviceendpoint_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("serviceendpoint_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("serviceendpoint_sdkmessageprocessingstep"); + this.SetRelatedEntity("serviceendpoint_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("serviceendpoint_sdkmessageprocessingstep"); + } + } + } + + /// + /// Copy of an entity's attributes before or after the core system operation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstepimage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageProcessingStepImage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStepImage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstepimage"; + + public const int EntityTypeCode = 4615; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Comma-separated list of attributes that are to be passed into the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributes")] + public string Attributes1 + { + get + { + return this.GetAttributeValue("attributes"); + } + set + { + this.OnPropertyChanging("Attributes1"); + this.SetAttributeValue("attributes", value); + this.OnPropertyChanged("Attributes1"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step image was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstepimage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Key name used to access the pre-image or post-image property bags in a step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityalias")] + public string EntityAlias + { + get + { + return this.GetAttributeValue("entityalias"); + } + set + { + this.OnPropertyChanging("EntityAlias"); + this.SetAttributeValue("entityalias", value); + this.OnPropertyChanged("EntityAlias"); + } + } + + /// + /// Type of image requested. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("imagetype")] + public Microsoft.Xrm.Sdk.OptionSetValue ImageType + { + get + { + return this.GetAttributeValue("imagetype"); + } + set + { + this.OnPropertyChanging("ImageType"); + this.SetAttributeValue("imagetype", value); + this.OnPropertyChanged("ImageType"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Name of the property on the Request message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagepropertyname")] + public string MessagePropertyName + { + get + { + return this.GetAttributeValue("messagepropertyname"); + } + set + { + this.OnPropertyChanging("MessagePropertyName"); + this.SetAttributeValue("messagepropertyname", value); + this.OnPropertyChanged("MessagePropertyName"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepimage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of SdkMessage processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Name of the related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedattributename")] + public string RelatedAttributeName + { + get + { + return this.GetAttributeValue("relatedattributename"); + } + set + { + this.OnPropertyChanging("RelatedAttributeName"); + this.SetAttributeValue("relatedattributename", value); + this.OnPropertyChanged("RelatedAttributeName"); + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageProcessingStepId + { + get + { + return this.GetAttributeValue("sdkmessageprocessingstepid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepId"); + this.SetAttributeValue("sdkmessageprocessingstepid", value); + this.OnPropertyChanged("SdkMessageProcessingStepId"); + } + } + + /// + /// Unique identifier of the SDK message processing step image entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] + public System.Nullable SdkMessageProcessingStepImageId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepimageid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepImageId"); + this.SetAttributeValue("sdkmessageprocessingstepimageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepImageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepImageId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageidunique")] + public System.Nullable SdkMessageProcessingStepImageIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepimageidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Number that identifies a specific revision of the step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepimage"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepimage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepimage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 organization_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("organization_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 sdkmessageprocessingstepid_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStep sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + this.SetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + } + } + } + + /// + /// Non-public custom configuration that is passed to a plug-in's constructor. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstepsecureconfig")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageProcessingStepSecureConfig : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStepSecureConfig() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstepsecureconfig"; + + public const int EntityTypeCode = 4616; + + 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 SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstepsecureconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepsecureconfig. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the SDK message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public System.Nullable SdkMessageProcessingStepSecureConfigId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepsecureconfigid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepSecureConfigId"); + this.SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepSecureConfigId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepSecureConfigId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigidunique")] + public System.Nullable SdkMessageProcessingStepSecureConfigIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepsecureconfigidunique"); + } + } + + /// + /// Secure step-specific configuration for the plug-in type that is passed to the plug-in's constructor at run time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secureconfig")] + public string SecureConfig + { + get + { + return this.GetAttributeValue("secureconfig"); + } + set + { + this.OnPropertyChanging("SecureConfig"); + this.SetAttributeValue("secureconfig", value); + this.OnPropertyChanged("SecureConfig"); + } + } + + /// + /// 1:N sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepsecureconfigid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstepsecureconfig", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstepsecureconfig", null); + } + } + + /// + /// N:1 organization_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("organization_sdkmessageprocessingstepsecureconfig", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagerequest")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageRequest : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageRequest() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagerequest"; + + public const int EntityTypeCode = 4609; + + 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 SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message request 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 sdkmessagerequest. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message request 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 sdkmessagerequest. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message request is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Type of entity with which the SDK request is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + } + + /// + /// Unique identifier of the message pair with which the SDK message request is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessagePairId + { + get + { + return this.GetAttributeValue("sdkmessagepairid"); + } + } + + /// + /// Unique identifier of the SDK message request entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public System.Nullable SdkMessageRequestId + { + get + { + return this.GetAttributeValue>("sdkmessagerequestid"); + } + set + { + this.OnPropertyChanging("SdkMessageRequestId"); + this.SetAttributeValue("sdkmessagerequestid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageRequestId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageRequestId = value; + } + } + + /// + /// Unique identifier of the SDK message request. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestidunique")] + public System.Nullable SdkMessageRequestIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagerequestidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N messagerequest_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable messagerequest_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("messagerequest_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("messagerequest_sdkmessagerequestfield"); + this.SetRelatedEntities("messagerequest_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("messagerequest_sdkmessagerequestfield"); + } + } + + /// + /// 1:N messagerequest_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable messagerequest_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("messagerequest_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("messagerequest_sdkmessageresponse"); + this.SetRelatedEntities("messagerequest_sdkmessageresponse", null, value); + this.OnPropertyChanged("messagerequest_sdkmessageresponse"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequest"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagerequest", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequest"); + } + } + + /// + /// N:1 createdby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagerequest", null); + } + } + + /// + /// N:1 lk_sdkmessagerequest_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequest_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequest_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagerequest_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequest_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequest_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messagepair_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagepairid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagepair_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SdkMessagePair messagepair_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("messagepair_sdkmessagerequest", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagerequest", null); + } + } + + /// + /// N:1 organization_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("organization_sdkmessagerequest", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagerequestfield")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageRequestField : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageRequestField() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagerequestfield"; + + public const int EntityTypeCode = 4614; + + 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)); + } + } + + /// + /// Common language runtime (CLR)-based parser for the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("clrparser")] + public string ClrParser + { + get + { + return this.GetAttributeValue("clrparser"); + } + set + { + this.OnPropertyChanging("ClrParser"); + this.SetAttributeValue("clrparser", value); + this.OnPropertyChanged("ClrParser"); + } + } + + /// + /// Unique identifier of the user who created the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message request field 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 sdkmessagerequestfield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Indicates how field contents are used during message processing. 1 - Primary entity, 2- Secondary entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldmask")] + public System.Nullable FieldMask + { + get + { + return this.GetAttributeValue>("fieldmask"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message request field 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 sdkmessagerequestfield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Information about whether SDK message request field is optional. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("optional")] + public System.Nullable Optional + { + get + { + return this.GetAttributeValue>("optional"); + } + set + { + this.OnPropertyChanging("Optional"); + this.SetAttributeValue("optional", value); + this.OnPropertyChanged("Optional"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message request field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Parser for the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parser")] + public string Parser + { + get + { + return this.GetAttributeValue("parser"); + } + set + { + this.OnPropertyChanging("Parser"); + this.SetAttributeValue("parser", value); + this.OnPropertyChanged("Parser"); + } + } + + /// + /// Position of the Sdk message request field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("position")] + public System.Nullable Position + { + get + { + return this.GetAttributeValue>("position"); + } + } + + /// + /// Public name of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publicname")] + public string PublicName + { + get + { + return this.GetAttributeValue("publicname"); + } + set + { + this.OnPropertyChanging("PublicName"); + this.SetAttributeValue("publicname", value); + this.OnPropertyChanged("PublicName"); + } + } + + /// + /// Unique identifier of the SDK message request field entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestfieldid")] + public System.Nullable SdkMessageRequestFieldId + { + get + { + return this.GetAttributeValue>("sdkmessagerequestfieldid"); + } + set + { + this.OnPropertyChanging("SdkMessageRequestFieldId"); + this.SetAttributeValue("sdkmessagerequestfieldid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageRequestFieldId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestfieldid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageRequestFieldId = value; + } + } + + /// + /// Entity identifier of the SDK message request field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestfieldidunique")] + public System.Nullable SdkMessageRequestFieldIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagerequestfieldidunique"); + } + } + + /// + /// Unique identifier of the message request with which the SDK message request field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageRequestId + { + get + { + return this.GetAttributeValue("sdkmessagerequestid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequestfield"); + this.SetRelatedEntities("userentityinstancedata_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequestfield"); + } + } + + /// + /// N:1 createdby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagerequestfield", null); + } + } + + /// + /// N:1 lk_sdkmessagerequestfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequestfield_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequestfield_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagerequestfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessagerequestfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagerequestfield_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messagerequest_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequest messagerequest_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("messagerequest_sdkmessagerequestfield", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagerequestfield", null); + } + } + + /// + /// N:1 organization_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("organization_sdkmessagerequestfield", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageresponse")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageResponse : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageResponse() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageresponse"; + + public const int EntityTypeCode = 4610; + + 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 SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message response 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 sdkmessageresponse. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message response 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 sdkmessageresponse. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message response is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the message request with which the SDK message response is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageRequestId + { + get + { + return this.GetAttributeValue("sdkmessagerequestid"); + } + } + + /// + /// Unique identifier of the SDK message response entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + public System.Nullable SdkMessageResponseId + { + get + { + return this.GetAttributeValue>("sdkmessageresponseid"); + } + set + { + this.OnPropertyChanging("SdkMessageResponseId"); + this.SetAttributeValue("sdkmessageresponseid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageResponseId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageResponseId = value; + } + } + + /// + /// Unique identifier of the SDK message response. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseidunique")] + public System.Nullable SdkMessageResponseIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageresponseidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N messageresponse_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messageresponse_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable messageresponse_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("messageresponse_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("messageresponse_sdkmessageresponsefield"); + this.SetRelatedEntities("messageresponse_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("messageresponse_sdkmessageresponsefield"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponse"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponse"); + } + } + + /// + /// N:1 createdby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageresponse", null); + } + } + + /// + /// N:1 lk_sdkmessageresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponse_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponse_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messagerequest_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagerequestid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messagerequest_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequest messagerequest_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("messagerequest_sdkmessageresponse", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageresponse", null); + } + } + + /// + /// N:1 organization_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("organization_sdkmessageresponse", null); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageresponsefield")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SdkMessageResponseField : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SdkMessageResponseField() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageresponsefield"; + + public const int EntityTypeCode = 4611; + + 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)); + } + } + + /// + /// Common language runtime (CLR)-based formatter of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("clrformatter")] + public string ClrFormatter + { + get + { + return this.GetAttributeValue("clrformatter"); + } + set + { + this.OnPropertyChanging("ClrFormatter"); + this.SetAttributeValue("clrformatter", value); + this.OnPropertyChanged("ClrFormatter"); + } + } + + /// + /// Unique identifier of the user who created the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message response field 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 sdkmessageresponsefield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Formatter for the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formatter")] + public string Formatter + { + get + { + return this.GetAttributeValue("formatter"); + } + set + { + this.OnPropertyChanging("Formatter"); + this.SetAttributeValue("formatter", value); + this.OnPropertyChanged("Formatter"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message response field 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 sdkmessageresponsefield. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message response field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Position of the Sdk message response field + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("position")] + public System.Nullable Position + { + get + { + return this.GetAttributeValue>("position"); + } + } + + /// + /// Public name of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publicname")] + public string PublicName + { + get + { + return this.GetAttributeValue("publicname"); + } + set + { + this.OnPropertyChanging("PublicName"); + this.SetAttributeValue("publicname", value); + this.OnPropertyChanged("PublicName"); + } + } + + /// + /// Unique identifier of the SDK message response field entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponsefieldid")] + public System.Nullable SdkMessageResponseFieldId + { + get + { + return this.GetAttributeValue>("sdkmessageresponsefieldid"); + } + set + { + this.OnPropertyChanging("SdkMessageResponseFieldId"); + this.SetAttributeValue("sdkmessageresponsefieldid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageResponseFieldId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponsefieldid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageResponseFieldId = value; + } + } + + /// + /// Unique identifier of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponsefieldidunique")] + public System.Nullable SdkMessageResponseFieldIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageresponsefieldidunique"); + } + } + + /// + /// Unique identifier of the message response with which the SDK message response field is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageResponseId + { + get + { + return this.GetAttributeValue("sdkmessageresponseid"); + } + } + + /// + /// Actual value of the SDK message response field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("value")] + public string Value + { + get + { + return this.GetAttributeValue("value"); + } + set + { + this.OnPropertyChanging("Value"); + this.SetAttributeValue("value", value); + this.OnPropertyChanged("Value"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponsefield"); + this.SetRelatedEntities("userentityinstancedata_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponsefield"); + } + } + + /// + /// N:1 createdby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageresponsefield", null); + } + } + + /// + /// N:1 lk_sdkmessageresponsefield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponsefield_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponsefield_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageresponsefield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sdkmessageresponsefield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageresponsefield_modifiedonbehalfby", null); + } + } + + /// + /// N:1 messageresponse_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageresponseid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("messageresponse_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageResponse messageresponse_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("messageresponse_sdkmessageresponsefield", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageresponsefield", null); + } + } + + /// + /// N:1 organization_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("organization_sdkmessageresponsefield", null); + } + } + } + + /// + /// Calendar representing the semi-annual span of time during which the financial activities of an organization are calculated. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("semiannualfiscalcalendar")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SemiAnnualFiscalCalendar : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SemiAnnualFiscalCalendar() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "semiannualfiscalcalendar"; + + public const int EntityTypeCode = 2001; + + 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 business unit with which the calendar is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + } + + /// + /// Unique identifier of the user who created the semiannual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the quota for the semiannual fiscal calendar 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 semiannualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Date and time when the semiannual fiscal calendar sales quota takes effect. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveon")] + public System.Nullable EffectiveOn + { + get + { + return this.GetAttributeValue>("effectiveon"); + } + set + { + this.OnPropertyChanging("EffectiveOn"); + this.SetAttributeValue("effectiveon", value); + this.OnPropertyChanged("EffectiveOn"); + } + } + + /// + /// Exchange rate for the currency associated with the semiannual fiscal calendar with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sales quota for the first half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firsthalf")] + public Microsoft.Xrm.Sdk.Money FirstHalf + { + get + { + return this.GetAttributeValue("firsthalf"); + } + set + { + this.OnPropertyChanging("FirstHalf"); + this.SetAttributeValue("firsthalf", value); + this.OnPropertyChanged("FirstHalf"); + } + } + + /// + /// Base currency equivalent for the sales quota for the first half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firsthalf_base")] + public Microsoft.Xrm.Sdk.Money FirstHalf_Base + { + get + { + return this.GetAttributeValue("firsthalf_base"); + } + } + + /// + /// Type of fiscal period used in the sales quota. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fiscalperiodtype")] + public System.Nullable FiscalPeriodType + { + get + { + return this.GetAttributeValue>("fiscalperiodtype"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the semiannual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the semiannual fiscal calendar 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 semiannualfiscalcalendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the associated salesperson. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + public Microsoft.Xrm.Sdk.EntityReference SalesPersonId + { + get + { + return this.GetAttributeValue("salespersonid"); + } + set + { + this.OnPropertyChanging("SalesPersonId"); + this.SetAttributeValue("salespersonid", value); + this.OnPropertyChanged("SalesPersonId"); + } + } + + /// + /// Sales quota for the second half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondhalf")] + public Microsoft.Xrm.Sdk.Money SecondHalf + { + get + { + return this.GetAttributeValue("secondhalf"); + } + set + { + this.OnPropertyChanging("SecondHalf"); + this.SetAttributeValue("secondhalf", value); + this.OnPropertyChanged("SecondHalf"); + } + } + + /// + /// Base currency equivalent of the sales quota for the second half of the fiscal year. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondhalf_base")] + public Microsoft.Xrm.Sdk.Money SecondHalf_Base + { + get + { + return this.GetAttributeValue("secondhalf_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"); + } + } + + /// + /// Unique identifier of the currency associated with the semiannual fiscal calendar. + /// + [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"); + } + } + + /// + /// Unique identifier for the user who created the semiannual fiscal calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public System.Nullable UserFiscalCalendarId + { + get + { + return this.GetAttributeValue>("userfiscalcalendarid"); + } + set + { + this.OnPropertyChanging("UserFiscalCalendarId"); + this.SetAttributeValue("userfiscalcalendarid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFiscalCalendarId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userfiscalcalendarid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFiscalCalendarId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// 1:N SemiAnnualFiscalCalendar_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_AsyncOperations")] + public System.Collections.Generic.IEnumerable SemiAnnualFiscalCalendar_AsyncOperations + { + get + { + return this.GetRelatedEntities("SemiAnnualFiscalCalendar_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SemiAnnualFiscalCalendar_AsyncOperations"); + this.SetRelatedEntities("SemiAnnualFiscalCalendar_AsyncOperations", null, value); + this.OnPropertyChanged("SemiAnnualFiscalCalendar_AsyncOperations"); + } + } + + /// + /// 1:N SemiAnnualFiscalCalendar_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SemiAnnualFiscalCalendar_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SemiAnnualFiscalCalendar_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SemiAnnualFiscalCalendar_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SemiAnnualFiscalCalendar_BulkDeleteFailures"); + this.SetRelatedEntities("SemiAnnualFiscalCalendar_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SemiAnnualFiscalCalendar_BulkDeleteFailures"); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_createdby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_modifiedby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_semiannualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salespersonid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_salespersonid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_semiannualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntity("lk_semiannualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_salespersonid"); + this.SetRelatedEntity("lk_semiannualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_salespersonid"); + } + } + + /// + /// N:1 transactioncurrency_semiannualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_semiannualfiscalcalendar")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_semiannualfiscalcalendar + { + get + { + return this.GetRelatedEntity("transactioncurrency_semiannualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_semiannualfiscalcalendar"); + this.SetRelatedEntity("transactioncurrency_semiannualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_semiannualfiscalcalendar"); + } + } + } + + /// + /// Activity that represents work done to satisfy a customer's need. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("service")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Service : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Service() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "service"; + + public const int EntityTypeCode = 4001; + + 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)); + } + } + + /// + /// Used in conjunction with granularity to describes when services can be performed in relation to midnight on a given day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("anchoroffset")] + public System.Nullable AnchorOffset + { + get + { + return this.GetAttributeValue>("anchoroffset"); + } + set + { + this.OnPropertyChanging("AnchorOffset"); + this.SetAttributeValue("anchoroffset", value); + this.OnPropertyChanged("AnchorOffset"); + } + } + + /// + /// Unique identifier of the calendar. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public System.Nullable CalendarId + { + get + { + return this.GetAttributeValue>("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// Unique identifier of the user who created the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the service 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 service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of activity that represents work done to satisfy a customer's need. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Duration of the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duration")] + public System.Nullable Duration + { + get + { + return this.GetAttributeValue>("duration"); + } + set + { + this.OnPropertyChanging("Duration"); + this.SetAttributeValue("duration", value); + this.OnPropertyChanged("Duration"); + } + } + + /// + /// Describes how often the service is performed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("granularity")] + public string Granularity + { + get + { + return this.GetAttributeValue("granularity"); + } + set + { + this.OnPropertyChanging("Granularity"); + this.SetAttributeValue("granularity", value); + this.OnPropertyChanged("Granularity"); + } + } + + /// + /// 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"); + } + } + + /// + /// Initial status reason for the service activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("initialstatuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue InitialStatusCode + { + get + { + return this.GetAttributeValue("initialstatuscode"); + } + set + { + this.OnPropertyChanging("InitialStatusCode"); + this.SetAttributeValue("initialstatuscode", value); + this.OnPropertyChanged("InitialStatusCode"); + } + } + + /// + /// Information about whether the service can be scheduled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isschedulable")] + public System.Nullable IsSchedulable + { + get + { + return this.GetAttributeValue>("isschedulable"); + } + set + { + this.OnPropertyChanging("IsSchedulable"); + this.SetAttributeValue("isschedulable", value); + this.OnPropertyChanged("IsSchedulable"); + } + } + + /// + /// Information about whether the service is visible to users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + set + { + this.OnPropertyChanging("IsVisible"); + this.SetAttributeValue("isvisible", value); + this.OnPropertyChanged("IsVisible"); + } + } + + /// + /// Unique identifier of the user who last modified the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the service 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 service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the service is associated. + /// + [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"); + } + } + + /// + /// Unique identifier of the resource specification with which the service is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + public Microsoft.Xrm.Sdk.EntityReference ResourceSpecId + { + get + { + return this.GetAttributeValue("resourcespecid"); + } + set + { + this.OnPropertyChanging("ResourceSpecId"); + this.SetAttributeValue("resourcespecid", value); + this.OnPropertyChanged("ResourceSpecId"); + } + } + + /// + /// Unique identifier of the associated service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + public System.Nullable ServiceId + { + get + { + return this.GetAttributeValue>("serviceid"); + } + set + { + this.OnPropertyChanging("ServiceId"); + this.SetAttributeValue("serviceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ServiceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ServiceId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showresources")] + public System.Nullable ShowResources + { + get + { + return this.GetAttributeValue>("showresources"); + } + set + { + this.OnPropertyChanging("ShowResources"); + this.SetAttributeValue("showresources", value); + this.OnPropertyChanged("ShowResources"); + } + } + + /// + /// Value that is taken from PluginTypeId in the Plugin Type record for the scheduling strategy. This is the ID of the scheduling strategy plug-in associated with the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("strategyid")] + public Microsoft.Xrm.Sdk.EntityReference StrategyId + { + get + { + return this.GetAttributeValue("strategyid"); + } + set + { + this.OnPropertyChanging("StrategyId"); + this.SetAttributeValue("strategyid", value); + this.OnPropertyChanged("StrategyId"); + } + } + + /// + /// Version number of the service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N service_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_accounts")] + public System.Collections.Generic.IEnumerable service_accounts + { + get + { + return this.GetRelatedEntities("service_accounts", null); + } + set + { + this.OnPropertyChanging("service_accounts"); + this.SetRelatedEntities("service_accounts", null, value); + this.OnPropertyChanged("service_accounts"); + } + } + + /// + /// 1:N service_activity_pointers + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_activity_pointers")] + public System.Collections.Generic.IEnumerable service_activity_pointers + { + get + { + return this.GetRelatedEntities("service_activity_pointers", null); + } + set + { + this.OnPropertyChanging("service_activity_pointers"); + this.SetRelatedEntities("service_activity_pointers", null, value); + this.OnPropertyChanged("service_activity_pointers"); + } + } + + /// + /// 1:N Service_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_Annotation")] + public System.Collections.Generic.IEnumerable Service_Annotation + { + get + { + return this.GetRelatedEntities("Service_Annotation", null); + } + set + { + this.OnPropertyChanging("Service_Annotation"); + this.SetRelatedEntities("Service_Annotation", null, value); + this.OnPropertyChanged("Service_Annotation"); + } + } + + /// + /// 1:N service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_appointments")] + public System.Collections.Generic.IEnumerable service_appointments + { + get + { + return this.GetRelatedEntities("service_appointments", null); + } + set + { + this.OnPropertyChanging("service_appointments"); + this.SetRelatedEntities("service_appointments", null, value); + this.OnPropertyChanged("service_appointments"); + } + } + + /// + /// 1:N Service_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_AsyncOperations")] + public System.Collections.Generic.IEnumerable Service_AsyncOperations + { + get + { + return this.GetRelatedEntities("Service_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Service_AsyncOperations"); + this.SetRelatedEntities("Service_AsyncOperations", null, value); + this.OnPropertyChanged("Service_AsyncOperations"); + } + } + + /// + /// 1:N Service_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Service_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Service_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Service_BulkDeleteFailures"); + this.SetRelatedEntities("Service_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Service_BulkDeleteFailures"); + } + } + + /// + /// 1:N service_calendar_rules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarrules")] + public System.Collections.Generic.IEnumerable CalendarRules + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("calendarrules"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("CalendarRules"); + if ((value == null)) + { + this.SetAttributeValue("calendarrules", value); + } + else + { + this.SetAttributeValue("calendarrules", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("CalendarRules"); + } + } + + /// + /// 1:N service_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_contacts")] + public System.Collections.Generic.IEnumerable service_contacts + { + get + { + return this.GetRelatedEntities("service_contacts", null); + } + set + { + this.OnPropertyChanging("service_contacts"); + this.SetRelatedEntities("service_contacts", null, value); + this.OnPropertyChanged("service_contacts"); + } + } + + /// + /// 1:N Service_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Service_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Service_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Service_DuplicateBaseRecord"); + this.SetRelatedEntities("Service_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Service_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Service_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Service_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Service_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Service_DuplicateMatchingRecord"); + this.SetRelatedEntities("Service_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Service_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N service_emails + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_emails")] + public System.Collections.Generic.IEnumerable service_emails + { + get + { + return this.GetRelatedEntities("service_emails", null); + } + set + { + this.OnPropertyChanging("service_emails"); + this.SetRelatedEntities("service_emails", null, value); + this.OnPropertyChanged("service_emails"); + } + } + + /// + /// 1:N service_faxes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_faxes")] + public System.Collections.Generic.IEnumerable service_faxes + { + get + { + return this.GetRelatedEntities("service_faxes", null); + } + set + { + this.OnPropertyChanging("service_faxes"); + this.SetRelatedEntities("service_faxes", null, value); + this.OnPropertyChanged("service_faxes"); + } + } + + /// + /// 1:N service_incidentresolutions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_incidentresolutions")] + public System.Collections.Generic.IEnumerable service_incidentresolutions + { + get + { + return this.GetRelatedEntities("service_incidentresolutions", null); + } + set + { + this.OnPropertyChanging("service_incidentresolutions"); + this.SetRelatedEntities("service_incidentresolutions", null, value); + this.OnPropertyChanged("service_incidentresolutions"); + } + } + + /// + /// 1:N service_letters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_letters")] + public System.Collections.Generic.IEnumerable service_letters + { + get + { + return this.GetRelatedEntities("service_letters", null); + } + set + { + this.OnPropertyChanging("service_letters"); + this.SetRelatedEntities("service_letters", null, value); + this.OnPropertyChanged("service_letters"); + } + } + + /// + /// 1:N service_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_opportunityclose")] + public System.Collections.Generic.IEnumerable service_opportunityclose + { + get + { + return this.GetRelatedEntities("service_opportunityclose", null); + } + set + { + this.OnPropertyChanging("service_opportunityclose"); + this.SetRelatedEntities("service_opportunityclose", null, value); + this.OnPropertyChanged("service_opportunityclose"); + } + } + + /// + /// 1:N service_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_orderclose")] + public System.Collections.Generic.IEnumerable service_orderclose + { + get + { + return this.GetRelatedEntities("service_orderclose", null); + } + set + { + this.OnPropertyChanging("service_orderclose"); + this.SetRelatedEntities("service_orderclose", null, value); + this.OnPropertyChanged("service_orderclose"); + } + } + + /// + /// 1:N service_phonecalls + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_phonecalls")] + public System.Collections.Generic.IEnumerable service_phonecalls + { + get + { + return this.GetRelatedEntities("service_phonecalls", null); + } + set + { + this.OnPropertyChanging("service_phonecalls"); + this.SetRelatedEntities("service_phonecalls", null, value); + this.OnPropertyChanged("service_phonecalls"); + } + } + + /// + /// 1:N Service_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_ProcessSessions")] + public System.Collections.Generic.IEnumerable Service_ProcessSessions + { + get + { + return this.GetRelatedEntities("Service_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Service_ProcessSessions"); + this.SetRelatedEntities("Service_ProcessSessions", null, value); + this.OnPropertyChanged("Service_ProcessSessions"); + } + } + + /// + /// 1:N service_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_quoteclose")] + public System.Collections.Generic.IEnumerable service_quoteclose + { + get + { + return this.GetRelatedEntities("service_quoteclose", null); + } + set + { + this.OnPropertyChanging("service_quoteclose"); + this.SetRelatedEntities("service_quoteclose", null, value); + this.OnPropertyChanged("service_quoteclose"); + } + } + + /// + /// 1:N service_recurringappointmentmasters + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_recurringappointmentmasters")] + public System.Collections.Generic.IEnumerable service_recurringappointmentmasters + { + get + { + return this.GetRelatedEntities("service_recurringappointmentmasters", null); + } + set + { + this.OnPropertyChanging("service_recurringappointmentmasters"); + this.SetRelatedEntities("service_recurringappointmentmasters", null, value); + this.OnPropertyChanged("service_recurringappointmentmasters"); + } + } + + /// + /// 1:N service_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_service_appointments")] + public System.Collections.Generic.IEnumerable service_service_appointments + { + get + { + return this.GetRelatedEntities("service_service_appointments", null); + } + set + { + this.OnPropertyChanging("service_service_appointments"); + this.SetRelatedEntities("service_service_appointments", null, value); + this.OnPropertyChanged("service_service_appointments"); + } + } + + /// + /// 1:N service_tasks + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_tasks")] + public System.Collections.Generic.IEnumerable service_tasks + { + get + { + return this.GetRelatedEntities("service_tasks", null); + } + set + { + this.OnPropertyChanging("service_tasks"); + this.SetRelatedEntities("service_tasks", null, value); + this.OnPropertyChanged("service_tasks"); + } + } + + /// + /// 1:N userentityinstancedata_service + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_service")] + public System.Collections.Generic.IEnumerable userentityinstancedata_service + { + get + { + return this.GetRelatedEntities("userentityinstancedata_service", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_service"); + this.SetRelatedEntities("userentityinstancedata_service", null, value); + this.OnPropertyChanged("userentityinstancedata_service"); + } + } + + /// + /// N:1 calendar_services + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_services")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_services + { + get + { + return this.GetRelatedEntity("calendar_services", null); + } + set + { + this.OnPropertyChanging("calendar_services"); + this.SetRelatedEntity("calendar_services", null, value); + this.OnPropertyChanged("calendar_services"); + } + } + + /// + /// N:1 lk_service_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_createdby + { + get + { + return this.GetRelatedEntity("lk_service_createdby", null); + } + } + + /// + /// N:1 lk_service_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_service_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_service_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_modifiedby + { + get + { + return this.GetRelatedEntity("lk_service_modifiedby", null); + } + } + + /// + /// N:1 lk_service_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_service_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_service_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_services + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_services")] + public Xrm.Framework.CI.Common.Entities.Organization organization_services + { + get + { + return this.GetRelatedEntity("organization_services", null); + } + } + + /// + /// N:1 plugin_type_service + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("strategyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugin_type_service")] + public Xrm.Framework.CI.Common.Entities.PluginType plugin_type_service + { + get + { + return this.GetRelatedEntity("plugin_type_service", null); + } + set + { + this.OnPropertyChanging("plugin_type_service"); + this.SetRelatedEntity("plugin_type_service", null, value); + this.OnPropertyChanged("plugin_type_service"); + } + } + + /// + /// N:1 resource_spec_services + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resourcespecid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("resource_spec_services")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec resource_spec_services + { + get + { + return this.GetRelatedEntity("resource_spec_services", null); + } + set + { + this.OnPropertyChanging("resource_spec_services"); + this.SetRelatedEntity("resource_spec_services", null, value); + this.OnPropertyChanged("resource_spec_services"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum ServiceAppointmentState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Scheduled = 3, + } + + /// + /// Activity offered by the organization to satisfy its customer's needs. Each service activity includes date, time, duration, and required resources. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("serviceappointment")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ServiceAppointment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ServiceAppointment() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "serviceappointment"; + + public const int EntityTypeCode = 4214; + + 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 service 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; + } + } + + /// + /// Shows the type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Shows the value selected in the Duration field on the service activity at the time the service activity is closed as completed. The duration is used to report the time spent on the activity. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the service activity. By default, it displays when the activity was closed or canceled. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the service activity. By default, it displays when the activity was created. + /// + [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"); + } + } + + /// + /// Type a category to identify the service activity type, such as routine maintenance or service call, to tie the service activity to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Enter the accounts and contacts for whom the service activity is being performed. + /// + [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"); + } + } + + /// + /// Type additional information to describe the service activity, such as key talking points or objectives. + /// + [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"); + } + } + + /// + /// 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 service activity is an all-day event to make sure the required resources are scheduled for the full day. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isalldayevent")] + public System.Nullable IsAllDayEvent + { + get + { + return this.GetAttributeValue>("isalldayevent"); + } + set + { + this.OnPropertyChanging("IsAllDayEvent"); + this.SetAttributeValue("isalldayevent", value); + this.OnPropertyChanged("IsAllDayEvent"); + } + } + + /// + /// Information which specifies whether the service 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 which specifies if the service 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"); + } + } + + /// + /// Type the location where the service activity will take place, such as a conference room, customer office, or other venue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("location")] + public string Location + { + get + { + return this.GetAttributeValue("location"); + } + set + { + this.OnPropertyChanging("Location"); + this.SetAttributeValue("location", value); + this.OnPropertyChanged("Location"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 that owns the service 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 service activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the object with which the service 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"); + } + } + + /// + /// Enter the user, facility, or equipment required to complete the service 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"); + } + } + + /// + /// Shows the expected duration of the service activity, in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + set + { + this.OnPropertyChanging("ScheduledDurationMinutes"); + this.SetAttributeValue("scheduleddurationminutes", value); + this.OnPropertyChanged("ScheduledDurationMinutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Choose the service scheduled to be performed during the service activity. + /// + [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 site or location where the service activity will be performed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Shows whether the service activity is open, completed, or canceled. Completed and canceled service activities are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.ServiceAppointmentState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.ServiceAppointmentState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the service activity'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"); + } + } + + /// + /// Type a subcategory to identify the service activity type and relate the activity to a specific product, service region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the service 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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 service activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N serviceappointment_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_activity_parties")] + public System.Collections.Generic.IEnumerable serviceappointment_activity_parties + { + get + { + return this.GetRelatedEntities("serviceappointment_activity_parties", null); + } + set + { + this.OnPropertyChanging("serviceappointment_activity_parties"); + this.SetRelatedEntities("serviceappointment_activity_parties", null, value); + this.OnPropertyChanged("serviceappointment_activity_parties"); + } + } + + /// + /// 1:N ServiceAppointment_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_Annotation")] + public System.Collections.Generic.IEnumerable ServiceAppointment_Annotation + { + get + { + return this.GetRelatedEntities("ServiceAppointment_Annotation", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_Annotation"); + this.SetRelatedEntities("ServiceAppointment_Annotation", null, value); + this.OnPropertyChanged("ServiceAppointment_Annotation"); + } + } + + /// + /// 1:N ServiceAppointment_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_AsyncOperations")] + public System.Collections.Generic.IEnumerable ServiceAppointment_AsyncOperations + { + get + { + return this.GetRelatedEntities("ServiceAppointment_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_AsyncOperations"); + this.SetRelatedEntities("ServiceAppointment_AsyncOperations", null, value); + this.OnPropertyChanged("ServiceAppointment_AsyncOperations"); + } + } + + /// + /// 1:N ServiceAppointment_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable ServiceAppointment_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("ServiceAppointment_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_BulkDeleteFailures"); + this.SetRelatedEntities("ServiceAppointment_BulkDeleteFailures", null, value); + this.OnPropertyChanged("ServiceAppointment_BulkDeleteFailures"); + } + } + + /// + /// 1:N serviceappointment_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections1")] + public System.Collections.Generic.IEnumerable serviceappointment_connections1 + { + get + { + return this.GetRelatedEntities("serviceappointment_connections1", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections1"); + this.SetRelatedEntities("serviceappointment_connections1", null, value); + this.OnPropertyChanged("serviceappointment_connections1"); + } + } + + /// + /// 1:N serviceappointment_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_connections2")] + public System.Collections.Generic.IEnumerable serviceappointment_connections2 + { + get + { + return this.GetRelatedEntities("serviceappointment_connections2", null); + } + set + { + this.OnPropertyChanging("serviceappointment_connections2"); + this.SetRelatedEntities("serviceappointment_connections2", null, value); + this.OnPropertyChanged("serviceappointment_connections2"); + } + } + + /// + /// 1:N serviceappointment_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceappointment_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable serviceappointment_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("serviceappointment_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("serviceappointment_principalobjectattributeaccess"); + this.SetRelatedEntities("serviceappointment_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("serviceappointment_principalobjectattributeaccess"); + } + } + + /// + /// 1:N ServiceAppointment_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_ProcessSessions")] + public System.Collections.Generic.IEnumerable ServiceAppointment_ProcessSessions + { + get + { + return this.GetRelatedEntities("ServiceAppointment_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_ProcessSessions"); + this.SetRelatedEntities("ServiceAppointment_ProcessSessions", null, value); + this.OnPropertyChanged("ServiceAppointment_ProcessSessions"); + } + } + + /// + /// 1:N ServiceAppointment_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ServiceAppointment_QueueItem")] + public System.Collections.Generic.IEnumerable ServiceAppointment_QueueItem + { + get + { + return this.GetRelatedEntities("ServiceAppointment_QueueItem", null); + } + set + { + this.OnPropertyChanging("ServiceAppointment_QueueItem"); + this.SetRelatedEntities("ServiceAppointment_QueueItem", null, value); + this.OnPropertyChanged("ServiceAppointment_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_serviceappointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceappointment")] + public System.Collections.Generic.IEnumerable userentityinstancedata_serviceappointment + { + get + { + return this.GetRelatedEntities("userentityinstancedata_serviceappointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceappointment"); + this.SetRelatedEntities("userentityinstancedata_serviceappointment", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceappointment"); + } + } + + /// + /// N:1 Account_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Account Account_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Account_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Account_ServiceAppointments"); + this.SetRelatedEntity("Account_ServiceAppointments", null, value); + this.OnPropertyChanged("Account_ServiceAppointments"); + } + } + + /// + /// N:1 activity_pointer_service_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_service_appointment")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_service_appointment + { + get + { + return this.GetRelatedEntity("activity_pointer_service_appointment", null); + } + set + { + this.OnPropertyChanging("activity_pointer_service_appointment"); + this.SetRelatedEntity("activity_pointer_service_appointment", null, value); + this.OnPropertyChanged("activity_pointer_service_appointment"); + } + } + + /// + /// N:1 business_unit_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_service_appointments")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_service_appointments + { + get + { + return this.GetRelatedEntity("business_unit_service_appointments", null); + } + } + + /// + /// N:1 Campaign_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Campaign_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Campaign_ServiceAppointments"); + this.SetRelatedEntity("Campaign_ServiceAppointments", null, value); + this.OnPropertyChanged("Campaign_ServiceAppointments"); + } + } + + /// + /// N:1 Contact_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Contact_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contact_ServiceAppointments"); + this.SetRelatedEntity("Contact_ServiceAppointments", null, value); + this.OnPropertyChanged("Contact_ServiceAppointments"); + } + } + + /// + /// N:1 Contract_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Contract_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Contract_ServiceAppointments"); + this.SetRelatedEntity("Contract_ServiceAppointments", null, value); + this.OnPropertyChanged("Contract_ServiceAppointments"); + } + } + + /// + /// N:1 Incident_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Incident_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Incident_ServiceAppointments"); + this.SetRelatedEntity("Incident_ServiceAppointments", null, value); + this.OnPropertyChanged("Incident_ServiceAppointments"); + } + } + + /// + /// N:1 Invoice_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Invoice_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Invoice_ServiceAppointments"); + this.SetRelatedEntity("Invoice_ServiceAppointments", null, value); + this.OnPropertyChanged("Invoice_ServiceAppointments"); + } + } + + /// + /// N:1 Lead_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Lead_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Lead_ServiceAppointments"); + this.SetRelatedEntity("Lead_ServiceAppointments", null, value); + this.OnPropertyChanged("Lead_ServiceAppointments"); + } + } + + /// + /// N:1 lk_serviceappointment_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_createdby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_createdby", null); + } + } + + /// + /// N:1 lk_serviceappointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_serviceappointment_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_modifiedby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_modifiedby", null); + } + } + + /// + /// N:1 lk_serviceappointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceappointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceappointment_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_ServiceAppointments + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_ServiceAppointments"); + this.SetRelatedEntity("msdyn_postalbum_ServiceAppointments", null, value); + this.OnPropertyChanged("msdyn_postalbum_ServiceAppointments"); + } + } + + /// + /// N:1 Opportunity_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Opportunity_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Opportunity_ServiceAppointments"); + this.SetRelatedEntity("Opportunity_ServiceAppointments", null, value); + this.OnPropertyChanged("Opportunity_ServiceAppointments"); + } + } + + /// + /// N:1 Quote_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_ServiceAppointments + { + get + { + return this.GetRelatedEntity("Quote_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("Quote_ServiceAppointments"); + this.SetRelatedEntity("Quote_ServiceAppointments", null, value); + this.OnPropertyChanged("Quote_ServiceAppointments"); + } + } + + /// + /// N:1 SalesOrder_ServiceAppointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_ServiceAppointments")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_ServiceAppointments + { + get + { + return this.GetRelatedEntity("SalesOrder_ServiceAppointments", null); + } + set + { + this.OnPropertyChanging("SalesOrder_ServiceAppointments"); + this.SetRelatedEntity("SalesOrder_ServiceAppointments", null, value); + this.OnPropertyChanged("SalesOrder_ServiceAppointments"); + } + } + + /// + /// N:1 service_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_service_appointments")] + public Xrm.Framework.CI.Common.Entities.Service service_service_appointments + { + get + { + return this.GetRelatedEntity("service_service_appointments", null); + } + set + { + this.OnPropertyChanging("service_service_appointments"); + this.SetRelatedEntity("service_service_appointments", null, value); + this.OnPropertyChanged("service_service_appointments"); + } + } + + /// + /// N:1 site_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_service_appointments")] + public Xrm.Framework.CI.Common.Entities.Site site_service_appointments + { + get + { + return this.GetRelatedEntity("site_service_appointments", null); + } + set + { + this.OnPropertyChanging("site_service_appointments"); + this.SetRelatedEntity("site_service_appointments", null, value); + this.OnPropertyChanged("site_service_appointments"); + } + } + + /// + /// N:1 system_user_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_appointments")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_service_appointments + { + get + { + return this.GetRelatedEntity("system_user_service_appointments", null); + } + } + + /// + /// N:1 team_service_appointments + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_appointments")] + public Xrm.Framework.CI.Common.Entities.Team team_service_appointments + { + get + { + return this.GetRelatedEntity("team_service_appointments", null); + } + } + + /// + /// N:1 TransactionCurrency_ServiceAppointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ServiceAppointment")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_ServiceAppointment + { + get + { + return this.GetRelatedEntity("TransactionCurrency_ServiceAppointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ServiceAppointment"); + this.SetRelatedEntity("TransactionCurrency_ServiceAppointment", null, value); + this.OnPropertyChanged("TransactionCurrency_ServiceAppointment"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("servicecontractcontacts")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ServiceContractContacts : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ServiceContractContacts() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "servicecontractcontacts"; + + public const int EntityTypeCode = 20; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contractid")] + public System.Nullable ContractId + { + get + { + return this.GetAttributeValue>("contractid"); + } + } + + /// + /// Unique identifier of the contact of the service contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicecontractcontactid")] + public System.Nullable ServiceContractContactId + { + get + { + return this.GetAttributeValue>("servicecontractcontactid"); + } + set + { + this.OnPropertyChanging("ServiceContractContactId"); + this.SetAttributeValue("servicecontractcontactid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ServiceContractContactId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicecontractcontactid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ServiceContractContactId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("servicelevel")] + public System.Nullable ServiceLevel + { + get + { + return this.GetAttributeValue>("servicelevel"); + } + set + { + this.OnPropertyChanging("ServiceLevel"); + this.SetAttributeValue("servicelevel", value); + this.OnPropertyChanged("ServiceLevel"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N servicecontractcontacts_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("servicecontractcontacts_association")] + public System.Collections.Generic.IEnumerable servicecontractcontacts_association + { + get + { + return this.GetRelatedEntities("servicecontractcontacts_association", null); + } + set + { + this.OnPropertyChanging("servicecontractcontacts_association"); + this.SetRelatedEntities("servicecontractcontacts_association", null, value); + this.OnPropertyChanged("servicecontractcontacts_association"); + } + } + } + + /// + /// Service endpoint that can be contacted. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("serviceendpoint")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class ServiceEndpoint : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public ServiceEndpoint() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "serviceendpoint"; + + public const int EntityTypeCode = 4618; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Connection mode to contact the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("connectionmode")] + public Microsoft.Xrm.Sdk.OptionSetValue ConnectionMode + { + get + { + return this.GetAttributeValue("connectionmode"); + } + set + { + this.OnPropertyChanging("ConnectionMode"); + this.SetAttributeValue("connectionmode", value); + this.OnPropertyChanged("ConnectionMode"); + } + } + + /// + /// Type of the endpoint contract. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contract")] + public Microsoft.Xrm.Sdk.OptionSetValue Contract + { + get + { + return this.GetAttributeValue("contract"); + } + set + { + this.OnPropertyChanging("Contract"); + this.SetAttributeValue("contract", value); + this.OnPropertyChanged("Contract"); + } + } + + /// + /// Unique identifier of the user who created the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the service endpoint 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 service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Unique identifier of the user who last modified the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the service endpoint was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of Service end point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the service endpoint is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Path to the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("path")] + public string Path + { + get + { + return this.GetAttributeValue("path"); + } + set + { + this.OnPropertyChanging("Path"); + this.SetAttributeValue("path", value); + this.OnPropertyChanged("Path"); + } + } + + /// + /// Unique identifier of the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceendpointid")] + public System.Nullable ServiceEndpointId + { + get + { + return this.GetAttributeValue>("serviceendpointid"); + } + set + { + this.OnPropertyChanging("ServiceEndpointId"); + this.SetAttributeValue("serviceendpointid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ServiceEndpointId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceendpointid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ServiceEndpointId = value; + } + } + + /// + /// Unique identifier of the service endpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceendpointidunique")] + public System.Nullable ServiceEndpointIdUnique + { + get + { + return this.GetAttributeValue>("serviceendpointidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Namespace of the App Fabric solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionnamespace")] + public string SolutionNamespace + { + get + { + return this.GetAttributeValue("solutionnamespace"); + } + set + { + this.OnPropertyChanging("SolutionNamespace"); + this.SetAttributeValue("solutionnamespace", value); + this.OnPropertyChanged("SolutionNamespace"); + } + } + + /// + /// Additional user claim value type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userclaim")] + public Microsoft.Xrm.Sdk.OptionSetValue UserClaim + { + get + { + return this.GetAttributeValue("userclaim"); + } + set + { + this.OnPropertyChanging("UserClaim"); + this.SetAttributeValue("userclaim", value); + this.OnPropertyChanged("UserClaim"); + } + } + + /// + /// 1:N serviceendpoint_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("serviceendpoint_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable serviceendpoint_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("serviceendpoint_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("serviceendpoint_sdkmessageprocessingstep"); + this.SetRelatedEntities("serviceendpoint_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("serviceendpoint_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N userentityinstancedata_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceendpoint")] + public System.Collections.Generic.IEnumerable userentityinstancedata_serviceendpoint + { + get + { + return this.GetRelatedEntities("userentityinstancedata_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceendpoint"); + this.SetRelatedEntities("userentityinstancedata_serviceendpoint", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceendpoint"); + } + } + + /// + /// N:1 createdby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.SystemUser createdby_serviceendpoint + { + get + { + return this.GetRelatedEntity("createdby_serviceendpoint", null); + } + } + + /// + /// N:1 lk_serviceendpointbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceendpointbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceendpointbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_serviceendpointbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_serviceendpointbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_serviceendpointbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.SystemUser modifiedby_serviceendpoint + { + get + { + return this.GetRelatedEntity("modifiedby_serviceendpoint", null); + } + } + + /// + /// N:1 organization_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.Organization organization_serviceendpoint + { + get + { + return this.GetRelatedEntity("organization_serviceendpoint", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SharePointDocumentLocationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Document libraries or folders on a SharePoint server from where documents can be managed in Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sharepointdocumentlocation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SharePointDocumentLocation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SharePointDocumentLocation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sharepointdocumentlocation"; + + public const int EntityTypeCode = 9508; + + 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)); + } + } + + /// + /// Absolute URL of the SharePoint document location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("absoluteurl")] + public string AbsoluteURL + { + get + { + return this.GetAttributeValue("absoluteurl"); + } + set + { + this.OnPropertyChanging("AbsoluteURL"); + this.SetAttributeValue("absoluteurl", value); + this.OnPropertyChanged("AbsoluteURL"); + } + } + + /// + /// Unique identifier of the user who created the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SharePoint document location 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 SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Exchange rate between the currency associated with the SharePoint document location record and the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sequence number of the import that created the SharePoint document location 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 last modified the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SharePoint document location record was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SharePoint document location record. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the SharePoint document location record. + /// + [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 SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the parent site or location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsiteorlocation")] + public Microsoft.Xrm.Sdk.EntityReference ParentSiteOrLocation + { + get + { + return this.GetAttributeValue("parentsiteorlocation"); + } + set + { + this.OnPropertyChanging("ParentSiteOrLocation"); + this.SetAttributeValue("parentsiteorlocation", value); + this.OnPropertyChanged("ParentSiteOrLocation"); + } + } + + /// + /// Unique identifier of the object with which the SharePoint document location record 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"); + } + } + + /// + /// Relative URL of the SharePoint document location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relativeurl")] + public string RelativeUrl + { + get + { + return this.GetAttributeValue("relativeurl"); + } + set + { + this.OnPropertyChanging("RelativeUrl"); + this.SetAttributeValue("relativeurl", value); + this.OnPropertyChanged("RelativeUrl"); + } + } + + /// + /// Unique identifier of the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointdocumentlocationid")] + public System.Nullable SharePointDocumentLocationId + { + get + { + return this.GetAttributeValue>("sharepointdocumentlocationid"); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocationId"); + this.SetAttributeValue("sharepointdocumentlocationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SharePointDocumentLocationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointdocumentlocationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SharePointDocumentLocationId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitecollectionid")] + public System.Nullable SiteCollectionId + { + get + { + return this.GetAttributeValue>("sitecollectionid"); + } + } + + /// + /// Status of the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SharePointDocumentLocationState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SharePointDocumentLocationState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the SharePoint document location record. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the SharePoint document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SharePointDocumentLocation_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_AsyncOperations")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_AsyncOperations + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_AsyncOperations"); + this.SetRelatedEntities("SharePointDocumentLocation_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_AsyncOperations"); + } + } + + /// + /// 1:N SharePointDocumentLocation_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_DuplicateBaseRecord"); + this.SetRelatedEntities("SharePointDocumentLocation_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_DuplicateBaseRecord"); + } + } + + /// + /// 1:N SharePointDocumentLocation_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_DuplicateMatchingRecord"); + this.SetRelatedEntities("SharePointDocumentLocation_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N sharepointdocumentlocation_parent_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsharepointdocumentlocation_parent_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsharepointdocumentlocation_parent_sharepointdocumentlocation"); + this.SetRelatedEntities("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsharepointdocumentlocation_parent_sharepointdocumentlocation"); + } + } + + /// + /// 1:N sharepointdocumentlocation_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable sharepointdocumentlocation_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("sharepointdocumentlocation_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_principalobjectattributeaccess"); + this.SetRelatedEntities("sharepointdocumentlocation_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SharePointDocumentLocation_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_ProcessSessions")] + public System.Collections.Generic.IEnumerable SharePointDocumentLocation_ProcessSessions + { + get + { + return this.GetRelatedEntities("SharePointDocumentLocation_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointDocumentLocation_ProcessSessions"); + this.SetRelatedEntities("SharePointDocumentLocation_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointDocumentLocation_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointdocumentlocation"); + this.SetRelatedEntities("userentityinstancedata_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointdocumentlocation"); + } + } + + /// + /// N:1 Account_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Account Account_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Account_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Account_SharepointDocumentLocation"); + this.SetRelatedEntity("Account_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Account_SharepointDocumentLocation"); + } + } + + /// + /// N:1 business_unit_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("business_unit_sharepointdocumentlocation", null); + } + } + + /// + /// N:1 KbArticle_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.KbArticle KbArticle_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("KbArticle_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("KbArticle_SharepointDocumentLocation"); + this.SetRelatedEntity("KbArticle_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("KbArticle_SharepointDocumentLocation"); + } + } + + /// + /// N:1 Lead_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Lead_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Lead_SharepointDocumentLocation"); + this.SetRelatedEntity("Lead_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Lead_SharepointDocumentLocation"); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_createdby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_createdby", null); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_modifiedby", null); + } + } + + /// + /// N:1 lk_sharepointdocumentlocationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointdocumentlocationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointdocumentlocationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 Opportunity_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Opportunity_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Opportunity_SharepointDocumentLocation"); + this.SetRelatedEntity("Opportunity_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Opportunity_SharepointDocumentLocation"); + } + } + + /// + /// N:1 Product_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Product_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Product Product_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Product_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Product_SharepointDocumentLocation"); + this.SetRelatedEntity("Product_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Product_SharepointDocumentLocation"); + } + } + + /// + /// N:1 Quote_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("Quote_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("Quote_SharepointDocumentLocation"); + this.SetRelatedEntity("Quote_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("Quote_SharepointDocumentLocation"); + } + } + + /// + /// N:1 SalesLiterature_SharepointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesLiterature_SharepointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature SalesLiterature_SharepointDocumentLocation + { + get + { + return this.GetRelatedEntity("SalesLiterature_SharepointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("SalesLiterature_SharepointDocumentLocation"); + this.SetRelatedEntity("SalesLiterature_SharepointDocumentLocation", null, value); + this.OnPropertyChanged("SalesLiterature_SharepointDocumentLocation"); + } + } + + /// + /// N:1 sharepointdocumentlocation_parent_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsiteorlocation")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation Referencingsharepointdocumentlocation_parent_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingsharepointdocumentlocation_parent_sharepointdocumentlocation"); + this.SetRelatedEntity("sharepointdocumentlocation_parent_sharepointdocumentlocation", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingsharepointdocumentlocation_parent_sharepointdocumentlocation"); + } + } + + /// + /// N:1 sharepointdocumentlocation_parent_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsiteorlocation")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.SharePointSite sharepointdocumentlocation_parent_sharepointsite + { + get + { + return this.GetRelatedEntity("sharepointdocumentlocation_parent_sharepointsite", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_parent_sharepointsite"); + this.SetRelatedEntity("sharepointdocumentlocation_parent_sharepointsite", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_parent_sharepointsite"); + } + } + + /// + /// N:1 team_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.Team team_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("team_sharepointdocumentlocation", null); + } + } + + /// + /// N:1 TransactionCurrency_SharePointDocumentLocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointDocumentLocation")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SharePointDocumentLocation + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SharePointDocumentLocation", null); + } + } + + /// + /// N:1 user_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("user_sharepointdocumentlocation", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum SharePointSiteState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// SharePoint site from where documents can be managed in Microsoft Dynamics CRM. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sharepointsite")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SharePointSite : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SharePointSite() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sharepointsite"; + + public const int EntityTypeCode = 9502; + + 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)); + } + } + + /// + /// Absolute URL of the SharePoint site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("absoluteurl")] + public string AbsoluteURL + { + get + { + return this.GetAttributeValue("absoluteurl"); + } + set + { + this.OnPropertyChanging("AbsoluteURL"); + this.SetAttributeValue("absoluteurl", value); + this.OnPropertyChanged("AbsoluteURL"); + } + } + + /// + /// Unique identifier of the user who created the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SharePoint site 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 SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Exchange rate between the currency associated with the SharePoint site record and the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Entity on which the folder structure for Microsoft Dynamics CRM records will be created in SharePoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("folderstructureentity")] + public string FolderStructureEntity + { + get + { + return this.GetAttributeValue("folderstructureentity"); + } + set + { + this.OnPropertyChanging("FolderStructureEntity"); + this.SetAttributeValue("folderstructureentity", value); + this.OnPropertyChanged("FolderStructureEntity"); + } + } + + /// + /// 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"); + } + } + + /// + /// Indicates whether the SharePoint site is the default site or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Indicates if SharePoint Grid is present or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isgridpresent")] + public System.Nullable IsGridPresent + { + get + { + return this.GetAttributeValue>("isgridpresent"); + } + set + { + this.OnPropertyChanging("IsGridPresent"); + this.SetAttributeValue("isgridpresent", value); + this.OnPropertyChanged("IsGridPresent"); + } + } + + /// + /// Date and time when the SharePoint site URL was last validated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastvalidated")] + public System.Nullable LastValidated + { + get + { + return this.GetAttributeValue>("lastvalidated"); + } + set + { + this.OnPropertyChanging("LastValidated"); + this.SetAttributeValue("lastvalidated", value); + this.OnPropertyChanged("LastValidated"); + } + } + + /// + /// Unique identifier of the user who last modified the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SharePoint site record was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SharePoint site record. + /// + [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"); + } + } + + /// + /// Unique identifier of the user or team who owns the SharePoint site. + /// + [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 document location record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team that owns the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the parent SharePoint site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsite")] + public Microsoft.Xrm.Sdk.EntityReference ParentSite + { + get + { + return this.GetAttributeValue("parentsite"); + } + set + { + this.OnPropertyChanging("ParentSite"); + this.SetAttributeValue("parentsite", value); + this.OnPropertyChanged("ParentSite"); + } + } + + /// + /// Relative URL of the SharePoint site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relativeurl")] + public string RelativeUrl + { + get + { + return this.GetAttributeValue("relativeurl"); + } + set + { + this.OnPropertyChanging("RelativeUrl"); + this.SetAttributeValue("relativeurl", value); + this.OnPropertyChanged("RelativeUrl"); + } + } + + /// + /// Unique identifier of the SharePoint site in CRM + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointsiteid")] + public System.Nullable SharePointSiteId + { + get + { + return this.GetAttributeValue>("sharepointsiteid"); + } + set + { + this.OnPropertyChanging("SharePointSiteId"); + this.SetAttributeValue("sharepointsiteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SharePointSiteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointsiteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SharePointSiteId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitecollectionid")] + public System.Nullable SiteCollectionId + { + get + { + return this.GetAttributeValue>("sitecollectionid"); + } + } + + /// + /// Status of the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.SharePointSiteState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.SharePointSiteState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the SharePoint site record. + /// + [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"); + } + } + + /// + /// Unique identifier of the currency associated with the SharePoint site record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("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"); + } + } + + /// + /// Validation status of the SharePoint site URL. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validationstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue ValidationStatus + { + get + { + return this.GetAttributeValue("validationstatus"); + } + set + { + this.OnPropertyChanging("ValidationStatus"); + this.SetAttributeValue("validationstatus", value); + this.OnPropertyChanged("ValidationStatus"); + } + } + + /// + /// Reason for validation status of the URL + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validationstatuserrorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ValidationStatusErrorCode + { + get + { + return this.GetAttributeValue("validationstatuserrorcode"); + } + set + { + this.OnPropertyChanging("ValidationStatusErrorCode"); + this.SetAttributeValue("validationstatuserrorcode", value); + this.OnPropertyChanged("ValidationStatusErrorCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N sharepointdocumentlocation_parent_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointdocumentlocation_parent_sharepointsite")] + public System.Collections.Generic.IEnumerable sharepointdocumentlocation_parent_sharepointsite + { + get + { + return this.GetRelatedEntities("sharepointdocumentlocation_parent_sharepointsite", null); + } + set + { + this.OnPropertyChanging("sharepointdocumentlocation_parent_sharepointsite"); + this.SetRelatedEntities("sharepointdocumentlocation_parent_sharepointsite", null, value); + this.OnPropertyChanged("sharepointdocumentlocation_parent_sharepointsite"); + } + } + + /// + /// 1:N SharePointSite_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_AsyncOperations")] + public System.Collections.Generic.IEnumerable SharePointSite_AsyncOperations + { + get + { + return this.GetRelatedEntities("SharePointSite_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SharePointSite_AsyncOperations"); + this.SetRelatedEntities("SharePointSite_AsyncOperations", null, value); + this.OnPropertyChanged("SharePointSite_AsyncOperations"); + } + } + + /// + /// 1:N SharePointSite_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable SharePointSite_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("SharePointSite_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("SharePointSite_DuplicateBaseRecord"); + this.SetRelatedEntities("SharePointSite_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("SharePointSite_DuplicateBaseRecord"); + } + } + + /// + /// 1:N SharePointSite_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable SharePointSite_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("SharePointSite_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("SharePointSite_DuplicateMatchingRecord"); + this.SetRelatedEntities("SharePointSite_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("SharePointSite_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N sharepointsite_parentsite_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsharepointsite_parentsite_sharepointsite + { + get + { + return this.GetRelatedEntities("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsharepointsite_parentsite_sharepointsite"); + this.SetRelatedEntities("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsharepointsite_parentsite_sharepointsite"); + } + } + + /// + /// 1:N sharepointsite_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable sharepointsite_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("sharepointsite_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("sharepointsite_principalobjectattributeaccess"); + this.SetRelatedEntities("sharepointsite_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("sharepointsite_principalobjectattributeaccess"); + } + } + + /// + /// 1:N SharePointSite_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_ProcessSessions")] + public System.Collections.Generic.IEnumerable SharePointSite_ProcessSessions + { + get + { + return this.GetRelatedEntities("SharePointSite_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SharePointSite_ProcessSessions"); + this.SetRelatedEntities("SharePointSite_ProcessSessions", null, value); + this.OnPropertyChanged("SharePointSite_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointsite")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sharepointsite + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sharepointsite", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointsite"); + this.SetRelatedEntities("userentityinstancedata_sharepointsite", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointsite"); + } + } + + /// + /// N:1 business_unit_sharepointsites + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_sharepointsites")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_sharepointsites + { + get + { + return this.GetRelatedEntity("business_unit_sharepointsites", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_createdby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_createdby", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_modifiedby", null); + } + } + + /// + /// N:1 lk_sharepointsitebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sharepointsitebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sharepointsitebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 sharepointsite_parentsite_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsite")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SharePointSite Referencingsharepointsite_parentsite_sharepointsite + { + get + { + return this.GetRelatedEntity("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingsharepointsite_parentsite_sharepointsite"); + this.SetRelatedEntity("sharepointsite_parentsite_sharepointsite", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingsharepointsite_parentsite_sharepointsite"); + } + } + + /// + /// N:1 team_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.Team team_sharepointsite + { + get + { + return this.GetRelatedEntity("team_sharepointsite", null); + } + } + + /// + /// N:1 TransactionCurrency_SharePointSite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointSite")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SharePointSite + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SharePointSite", null); + } + } + + /// + /// N:1 user_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_sharepointsite + { + get + { + return this.GetRelatedEntity("user_sharepointsite", null); + } + } + } + + /// + /// Location or branch office where an organization does business. An organization can have multiple sites. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("site")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Site : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Site() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "site"; + + public const int EntityTypeCode = 4009; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the user who created the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the site 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 site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Email address for the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the site 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 site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the site is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Unique identifier of the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public System.Nullable SiteId + { + get + { + return this.GetAttributeValue>("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SiteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SiteId = value; + } + } + + /// + /// Local time zone for the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// Version number of the site. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Site_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_AsyncOperations")] + public System.Collections.Generic.IEnumerable Site_AsyncOperations + { + get + { + return this.GetRelatedEntities("Site_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Site_AsyncOperations"); + this.SetRelatedEntities("Site_AsyncOperations", null, value); + this.OnPropertyChanged("Site_AsyncOperations"); + } + } + + /// + /// 1:N Site_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Site_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Site_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Site_BulkDeleteFailures"); + this.SetRelatedEntities("Site_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Site_BulkDeleteFailures"); + } + } + + /// + /// 1:N site_equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_equipment")] + public System.Collections.Generic.IEnumerable site_equipment + { + get + { + return this.GetRelatedEntities("site_equipment", null); + } + set + { + this.OnPropertyChanging("site_equipment"); + this.SetRelatedEntities("site_equipment", null, value); + this.OnPropertyChanged("site_equipment"); + } + } + + /// + /// 1:N Site_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Site_ProcessSessions")] + public System.Collections.Generic.IEnumerable Site_ProcessSessions + { + get + { + return this.GetRelatedEntities("Site_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Site_ProcessSessions"); + this.SetRelatedEntities("Site_ProcessSessions", null, value); + this.OnPropertyChanged("Site_ProcessSessions"); + } + } + + /// + /// 1:N site_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_resources")] + public System.Collections.Generic.IEnumerable site_resources + { + get + { + return this.GetRelatedEntities("site_resources", null); + } + set + { + this.OnPropertyChanging("site_resources"); + this.SetRelatedEntities("site_resources", null, value); + this.OnPropertyChanged("site_resources"); + } + } + + /// + /// 1:N site_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_service_appointments")] + public System.Collections.Generic.IEnumerable site_service_appointments + { + get + { + return this.GetRelatedEntities("site_service_appointments", null); + } + set + { + this.OnPropertyChanging("site_service_appointments"); + this.SetRelatedEntities("site_service_appointments", null, value); + this.OnPropertyChanged("site_service_appointments"); + } + } + + /// + /// 1:N site_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_system_users")] + public System.Collections.Generic.IEnumerable site_system_users + { + get + { + return this.GetRelatedEntities("site_system_users", null); + } + set + { + this.OnPropertyChanging("site_system_users"); + this.SetRelatedEntities("site_system_users", null, value); + this.OnPropertyChanged("site_system_users"); + } + } + + /// + /// 1:N userentityinstancedata_site + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_site")] + public System.Collections.Generic.IEnumerable userentityinstancedata_site + { + get + { + return this.GetRelatedEntities("userentityinstancedata_site", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_site"); + this.SetRelatedEntities("userentityinstancedata_site", null, value); + this.OnPropertyChanged("userentityinstancedata_site"); + } + } + + /// + /// N:1 lk_site_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_site_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_site_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_site_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_site_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_site_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_sitebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sitebase_createdby + { + get + { + return this.GetRelatedEntity("lk_sitebase_createdby", null); + } + } + + /// + /// N:1 lk_sitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_sitebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_sitebase_modifiedby", null); + } + } + + /// + /// N:1 organization_sites + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sites")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sites + { + get + { + return this.GetRelatedEntity("organization_sites", null); + } + } + } + + /// + /// XML data used to control the application navigation pane. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sitemap")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SiteMap : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SiteMap() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sitemap"; + + public const int EntityTypeCode = 4709; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapid")] + public System.Nullable SiteMapId + { + get + { + return this.GetAttributeValue>("sitemapid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapidunique")] + public System.Nullable SiteMapIdUnique + { + get + { + return this.GetAttributeValue>("sitemapidunique"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sitemapxml")] + public string SiteMapXml + { + get + { + return this.GetAttributeValue("sitemapxml"); + } + set + { + this.OnPropertyChanging("SiteMapXml"); + this.SetAttributeValue("sitemapxml", value); + this.OnPropertyChanged("SiteMapXml"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_sitemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sitemap")] + public System.Collections.Generic.IEnumerable userentityinstancedata_sitemap + { + get + { + return this.GetRelatedEntities("userentityinstancedata_sitemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sitemap"); + this.SetRelatedEntities("userentityinstancedata_sitemap", null, value); + this.OnPropertyChanged("userentityinstancedata_sitemap"); + } + } + + /// + /// N:1 organization_sitemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_sitemap")] + public Xrm.Framework.CI.Common.Entities.Organization organization_sitemap + { + get + { + return this.GetRelatedEntity("organization_sitemap", null); + } + } + } + + /// + /// A solution which contains CRM customizations. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solution")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Solution : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Solution() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "solution"; + + public const int EntityTypeCode = 7100; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// A link to an optional configuration page for this solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] + public Microsoft.Xrm.Sdk.EntityReference ConfigurationPageId + { + get + { + return this.GetAttributeValue("configurationpageid"); + } + set + { + this.OnPropertyChanging("ConfigurationPageId"); + this.SetAttributeValue("configurationpageid", value); + this.OnPropertyChanged("ConfigurationPageId"); + } + } + + /// + /// Unique identifier of the user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the solution was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// User display name for the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// Date and time when the solution was installed/upgraded. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("installedon")] + public System.Nullable InstalledOn + { + get + { + return this.GetAttributeValue>("installedon"); + } + } + + /// + /// Indicates whether the solution is managed or unmanaged. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the solution is visible outside of the platform. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + } + + /// + /// Unique identifier of the user who last modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the solution was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointassetid")] + public string PinpointAssetId + { + get + { + return this.GetAttributeValue("pinpointassetid"); + } + } + + /// + /// Identifier of the publisher of this solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] + public System.Nullable PinpointPublisherId + { + get + { + return this.GetAttributeValue>("pinpointpublisherid"); + } + } + + /// + /// Default locale of the solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutiondefaultlocale")] + public string PinpointSolutionDefaultLocale + { + get + { + return this.GetAttributeValue("pinpointsolutiondefaultlocale"); + } + } + + /// + /// Identifier of the solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutionid")] + public System.Nullable PinpointSolutionId + { + get + { + return this.GetAttributeValue>("pinpointsolutionid"); + } + } + + /// + /// Unique identifier of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public Microsoft.Xrm.Sdk.EntityReference PublisherId + { + get + { + return this.GetAttributeValue("publisherid"); + } + set + { + this.OnPropertyChanging("PublisherId"); + this.SetAttributeValue("publisherid", value); + this.OnPropertyChanged("PublisherId"); + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + set + { + this.OnPropertyChanging("SolutionId"); + this.SetAttributeValue("solutionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SolutionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SolutionId = value; + } + } + + /// + /// The unique name of this solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// Solution version, used to identify a solution for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N solution_solutioncomponent + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] + public System.Collections.Generic.IEnumerable solution_solutioncomponent + { + get + { + return this.GetRelatedEntities("solution_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("solution_solutioncomponent"); + this.SetRelatedEntities("solution_solutioncomponent", null, value); + this.OnPropertyChanged("solution_solutioncomponent"); + } + } + + /// + /// 1:N userentityinstancedata_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solution")] + public System.Collections.Generic.IEnumerable userentityinstancedata_solution + { + get + { + return this.GetRelatedEntities("userentityinstancedata_solution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solution"); + this.SetRelatedEntities("userentityinstancedata_solution", null, value); + this.OnPropertyChanged("userentityinstancedata_solution"); + } + } + + /// + /// N:1 lk_solution_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solution_createdby + { + get + { + return this.GetRelatedEntity("lk_solution_createdby", null); + } + } + + /// + /// N:1 lk_solution_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solution_modifiedby + { + get + { + return this.GetRelatedEntity("lk_solution_modifiedby", null); + } + } + + /// + /// N:1 lk_solutionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_solutionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_solution")] + public Xrm.Framework.CI.Common.Entities.Organization organization_solution + { + get + { + return this.GetRelatedEntity("organization_solution", null); + } + } + + /// + /// N:1 publisher_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] + public Xrm.Framework.CI.Common.Entities.Publisher publisher_solution + { + get + { + return this.GetRelatedEntity("publisher_solution", null); + } + set + { + this.OnPropertyChanging("publisher_solution"); + this.SetRelatedEntity("publisher_solution", null, value); + this.OnPropertyChanged("publisher_solution"); + } + } + + /// + /// N:1 solution_configuration_webresource + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_configuration_webresource")] + public Xrm.Framework.CI.Common.Entities.WebResource solution_configuration_webresource + { + get + { + return this.GetRelatedEntity("solution_configuration_webresource", null); + } + set + { + this.OnPropertyChanging("solution_configuration_webresource"); + this.SetRelatedEntity("solution_configuration_webresource", null, value); + this.OnPropertyChanged("solution_configuration_webresource"); + } + } + } + + /// + /// A component of a CRM solution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solutioncomponent")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SolutionComponent : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SolutionComponent() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "solutioncomponent"; + + public const int EntityTypeCode = 7103; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// The object type code of the component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttype")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentType + { + get + { + return this.GetAttributeValue("componenttype"); + } + } + + /// + /// Unique identifier of the user who created the solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the solution was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Indicates whether this component is metadata or data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismetadata")] + public System.Nullable IsMetadata + { + get + { + return this.GetAttributeValue>("ismetadata"); + } + } + + /// + /// Unique identifier of the user who last modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the solution was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the object with which the component is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + } + + /// + /// Unique identifier of the solution component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] + public System.Nullable SolutionComponentId + { + get + { + return this.GetAttributeValue>("solutioncomponentid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public Microsoft.Xrm.Sdk.EntityReference SolutionId + { + get + { + return this.GetAttributeValue("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_solutioncomponent + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solutioncomponent")] + public System.Collections.Generic.IEnumerable userentityinstancedata_solutioncomponent + { + get + { + return this.GetRelatedEntities("userentityinstancedata_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solutioncomponent"); + this.SetRelatedEntities("userentityinstancedata_solutioncomponent", null, value); + this.OnPropertyChanged("userentityinstancedata_solutioncomponent"); + } + } + + /// + /// N:1 lk_solutioncomponentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutioncomponentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_solutioncomponentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_solutioncomponentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 solution_solutioncomponent + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] + public Xrm.Framework.CI.Common.Entities.Solution solution_solutioncomponent + { + get + { + return this.GetRelatedEntity("solution_solutioncomponent", null); + } + } + } + + /// + /// Information regarding subjects available in the system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("subject")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Subject : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Subject() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "subject"; + + public const int EntityTypeCode = 129; + + 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 subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the subject 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 subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Information that specifies when the subject will be displayed in lists of subjects. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("featuremask")] + public System.Nullable FeatureMask + { + get + { + return this.GetAttributeValue>("featuremask"); + } + set + { + this.OnPropertyChanging("FeatureMask"); + this.SetAttributeValue("featuremask", value); + this.OnPropertyChanged("FeatureMask"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the subject 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 subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier for the organization associated with the subject. + /// + [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"); + } + } + + /// + /// Unique identifier of the parent subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsubject")] + public Microsoft.Xrm.Sdk.EntityReference ParentSubject + { + get + { + return this.GetAttributeValue("parentsubject"); + } + set + { + this.OnPropertyChanging("ParentSubject"); + this.SetAttributeValue("parentsubject", value); + this.OnPropertyChanged("ParentSubject"); + } + } + + /// + /// Unique identifier of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + public System.Nullable SubjectId + { + get + { + return this.GetAttributeValue>("subjectid"); + } + set + { + this.OnPropertyChanging("SubjectId"); + this.SetAttributeValue("subjectid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SubjectId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SubjectId = value; + } + } + + /// + /// Title of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Version number of the subject. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N Subject_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_AsyncOperations")] + public System.Collections.Generic.IEnumerable Subject_AsyncOperations + { + get + { + return this.GetRelatedEntities("Subject_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Subject_AsyncOperations"); + this.SetRelatedEntities("Subject_AsyncOperations", null, value); + this.OnPropertyChanged("Subject_AsyncOperations"); + } + } + + /// + /// 1:N Subject_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Subject_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Subject_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Subject_BulkDeleteFailures"); + this.SetRelatedEntities("Subject_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Subject_BulkDeleteFailures"); + } + } + + /// + /// 1:N subject_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_incidents")] + public System.Collections.Generic.IEnumerable subject_incidents + { + get + { + return this.GetRelatedEntities("subject_incidents", null); + } + set + { + this.OnPropertyChanging("subject_incidents"); + this.SetRelatedEntities("subject_incidents", null, value); + this.OnPropertyChanged("subject_incidents"); + } + } + + /// + /// 1:N subject_kb_articles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_kb_articles")] + public System.Collections.Generic.IEnumerable subject_kb_articles + { + get + { + return this.GetRelatedEntities("subject_kb_articles", null); + } + set + { + this.OnPropertyChanging("subject_kb_articles"); + this.SetRelatedEntities("subject_kb_articles", null, value); + this.OnPropertyChanged("subject_kb_articles"); + } + } + + /// + /// 1:N subject_parent_subject + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsubject_parent_subject + { + get + { + return this.GetRelatedEntities("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsubject_parent_subject"); + this.SetRelatedEntities("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsubject_parent_subject"); + } + } + + /// + /// 1:N Subject_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Subject_ProcessSessions")] + public System.Collections.Generic.IEnumerable Subject_ProcessSessions + { + get + { + return this.GetRelatedEntities("Subject_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Subject_ProcessSessions"); + this.SetRelatedEntities("Subject_ProcessSessions", null, value); + this.OnPropertyChanged("Subject_ProcessSessions"); + } + } + + /// + /// 1:N subject_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_products")] + public System.Collections.Generic.IEnumerable subject_products + { + get + { + return this.GetRelatedEntities("subject_products", null); + } + set + { + this.OnPropertyChanging("subject_products"); + this.SetRelatedEntities("subject_products", null, value); + this.OnPropertyChanged("subject_products"); + } + } + + /// + /// 1:N subject_sales_literature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_sales_literature")] + public System.Collections.Generic.IEnumerable subject_sales_literature + { + get + { + return this.GetRelatedEntities("subject_sales_literature", null); + } + set + { + this.OnPropertyChanging("subject_sales_literature"); + this.SetRelatedEntities("subject_sales_literature", null, value); + this.OnPropertyChanged("subject_sales_literature"); + } + } + + /// + /// 1:N userentityinstancedata_subject + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subject")] + public System.Collections.Generic.IEnumerable userentityinstancedata_subject + { + get + { + return this.GetRelatedEntities("userentityinstancedata_subject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subject"); + this.SetRelatedEntities("userentityinstancedata_subject", null, value); + this.OnPropertyChanged("userentityinstancedata_subject"); + } + } + + /// + /// N:1 lk_subject_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subject_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_subject_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_subject_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subject_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_subject_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_subjectbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subjectbase_createdby + { + get + { + return this.GetRelatedEntity("lk_subjectbase_createdby", null); + } + } + + /// + /// N:1 lk_subjectbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_subjectbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_subjectbase_modifiedby", null); + } + } + + /// + /// N:1 organization_subjects + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_subjects")] + public Xrm.Framework.CI.Common.Entities.Organization organization_subjects + { + get + { + return this.GetRelatedEntity("organization_subjects", null); + } + } + + /// + /// N:1 subject_parent_subject + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsubject")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Subject Referencingsubject_parent_subject + { + get + { + return this.GetRelatedEntity("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingsubject_parent_subject"); + this.SetRelatedEntity("subject_parent_subject", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingsubject_parent_subject"); + } + } + } + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("subscriptionmanuallytrackedobject")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SubscriptionManuallyTrackedObject : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SubscriptionManuallyTrackedObject() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "subscriptionmanuallytrackedobject"; + + public const int EntityTypeCode = 37; + + 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 object with which the subscription is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Type code of the object with which the subscription is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the subscription. + /// + [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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subscriptionmanuallytrackedobjectid")] + public System.Nullable SubscriptionManuallyTrackedObjectId + { + get + { + return this.GetAttributeValue>("subscriptionmanuallytrackedobjectid"); + } + set + { + this.OnPropertyChanging("SubscriptionManuallyTrackedObjectId"); + this.SetAttributeValue("subscriptionmanuallytrackedobjectid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SubscriptionManuallyTrackedObjectId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subscriptionmanuallytrackedobjectid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SubscriptionManuallyTrackedObjectId = value; + } + } + + /// + /// Information that specifies if the object is tracked. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("track")] + public System.Nullable Track + { + get + { + return this.GetAttributeValue>("track"); + } + set + { + this.OnPropertyChanging("Track"); + this.SetAttributeValue("track", value); + this.OnPropertyChanged("Track"); + } + } + + /// + /// 1:N userentityinstancedata_subscriptionmanuallytrackedobject + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subscriptionmanuallytrackedobject")] + public System.Collections.Generic.IEnumerable userentityinstancedata_subscriptionmanuallytrackedobject + { + get + { + return this.GetRelatedEntities("userentityinstancedata_subscriptionmanuallytrackedobject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subscriptionmanuallytrackedobject"); + this.SetRelatedEntities("userentityinstancedata_subscriptionmanuallytrackedobject", null, value); + this.OnPropertyChanged("userentityinstancedata_subscriptionmanuallytrackedobject"); + } + } + } + + /// + /// Organization-owned entity customizations including form layout and dashboards. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemform")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemForm : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemForm() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemform"; + + public const int EntityTypeCode = 1030; + + 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 parent form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ancestorformid")] + public Microsoft.Xrm.Sdk.EntityReference AncestorFormId + { + get + { + return this.GetAttributeValue("ancestorformid"); + } + set + { + this.OnPropertyChanging("AncestorFormId"); + this.SetAttributeValue("ancestorformid", value); + this.OnPropertyChanged("AncestorFormId"); + } + } + + /// + /// Information that specifies whether this component can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty CanBeDeleted + { + get + { + return this.GetAttributeValue("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Description of the form or dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Specifies the state of the form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formactivationstate")] + public Microsoft.Xrm.Sdk.OptionSetValue FormActivationState + { + get + { + return this.GetAttributeValue("formactivationstate"); + } + set + { + this.OnPropertyChanging("FormActivationState"); + this.SetAttributeValue("formactivationstate", value); + this.OnPropertyChanged("FormActivationState"); + } + } + + /// + /// Unique identifier of the record type form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public System.Nullable FormId + { + get + { + return this.GetAttributeValue>("formid"); + } + set + { + this.OnPropertyChanging("FormId"); + this.SetAttributeValue("formid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("FormId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.FormId = value; + } + } + + /// + /// Unique identifier of the form used when synchronizing customizations for the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formidunique")] + public System.Nullable FormIdUnique + { + get + { + return this.GetAttributeValue>("formidunique"); + } + } + + /// + /// Specifies whether this form is in the updated UI layout in Microsoft Dynamics CRM 2013 or Microsoft Dynamics CRM Online Fall '13. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formpresentation")] + public Microsoft.Xrm.Sdk.OptionSetValue FormPresentation + { + get + { + return this.GetAttributeValue("formpresentation"); + } + set + { + this.OnPropertyChanging("FormPresentation"); + this.SetAttributeValue("formpresentation", value); + this.OnPropertyChanged("FormPresentation"); + } + } + + /// + /// XML representation of the form layout. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formxml")] + public string FormXml + { + get + { + return this.GetAttributeValue("formxml"); + } + set + { + this.OnPropertyChanging("FormXml"); + this.SetAttributeValue("formxml", value); + this.OnPropertyChanged("FormXml"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Specifies whether this form is merged with the updated UI layout in Microsoft Dynamics CRM 2013 or Microsoft Dynamics CRM Online Fall '13. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isairmerged")] + public System.Nullable IsAIRMerged + { + get + { + return this.GetAttributeValue>("isairmerged"); + } + set + { + this.OnPropertyChanging("IsAIRMerged"); + this.SetAttributeValue("isairmerged", value); + this.OnPropertyChanged("IsAIRMerged"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether the form or the dashboard is the system default. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Name of the form. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Code that represents the record type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publishedon")] + public System.Nullable PublishedOn + { + get + { + return this.GetAttributeValue>("publishedon"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Type of the form, for example, Dashboard or Preview. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public System.Nullable Version + { + get + { + return this.GetAttributeValue>("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// Represents a version of customizations to be synchronized with the Microsoft Dynamics CRM client for Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N form_ancestor_form + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedform_ancestor_form + { + get + { + return this.GetRelatedEntities("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedform_ancestor_form"); + this.SetRelatedEntities("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedform_ancestor_form"); + } + } + + /// + /// 1:N processtrigger_systemform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processtrigger_systemform")] + public System.Collections.Generic.IEnumerable processtrigger_systemform + { + get + { + return this.GetRelatedEntities("processtrigger_systemform", null); + } + set + { + this.OnPropertyChanging("processtrigger_systemform"); + this.SetRelatedEntities("processtrigger_systemform", null, value); + this.OnPropertyChanged("processtrigger_systemform"); + } + } + + /// + /// 1:N SystemForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_AsyncOperations")] + public System.Collections.Generic.IEnumerable SystemForm_AsyncOperations + { + get + { + return this.GetRelatedEntities("SystemForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemForm_AsyncOperations"); + this.SetRelatedEntities("SystemForm_AsyncOperations", null, value); + this.OnPropertyChanged("SystemForm_AsyncOperations"); + } + } + + /// + /// 1:N SystemForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemForm_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SystemForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SystemForm_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SystemForm_BulkDeleteFailures"); + this.SetRelatedEntities("SystemForm_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SystemForm_BulkDeleteFailures"); + } + } + + /// + /// N:1 form_ancestor_form + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ancestorformid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemForm Referencingform_ancestor_form + { + get + { + return this.GetRelatedEntity("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingform_ancestor_form"); + this.SetRelatedEntity("form_ancestor_form", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingform_ancestor_form"); + } + } + + /// + /// N:1 organization_systemforms + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_systemforms")] + public Xrm.Framework.CI.Common.Entities.Organization organization_systemforms + { + get + { + return this.GetRelatedEntity("organization_systemforms", null); + } + } + } + + /// + /// Person with access to the Microsoft CRM system and who owns objects in the Microsoft CRM database. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuser")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUser : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUser() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuser"; + + public const int EntityTypeCode = 8; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type of user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmode")] + public Microsoft.Xrm.Sdk.OptionSetValue AccessMode + { + get + { + return this.GetAttributeValue("accessmode"); + } + set + { + this.OnPropertyChanging("AccessMode"); + this.SetAttributeValue("accessmode", value); + this.OnPropertyChanged("AccessMode"); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Shows the complete primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] + public string Address1_Composite + { + get + { + return this.GetAttributeValue("address1_composite"); + } + } + + /// + /// Country/region name in address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public 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"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Shows the complete secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] + public string Address2_Composite + { + get + { + return this.GetAttributeValue("address2_composite"); + } + } + + /// + /// Country/region name in address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public 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"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the business unit with which the user is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Fiscal calendar associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// License type of user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caltype")] + public Microsoft.Xrm.Sdk.OptionSetValue CALType + { + get + { + return this.GetAttributeValue("caltype"); + } + set + { + this.OnPropertyChanging("CALType"); + this.SetAttributeValue("caltype", value); + this.OnPropertyChanged("CALType"); + } + } + + /// + /// Unique identifier of the user who created the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the user was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Indicates if default outlook filters have been populated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilterspopulated")] + public System.Nullable DefaultFiltersPopulated + { + get + { + return this.GetAttributeValue>("defaultfilterspopulated"); + } + } + + /// + /// Select the mailbox associated with this user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + public Microsoft.Xrm.Sdk.EntityReference DefaultMailbox + { + get + { + return this.GetAttributeValue("defaultmailbox"); + } + } + + /// + /// Reason for disabling the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Whether to display the user in service views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// Active Directory domain of which the user is a member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("domainname")] + public string DomainName + { + get + { + return this.GetAttributeValue("domainname"); + } + set + { + this.OnPropertyChanging("DomainName"); + this.SetAttributeValue("domainname", value); + this.OnPropertyChanged("DomainName"); + } + } + + /// + /// Shows the status of the primary email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public Microsoft.Xrm.Sdk.OptionSetValue EmailRouterAccessApproval + { + get + { + return this.GetAttributeValue("emailrouteraccessapproval"); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// Employee identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeeid")] + public string EmployeeId + { + get + { + return this.GetAttributeValue("employeeid"); + } + set + { + this.OnPropertyChanging("EmployeeId"); + this.SetAttributeValue("employeeid", value); + this.OnPropertyChanged("EmployeeId"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the systemuser with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// First name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] + public string FirstName + { + get + { + return this.GetAttributeValue("firstname"); + } + set + { + this.OnPropertyChanging("FirstName"); + this.SetAttributeValue("firstname", value); + this.OnPropertyChanged("FirstName"); + } + } + + /// + /// Full name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] + public string FullName + { + get + { + return this.GetAttributeValue("fullname"); + } + } + + /// + /// Government identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("governmentid")] + public string GovernmentId + { + get + { + return this.GetAttributeValue("governmentid"); + } + set + { + this.OnPropertyChanging("GovernmentId"); + this.SetAttributeValue("governmentid", value); + this.OnPropertyChanged("GovernmentId"); + } + } + + /// + /// Home phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homephone")] + public string HomePhone + { + get + { + return this.GetAttributeValue("homephone"); + } + set + { + this.OnPropertyChanging("HomePhone"); + this.SetAttributeValue("homephone", value); + this.OnPropertyChanged("HomePhone"); + } + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Incoming email delivery method for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("incomingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Internal email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("internalemailaddress")] + public string InternalEMailAddress + { + get + { + return this.GetAttributeValue("internalemailaddress"); + } + set + { + this.OnPropertyChanging("InternalEMailAddress"); + this.SetAttributeValue("internalemailaddress", value); + this.OnPropertyChanged("InternalEMailAddress"); + } + } + + /// + /// User invitation status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue InviteStatusCode + { + get + { + return this.GetAttributeValue("invitestatuscode"); + } + set + { + this.OnPropertyChanging("InviteStatusCode"); + this.SetAttributeValue("invitestatuscode", value); + this.OnPropertyChanged("InviteStatusCode"); + } + } + + /// + /// Information about whether the user is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Check if user is an integration user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationuser")] + public System.Nullable IsIntegrationUser + { + get + { + return this.GetAttributeValue>("isintegrationuser"); + } + set + { + this.OnPropertyChanging("IsIntegrationUser"); + this.SetAttributeValue("isintegrationuser", value); + this.OnPropertyChanged("IsIntegrationUser"); + } + } + + /// + /// Information about whether the user is licensed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensed")] + public System.Nullable IsLicensed + { + get + { + return this.GetAttributeValue>("islicensed"); + } + set + { + this.OnPropertyChanging("IsLicensed"); + this.SetAttributeValue("islicensed", value); + this.OnPropertyChanged("IsLicensed"); + } + } + + /// + /// Information about whether the user is synced with the directory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issyncwithdirectory")] + public System.Nullable IsSyncWithDirectory + { + get + { + return this.GetAttributeValue>("issyncwithdirectory"); + } + set + { + this.OnPropertyChanging("IsSyncWithDirectory"); + this.SetAttributeValue("issyncwithdirectory", value); + this.OnPropertyChanged("IsSyncWithDirectory"); + } + } + + /// + /// Job title of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("jobtitle")] + public string JobTitle + { + get + { + return this.GetAttributeValue("jobtitle"); + } + set + { + this.OnPropertyChanging("JobTitle"); + this.SetAttributeValue("jobtitle", value); + this.OnPropertyChanged("JobTitle"); + } + } + + /// + /// Last name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] + public string LastName + { + get + { + return this.GetAttributeValue("lastname"); + } + set + { + this.OnPropertyChanging("LastName"); + this.SetAttributeValue("lastname", value); + this.OnPropertyChanged("LastName"); + } + } + + /// + /// Middle name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("middlename")] + public string MiddleName + { + get + { + return this.GetAttributeValue("middlename"); + } + set + { + this.OnPropertyChanging("MiddleName"); + this.SetAttributeValue("middlename", value); + this.OnPropertyChanged("MiddleName"); + } + } + + /// + /// Mobile alert email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilealertemail")] + public string MobileAlertEMail + { + get + { + return this.GetAttributeValue("mobilealertemail"); + } + set + { + this.OnPropertyChanging("MobileAlertEMail"); + this.SetAttributeValue("mobilealertemail", value); + this.OnPropertyChanged("MobileAlertEMail"); + } + } + + /// + /// Mobile phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilephone")] + public string MobilePhone + { + get + { + return this.GetAttributeValue("mobilephone"); + } + set + { + this.OnPropertyChanging("MobilePhone"); + this.SetAttributeValue("mobilephone", value); + this.OnPropertyChanged("MobilePhone"); + } + } + + /// + /// Unique identifier of the user who last modified the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the user was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Nickname of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nickname")] + public string NickName + { + get + { + return this.GetAttributeValue("nickname"); + } + set + { + this.OnPropertyChanging("NickName"); + this.SetAttributeValue("nickname", value); + this.OnPropertyChanged("NickName"); + } + } + + /// + /// Unique identifier of the organization associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Outgoing email delivery method for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public Microsoft.Xrm.Sdk.OptionSetValue OutgoingEmailDeliveryMethod + { + get + { + return this.GetAttributeValue("outgoingemaildeliverymethod"); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Unique identifier of the manager of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference ParentSystemUserId + { + get + { + return this.GetAttributeValue("parentsystemuserid"); + } + set + { + this.OnPropertyChanging("ParentSystemUserId"); + this.SetAttributeValue("parentsystemuserid", value); + this.OnPropertyChanged("ParentSystemUserId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passporthi")] + public System.Nullable PassportHi + { + get + { + return this.GetAttributeValue>("passporthi"); + } + set + { + this.OnPropertyChanging("PassportHi"); + this.SetAttributeValue("passporthi", value); + this.OnPropertyChanged("PassportHi"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passportlo")] + public System.Nullable PassportLo + { + get + { + return this.GetAttributeValue>("passportlo"); + } + set + { + this.OnPropertyChanging("PassportLo"); + this.SetAttributeValue("passportlo", value); + this.OnPropertyChanged("PassportLo"); + } + } + + /// + /// Personal email address of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalemailaddress")] + public string PersonalEMailAddress + { + get + { + return this.GetAttributeValue("personalemailaddress"); + } + set + { + this.OnPropertyChanging("PersonalEMailAddress"); + this.SetAttributeValue("personalemailaddress", value); + this.OnPropertyChanged("PersonalEMailAddress"); + } + } + + /// + /// URL for the Website on which a photo of the user is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("photourl")] + public string PhotoUrl + { + get + { + return this.GetAttributeValue("photourl"); + } + set + { + this.OnPropertyChanging("PhotoUrl"); + this.SetAttributeValue("photourl", value); + this.OnPropertyChanged("PhotoUrl"); + } + } + + /// + /// Preferred address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredAddressCode + { + get + { + return this.GetAttributeValue("preferredaddresscode"); + } + set + { + this.OnPropertyChanging("PreferredAddressCode"); + this.SetAttributeValue("preferredaddresscode", value); + this.OnPropertyChanged("PreferredAddressCode"); + } + } + + /// + /// Preferred email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredEmailCode + { + get + { + return this.GetAttributeValue("preferredemailcode"); + } + set + { + this.OnPropertyChanging("PreferredEmailCode"); + this.SetAttributeValue("preferredemailcode", value); + this.OnPropertyChanged("PreferredEmailCode"); + } + } + + /// + /// Preferred phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredPhoneCode + { + get + { + return this.GetAttributeValue("preferredphonecode"); + } + set + { + this.OnPropertyChanging("PreferredPhoneCode"); + this.SetAttributeValue("preferredphonecode", value); + this.OnPropertyChanged("PreferredPhoneCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the default queue for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Salutation for correspondence with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salutation")] + public string Salutation + { + get + { + return this.GetAttributeValue("salutation"); + } + set + { + this.OnPropertyChanging("Salutation"); + this.SetAttributeValue("salutation", value); + this.OnPropertyChanged("Salutation"); + } + } + + /// + /// Check if user is a setup user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupuser")] + public System.Nullable SetupUser + { + get + { + return this.GetAttributeValue>("setupuser"); + } + set + { + this.OnPropertyChanging("SetupUser"); + this.SetAttributeValue("setupuser", value); + this.OnPropertyChanged("SetupUser"); + } + } + + /// + /// Site at which the user is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + public Microsoft.Xrm.Sdk.EntityReference SiteId + { + get + { + return this.GetAttributeValue("siteid"); + } + set + { + this.OnPropertyChanging("SiteId"); + this.SetAttributeValue("siteid", value); + this.OnPropertyChanged("SiteId"); + } + } + + /// + /// Skill set of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] + public string Skills + { + get + { + return this.GetAttributeValue("skills"); + } + set + { + this.OnPropertyChanging("Skills"); + this.SetAttributeValue("skills", value); + this.OnPropertyChanged("Skills"); + } + } + + /// + /// Shows the ID of the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Unique identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserId = value; + } + } + + /// + /// Unique identifier of the territory to which the user is assigned. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public Microsoft.Xrm.Sdk.EntityReference TerritoryId + { + get + { + return this.GetAttributeValue("territoryid"); + } + set + { + this.OnPropertyChanging("TerritoryId"); + this.SetAttributeValue("territoryid", value); + this.OnPropertyChanged("TerritoryId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Title of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Unique identifier of the currency associated with the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Shows the type of user license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userlicensetype")] + public System.Nullable UserLicenseType + { + get + { + return this.GetAttributeValue>("userlicensetype"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version number of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Windows Live ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("windowsliveid")] + public string WindowsLiveID + { + get + { + return this.GetAttributeValue("windowsliveid"); + } + set + { + this.OnPropertyChanging("WindowsLiveID"); + this.SetAttributeValue("windowsliveid", value); + this.OnPropertyChanged("WindowsLiveID"); + } + } + + /// + /// User's Yammer login email address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeremailaddress")] + public string YammerEmailAddress + { + get + { + return this.GetAttributeValue("yammeremailaddress"); + } + set + { + this.OnPropertyChanging("YammerEmailAddress"); + this.SetAttributeValue("yammeremailaddress", value); + this.OnPropertyChanged("YammerEmailAddress"); + } + } + + /// + /// User's Yammer ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeruserid")] + public string YammerUserId + { + get + { + return this.GetAttributeValue("yammeruserid"); + } + set + { + this.OnPropertyChanging("YammerUserId"); + this.SetAttributeValue("yammeruserid", value); + this.OnPropertyChanged("YammerUserId"); + } + } + + /// + /// Pronunciation of the first name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Pronunciation of the full name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifullname")] + public string YomiFullName + { + get + { + return this.GetAttributeValue("yomifullname"); + } + } + + /// + /// Pronunciation of the last name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] + public string YomiLastName + { + get + { + return this.GetAttributeValue("yomilastname"); + } + set + { + this.OnPropertyChanging("YomiLastName"); + this.SetAttributeValue("yomilastname", value); + this.OnPropertyChanged("YomiLastName"); + } + } + + /// + /// Pronunciation of the middle name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] + public string YomiMiddleName + { + get + { + return this.GetAttributeValue("yomimiddlename"); + } + set + { + this.OnPropertyChanging("YomiMiddleName"); + this.SetAttributeValue("yomimiddlename", value); + this.OnPropertyChanged("YomiMiddleName"); + } + } + + /// + /// 1:N annotation_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("annotation_owning_user")] + public System.Collections.Generic.IEnumerable annotation_owning_user + { + get + { + return this.GetRelatedEntities("annotation_owning_user", null); + } + set + { + this.OnPropertyChanging("annotation_owning_user"); + this.SetRelatedEntities("annotation_owning_user", null, value); + this.OnPropertyChanged("annotation_owning_user"); + } + } + + /// + /// 1:N constraintbasedgroup_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("constraintbasedgroup_systemuser")] + public System.Collections.Generic.IEnumerable constraintbasedgroup_systemuser + { + get + { + return this.GetRelatedEntities("constraintbasedgroup_systemuser", null); + } + set + { + this.OnPropertyChanging("constraintbasedgroup_systemuser"); + this.SetRelatedEntities("constraintbasedgroup_systemuser", null, value); + this.OnPropertyChanged("constraintbasedgroup_systemuser"); + } + } + + /// + /// 1:N contact_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contact_owning_user")] + public System.Collections.Generic.IEnumerable contact_owning_user + { + get + { + return this.GetRelatedEntities("contact_owning_user", null); + } + set + { + this.OnPropertyChanging("contact_owning_user"); + this.SetRelatedEntities("contact_owning_user", null, value); + this.OnPropertyChanged("contact_owning_user"); + } + } + + /// + /// 1:N createdby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_attributemap")] + public System.Collections.Generic.IEnumerable createdby_attributemap + { + get + { + return this.GetRelatedEntities("createdby_attributemap", null); + } + set + { + this.OnPropertyChanging("createdby_attributemap"); + this.SetRelatedEntities("createdby_attributemap", null, value); + this.OnPropertyChanged("createdby_attributemap"); + } + } + + /// + /// 1:N createdby_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection")] + public System.Collections.Generic.IEnumerable createdby_connection + { + get + { + return this.GetRelatedEntities("createdby_connection", null); + } + set + { + this.OnPropertyChanging("createdby_connection"); + this.SetRelatedEntities("createdby_connection", null, value); + this.OnPropertyChanged("createdby_connection"); + } + } + + /// + /// 1:N createdby_connection_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_connection_role")] + public System.Collections.Generic.IEnumerable createdby_connection_role + { + get + { + return this.GetRelatedEntities("createdby_connection_role", null); + } + set + { + this.OnPropertyChanging("createdby_connection_role"); + this.SetRelatedEntities("createdby_connection_role", null, value); + this.OnPropertyChanged("createdby_connection_role"); + } + } + + /// + /// 1:N createdby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_customer_relationship")] + public System.Collections.Generic.IEnumerable createdby_customer_relationship + { + get + { + return this.GetRelatedEntities("createdby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("createdby_customer_relationship"); + this.SetRelatedEntities("createdby_customer_relationship", null, value); + this.OnPropertyChanged("createdby_customer_relationship"); + } + } + + /// + /// 1:N createdby_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_entitymap")] + public System.Collections.Generic.IEnumerable createdby_entitymap + { + get + { + return this.GetRelatedEntities("createdby_entitymap", null); + } + set + { + this.OnPropertyChanging("createdby_entitymap"); + this.SetRelatedEntities("createdby_entitymap", null, value); + this.OnPropertyChanged("createdby_entitymap"); + } + } + + /// + /// 1:N createdby_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] + public System.Collections.Generic.IEnumerable createdby_pluginassembly + { + get + { + return this.GetRelatedEntities("createdby_pluginassembly", null); + } + set + { + this.OnPropertyChanging("createdby_pluginassembly"); + this.SetRelatedEntities("createdby_pluginassembly", null, value); + this.OnPropertyChanged("createdby_pluginassembly"); + } + } + + /// + /// 1:N createdby_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] + public System.Collections.Generic.IEnumerable createdby_plugintype + { + get + { + return this.GetRelatedEntities("createdby_plugintype", null); + } + set + { + this.OnPropertyChanging("createdby_plugintype"); + this.SetRelatedEntities("createdby_plugintype", null, value); + this.OnPropertyChanged("createdby_plugintype"); + } + } + + /// + /// 1:N createdby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintypestatistic")] + public System.Collections.Generic.IEnumerable createdby_plugintypestatistic + { + get + { + return this.GetRelatedEntities("createdby_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("createdby_plugintypestatistic"); + this.SetRelatedEntities("createdby_plugintypestatistic", null, value); + this.OnPropertyChanged("createdby_plugintypestatistic"); + } + } + + /// + /// 1:N createdby_relationship_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role")] + public System.Collections.Generic.IEnumerable createdby_relationship_role + { + get + { + return this.GetRelatedEntities("createdby_relationship_role", null); + } + set + { + this.OnPropertyChanging("createdby_relationship_role"); + this.SetRelatedEntities("createdby_relationship_role", null, value); + this.OnPropertyChanged("createdby_relationship_role"); + } + } + + /// + /// 1:N createdby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_relationship_role_map")] + public System.Collections.Generic.IEnumerable createdby_relationship_role_map + { + get + { + return this.GetRelatedEntities("createdby_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("createdby_relationship_role_map"); + this.SetRelatedEntities("createdby_relationship_role_map", null, value); + this.OnPropertyChanged("createdby_relationship_role_map"); + } + } + + /// + /// 1:N createdby_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] + public System.Collections.Generic.IEnumerable createdby_sdkmessage + { + get + { + return this.GetRelatedEntities("createdby_sdkmessage", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessage"); + this.SetRelatedEntities("createdby_sdkmessage", null, value); + this.OnPropertyChanged("createdby_sdkmessage"); + } + } + + /// + /// 1:N createdby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagefilter"); + this.SetRelatedEntities("createdby_sdkmessagefilter", null, value); + this.OnPropertyChanged("createdby_sdkmessagefilter"); + } + } + + /// + /// 1:N createdby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagepair")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagepair + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagepair"); + this.SetRelatedEntities("createdby_sdkmessagepair", null, value); + this.OnPropertyChanged("createdby_sdkmessagepair"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstep"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// 1:N createdby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagerequest"); + this.SetRelatedEntities("createdby_sdkmessagerequest", null, value); + this.OnPropertyChanged("createdby_sdkmessagerequest"); + } + } + + /// + /// 1:N createdby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagerequestfield"); + this.SetRelatedEntities("createdby_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("createdby_sdkmessagerequestfield"); + } + } + + /// + /// 1:N createdby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageresponse"); + this.SetRelatedEntities("createdby_sdkmessageresponse", null, value); + this.OnPropertyChanged("createdby_sdkmessageresponse"); + } + } + + /// + /// 1:N createdby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageresponsefield"); + this.SetRelatedEntities("createdby_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("createdby_sdkmessageresponsefield"); + } + } + + /// + /// 1:N createdby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_serviceendpoint")] + public System.Collections.Generic.IEnumerable createdby_serviceendpoint + { + get + { + return this.GetRelatedEntities("createdby_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("createdby_serviceendpoint"); + this.SetRelatedEntities("createdby_serviceendpoint", null, value); + this.OnPropertyChanged("createdby_serviceendpoint"); + } + } + + /// + /// 1:N createdonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_attributemap")] + public System.Collections.Generic.IEnumerable createdonbehalfby_attributemap + { + get + { + return this.GetRelatedEntities("createdonbehalfby_attributemap", null); + } + set + { + this.OnPropertyChanging("createdonbehalfby_attributemap"); + this.SetRelatedEntities("createdonbehalfby_attributemap", null, value); + this.OnPropertyChanged("createdonbehalfby_attributemap"); + } + } + + /// + /// 1:N createdonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdonbehalfby_customer_relationship")] + public System.Collections.Generic.IEnumerable createdonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntities("createdonbehalfby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("createdonbehalfby_customer_relationship"); + this.SetRelatedEntities("createdonbehalfby_customer_relationship", null, value); + this.OnPropertyChanged("createdonbehalfby_customer_relationship"); + } + } + + /// + /// 1:N equipment_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("equipment_systemuser")] + public System.Collections.Generic.IEnumerable equipment_systemuser + { + get + { + return this.GetRelatedEntities("equipment_systemuser", null); + } + set + { + this.OnPropertyChanging("equipment_systemuser"); + this.SetRelatedEntities("equipment_systemuser", null, value); + this.OnPropertyChanged("equipment_systemuser"); + } + } + + /// + /// 1:N impersonatinguserid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable impersonatinguserid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("impersonatinguserid_sdkmessageprocessingstep"); + this.SetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("impersonatinguserid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N ImportFile_SystemUser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_SystemUser")] + public System.Collections.Generic.IEnumerable ImportFile_SystemUser + { + get + { + return this.GetRelatedEntities("ImportFile_SystemUser", null); + } + set + { + this.OnPropertyChanging("ImportFile_SystemUser"); + this.SetRelatedEntities("ImportFile_SystemUser", null, value); + this.OnPropertyChanged("ImportFile_SystemUser"); + } + } + + /// + /// 1:N lead_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_user")] + public System.Collections.Generic.IEnumerable lead_owning_user + { + get + { + return this.GetRelatedEntities("lead_owning_user", null); + } + set + { + this.OnPropertyChanging("lead_owning_user"); + this.SetRelatedEntities("lead_owning_user", null, value); + this.OnPropertyChanged("lead_owning_user"); + } + } + + /// + /// 1:N lk_accountbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdby")] + public System.Collections.Generic.IEnumerable lk_accountbase_createdby + { + get + { + return this.GetRelatedEntities("lk_accountbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_createdby"); + this.SetRelatedEntities("lk_accountbase_createdby", null, value); + this.OnPropertyChanged("lk_accountbase_createdby"); + } + } + + /// + /// 1:N lk_accountbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_accountbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_accountbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_createdonbehalfby"); + this.SetRelatedEntities("lk_accountbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_accountbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_accountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_accountbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_accountbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_modifiedby"); + this.SetRelatedEntities("lk_accountbase_modifiedby", null, value); + this.OnPropertyChanged("lk_accountbase_modifiedby"); + } + } + + /// + /// 1:N lk_accountbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_accountbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_accountbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_accountbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_accountbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_accountbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_accountbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_activitypointer_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_createdby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_createdby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_createdby"); + this.SetRelatedEntities("lk_activitypointer_createdby", null, value); + this.OnPropertyChanged("lk_activitypointer_createdby"); + } + } + + /// + /// 1:N lk_activitypointer_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_createdonbehalfby"); + this.SetRelatedEntities("lk_activitypointer_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_activitypointer_createdonbehalfby"); + } + } + + /// + /// 1:N lk_activitypointer_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_modifiedby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_modifiedby"); + this.SetRelatedEntities("lk_activitypointer_modifiedby", null, value); + this.OnPropertyChanged("lk_activitypointer_modifiedby"); + } + } + + /// + /// 1:N lk_activitypointer_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_activitypointer_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_activitypointer_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_activitypointer_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_activitypointer_modifiedonbehalfby"); + this.SetRelatedEntities("lk_activitypointer_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_activitypointer_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_annotationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_createdby"); + this.SetRelatedEntities("lk_annotationbase_createdby", null, value); + this.OnPropertyChanged("lk_annotationbase_createdby"); + } + } + + /// + /// 1:N lk_annotationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_annotationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_annotationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_annotationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_modifiedby"); + this.SetRelatedEntities("lk_annotationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_annotationbase_modifiedby"); + } + } + + /// + /// 1:N lk_annotationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annotationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annotationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annotationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annotationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_annotationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_annotationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_annualfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_annualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_annualfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_annualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_annualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_annualfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_annualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_annualfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_appointment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdby")] + public System.Collections.Generic.IEnumerable lk_appointment_createdby + { + get + { + return this.GetRelatedEntities("lk_appointment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_createdby"); + this.SetRelatedEntities("lk_appointment_createdby", null, value); + this.OnPropertyChanged("lk_appointment_createdby"); + } + } + + /// + /// 1:N lk_appointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_appointment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_appointment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_createdonbehalfby"); + this.SetRelatedEntities("lk_appointment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_appointment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_appointment_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedby")] + public System.Collections.Generic.IEnumerable lk_appointment_modifiedby + { + get + { + return this.GetRelatedEntities("lk_appointment_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_modifiedby"); + this.SetRelatedEntities("lk_appointment_modifiedby", null, value); + this.OnPropertyChanged("lk_appointment_modifiedby"); + } + } + + /// + /// 1:N lk_appointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_appointment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_appointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_appointment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_appointment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_appointment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_appointment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_asyncoperation_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_createdby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_createdby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_createdby"); + this.SetRelatedEntities("lk_asyncoperation_createdby", null, value); + this.OnPropertyChanged("lk_asyncoperation_createdby"); + } + } + + /// + /// 1:N lk_asyncoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_createdonbehalfby"); + this.SetRelatedEntities("lk_asyncoperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_asyncoperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_asyncoperation_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_modifiedby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_modifiedby"); + this.SetRelatedEntities("lk_asyncoperation_modifiedby", null, value); + this.OnPropertyChanged("lk_asyncoperation_modifiedby"); + } + } + + /// + /// 1:N lk_asyncoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_asyncoperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_asyncoperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_audit_callinguserid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_callinguserid")] + public System.Collections.Generic.IEnumerable lk_audit_callinguserid + { + get + { + return this.GetRelatedEntities("lk_audit_callinguserid", null); + } + set + { + this.OnPropertyChanging("lk_audit_callinguserid"); + this.SetRelatedEntities("lk_audit_callinguserid", null, value); + this.OnPropertyChanged("lk_audit_callinguserid"); + } + } + + /// + /// 1:N lk_audit_userid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_audit_userid")] + public System.Collections.Generic.IEnumerable lk_audit_userid + { + get + { + return this.GetRelatedEntities("lk_audit_userid", null); + } + set + { + this.OnPropertyChanging("lk_audit_userid"); + this.SetRelatedEntities("lk_audit_userid", null, value); + this.OnPropertyChanged("lk_audit_userid"); + } + } + + /// + /// 1:N lk_bulkdeleteoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperation_createdonbehalfby"); + this.SetRelatedEntities("lk_bulkdeleteoperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_bulkdeleteoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_bulkdeleteoperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_bulkdeleteoperationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperationbase_createdby"); + this.SetRelatedEntities("lk_bulkdeleteoperationbase_createdby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperationbase_createdby"); + } + } + + /// + /// 1:N lk_bulkdeleteoperationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_bulkdeleteoperationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_bulkdeleteoperationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_bulkdeleteoperationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_bulkdeleteoperationbase_modifiedby"); + this.SetRelatedEntities("lk_bulkdeleteoperationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_bulkdeleteoperationbase_modifiedby"); + } + } + + /// + /// 1:N lk_BulkOperation_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_createdby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_createdby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_createdby"); + this.SetRelatedEntities("lk_BulkOperation_createdby", null, value); + this.OnPropertyChanged("lk_BulkOperation_createdby"); + } + } + + /// + /// 1:N lk_BulkOperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_createdonbehalfby"); + this.SetRelatedEntities("lk_BulkOperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_BulkOperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_BulkOperation_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_modifiedby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_modifiedby"); + this.SetRelatedEntities("lk_BulkOperation_modifiedby", null, value); + this.OnPropertyChanged("lk_BulkOperation_modifiedby"); + } + } + + /// + /// 1:N lk_BulkOperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_BulkOperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_BulkOperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_BulkOperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_BulkOperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_BulkOperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_BulkOperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_businessunit_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunit_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunit_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunit_createdonbehalfby"); + this.SetRelatedEntities("lk_businessunit_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunit_createdonbehalfby"); + } + } + + /// + /// 1:N lk_businessunit_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunit_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunit_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunit_modifiedonbehalfby"); + this.SetRelatedEntities("lk_businessunit_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunit_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_businessunitbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_createdby")] + public System.Collections.Generic.IEnumerable lk_businessunitbase_createdby + { + get + { + return this.GetRelatedEntities("lk_businessunitbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitbase_createdby"); + this.SetRelatedEntities("lk_businessunitbase_createdby", null, value); + this.OnPropertyChanged("lk_businessunitbase_createdby"); + } + } + + /// + /// 1:N lk_businessunitbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_businessunitbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_businessunitbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitbase_modifiedby"); + this.SetRelatedEntities("lk_businessunitbase_modifiedby", null, value); + this.OnPropertyChanged("lk_businessunitbase_modifiedby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticle_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticle_createdonbehalfby"); + this.SetRelatedEntities("lk_businessunitnewsarticle_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticle_createdonbehalfby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticle_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticle_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticle_modifiedonbehalfby"); + this.SetRelatedEntities("lk_businessunitnewsarticle_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticle_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_createdby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticlebase_createdby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticlebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticlebase_createdby"); + this.SetRelatedEntities("lk_businessunitnewsarticlebase_createdby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticlebase_createdby"); + } + } + + /// + /// 1:N lk_businessunitnewsarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitnewsarticlebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_businessunitnewsarticlebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_businessunitnewsarticlebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_businessunitnewsarticlebase_modifiedby"); + this.SetRelatedEntities("lk_businessunitnewsarticlebase_modifiedby", null, value); + this.OnPropertyChanged("lk_businessunitnewsarticlebase_modifiedby"); + } + } + + /// + /// 1:N lk_calendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdby")] + public System.Collections.Generic.IEnumerable lk_calendar_createdby + { + get + { + return this.GetRelatedEntities("lk_calendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_createdby"); + this.SetRelatedEntities("lk_calendar_createdby", null, value); + this.OnPropertyChanged("lk_calendar_createdby"); + } + } + + /// + /// 1:N lk_calendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_calendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_calendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_createdonbehalfby"); + this.SetRelatedEntities("lk_calendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_calendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_calendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_calendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_calendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_modifiedby"); + this.SetRelatedEntities("lk_calendar_modifiedby", null, value); + this.OnPropertyChanged("lk_calendar_modifiedby"); + } + } + + /// + /// 1:N lk_calendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_calendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_calendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_calendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_calendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_calendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_calendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_campaign_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdby")] + public System.Collections.Generic.IEnumerable lk_campaign_createdby + { + get + { + return this.GetRelatedEntities("lk_campaign_createdby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_createdby"); + this.SetRelatedEntities("lk_campaign_createdby", null, value); + this.OnPropertyChanged("lk_campaign_createdby"); + } + } + + /// + /// 1:N lk_campaign_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaign_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaign_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_createdonbehalfby"); + this.SetRelatedEntities("lk_campaign_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_campaign_createdonbehalfby"); + } + } + + /// + /// 1:N lk_campaign_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedby")] + public System.Collections.Generic.IEnumerable lk_campaign_modifiedby + { + get + { + return this.GetRelatedEntities("lk_campaign_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_modifiedby"); + this.SetRelatedEntities("lk_campaign_modifiedby", null, value); + this.OnPropertyChanged("lk_campaign_modifiedby"); + } + } + + /// + /// 1:N lk_campaign_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaign_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaign_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaign_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaign_modifiedonbehalfby"); + this.SetRelatedEntities("lk_campaign_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_campaign_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_campaignactivity_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_createdby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_createdby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_createdby"); + this.SetRelatedEntities("lk_campaignactivity_createdby", null, value); + this.OnPropertyChanged("lk_campaignactivity_createdby"); + } + } + + /// + /// 1:N lk_campaignactivity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_createdonbehalfby"); + this.SetRelatedEntities("lk_campaignactivity_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignactivity_createdonbehalfby"); + } + } + + /// + /// 1:N lk_campaignactivity_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_modifiedby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_modifiedby"); + this.SetRelatedEntities("lk_campaignactivity_modifiedby", null, value); + this.OnPropertyChanged("lk_campaignactivity_modifiedby"); + } + } + + /// + /// 1:N lk_campaignactivity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignactivity_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignactivity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignactivity_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignactivity_modifiedonbehalfby"); + this.SetRelatedEntities("lk_campaignactivity_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignactivity_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_campaignresponse_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_createdby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_createdby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_createdby"); + this.SetRelatedEntities("lk_campaignresponse_createdby", null, value); + this.OnPropertyChanged("lk_campaignresponse_createdby"); + } + } + + /// + /// 1:N lk_campaignresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_createdonbehalfby"); + this.SetRelatedEntities("lk_campaignresponse_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignresponse_createdonbehalfby"); + } + } + + /// + /// 1:N lk_campaignresponse_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_modifiedby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_modifiedby"); + this.SetRelatedEntities("lk_campaignresponse_modifiedby", null, value); + this.OnPropertyChanged("lk_campaignresponse_modifiedby"); + } + } + + /// + /// 1:N lk_campaignresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_campaignresponse_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_campaignresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_campaignresponse_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_campaignresponse_modifiedonbehalfby"); + this.SetRelatedEntities("lk_campaignresponse_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_campaignresponse_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_columnmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_createdby"); + this.SetRelatedEntities("lk_columnmapping_createdby", null, value); + this.OnPropertyChanged("lk_columnmapping_createdby"); + } + } + + /// + /// 1:N lk_columnmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_columnmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_columnmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_columnmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_modifiedby"); + this.SetRelatedEntities("lk_columnmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_columnmapping_modifiedby"); + } + } + + /// + /// 1:N lk_columnmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_columnmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_columnmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_columnmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_columnmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_columnmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_columnmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_competitor_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_competitor_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_competitor_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_competitor_createdonbehalfby"); + this.SetRelatedEntities("lk_competitor_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_competitor_createdonbehalfby"); + } + } + + /// + /// 1:N lk_competitor_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitor_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_competitor_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_competitor_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_competitor_modifiedonbehalfby"); + this.SetRelatedEntities("lk_competitor_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_competitor_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_competitorbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_createdby")] + public System.Collections.Generic.IEnumerable lk_competitorbase_createdby + { + get + { + return this.GetRelatedEntities("lk_competitorbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_competitorbase_createdby"); + this.SetRelatedEntities("lk_competitorbase_createdby", null, value); + this.OnPropertyChanged("lk_competitorbase_createdby"); + } + } + + /// + /// 1:N lk_competitorbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_competitorbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_competitorbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_competitorbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_competitorbase_modifiedby"); + this.SetRelatedEntities("lk_competitorbase_modifiedby", null, value); + this.OnPropertyChanged("lk_competitorbase_modifiedby"); + } + } + + /// + /// 1:N lk_connectionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_connectionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_connectionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_connectionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_connectionrolebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionrolebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionrolebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionrolebase_createdonbehalfby"); + this.SetRelatedEntities("lk_connectionrolebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionrolebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_connectionrolebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_connectionrolebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_connectionrolebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_connectionrolebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_connectionrolebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_connectionrolebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_connectionrolebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_createdby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_createdby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_createdby"); + this.SetRelatedEntities("lk_constraintbasedgroup_createdby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_createdby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_createdonbehalfby"); + this.SetRelatedEntities("lk_constraintbasedgroup_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_createdonbehalfby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_modifiedby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_modifiedby"); + this.SetRelatedEntities("lk_constraintbasedgroup_modifiedby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_modifiedby"); + } + } + + /// + /// 1:N lk_constraintbasedgroup_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_constraintbasedgroup_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_constraintbasedgroup_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_constraintbasedgroup_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_constraintbasedgroup_modifiedonbehalfby"); + this.SetRelatedEntities("lk_constraintbasedgroup_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_constraintbasedgroup_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contact_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contact_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contact_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contact_createdonbehalfby"); + this.SetRelatedEntities("lk_contact_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contact_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contact_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contact_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contact_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contact_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contact_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contact_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contact_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contactbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_createdby")] + public System.Collections.Generic.IEnumerable lk_contactbase_createdby + { + get + { + return this.GetRelatedEntities("lk_contactbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contactbase_createdby"); + this.SetRelatedEntities("lk_contactbase_createdby", null, value); + this.OnPropertyChanged("lk_contactbase_createdby"); + } + } + + /// + /// 1:N lk_contactbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contactbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contactbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contactbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contactbase_modifiedby"); + this.SetRelatedEntities("lk_contactbase_modifiedby", null, value); + this.OnPropertyChanged("lk_contactbase_modifiedby"); + } + } + + /// + /// 1:N lk_contract_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contract_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contract_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contract_createdonbehalfby"); + this.SetRelatedEntities("lk_contract_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contract_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contract_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contract_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contract_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contract_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contract_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contract_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contract_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contractbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_createdby")] + public System.Collections.Generic.IEnumerable lk_contractbase_createdby + { + get + { + return this.GetRelatedEntities("lk_contractbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contractbase_createdby"); + this.SetRelatedEntities("lk_contractbase_createdby", null, value); + this.OnPropertyChanged("lk_contractbase_createdby"); + } + } + + /// + /// 1:N lk_contractbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contractbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contractbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contractbase_modifiedby"); + this.SetRelatedEntities("lk_contractbase_modifiedby", null, value); + this.OnPropertyChanged("lk_contractbase_modifiedby"); + } + } + + /// + /// 1:N lk_contractdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contractdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contractdetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetail_createdonbehalfby"); + this.SetRelatedEntities("lk_contractdetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contractdetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contractdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contractdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contractdetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contractdetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contractdetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contractdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_contractdetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_contractdetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetailbase_createdby"); + this.SetRelatedEntities("lk_contractdetailbase_createdby", null, value); + this.OnPropertyChanged("lk_contractdetailbase_createdby"); + } + } + + /// + /// 1:N lk_contractdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contractdetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contractdetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contractdetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contractdetailbase_modifiedby"); + this.SetRelatedEntities("lk_contractdetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_contractdetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_contracttemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contracttemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contracttemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_contracttemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_contracttemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_contracttemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_contracttemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_contracttemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_contracttemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_contracttemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_contracttemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_contracttemplatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_contracttemplatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplatebase_createdby"); + this.SetRelatedEntities("lk_contracttemplatebase_createdby", null, value); + this.OnPropertyChanged("lk_contracttemplatebase_createdby"); + } + } + + /// + /// 1:N lk_contracttemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_contracttemplatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_contracttemplatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_contracttemplatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_contracttemplatebase_modifiedby"); + this.SetRelatedEntities("lk_contracttemplatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_contracttemplatebase_modifiedby"); + } + } + + /// + /// 1:N lk_customeraddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeraddress_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeraddress_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddress_createdonbehalfby"); + this.SetRelatedEntities("lk_customeraddress_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_customeraddress_createdonbehalfby"); + } + } + + /// + /// 1:N lk_customeraddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddress_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeraddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeraddress_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddress_modifiedonbehalfby"); + this.SetRelatedEntities("lk_customeraddress_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_customeraddress_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_customeraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_createdby")] + public System.Collections.Generic.IEnumerable lk_customeraddressbase_createdby + { + get + { + return this.GetRelatedEntities("lk_customeraddressbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddressbase_createdby"); + this.SetRelatedEntities("lk_customeraddressbase_createdby", null, value); + this.OnPropertyChanged("lk_customeraddressbase_createdby"); + } + } + + /// + /// 1:N lk_customeraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeraddressbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_customeraddressbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_customeraddressbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_customeraddressbase_modifiedby"); + this.SetRelatedEntities("lk_customeraddressbase_modifiedby", null, value); + this.OnPropertyChanged("lk_customeraddressbase_modifiedby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_createdby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_createdby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_createdby"); + this.SetRelatedEntities("lk_customeropportunityrole_createdby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_createdby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_createdonbehalfby"); + this.SetRelatedEntities("lk_customeropportunityrole_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_createdonbehalfby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_modifiedby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_modifiedby"); + this.SetRelatedEntities("lk_customeropportunityrole_modifiedby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_modifiedby"); + } + } + + /// + /// 1:N lk_customeropportunityrole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customeropportunityrole_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_customeropportunityrole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_customeropportunityrole_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_customeropportunityrole_modifiedonbehalfby"); + this.SetRelatedEntities("lk_customeropportunityrole_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_customeropportunityrole_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_discount_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discount_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discount_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discount_createdonbehalfby"); + this.SetRelatedEntities("lk_discount_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_discount_createdonbehalfby"); + } + } + + /// + /// 1:N lk_discount_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discount_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discount_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discount_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discount_modifiedonbehalfby"); + this.SetRelatedEntities("lk_discount_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_discount_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_discountbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_createdby")] + public System.Collections.Generic.IEnumerable lk_discountbase_createdby + { + get + { + return this.GetRelatedEntities("lk_discountbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_discountbase_createdby"); + this.SetRelatedEntities("lk_discountbase_createdby", null, value); + this.OnPropertyChanged("lk_discountbase_createdby"); + } + } + + /// + /// 1:N lk_discountbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discountbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_discountbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_discountbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_discountbase_modifiedby"); + this.SetRelatedEntities("lk_discountbase_modifiedby", null, value); + this.OnPropertyChanged("lk_discountbase_modifiedby"); + } + } + + /// + /// 1:N lk_discounttype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discounttype_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discounttype_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discounttype_createdonbehalfby"); + this.SetRelatedEntities("lk_discounttype_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_discounttype_createdonbehalfby"); + } + } + + /// + /// 1:N lk_discounttype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttype_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_discounttype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_discounttype_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_discounttype_modifiedonbehalfby"); + this.SetRelatedEntities("lk_discounttype_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_discounttype_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_discounttypebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_createdby")] + public System.Collections.Generic.IEnumerable lk_discounttypebase_createdby + { + get + { + return this.GetRelatedEntities("lk_discounttypebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_discounttypebase_createdby"); + this.SetRelatedEntities("lk_discounttypebase_createdby", null, value); + this.OnPropertyChanged("lk_discounttypebase_createdby"); + } + } + + /// + /// 1:N lk_discounttypebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_discounttypebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_discounttypebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_discounttypebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_discounttypebase_modifiedby"); + this.SetRelatedEntities("lk_discounttypebase_modifiedby", null, value); + this.OnPropertyChanged("lk_discounttypebase_modifiedby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_createdby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_createdby"); + this.SetRelatedEntities("lk_DisplayStringbase_createdby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_createdby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_createdonbehalfby"); + this.SetRelatedEntities("lk_DisplayStringbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_modifiedby"); + this.SetRelatedEntities("lk_DisplayStringbase_modifiedby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_modifiedby"); + } + } + + /// + /// 1:N lk_DisplayStringbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_DisplayStringbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_DisplayStringbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_DisplayStringbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_DisplayStringbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_DisplayStringbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_DisplayStringbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterule_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterule_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterule_createdonbehalfby"); + this.SetRelatedEntities("lk_duplicaterule_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterule_createdonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterule_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterule_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterule_modifiedonbehalfby"); + this.SetRelatedEntities("lk_duplicaterule_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterule_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterulebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_createdby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulebase_createdby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulebase_createdby"); + this.SetRelatedEntities("lk_duplicaterulebase_createdby", null, value); + this.OnPropertyChanged("lk_duplicaterulebase_createdby"); + } + } + + /// + /// 1:N lk_duplicaterulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulebase_modifiedby"); + this.SetRelatedEntities("lk_duplicaterulebase_modifiedby", null, value); + this.OnPropertyChanged("lk_duplicaterulebase_modifiedby"); + } + } + + /// + /// 1:N lk_duplicaterulecondition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulecondition_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulecondition_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulecondition_createdonbehalfby"); + this.SetRelatedEntities("lk_duplicaterulecondition_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterulecondition_createdonbehalfby"); + } + } + + /// + /// 1:N lk_duplicaterulecondition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicaterulecondition_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_duplicaterulecondition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_duplicaterulecondition_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_duplicaterulecondition_modifiedonbehalfby"); + this.SetRelatedEntities("lk_duplicaterulecondition_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_duplicaterulecondition_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_duplicateruleconditionbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_createdby")] + public System.Collections.Generic.IEnumerable lk_duplicateruleconditionbase_createdby + { + get + { + return this.GetRelatedEntities("lk_duplicateruleconditionbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_duplicateruleconditionbase_createdby"); + this.SetRelatedEntities("lk_duplicateruleconditionbase_createdby", null, value); + this.OnPropertyChanged("lk_duplicateruleconditionbase_createdby"); + } + } + + /// + /// 1:N lk_duplicateruleconditionbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_duplicateruleconditionbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_duplicateruleconditionbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_duplicateruleconditionbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_duplicateruleconditionbase_modifiedby"); + this.SetRelatedEntities("lk_duplicateruleconditionbase_modifiedby", null, value); + this.OnPropertyChanged("lk_duplicateruleconditionbase_modifiedby"); + } + } + + /// + /// 1:N lk_email_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdby")] + public System.Collections.Generic.IEnumerable lk_email_createdby + { + get + { + return this.GetRelatedEntities("lk_email_createdby", null); + } + set + { + this.OnPropertyChanging("lk_email_createdby"); + this.SetRelatedEntities("lk_email_createdby", null, value); + this.OnPropertyChanged("lk_email_createdby"); + } + } + + /// + /// 1:N lk_email_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_email_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_email_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_email_createdonbehalfby"); + this.SetRelatedEntities("lk_email_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_email_createdonbehalfby"); + } + } + + /// + /// 1:N lk_email_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedby")] + public System.Collections.Generic.IEnumerable lk_email_modifiedby + { + get + { + return this.GetRelatedEntities("lk_email_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_email_modifiedby"); + this.SetRelatedEntities("lk_email_modifiedby", null, value); + this.OnPropertyChanged("lk_email_modifiedby"); + } + } + + /// + /// 1:N lk_email_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_email_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_email_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_email_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_email_modifiedonbehalfby"); + this.SetRelatedEntities("lk_email_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_email_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_emailserverprofile_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_createdby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_createdby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_createdby"); + this.SetRelatedEntities("lk_emailserverprofile_createdby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_createdby"); + } + } + + /// + /// 1:N lk_emailserverprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_createdonbehalfby"); + this.SetRelatedEntities("lk_emailserverprofile_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_createdonbehalfby"); + } + } + + /// + /// 1:N lk_emailserverprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_modifiedby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_modifiedby"); + this.SetRelatedEntities("lk_emailserverprofile_modifiedby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_modifiedby"); + } + } + + /// + /// 1:N lk_emailserverprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emailserverprofile_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_emailserverprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_emailserverprofile_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_emailserverprofile_modifiedonbehalfby"); + this.SetRelatedEntities("lk_emailserverprofile_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_emailserverprofile_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_entitymap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_entitymap_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_entitymap_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_entitymap_createdonbehalfby"); + this.SetRelatedEntities("lk_entitymap_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_entitymap_createdonbehalfby"); + } + } + + /// + /// 1:N lk_entitymap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_entitymap_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_entitymap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_entitymap_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_entitymap_modifiedonbehalfby"); + this.SetRelatedEntities("lk_entitymap_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_entitymap_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_equipment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdby")] + public System.Collections.Generic.IEnumerable lk_equipment_createdby + { + get + { + return this.GetRelatedEntities("lk_equipment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_createdby"); + this.SetRelatedEntities("lk_equipment_createdby", null, value); + this.OnPropertyChanged("lk_equipment_createdby"); + } + } + + /// + /// 1:N lk_equipment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_equipment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_equipment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_createdonbehalfby"); + this.SetRelatedEntities("lk_equipment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_equipment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_equipment_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedby")] + public System.Collections.Generic.IEnumerable lk_equipment_modifiedby + { + get + { + return this.GetRelatedEntities("lk_equipment_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_modifiedby"); + this.SetRelatedEntities("lk_equipment_modifiedby", null, value); + this.OnPropertyChanged("lk_equipment_modifiedby"); + } + } + + /// + /// 1:N lk_equipment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_equipment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_equipment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_equipment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_equipment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_equipment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_equipment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fax_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdby")] + public System.Collections.Generic.IEnumerable lk_fax_createdby + { + get + { + return this.GetRelatedEntities("lk_fax_createdby", null); + } + set + { + this.OnPropertyChanging("lk_fax_createdby"); + this.SetRelatedEntities("lk_fax_createdby", null, value); + this.OnPropertyChanged("lk_fax_createdby"); + } + } + + /// + /// 1:N lk_fax_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fax_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fax_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fax_createdonbehalfby"); + this.SetRelatedEntities("lk_fax_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_fax_createdonbehalfby"); + } + } + + /// + /// 1:N lk_fax_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedby")] + public System.Collections.Generic.IEnumerable lk_fax_modifiedby + { + get + { + return this.GetRelatedEntities("lk_fax_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_fax_modifiedby"); + this.SetRelatedEntities("lk_fax_modifiedby", null, value); + this.OnPropertyChanged("lk_fax_modifiedby"); + } + } + + /// + /// 1:N lk_fax_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fax_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fax_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fax_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fax_modifiedonbehalfby"); + this.SetRelatedEntities("lk_fax_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_fax_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_createdby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_createdby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_createdby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_createdby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_createdby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_createdonbehalfby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_createdonbehalfby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_modifiedby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_modifiedby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_modifiedby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_modifiedby"); + } + } + + /// + /// 1:N lk_fieldsecurityprofile_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fieldsecurityprofile_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fieldsecurityprofile_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fieldsecurityprofile_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fieldsecurityprofile_modifiedonbehalfby"); + this.SetRelatedEntities("lk_fieldsecurityprofile_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_fieldsecurityprofile_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_fixedmonthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_fixedmonthlyfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_fixedmonthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_fixedmonthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_fixedmonthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_fixedmonthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_fixedmonthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_goal_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdby")] + public System.Collections.Generic.IEnumerable lk_goal_createdby + { + get + { + return this.GetRelatedEntities("lk_goal_createdby", null); + } + set + { + this.OnPropertyChanging("lk_goal_createdby"); + this.SetRelatedEntities("lk_goal_createdby", null, value); + this.OnPropertyChanged("lk_goal_createdby"); + } + } + + /// + /// 1:N lk_goal_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goal_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goal_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goal_createdonbehalfby"); + this.SetRelatedEntities("lk_goal_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_goal_createdonbehalfby"); + } + } + + /// + /// 1:N lk_goal_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedby")] + public System.Collections.Generic.IEnumerable lk_goal_modifiedby + { + get + { + return this.GetRelatedEntities("lk_goal_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_goal_modifiedby"); + this.SetRelatedEntities("lk_goal_modifiedby", null, value); + this.OnPropertyChanged("lk_goal_modifiedby"); + } + } + + /// + /// 1:N lk_goal_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goal_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goal_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goal_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goal_modifiedonbehalfby"); + this.SetRelatedEntities("lk_goal_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_goal_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_goalrollupquery_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_createdby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_createdby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_createdby"); + this.SetRelatedEntities("lk_goalrollupquery_createdby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_createdby"); + } + } + + /// + /// 1:N lk_goalrollupquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_createdonbehalfby"); + this.SetRelatedEntities("lk_goalrollupquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_goalrollupquery_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_modifiedby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_modifiedby"); + this.SetRelatedEntities("lk_goalrollupquery_modifiedby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_modifiedby"); + } + } + + /// + /// 1:N lk_goalrollupquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_goalrollupquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_goalrollupquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_goalrollupquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_goalrollupquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_goalrollupquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_goalrollupquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_import_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_import_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_import_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_import_createdonbehalfby"); + this.SetRelatedEntities("lk_import_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_import_createdonbehalfby"); + } + } + + /// + /// 1:N lk_import_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_import_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_import_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_import_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_import_modifiedonbehalfby"); + this.SetRelatedEntities("lk_import_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_import_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importbase_createdby"); + this.SetRelatedEntities("lk_importbase_createdby", null, value); + this.OnPropertyChanged("lk_importbase_createdby"); + } + } + + /// + /// 1:N lk_importbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importbase_modifiedby"); + this.SetRelatedEntities("lk_importbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importbase_modifiedby"); + } + } + + /// + /// 1:N lk_importentitymapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_createdby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_createdby"); + this.SetRelatedEntities("lk_importentitymapping_createdby", null, value); + this.OnPropertyChanged("lk_importentitymapping_createdby"); + } + } + + /// + /// 1:N lk_importentitymapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_createdonbehalfby"); + this.SetRelatedEntities("lk_importentitymapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importentitymapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importentitymapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_modifiedby"); + this.SetRelatedEntities("lk_importentitymapping_modifiedby", null, value); + this.OnPropertyChanged("lk_importentitymapping_modifiedby"); + } + } + + /// + /// 1:N lk_importentitymapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importentitymapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importentitymapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importentitymapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importentitymapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importentitymapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importentitymapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importfilebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_createdby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_createdby"); + this.SetRelatedEntities("lk_importfilebase_createdby", null, value); + this.OnPropertyChanged("lk_importfilebase_createdby"); + } + } + + /// + /// 1:N lk_importfilebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_createdonbehalfby"); + this.SetRelatedEntities("lk_importfilebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importfilebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importfilebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_modifiedby"); + this.SetRelatedEntities("lk_importfilebase_modifiedby", null, value); + this.OnPropertyChanged("lk_importfilebase_modifiedby"); + } + } + + /// + /// 1:N lk_importfilebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importfilebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importfilebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importfilebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importfilebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importfilebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importfilebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importjobbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_createdby"); + this.SetRelatedEntities("lk_importjobbase_createdby", null, value); + this.OnPropertyChanged("lk_importjobbase_createdby"); + } + } + + /// + /// 1:N lk_importjobbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_createdonbehalfby"); + this.SetRelatedEntities("lk_importjobbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importjobbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importjobbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_modifiedby"); + this.SetRelatedEntities("lk_importjobbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importjobbase_modifiedby"); + } + } + + /// + /// 1:N lk_importjobbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importjobbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importjobbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importlog_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importlog_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importlog_createdonbehalfby"); + this.SetRelatedEntities("lk_importlog_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importlog_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlog_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importlog_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importlog_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importlog_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importlog_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importlogbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importlogbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importlogbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importlogbase_createdby"); + this.SetRelatedEntities("lk_importlogbase_createdby", null, value); + this.OnPropertyChanged("lk_importlogbase_createdby"); + } + } + + /// + /// 1:N lk_importlogbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importlogbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importlogbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importlogbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importlogbase_modifiedby"); + this.SetRelatedEntities("lk_importlogbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importlogbase_modifiedby"); + } + } + + /// + /// 1:N lk_importmap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importmap_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importmap_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importmap_createdonbehalfby"); + this.SetRelatedEntities("lk_importmap_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importmap_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importmap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmap_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importmap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importmap_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importmap_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importmap_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importmap_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importmapbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importmapbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importmapbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importmapbase_createdby"); + this.SetRelatedEntities("lk_importmapbase_createdby", null, value); + this.OnPropertyChanged("lk_importmapbase_createdby"); + } + } + + /// + /// 1:N lk_importmapbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importmapbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importmapbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importmapbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importmapbase_modifiedby"); + this.SetRelatedEntities("lk_importmapbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importmapbase_modifiedby"); + } + } + + /// + /// 1:N lk_incidentbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_createdby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_createdby"); + this.SetRelatedEntities("lk_incidentbase_createdby", null, value); + this.OnPropertyChanged("lk_incidentbase_createdby"); + } + } + + /// + /// 1:N lk_incidentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_createdonbehalfby"); + this.SetRelatedEntities("lk_incidentbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_incidentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_modifiedby"); + this.SetRelatedEntities("lk_incidentbase_modifiedby", null, value); + this.OnPropertyChanged("lk_incidentbase_modifiedby"); + } + } + + /// + /// 1:N lk_incidentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_incidentbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_incidentresolution_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_createdby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_createdby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_createdby"); + this.SetRelatedEntities("lk_incidentresolution_createdby", null, value); + this.OnPropertyChanged("lk_incidentresolution_createdby"); + } + } + + /// + /// 1:N lk_incidentresolution_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_createdonbehalfby"); + this.SetRelatedEntities("lk_incidentresolution_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentresolution_createdonbehalfby"); + } + } + + /// + /// 1:N lk_incidentresolution_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_modifiedby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_modifiedby"); + this.SetRelatedEntities("lk_incidentresolution_modifiedby", null, value); + this.OnPropertyChanged("lk_incidentresolution_modifiedby"); + } + } + + /// + /// 1:N lk_incidentresolution_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_incidentresolution_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_incidentresolution_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_incidentresolution_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_incidentresolution_modifiedonbehalfby"); + this.SetRelatedEntities("lk_incidentresolution_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_incidentresolution_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_invoice_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoice_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoice_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoice_createdonbehalfby"); + this.SetRelatedEntities("lk_invoice_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_invoice_createdonbehalfby"); + } + } + + /// + /// 1:N lk_invoice_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoice_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoice_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoice_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoice_modifiedonbehalfby"); + this.SetRelatedEntities("lk_invoice_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_invoice_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_invoicebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_createdby")] + public System.Collections.Generic.IEnumerable lk_invoicebase_createdby + { + get + { + return this.GetRelatedEntities("lk_invoicebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_invoicebase_createdby"); + this.SetRelatedEntities("lk_invoicebase_createdby", null, value); + this.OnPropertyChanged("lk_invoicebase_createdby"); + } + } + + /// + /// 1:N lk_invoicebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_invoicebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_invoicebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_invoicebase_modifiedby"); + this.SetRelatedEntities("lk_invoicebase_modifiedby", null, value); + this.OnPropertyChanged("lk_invoicebase_modifiedby"); + } + } + + /// + /// 1:N lk_invoicedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoicedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoicedetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetail_createdonbehalfby"); + this.SetRelatedEntities("lk_invoicedetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_invoicedetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_invoicedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_invoicedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_invoicedetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_invoicedetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_invoicedetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_invoicedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_invoicedetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_invoicedetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetailbase_createdby"); + this.SetRelatedEntities("lk_invoicedetailbase_createdby", null, value); + this.OnPropertyChanged("lk_invoicedetailbase_createdby"); + } + } + + /// + /// 1:N lk_invoicedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_invoicedetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_invoicedetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_invoicedetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_invoicedetailbase_modifiedby"); + this.SetRelatedEntities("lk_invoicedetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_invoicedetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_isvconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_isvconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_isvconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_isvconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_isvconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_isvconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_isvconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_isvconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_isvconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_isvconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_isvconfigbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_createdby")] + public System.Collections.Generic.IEnumerable lk_isvconfigbase_createdby + { + get + { + return this.GetRelatedEntities("lk_isvconfigbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfigbase_createdby"); + this.SetRelatedEntities("lk_isvconfigbase_createdby", null, value); + this.OnPropertyChanged("lk_isvconfigbase_createdby"); + } + } + + /// + /// 1:N lk_isvconfigbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_isvconfigbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_isvconfigbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_isvconfigbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_isvconfigbase_modifiedby"); + this.SetRelatedEntities("lk_isvconfigbase_modifiedby", null, value); + this.OnPropertyChanged("lk_isvconfigbase_modifiedby"); + } + } + + /// + /// 1:N lk_kbarticle_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticle_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticle_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticle_createdonbehalfby"); + this.SetRelatedEntities("lk_kbarticle_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticle_createdonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticle_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticle_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticle_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticle_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticle_modifiedonbehalfby"); + this.SetRelatedEntities("lk_kbarticle_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticle_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticlebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_createdby")] + public System.Collections.Generic.IEnumerable lk_kbarticlebase_createdby + { + get + { + return this.GetRelatedEntities("lk_kbarticlebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlebase_createdby"); + this.SetRelatedEntities("lk_kbarticlebase_createdby", null, value); + this.OnPropertyChanged("lk_kbarticlebase_createdby"); + } + } + + /// + /// 1:N lk_kbarticlebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_kbarticlebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_kbarticlebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlebase_modifiedby"); + this.SetRelatedEntities("lk_kbarticlebase_modifiedby", null, value); + this.OnPropertyChanged("lk_kbarticlebase_modifiedby"); + } + } + + /// + /// 1:N lk_kbarticlecomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecomment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecomment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecomment_createdonbehalfby"); + this.SetRelatedEntities("lk_kbarticlecomment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticlecomment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticlecomment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecomment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecomment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecomment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecomment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_kbarticlecomment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticlecomment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticlecommentbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_createdby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecommentbase_createdby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecommentbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecommentbase_createdby"); + this.SetRelatedEntities("lk_kbarticlecommentbase_createdby", null, value); + this.OnPropertyChanged("lk_kbarticlecommentbase_createdby"); + } + } + + /// + /// 1:N lk_kbarticlecommentbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticlecommentbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_kbarticlecommentbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_kbarticlecommentbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticlecommentbase_modifiedby"); + this.SetRelatedEntities("lk_kbarticlecommentbase_modifiedby", null, value); + this.OnPropertyChanged("lk_kbarticlecommentbase_modifiedby"); + } + } + + /// + /// 1:N lk_kbarticletemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_kbarticletemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticletemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticletemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_kbarticletemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_kbarticletemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_kbarticletemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplatebase_createdby"); + this.SetRelatedEntities("lk_kbarticletemplatebase_createdby", null, value); + this.OnPropertyChanged("lk_kbarticletemplatebase_createdby"); + } + } + + /// + /// 1:N lk_kbarticletemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_kbarticletemplatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_kbarticletemplatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_kbarticletemplatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_kbarticletemplatebase_modifiedby"); + this.SetRelatedEntities("lk_kbarticletemplatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_kbarticletemplatebase_modifiedby"); + } + } + + /// + /// 1:N lk_lead_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lead_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lead_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lead_createdonbehalfby"); + this.SetRelatedEntities("lk_lead_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_lead_createdonbehalfby"); + } + } + + /// + /// 1:N lk_lead_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lead_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lead_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lead_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lead_modifiedonbehalfby"); + this.SetRelatedEntities("lk_lead_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_lead_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_leadaddress_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_leadaddress_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_leadaddress_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddress_createdonbehalfby"); + this.SetRelatedEntities("lk_leadaddress_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_leadaddress_createdonbehalfby"); + } + } + + /// + /// 1:N lk_leadaddress_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddress_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_leadaddress_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_leadaddress_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddress_modifiedonbehalfby"); + this.SetRelatedEntities("lk_leadaddress_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_leadaddress_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_leadaddressbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_createdby")] + public System.Collections.Generic.IEnumerable lk_leadaddressbase_createdby + { + get + { + return this.GetRelatedEntities("lk_leadaddressbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddressbase_createdby"); + this.SetRelatedEntities("lk_leadaddressbase_createdby", null, value); + this.OnPropertyChanged("lk_leadaddressbase_createdby"); + } + } + + /// + /// 1:N lk_leadaddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadaddressbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_leadaddressbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_leadaddressbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_leadaddressbase_modifiedby"); + this.SetRelatedEntities("lk_leadaddressbase_modifiedby", null, value); + this.OnPropertyChanged("lk_leadaddressbase_modifiedby"); + } + } + + /// + /// 1:N lk_leadbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_createdby")] + public System.Collections.Generic.IEnumerable lk_leadbase_createdby + { + get + { + return this.GetRelatedEntities("lk_leadbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_leadbase_createdby"); + this.SetRelatedEntities("lk_leadbase_createdby", null, value); + this.OnPropertyChanged("lk_leadbase_createdby"); + } + } + + /// + /// 1:N lk_leadbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_leadbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_leadbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_leadbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_leadbase_modifiedby"); + this.SetRelatedEntities("lk_leadbase_modifiedby", null, value); + this.OnPropertyChanged("lk_leadbase_modifiedby"); + } + } + + /// + /// 1:N lk_letter_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdby")] + public System.Collections.Generic.IEnumerable lk_letter_createdby + { + get + { + return this.GetRelatedEntities("lk_letter_createdby", null); + } + set + { + this.OnPropertyChanging("lk_letter_createdby"); + this.SetRelatedEntities("lk_letter_createdby", null, value); + this.OnPropertyChanged("lk_letter_createdby"); + } + } + + /// + /// 1:N lk_letter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_letter_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_letter_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_letter_createdonbehalfby"); + this.SetRelatedEntities("lk_letter_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_letter_createdonbehalfby"); + } + } + + /// + /// 1:N lk_letter_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedby")] + public System.Collections.Generic.IEnumerable lk_letter_modifiedby + { + get + { + return this.GetRelatedEntities("lk_letter_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_letter_modifiedby"); + this.SetRelatedEntities("lk_letter_modifiedby", null, value); + this.OnPropertyChanged("lk_letter_modifiedby"); + } + } + + /// + /// 1:N lk_letter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_letter_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_letter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_letter_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_letter_modifiedonbehalfby"); + this.SetRelatedEntities("lk_letter_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_letter_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_list_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdby")] + public System.Collections.Generic.IEnumerable lk_list_createdby + { + get + { + return this.GetRelatedEntities("lk_list_createdby", null); + } + set + { + this.OnPropertyChanging("lk_list_createdby"); + this.SetRelatedEntities("lk_list_createdby", null, value); + this.OnPropertyChanged("lk_list_createdby"); + } + } + + /// + /// 1:N lk_list_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_list_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_list_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_list_createdonbehalfby"); + this.SetRelatedEntities("lk_list_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_list_createdonbehalfby"); + } + } + + /// + /// 1:N lk_list_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedby")] + public System.Collections.Generic.IEnumerable lk_list_modifiedby + { + get + { + return this.GetRelatedEntities("lk_list_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_list_modifiedby"); + this.SetRelatedEntities("lk_list_modifiedby", null, value); + this.OnPropertyChanged("lk_list_modifiedby"); + } + } + + /// + /// 1:N lk_list_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_list_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_list_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_list_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_list_modifiedonbehalfby"); + this.SetRelatedEntities("lk_list_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_list_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_listmember_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdby")] + public System.Collections.Generic.IEnumerable lk_listmember_createdby + { + get + { + return this.GetRelatedEntities("lk_listmember_createdby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_createdby"); + this.SetRelatedEntities("lk_listmember_createdby", null, value); + this.OnPropertyChanged("lk_listmember_createdby"); + } + } + + /// + /// 1:N lk_listmember_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_listmember_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_listmember_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_createdonbehalfby"); + this.SetRelatedEntities("lk_listmember_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_listmember_createdonbehalfby"); + } + } + + /// + /// 1:N lk_listmember_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedby")] + public System.Collections.Generic.IEnumerable lk_listmember_modifiedby + { + get + { + return this.GetRelatedEntities("lk_listmember_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_modifiedby"); + this.SetRelatedEntities("lk_listmember_modifiedby", null, value); + this.OnPropertyChanged("lk_listmember_modifiedby"); + } + } + + /// + /// 1:N lk_listmember_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_listmember_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_listmember_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_listmember_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_listmember_modifiedonbehalfby"); + this.SetRelatedEntities("lk_listmember_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_listmember_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_lookupmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_createdby"); + this.SetRelatedEntities("lk_lookupmapping_createdby", null, value); + this.OnPropertyChanged("lk_lookupmapping_createdby"); + } + } + + /// + /// 1:N lk_lookupmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_lookupmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_lookupmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_lookupmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_modifiedby"); + this.SetRelatedEntities("lk_lookupmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_lookupmapping_modifiedby"); + } + } + + /// + /// 1:N lk_lookupmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_lookupmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_lookupmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_lookupmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_lookupmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_lookupmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_lookupmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_mailbox_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdby")] + public System.Collections.Generic.IEnumerable lk_mailbox_createdby + { + get + { + return this.GetRelatedEntities("lk_mailbox_createdby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_createdby"); + this.SetRelatedEntities("lk_mailbox_createdby", null, value); + this.OnPropertyChanged("lk_mailbox_createdby"); + } + } + + /// + /// 1:N lk_mailbox_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailbox_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailbox_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_createdonbehalfby"); + this.SetRelatedEntities("lk_mailbox_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_mailbox_createdonbehalfby"); + } + } + + /// + /// 1:N lk_mailbox_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedby")] + public System.Collections.Generic.IEnumerable lk_mailbox_modifiedby + { + get + { + return this.GetRelatedEntities("lk_mailbox_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_modifiedby"); + this.SetRelatedEntities("lk_mailbox_modifiedby", null, value); + this.OnPropertyChanged("lk_mailbox_modifiedby"); + } + } + + /// + /// 1:N lk_mailbox_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailbox_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailbox_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailbox_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailbox_modifiedonbehalfby"); + this.SetRelatedEntities("lk_mailbox_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_mailbox_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_mailmergetemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_mailmergetemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_mailmergetemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_mailmergetemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_mailmergetemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_mailmergetemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_mailmergetemplatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplatebase_createdby"); + this.SetRelatedEntities("lk_mailmergetemplatebase_createdby", null, value); + this.OnPropertyChanged("lk_mailmergetemplatebase_createdby"); + } + } + + /// + /// 1:N lk_mailmergetemplatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_mailmergetemplatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_mailmergetemplatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_mailmergetemplatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_mailmergetemplatebase_modifiedby"); + this.SetRelatedEntities("lk_mailmergetemplatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_mailmergetemplatebase_modifiedby"); + } + } + + /// + /// 1:N lk_metric_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdby")] + public System.Collections.Generic.IEnumerable lk_metric_createdby + { + get + { + return this.GetRelatedEntities("lk_metric_createdby", null); + } + set + { + this.OnPropertyChanging("lk_metric_createdby"); + this.SetRelatedEntities("lk_metric_createdby", null, value); + this.OnPropertyChanged("lk_metric_createdby"); + } + } + + /// + /// 1:N lk_metric_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_metric_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_metric_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_metric_createdonbehalfby"); + this.SetRelatedEntities("lk_metric_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_metric_createdonbehalfby"); + } + } + + /// + /// 1:N lk_metric_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedby")] + public System.Collections.Generic.IEnumerable lk_metric_modifiedby + { + get + { + return this.GetRelatedEntities("lk_metric_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_metric_modifiedby"); + this.SetRelatedEntities("lk_metric_modifiedby", null, value); + this.OnPropertyChanged("lk_metric_modifiedby"); + } + } + + /// + /// 1:N lk_metric_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_metric_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_metric_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_metric_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_metric_modifiedonbehalfby"); + this.SetRelatedEntities("lk_metric_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_metric_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_monthlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_monthlyfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_monthlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_monthlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_monthlyfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_monthlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_monthlyfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_createdby"); + this.SetRelatedEntities("lk_msdyn_postalbum_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_createdby"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postalbum_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_modifiedby"); + this.SetRelatedEntities("lk_msdyn_postalbum_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_postalbum_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postalbum_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postalbum_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postalbum_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postalbum_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postalbum_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postalbum_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_createdby"); + this.SetRelatedEntities("lk_msdyn_postconfig_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_createdby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_modifiedby"); + this.SetRelatedEntities("lk_msdyn_postconfig_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_postconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_createdby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_createdby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_modifiedby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_postruleconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_postruleconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_postruleconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_postruleconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_postruleconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_postruleconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_postruleconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_createdby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_createdby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_modifiedby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_createdby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_createdby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_createdby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_createdonbehalfby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_modifiedby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_modifiedby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_modifiedby"); + } + } + + /// + /// 1:N lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby"); + this.SetRelatedEntities("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_msdyn_wallsavedqueryusersettings_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunity_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunity_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunity_createdonbehalfby"); + this.SetRelatedEntities("lk_opportunity_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunity_createdonbehalfby"); + } + } + + /// + /// 1:N lk_opportunity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunity_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunity_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunity_modifiedonbehalfby"); + this.SetRelatedEntities("lk_opportunity_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunity_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunitybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_createdby")] + public System.Collections.Generic.IEnumerable lk_opportunitybase_createdby + { + get + { + return this.GetRelatedEntities("lk_opportunitybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_opportunitybase_createdby"); + this.SetRelatedEntities("lk_opportunitybase_createdby", null, value); + this.OnPropertyChanged("lk_opportunitybase_createdby"); + } + } + + /// + /// 1:N lk_opportunitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunitybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_opportunitybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_opportunitybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_opportunitybase_modifiedby"); + this.SetRelatedEntities("lk_opportunitybase_modifiedby", null, value); + this.OnPropertyChanged("lk_opportunitybase_modifiedby"); + } + } + + /// + /// 1:N lk_opportunityclose_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_createdby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_createdby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_createdby"); + this.SetRelatedEntities("lk_opportunityclose_createdby", null, value); + this.OnPropertyChanged("lk_opportunityclose_createdby"); + } + } + + /// + /// 1:N lk_opportunityclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_createdonbehalfby"); + this.SetRelatedEntities("lk_opportunityclose_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityclose_createdonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityclose_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_modifiedby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_modifiedby"); + this.SetRelatedEntities("lk_opportunityclose_modifiedby", null, value); + this.OnPropertyChanged("lk_opportunityclose_modifiedby"); + } + } + + /// + /// 1:N lk_opportunityclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityclose_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityclose_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityclose_modifiedonbehalfby"); + this.SetRelatedEntities("lk_opportunityclose_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityclose_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityproduct_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityproduct_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityproduct_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproduct_createdonbehalfby"); + this.SetRelatedEntities("lk_opportunityproduct_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityproduct_createdonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityproduct_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproduct_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_opportunityproduct_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_opportunityproduct_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproduct_modifiedonbehalfby"); + this.SetRelatedEntities("lk_opportunityproduct_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_opportunityproduct_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_opportunityproductbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_createdby")] + public System.Collections.Generic.IEnumerable lk_opportunityproductbase_createdby + { + get + { + return this.GetRelatedEntities("lk_opportunityproductbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproductbase_createdby"); + this.SetRelatedEntities("lk_opportunityproductbase_createdby", null, value); + this.OnPropertyChanged("lk_opportunityproductbase_createdby"); + } + } + + /// + /// 1:N lk_opportunityproductbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_opportunityproductbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_opportunityproductbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_opportunityproductbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_opportunityproductbase_modifiedby"); + this.SetRelatedEntities("lk_opportunityproductbase_modifiedby", null, value); + this.OnPropertyChanged("lk_opportunityproductbase_modifiedby"); + } + } + + /// + /// 1:N lk_orderclose_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdby")] + public System.Collections.Generic.IEnumerable lk_orderclose_createdby + { + get + { + return this.GetRelatedEntities("lk_orderclose_createdby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_createdby"); + this.SetRelatedEntities("lk_orderclose_createdby", null, value); + this.OnPropertyChanged("lk_orderclose_createdby"); + } + } + + /// + /// 1:N lk_orderclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_orderclose_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_orderclose_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_createdonbehalfby"); + this.SetRelatedEntities("lk_orderclose_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_orderclose_createdonbehalfby"); + } + } + + /// + /// 1:N lk_orderclose_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedby")] + public System.Collections.Generic.IEnumerable lk_orderclose_modifiedby + { + get + { + return this.GetRelatedEntities("lk_orderclose_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_modifiedby"); + this.SetRelatedEntities("lk_orderclose_modifiedby", null, value); + this.OnPropertyChanged("lk_orderclose_modifiedby"); + } + } + + /// + /// 1:N lk_orderclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_orderclose_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_orderclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_orderclose_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_orderclose_modifiedonbehalfby"); + this.SetRelatedEntities("lk_orderclose_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_orderclose_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_organization_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_organization_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_organization_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_organization_createdonbehalfby"); + this.SetRelatedEntities("lk_organization_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_organization_createdonbehalfby"); + } + } + + /// + /// 1:N lk_organization_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organization_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_organization_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_organization_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_organization_modifiedonbehalfby"); + this.SetRelatedEntities("lk_organization_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_organization_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_organizationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_organizationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_organizationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_organizationbase_createdby"); + this.SetRelatedEntities("lk_organizationbase_createdby", null, value); + this.OnPropertyChanged("lk_organizationbase_createdby"); + } + } + + /// + /// 1:N lk_organizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_organizationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_organizationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_organizationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_organizationbase_modifiedby"); + this.SetRelatedEntities("lk_organizationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_organizationbase_modifiedby"); + } + } + + /// + /// 1:N lk_ownermapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_createdby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_createdby"); + this.SetRelatedEntities("lk_ownermapping_createdby", null, value); + this.OnPropertyChanged("lk_ownermapping_createdby"); + } + } + + /// + /// 1:N lk_ownermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_createdonbehalfby"); + this.SetRelatedEntities("lk_ownermapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_ownermapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_ownermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_modifiedby"); + this.SetRelatedEntities("lk_ownermapping_modifiedby", null, value); + this.OnPropertyChanged("lk_ownermapping_modifiedby"); + } + } + + /// + /// 1:N lk_ownermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_ownermapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_ownermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_ownermapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_ownermapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_ownermapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_ownermapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_phonecall_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdby")] + public System.Collections.Generic.IEnumerable lk_phonecall_createdby + { + get + { + return this.GetRelatedEntities("lk_phonecall_createdby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_createdby"); + this.SetRelatedEntities("lk_phonecall_createdby", null, value); + this.OnPropertyChanged("lk_phonecall_createdby"); + } + } + + /// + /// 1:N lk_phonecall_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_phonecall_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_phonecall_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_createdonbehalfby"); + this.SetRelatedEntities("lk_phonecall_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_phonecall_createdonbehalfby"); + } + } + + /// + /// 1:N lk_phonecall_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedby")] + public System.Collections.Generic.IEnumerable lk_phonecall_modifiedby + { + get + { + return this.GetRelatedEntities("lk_phonecall_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_modifiedby"); + this.SetRelatedEntities("lk_phonecall_modifiedby", null, value); + this.OnPropertyChanged("lk_phonecall_modifiedby"); + } + } + + /// + /// 1:N lk_phonecall_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_phonecall_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_phonecall_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_phonecall_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_phonecall_modifiedonbehalfby"); + this.SetRelatedEntities("lk_phonecall_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_phonecall_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_picklistmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_createdby"); + this.SetRelatedEntities("lk_picklistmapping_createdby", null, value); + this.OnPropertyChanged("lk_picklistmapping_createdby"); + } + } + + /// + /// 1:N lk_picklistmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_picklistmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_picklistmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_picklistmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_modifiedby"); + this.SetRelatedEntities("lk_picklistmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_picklistmapping_modifiedby"); + } + } + + /// + /// 1:N lk_picklistmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_picklistmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_picklistmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_picklistmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_picklistmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_picklistmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_picklistmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_pluginassembly_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginassembly_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginassembly_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginassembly_createdonbehalfby"); + this.SetRelatedEntities("lk_pluginassembly_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginassembly_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pluginassembly_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginassembly_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginassembly_modifiedonbehalfby"); + this.SetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginassembly_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_plugintype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintype_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintype_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintype_createdonbehalfby"); + this.SetRelatedEntities("lk_plugintype_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintype_createdonbehalfby"); + } + } + + /// + /// 1:N lk_plugintype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintype_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintype_modifiedonbehalfby"); + this.SetRelatedEntities("lk_plugintype_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintype_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_plugintypestatisticbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintypestatisticbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintypestatisticbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintypestatisticbase_createdonbehalfby"); + this.SetRelatedEntities("lk_plugintypestatisticbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintypestatisticbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_plugintypestatisticbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintypestatisticbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintypestatisticbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintypestatisticbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintypestatisticbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_plugintypestatisticbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintypestatisticbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_post_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdby")] + public System.Collections.Generic.IEnumerable lk_post_createdby + { + get + { + return this.GetRelatedEntities("lk_post_createdby", null); + } + set + { + this.OnPropertyChanging("lk_post_createdby"); + this.SetRelatedEntities("lk_post_createdby", null, value); + this.OnPropertyChanged("lk_post_createdby"); + } + } + + /// + /// 1:N lk_post_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_post_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_post_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_post_createdonbehalfby"); + this.SetRelatedEntities("lk_post_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_post_createdonbehalfby"); + } + } + + /// + /// 1:N lk_post_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedby")] + public System.Collections.Generic.IEnumerable lk_post_modifiedby + { + get + { + return this.GetRelatedEntities("lk_post_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_post_modifiedby"); + this.SetRelatedEntities("lk_post_modifiedby", null, value); + this.OnPropertyChanged("lk_post_modifiedby"); + } + } + + /// + /// 1:N lk_post_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_post_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_post_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_post_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_post_modifiedonbehalfby"); + this.SetRelatedEntities("lk_post_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_post_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_postcomment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdby")] + public System.Collections.Generic.IEnumerable lk_postcomment_createdby + { + get + { + return this.GetRelatedEntities("lk_postcomment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_postcomment_createdby"); + this.SetRelatedEntities("lk_postcomment_createdby", null, value); + this.OnPropertyChanged("lk_postcomment_createdby"); + } + } + + /// + /// 1:N lk_postcomment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postcomment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_postcomment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_postcomment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_postcomment_createdonbehalfby"); + this.SetRelatedEntities("lk_postcomment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_postcomment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_PostFollow_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_PostFollow_createdby")] + public System.Collections.Generic.IEnumerable lk_PostFollow_createdby + { + get + { + return this.GetRelatedEntities("lk_PostFollow_createdby", null); + } + set + { + this.OnPropertyChanging("lk_PostFollow_createdby"); + this.SetRelatedEntities("lk_PostFollow_createdby", null, value); + this.OnPropertyChanged("lk_PostFollow_createdby"); + } + } + + /// + /// 1:N lk_postfollow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postfollow_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_postfollow_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_postfollow_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_postfollow_createdonbehalfby"); + this.SetRelatedEntities("lk_postfollow_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_postfollow_createdonbehalfby"); + } + } + + /// + /// 1:N lk_postlike_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdby")] + public System.Collections.Generic.IEnumerable lk_postlike_createdby + { + get + { + return this.GetRelatedEntities("lk_postlike_createdby", null); + } + set + { + this.OnPropertyChanging("lk_postlike_createdby"); + this.SetRelatedEntities("lk_postlike_createdby", null, value); + this.OnPropertyChanged("lk_postlike_createdby"); + } + } + + /// + /// 1:N lk_postlike_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_postlike_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_postlike_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_postlike_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_postlike_createdonbehalfby"); + this.SetRelatedEntities("lk_postlike_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_postlike_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pricelevel_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevel_createdonbehalfby"); + this.SetRelatedEntities("lk_pricelevel_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_pricelevel_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevel_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pricelevel_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevel_modifiedonbehalfby"); + this.SetRelatedEntities("lk_pricelevel_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_pricelevel_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_pricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_createdby")] + public System.Collections.Generic.IEnumerable lk_pricelevelbase_createdby + { + get + { + return this.GetRelatedEntities("lk_pricelevelbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevelbase_createdby"); + this.SetRelatedEntities("lk_pricelevelbase_createdby", null, value); + this.OnPropertyChanged("lk_pricelevelbase_createdby"); + } + } + + /// + /// 1:N lk_pricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pricelevelbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_pricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_pricelevelbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_pricelevelbase_modifiedby"); + this.SetRelatedEntities("lk_pricelevelbase_modifiedby", null, value); + this.OnPropertyChanged("lk_pricelevelbase_modifiedby"); + } + } + + /// + /// 1:N lk_processsession_canceledby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_canceledby")] + public System.Collections.Generic.IEnumerable lk_processsession_canceledby + { + get + { + return this.GetRelatedEntities("lk_processsession_canceledby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_canceledby"); + this.SetRelatedEntities("lk_processsession_canceledby", null, value); + this.OnPropertyChanged("lk_processsession_canceledby"); + } + } + + /// + /// 1:N lk_processsession_completedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_completedby")] + public System.Collections.Generic.IEnumerable lk_processsession_completedby + { + get + { + return this.GetRelatedEntities("lk_processsession_completedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_completedby"); + this.SetRelatedEntities("lk_processsession_completedby", null, value); + this.OnPropertyChanged("lk_processsession_completedby"); + } + } + + /// + /// 1:N lk_processsession_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_createdby")] + public System.Collections.Generic.IEnumerable lk_processsession_createdby + { + get + { + return this.GetRelatedEntities("lk_processsession_createdby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_createdby"); + this.SetRelatedEntities("lk_processsession_createdby", null, value); + this.OnPropertyChanged("lk_processsession_createdby"); + } + } + + /// + /// 1:N lk_processsession_executedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_executedby")] + public System.Collections.Generic.IEnumerable lk_processsession_executedby + { + get + { + return this.GetRelatedEntities("lk_processsession_executedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_executedby"); + this.SetRelatedEntities("lk_processsession_executedby", null, value); + this.OnPropertyChanged("lk_processsession_executedby"); + } + } + + /// + /// 1:N lk_processsession_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_modifiedby")] + public System.Collections.Generic.IEnumerable lk_processsession_modifiedby + { + get + { + return this.GetRelatedEntities("lk_processsession_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_modifiedby"); + this.SetRelatedEntities("lk_processsession_modifiedby", null, value); + this.OnPropertyChanged("lk_processsession_modifiedby"); + } + } + + /// + /// 1:N lk_processsession_startedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_startedby")] + public System.Collections.Generic.IEnumerable lk_processsession_startedby + { + get + { + return this.GetRelatedEntities("lk_processsession_startedby", null); + } + set + { + this.OnPropertyChanging("lk_processsession_startedby"); + this.SetRelatedEntities("lk_processsession_startedby", null, value); + this.OnPropertyChanged("lk_processsession_startedby"); + } + } + + /// + /// 1:N lk_processsessionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processsessionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processsessionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processsessionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_processsessionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_processsessionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_processsessionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsessionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processsessionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processsessionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processsessionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_processsessionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_processsessionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_processtriggerbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_createdby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_createdby"); + this.SetRelatedEntities("lk_processtriggerbase_createdby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_createdby"); + } + } + + /// + /// 1:N lk_processtriggerbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_createdonbehalfby"); + this.SetRelatedEntities("lk_processtriggerbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_processtriggerbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_modifiedby"); + this.SetRelatedEntities("lk_processtriggerbase_modifiedby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_modifiedby"); + } + } + + /// + /// 1:N lk_processtriggerbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processtriggerbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_processtriggerbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_processtriggerbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_processtriggerbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_processtriggerbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_processtriggerbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_product_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_product_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_product_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_product_createdonbehalfby"); + this.SetRelatedEntities("lk_product_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_product_createdonbehalfby"); + } + } + + /// + /// 1:N lk_product_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_product_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_product_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_product_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_product_modifiedonbehalfby"); + this.SetRelatedEntities("lk_product_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_product_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_productbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_createdby")] + public System.Collections.Generic.IEnumerable lk_productbase_createdby + { + get + { + return this.GetRelatedEntities("lk_productbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_productbase_createdby"); + this.SetRelatedEntities("lk_productbase_createdby", null, value); + this.OnPropertyChanged("lk_productbase_createdby"); + } + } + + /// + /// 1:N lk_productbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_productbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_productbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_productbase_modifiedby"); + this.SetRelatedEntities("lk_productbase_modifiedby", null, value); + this.OnPropertyChanged("lk_productbase_modifiedby"); + } + } + + /// + /// 1:N lk_productpricelevel_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_productpricelevel_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_productpricelevel_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevel_createdonbehalfby"); + this.SetRelatedEntities("lk_productpricelevel_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_productpricelevel_createdonbehalfby"); + } + } + + /// + /// 1:N lk_productpricelevel_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevel_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_productpricelevel_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_productpricelevel_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevel_modifiedonbehalfby"); + this.SetRelatedEntities("lk_productpricelevel_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_productpricelevel_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_productpricelevelbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_createdby")] + public System.Collections.Generic.IEnumerable lk_productpricelevelbase_createdby + { + get + { + return this.GetRelatedEntities("lk_productpricelevelbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevelbase_createdby"); + this.SetRelatedEntities("lk_productpricelevelbase_createdby", null, value); + this.OnPropertyChanged("lk_productpricelevelbase_createdby"); + } + } + + /// + /// 1:N lk_productpricelevelbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_productpricelevelbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_productpricelevelbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_productpricelevelbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_productpricelevelbase_modifiedby"); + this.SetRelatedEntities("lk_productpricelevelbase_modifiedby", null, value); + this.OnPropertyChanged("lk_productpricelevelbase_modifiedby"); + } + } + + /// + /// 1:N lk_publisher_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] + public System.Collections.Generic.IEnumerable lk_publisher_createdby + { + get + { + return this.GetRelatedEntities("lk_publisher_createdby", null); + } + set + { + this.OnPropertyChanging("lk_publisher_createdby"); + this.SetRelatedEntities("lk_publisher_createdby", null, value); + this.OnPropertyChanged("lk_publisher_createdby"); + } + } + + /// + /// 1:N lk_publisher_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] + public System.Collections.Generic.IEnumerable lk_publisher_modifiedby + { + get + { + return this.GetRelatedEntities("lk_publisher_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_publisher_modifiedby"); + this.SetRelatedEntities("lk_publisher_modifiedby", null, value); + this.OnPropertyChanged("lk_publisher_modifiedby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_createdby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_createdby"); + this.SetRelatedEntities("lk_publisheraddressbase_createdby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_createdby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_createdonbehalfby"); + this.SetRelatedEntities("lk_publisheraddressbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_modifiedby"); + this.SetRelatedEntities("lk_publisheraddressbase_modifiedby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_modifiedby"); + } + } + + /// + /// 1:N lk_publisheraddressbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisheraddressbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisheraddressbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisheraddressbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisheraddressbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_publisheraddressbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_publisheraddressbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_publisherbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisherbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisherbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisherbase_createdonbehalfby"); + this.SetRelatedEntities("lk_publisherbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_publisherbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_publisherbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisherbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisherbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_publisherbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quarterlyfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quarterlyfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_quarterlyfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_quarterlyfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_quarterlyfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_quarterlyfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_quarterlyfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_queue_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queue_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queue_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queue_createdonbehalfby"); + this.SetRelatedEntities("lk_queue_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_queue_createdonbehalfby"); + } + } + + /// + /// 1:N lk_queue_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queue_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queue_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queue_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queue_modifiedonbehalfby"); + this.SetRelatedEntities("lk_queue_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_queue_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_queuebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_createdby")] + public System.Collections.Generic.IEnumerable lk_queuebase_createdby + { + get + { + return this.GetRelatedEntities("lk_queuebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_queuebase_createdby"); + this.SetRelatedEntities("lk_queuebase_createdby", null, value); + this.OnPropertyChanged("lk_queuebase_createdby"); + } + } + + /// + /// 1:N lk_queuebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queuebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_queuebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_queuebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_queuebase_modifiedby"); + this.SetRelatedEntities("lk_queuebase_modifiedby", null, value); + this.OnPropertyChanged("lk_queuebase_modifiedby"); + } + } + + /// + /// 1:N lk_queueitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queueitem_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queueitem_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queueitem_createdonbehalfby"); + this.SetRelatedEntities("lk_queueitem_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_queueitem_createdonbehalfby"); + } + } + + /// + /// 1:N lk_queueitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitem_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_queueitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_queueitem_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_queueitem_modifiedonbehalfby"); + this.SetRelatedEntities("lk_queueitem_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_queueitem_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_queueitembase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_createdby")] + public System.Collections.Generic.IEnumerable lk_queueitembase_createdby + { + get + { + return this.GetRelatedEntities("lk_queueitembase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_createdby"); + this.SetRelatedEntities("lk_queueitembase_createdby", null, value); + this.OnPropertyChanged("lk_queueitembase_createdby"); + } + } + + /// + /// 1:N lk_queueitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_queueitembase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_queueitembase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_modifiedby"); + this.SetRelatedEntities("lk_queueitembase_modifiedby", null, value); + this.OnPropertyChanged("lk_queueitembase_modifiedby"); + } + } + + /// + /// 1:N lk_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_queueitembase_workerid")] + public System.Collections.Generic.IEnumerable lk_queueitembase_workerid + { + get + { + return this.GetRelatedEntities("lk_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("lk_queueitembase_workerid"); + this.SetRelatedEntities("lk_queueitembase_workerid", null, value); + this.OnPropertyChanged("lk_queueitembase_workerid"); + } + } + + /// + /// 1:N lk_quote_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quote_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quote_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quote_createdonbehalfby"); + this.SetRelatedEntities("lk_quote_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quote_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quote_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quote_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quote_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quote_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quote_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quote_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quote_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quotebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_createdby")] + public System.Collections.Generic.IEnumerable lk_quotebase_createdby + { + get + { + return this.GetRelatedEntities("lk_quotebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quotebase_createdby"); + this.SetRelatedEntities("lk_quotebase_createdby", null, value); + this.OnPropertyChanged("lk_quotebase_createdby"); + } + } + + /// + /// 1:N lk_quotebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quotebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quotebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quotebase_modifiedby"); + this.SetRelatedEntities("lk_quotebase_modifiedby", null, value); + this.OnPropertyChanged("lk_quotebase_modifiedby"); + } + } + + /// + /// 1:N lk_quoteclose_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_createdby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_createdby"); + this.SetRelatedEntities("lk_quoteclose_createdby", null, value); + this.OnPropertyChanged("lk_quoteclose_createdby"); + } + } + + /// + /// 1:N lk_quoteclose_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_createdonbehalfby"); + this.SetRelatedEntities("lk_quoteclose_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quoteclose_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quoteclose_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_modifiedby"); + this.SetRelatedEntities("lk_quoteclose_modifiedby", null, value); + this.OnPropertyChanged("lk_quoteclose_modifiedby"); + } + } + + /// + /// 1:N lk_quoteclose_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quoteclose_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quoteclose_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quoteclose_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quoteclose_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quoteclose_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quoteclose_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quotedetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quotedetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quotedetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetail_createdonbehalfby"); + this.SetRelatedEntities("lk_quotedetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_quotedetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_quotedetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_quotedetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_quotedetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_quotedetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_quotedetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_quotedetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_quotedetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_quotedetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetailbase_createdby"); + this.SetRelatedEntities("lk_quotedetailbase_createdby", null, value); + this.OnPropertyChanged("lk_quotedetailbase_createdby"); + } + } + + /// + /// 1:N lk_quotedetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_quotedetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_quotedetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_quotedetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_quotedetailbase_modifiedby"); + this.SetRelatedEntities("lk_quotedetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_quotedetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_recurrencerule_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_createdby")] + public System.Collections.Generic.IEnumerable lk_recurrencerule_createdby + { + get + { + return this.GetRelatedEntities("lk_recurrencerule_createdby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerule_createdby"); + this.SetRelatedEntities("lk_recurrencerule_createdby", null, value); + this.OnPropertyChanged("lk_recurrencerule_createdby"); + } + } + + /// + /// 1:N lk_recurrencerule_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerule_modifiedby")] + public System.Collections.Generic.IEnumerable lk_recurrencerule_modifiedby + { + get + { + return this.GetRelatedEntities("lk_recurrencerule_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerule_modifiedby"); + this.SetRelatedEntities("lk_recurrencerule_modifiedby", null, value); + this.OnPropertyChanged("lk_recurrencerule_modifiedby"); + } + } + + /// + /// 1:N lk_recurrencerulebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurrencerulebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurrencerulebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerulebase_createdonbehalfby"); + this.SetRelatedEntities("lk_recurrencerulebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_recurrencerulebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_recurrencerulebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurrencerulebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurrencerulebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurrencerulebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurrencerulebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_recurrencerulebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_recurrencerulebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_createdby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_createdby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_createdby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_createdby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_createdby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_createdonbehalfby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_createdonbehalfby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_modifiedby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_modifiedby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_modifiedby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_modifiedby"); + } + } + + /// + /// 1:N lk_recurringappointmentmaster_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_recurringappointmentmaster_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_recurringappointmentmaster_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_recurringappointmentmaster_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_recurringappointmentmaster_modifiedonbehalfby"); + this.SetRelatedEntities("lk_recurringappointmentmaster_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_recurringappointmentmaster_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprole_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprole_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprole_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprole_createdonbehalfby"); + this.SetRelatedEntities("lk_relationshiprole_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprole_createdonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprole_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprole_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprole_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprole_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprole_modifiedonbehalfby"); + this.SetRelatedEntities("lk_relationshiprole_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprole_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprolemap_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprolemap_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprolemap_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprolemap_createdonbehalfby"); + this.SetRelatedEntities("lk_relationshiprolemap_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprolemap_createdonbehalfby"); + } + } + + /// + /// 1:N lk_relationshiprolemap_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_relationshiprolemap_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_relationshiprolemap_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_relationshiprolemap_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_relationshiprolemap_modifiedonbehalfby"); + this.SetRelatedEntities("lk_relationshiprolemap_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_relationshiprolemap_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_report_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_report_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_report_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_report_createdonbehalfby"); + this.SetRelatedEntities("lk_report_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_report_createdonbehalfby"); + } + } + + /// + /// 1:N lk_report_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_report_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_report_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_report_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_report_modifiedonbehalfby"); + this.SetRelatedEntities("lk_report_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_report_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportbase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportbase_createdby"); + this.SetRelatedEntities("lk_reportbase_createdby", null, value); + this.OnPropertyChanged("lk_reportbase_createdby"); + } + } + + /// + /// 1:N lk_reportbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportbase_modifiedby"); + this.SetRelatedEntities("lk_reportbase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportbase_modifiedby"); + } + } + + /// + /// 1:N lk_reportcategory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportcategory_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportcategory_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategory_createdonbehalfby"); + this.SetRelatedEntities("lk_reportcategory_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportcategory_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportcategory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategory_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportcategory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportcategory_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategory_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportcategory_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportcategory_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportcategorybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportcategorybase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportcategorybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategorybase_createdby"); + this.SetRelatedEntities("lk_reportcategorybase_createdby", null, value); + this.OnPropertyChanged("lk_reportcategorybase_createdby"); + } + } + + /// + /// 1:N lk_reportcategorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportcategorybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportcategorybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportcategorybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportcategorybase_modifiedby"); + this.SetRelatedEntities("lk_reportcategorybase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportcategorybase_modifiedby"); + } + } + + /// + /// 1:N lk_reportentity_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportentity_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportentity_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportentity_createdonbehalfby"); + this.SetRelatedEntities("lk_reportentity_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportentity_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportentity_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentity_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportentity_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportentity_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportentity_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportentity_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportentity_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportentitybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportentitybase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportentitybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportentitybase_createdby"); + this.SetRelatedEntities("lk_reportentitybase_createdby", null, value); + this.OnPropertyChanged("lk_reportentitybase_createdby"); + } + } + + /// + /// 1:N lk_reportentitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportentitybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportentitybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportentitybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportentitybase_modifiedby"); + this.SetRelatedEntities("lk_reportentitybase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportentitybase_modifiedby"); + } + } + + /// + /// 1:N lk_reportlink_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportlink_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportlink_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportlink_createdonbehalfby"); + this.SetRelatedEntities("lk_reportlink_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportlink_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportlink_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlink_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportlink_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportlink_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportlink_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportlink_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportlink_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportlinkbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportlinkbase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportlinkbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportlinkbase_createdby"); + this.SetRelatedEntities("lk_reportlinkbase_createdby", null, value); + this.OnPropertyChanged("lk_reportlinkbase_createdby"); + } + } + + /// + /// 1:N lk_reportlinkbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportlinkbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportlinkbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportlinkbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportlinkbase_modifiedby"); + this.SetRelatedEntities("lk_reportlinkbase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportlinkbase_modifiedby"); + } + } + + /// + /// 1:N lk_reportvisibility_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportvisibility_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportvisibility_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibility_createdonbehalfby"); + this.SetRelatedEntities("lk_reportvisibility_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_reportvisibility_createdonbehalfby"); + } + } + + /// + /// 1:N lk_reportvisibility_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibility_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_reportvisibility_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_reportvisibility_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibility_modifiedonbehalfby"); + this.SetRelatedEntities("lk_reportvisibility_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_reportvisibility_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_reportvisibilitybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_createdby")] + public System.Collections.Generic.IEnumerable lk_reportvisibilitybase_createdby + { + get + { + return this.GetRelatedEntities("lk_reportvisibilitybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibilitybase_createdby"); + this.SetRelatedEntities("lk_reportvisibilitybase_createdby", null, value); + this.OnPropertyChanged("lk_reportvisibilitybase_createdby"); + } + } + + /// + /// 1:N lk_reportvisibilitybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_reportvisibilitybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_reportvisibilitybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_reportvisibilitybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_reportvisibilitybase_modifiedby"); + this.SetRelatedEntities("lk_reportvisibilitybase_modifiedby", null, value); + this.OnPropertyChanged("lk_reportvisibilitybase_modifiedby"); + } + } + + /// + /// 1:N lk_resourcespec_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_createdby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_createdby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_createdby"); + this.SetRelatedEntities("lk_resourcespec_createdby", null, value); + this.OnPropertyChanged("lk_resourcespec_createdby"); + } + } + + /// + /// 1:N lk_resourcespec_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_createdonbehalfby"); + this.SetRelatedEntities("lk_resourcespec_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_resourcespec_createdonbehalfby"); + } + } + + /// + /// 1:N lk_resourcespec_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_modifiedby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_modifiedby"); + this.SetRelatedEntities("lk_resourcespec_modifiedby", null, value); + this.OnPropertyChanged("lk_resourcespec_modifiedby"); + } + } + + /// + /// 1:N lk_resourcespec_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_resourcespec_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_resourcespec_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_resourcespec_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_resourcespec_modifiedonbehalfby"); + this.SetRelatedEntities("lk_resourcespec_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_resourcespec_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_role_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_role_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_role_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_role_createdonbehalfby"); + this.SetRelatedEntities("lk_role_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_role_createdonbehalfby"); + } + } + + /// + /// 1:N lk_role_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_role_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_role_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_role_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_role_modifiedonbehalfby"); + this.SetRelatedEntities("lk_role_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_role_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_rolebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_createdby")] + public System.Collections.Generic.IEnumerable lk_rolebase_createdby + { + get + { + return this.GetRelatedEntities("lk_rolebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_rolebase_createdby"); + this.SetRelatedEntities("lk_rolebase_createdby", null, value); + this.OnPropertyChanged("lk_rolebase_createdby"); + } + } + + /// + /// 1:N lk_rolebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rolebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_rolebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_rolebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_rolebase_modifiedby"); + this.SetRelatedEntities("lk_rolebase_modifiedby", null, value); + this.OnPropertyChanged("lk_rolebase_modifiedby"); + } + } + + /// + /// 1:N lk_rollupfield_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_createdby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_createdby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_createdby"); + this.SetRelatedEntities("lk_rollupfield_createdby", null, value); + this.OnPropertyChanged("lk_rollupfield_createdby"); + } + } + + /// + /// 1:N lk_rollupfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_createdonbehalfby"); + this.SetRelatedEntities("lk_rollupfield_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_rollupfield_createdonbehalfby"); + } + } + + /// + /// 1:N lk_rollupfield_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_modifiedby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_modifiedby"); + this.SetRelatedEntities("lk_rollupfield_modifiedby", null, value); + this.OnPropertyChanged("lk_rollupfield_modifiedby"); + } + } + + /// + /// 1:N lk_rollupfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_rollupfield_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_rollupfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_rollupfield_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_rollupfield_modifiedonbehalfby"); + this.SetRelatedEntities("lk_rollupfield_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_rollupfield_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesliterature_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliterature_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliterature_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliterature_createdonbehalfby"); + this.SetRelatedEntities("lk_salesliterature_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliterature_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesliterature_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliterature_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliterature_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliterature_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliterature_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesliterature_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliterature_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesliteraturebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesliteraturebase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesliteraturebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteraturebase_createdby"); + this.SetRelatedEntities("lk_salesliteraturebase_createdby", null, value); + this.OnPropertyChanged("lk_salesliteraturebase_createdby"); + } + } + + /// + /// 1:N lk_salesliteraturebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteraturebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesliteraturebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesliteraturebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteraturebase_modifiedby"); + this.SetRelatedEntities("lk_salesliteraturebase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesliteraturebase_modifiedby"); + } + } + + /// + /// 1:N lk_salesliteratureitem_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitem_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitem_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitem_createdonbehalfby"); + this.SetRelatedEntities("lk_salesliteratureitem_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliteratureitem_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesliteratureitem_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitem_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitem_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitem_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitem_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesliteratureitem_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesliteratureitem_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesliteratureitembase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitembase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitembase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitembase_createdby"); + this.SetRelatedEntities("lk_salesliteratureitembase_createdby", null, value); + this.OnPropertyChanged("lk_salesliteratureitembase_createdby"); + } + } + + /// + /// 1:N lk_salesliteratureitembase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesliteratureitembase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesliteratureitembase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesliteratureitembase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesliteratureitembase_modifiedby"); + this.SetRelatedEntities("lk_salesliteratureitembase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesliteratureitembase_modifiedby"); + } + } + + /// + /// 1:N lk_salesorder_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorder_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorder_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorder_createdonbehalfby"); + this.SetRelatedEntities("lk_salesorder_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorder_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesorder_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorder_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorder_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorder_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorder_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesorder_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorder_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesorderbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesorderbase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesorderbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderbase_createdby"); + this.SetRelatedEntities("lk_salesorderbase_createdby", null, value); + this.OnPropertyChanged("lk_salesorderbase_createdby"); + } + } + + /// + /// 1:N lk_salesorderbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesorderbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesorderbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderbase_modifiedby"); + this.SetRelatedEntities("lk_salesorderbase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesorderbase_modifiedby"); + } + } + + /// + /// 1:N lk_salesorderdetail_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetail_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetail_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetail_createdonbehalfby"); + this.SetRelatedEntities("lk_salesorderdetail_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorderdetail_createdonbehalfby"); + } + } + + /// + /// 1:N lk_salesorderdetail_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetail_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetail_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetail_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetail_modifiedonbehalfby"); + this.SetRelatedEntities("lk_salesorderdetail_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_salesorderdetail_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_salesorderdetailbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_createdby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetailbase_createdby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetailbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetailbase_createdby"); + this.SetRelatedEntities("lk_salesorderdetailbase_createdby", null, value); + this.OnPropertyChanged("lk_salesorderdetailbase_createdby"); + } + } + + /// + /// 1:N lk_salesorderdetailbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_salesorderdetailbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_salesorderdetailbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_salesorderdetailbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_salesorderdetailbase_modifiedby"); + this.SetRelatedEntities("lk_salesorderdetailbase_modifiedby", null, value); + this.OnPropertyChanged("lk_salesorderdetailbase_modifiedby"); + } + } + + /// + /// 1:N lk_savedquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedquery_createdonbehalfby"); + this.SetRelatedEntities("lk_savedquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_savedquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_savedquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_savedquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_savedquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_savedquerybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_createdby")] + public System.Collections.Generic.IEnumerable lk_savedquerybase_createdby + { + get + { + return this.GetRelatedEntities("lk_savedquerybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_savedquerybase_createdby"); + this.SetRelatedEntities("lk_savedquerybase_createdby", null, value); + this.OnPropertyChanged("lk_savedquerybase_createdby"); + } + } + + /// + /// 1:N lk_savedquerybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedquerybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_savedquerybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_savedquerybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_savedquerybase_modifiedby"); + this.SetRelatedEntities("lk_savedquerybase_modifiedby", null, value); + this.OnPropertyChanged("lk_savedquerybase_modifiedby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_createdby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_createdby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_createdby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_modifiedby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_modifiedby"); + } + } + + /// + /// 1:N lk_savedqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_savedqueryvisualizationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_savedqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_savedqueryvisualizationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_savedqueryvisualizationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_savedqueryvisualizationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_savedqueryvisualizationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessage_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagefilter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagefilter_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagefilter_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagefilter_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagefilter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagefilter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagefilter_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagefilter_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagepair_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagepair_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagepair_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagepair_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagepair_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagepair_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagepair_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagepair_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagepair_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagepair_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagepair_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagepair_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagepair_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstep_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstep_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstep_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstep_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstep_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstep_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstep_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepimage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepimage_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepimage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepimage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepimage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepimage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepsecureconfig_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepsecureconfig_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequest_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequest_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequest_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequest_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequest_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequest_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequest_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequest_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequest_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequest_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequest_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequest_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequest_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequestfield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequestfield_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequestfield_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequestfield_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequestfield_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequestfield_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagerequestfield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagerequestfield_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagerequestfield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagerequestfield_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagerequestfield_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagerequestfield_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagerequestfield_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponse_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponse_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponse_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponse_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponse_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponse_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponse_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponse_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponse_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponse_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponse_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponse_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponse_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponsefield_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponsefield_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponsefield_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponsefield_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponsefield_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponsefield_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageresponsefield_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageresponsefield_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageresponsefield_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageresponsefield_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageresponsefield_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageresponsefield_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageresponsefield_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_createdby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_createdby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_createdby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_createdby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_createdby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_createdonbehalfby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_createdonbehalfby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_modifiedby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_modifiedby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_modifiedby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_modifiedby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_modifiedonbehalfby"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_semiannualfiscalcalendar_salespersonid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_semiannualfiscalcalendar_salespersonid")] + public System.Collections.Generic.IEnumerable lk_semiannualfiscalcalendar_salespersonid + { + get + { + return this.GetRelatedEntities("lk_semiannualfiscalcalendar_salespersonid", null); + } + set + { + this.OnPropertyChanging("lk_semiannualfiscalcalendar_salespersonid"); + this.SetRelatedEntities("lk_semiannualfiscalcalendar_salespersonid", null, value); + this.OnPropertyChanged("lk_semiannualfiscalcalendar_salespersonid"); + } + } + + /// + /// 1:N lk_service_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdby")] + public System.Collections.Generic.IEnumerable lk_service_createdby + { + get + { + return this.GetRelatedEntities("lk_service_createdby", null); + } + set + { + this.OnPropertyChanging("lk_service_createdby"); + this.SetRelatedEntities("lk_service_createdby", null, value); + this.OnPropertyChanged("lk_service_createdby"); + } + } + + /// + /// 1:N lk_service_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_service_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_service_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_service_createdonbehalfby"); + this.SetRelatedEntities("lk_service_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_service_createdonbehalfby"); + } + } + + /// + /// 1:N lk_service_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedby")] + public System.Collections.Generic.IEnumerable lk_service_modifiedby + { + get + { + return this.GetRelatedEntities("lk_service_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_service_modifiedby"); + this.SetRelatedEntities("lk_service_modifiedby", null, value); + this.OnPropertyChanged("lk_service_modifiedby"); + } + } + + /// + /// 1:N lk_service_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_service_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_service_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_service_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_service_modifiedonbehalfby"); + this.SetRelatedEntities("lk_service_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_service_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_serviceappointment_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_createdby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_createdby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_createdby"); + this.SetRelatedEntities("lk_serviceappointment_createdby", null, value); + this.OnPropertyChanged("lk_serviceappointment_createdby"); + } + } + + /// + /// 1:N lk_serviceappointment_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_createdonbehalfby"); + this.SetRelatedEntities("lk_serviceappointment_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceappointment_createdonbehalfby"); + } + } + + /// + /// 1:N lk_serviceappointment_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_modifiedby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_modifiedby"); + this.SetRelatedEntities("lk_serviceappointment_modifiedby", null, value); + this.OnPropertyChanged("lk_serviceappointment_modifiedby"); + } + } + + /// + /// 1:N lk_serviceappointment_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceappointment_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceappointment_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceappointment_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceappointment_modifiedonbehalfby"); + this.SetRelatedEntities("lk_serviceappointment_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceappointment_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_serviceendpointbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceendpointbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceendpointbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceendpointbase_createdonbehalfby"); + this.SetRelatedEntities("lk_serviceendpointbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceendpointbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_serviceendpointbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_serviceendpointbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_serviceendpointbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_serviceendpointbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_serviceendpointbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_serviceendpointbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_serviceendpointbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_createdby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_createdby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_createdby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_createdby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_modifiedby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_modifiedby"); + } + } + + /// + /// 1:N lk_sharepointdocumentlocationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointdocumentlocationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointdocumentlocationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointdocumentlocationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sharepointdocumentlocationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointdocumentlocationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_createdby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_createdby"); + this.SetRelatedEntities("lk_sharepointsitebase_createdby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_createdby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_createdonbehalfby"); + this.SetRelatedEntities("lk_sharepointsitebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_modifiedby"); + this.SetRelatedEntities("lk_sharepointsitebase_modifiedby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_modifiedby"); + } + } + + /// + /// 1:N lk_sharepointsitebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sharepointsitebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sharepointsitebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sharepointsitebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sharepointsitebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sharepointsitebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sharepointsitebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_site_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_site_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_site_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_site_createdonbehalfby"); + this.SetRelatedEntities("lk_site_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_site_createdonbehalfby"); + } + } + + /// + /// 1:N lk_site_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_site_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_site_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_site_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_site_modifiedonbehalfby"); + this.SetRelatedEntities("lk_site_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_site_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sitebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_createdby")] + public System.Collections.Generic.IEnumerable lk_sitebase_createdby + { + get + { + return this.GetRelatedEntities("lk_sitebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_sitebase_createdby"); + this.SetRelatedEntities("lk_sitebase_createdby", null, value); + this.OnPropertyChanged("lk_sitebase_createdby"); + } + } + + /// + /// 1:N lk_sitebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sitebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_sitebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_sitebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_sitebase_modifiedby"); + this.SetRelatedEntities("lk_sitebase_modifiedby", null, value); + this.OnPropertyChanged("lk_sitebase_modifiedby"); + } + } + + /// + /// 1:N lk_solution_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] + public System.Collections.Generic.IEnumerable lk_solution_createdby + { + get + { + return this.GetRelatedEntities("lk_solution_createdby", null); + } + set + { + this.OnPropertyChanging("lk_solution_createdby"); + this.SetRelatedEntities("lk_solution_createdby", null, value); + this.OnPropertyChanged("lk_solution_createdby"); + } + } + + /// + /// 1:N lk_solution_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] + public System.Collections.Generic.IEnumerable lk_solution_modifiedby + { + get + { + return this.GetRelatedEntities("lk_solution_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_solution_modifiedby"); + this.SetRelatedEntities("lk_solution_modifiedby", null, value); + this.OnPropertyChanged("lk_solution_modifiedby"); + } + } + + /// + /// 1:N lk_solutionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_solutionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_solutionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_solutionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_solutionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_solutioncomponentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutioncomponentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutioncomponentbase_createdonbehalfby"); + this.SetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_solutioncomponentbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_solutioncomponentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutioncomponentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutioncomponentbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_solutioncomponentbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_subject_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_subject_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_subject_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_subject_createdonbehalfby"); + this.SetRelatedEntities("lk_subject_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_subject_createdonbehalfby"); + } + } + + /// + /// 1:N lk_subject_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subject_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_subject_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_subject_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_subject_modifiedonbehalfby"); + this.SetRelatedEntities("lk_subject_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_subject_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_subjectbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_createdby")] + public System.Collections.Generic.IEnumerable lk_subjectbase_createdby + { + get + { + return this.GetRelatedEntities("lk_subjectbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_subjectbase_createdby"); + this.SetRelatedEntities("lk_subjectbase_createdby", null, value); + this.OnPropertyChanged("lk_subjectbase_createdby"); + } + } + + /// + /// 1:N lk_subjectbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_subjectbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_subjectbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_subjectbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_subjectbase_modifiedby"); + this.SetRelatedEntities("lk_subjectbase_modifiedby", null, value); + this.OnPropertyChanged("lk_subjectbase_modifiedby"); + } + } + + /// + /// 1:N lk_systemuser_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuser_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuser_createdonbehalfby"); + this.SetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuser_createdonbehalfby"); + } + } + + /// + /// 1:N lk_systemuser_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuser_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuser_modifiedonbehalfby"); + this.SetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuser_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_systemuserbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuserbase_createdby + { + get + { + return this.GetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuserbase_createdby"); + this.SetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuserbase_createdby"); + } + } + + /// + /// 1:N lk_systemuserbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedlk_systemuserbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuserbase_modifiedby"); + this.SetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuserbase_modifiedby"); + } + } + + /// + /// 1:N lk_task_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdby")] + public System.Collections.Generic.IEnumerable lk_task_createdby + { + get + { + return this.GetRelatedEntities("lk_task_createdby", null); + } + set + { + this.OnPropertyChanging("lk_task_createdby"); + this.SetRelatedEntities("lk_task_createdby", null, value); + this.OnPropertyChanged("lk_task_createdby"); + } + } + + /// + /// 1:N lk_task_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_task_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_task_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_task_createdonbehalfby"); + this.SetRelatedEntities("lk_task_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_task_createdonbehalfby"); + } + } + + /// + /// 1:N lk_task_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedby")] + public System.Collections.Generic.IEnumerable lk_task_modifiedby + { + get + { + return this.GetRelatedEntities("lk_task_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_task_modifiedby"); + this.SetRelatedEntities("lk_task_modifiedby", null, value); + this.OnPropertyChanged("lk_task_modifiedby"); + } + } + + /// + /// 1:N lk_task_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_task_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_task_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_task_modifiedonbehalfby"); + this.SetRelatedEntities("lk_task_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_task_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_team_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_team_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_team_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_team_createdonbehalfby"); + this.SetRelatedEntities("lk_team_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_team_createdonbehalfby"); + } + } + + /// + /// 1:N lk_team_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_team_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_team_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_team_modifiedonbehalfby"); + this.SetRelatedEntities("lk_team_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_team_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_teambase_administratorid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_administratorid")] + public System.Collections.Generic.IEnumerable lk_teambase_administratorid + { + get + { + return this.GetRelatedEntities("lk_teambase_administratorid", null); + } + set + { + this.OnPropertyChanging("lk_teambase_administratorid"); + this.SetRelatedEntities("lk_teambase_administratorid", null, value); + this.OnPropertyChanged("lk_teambase_administratorid"); + } + } + + /// + /// 1:N lk_teambase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_createdby")] + public System.Collections.Generic.IEnumerable lk_teambase_createdby + { + get + { + return this.GetRelatedEntities("lk_teambase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_teambase_createdby"); + this.SetRelatedEntities("lk_teambase_createdby", null, value); + this.OnPropertyChanged("lk_teambase_createdby"); + } + } + + /// + /// 1:N lk_teambase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_teambase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_teambase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_teambase_modifiedby"); + this.SetRelatedEntities("lk_teambase_modifiedby", null, value); + this.OnPropertyChanged("lk_teambase_modifiedby"); + } + } + + /// + /// 1:N lk_teamtemplate_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_createdby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_createdby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_createdby"); + this.SetRelatedEntities("lk_teamtemplate_createdby", null, value); + this.OnPropertyChanged("lk_teamtemplate_createdby"); + } + } + + /// + /// 1:N lk_teamtemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_createdonbehalfby"); + this.SetRelatedEntities("lk_teamtemplate_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_teamtemplate_createdonbehalfby"); + } + } + + /// + /// 1:N lk_teamtemplate_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_modifiedby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_modifiedby"); + this.SetRelatedEntities("lk_teamtemplate_modifiedby", null, value); + this.OnPropertyChanged("lk_teamtemplate_modifiedby"); + } + } + + /// + /// 1:N lk_teamtemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_teamtemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_teamtemplate_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_teamtemplate_modifiedonbehalfby"); + this.SetRelatedEntities("lk_teamtemplate_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_teamtemplate_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_templatebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdby")] + public System.Collections.Generic.IEnumerable lk_templatebase_createdby + { + get + { + return this.GetRelatedEntities("lk_templatebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_createdby"); + this.SetRelatedEntities("lk_templatebase_createdby", null, value); + this.OnPropertyChanged("lk_templatebase_createdby"); + } + } + + /// + /// 1:N lk_templatebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_templatebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_templatebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_createdonbehalfby"); + this.SetRelatedEntities("lk_templatebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_templatebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_templatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_templatebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_templatebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_modifiedby"); + this.SetRelatedEntities("lk_templatebase_modifiedby", null, value); + this.OnPropertyChanged("lk_templatebase_modifiedby"); + } + } + + /// + /// 1:N lk_templatebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_templatebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_templatebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_templatebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_templatebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_templatebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_territory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_territory_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_territory_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_territory_createdonbehalfby"); + this.SetRelatedEntities("lk_territory_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_territory_createdonbehalfby"); + } + } + + /// + /// 1:N lk_territory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_territory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_territory_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_territory_modifiedonbehalfby"); + this.SetRelatedEntities("lk_territory_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_territory_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_territorybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_createdby")] + public System.Collections.Generic.IEnumerable lk_territorybase_createdby + { + get + { + return this.GetRelatedEntities("lk_territorybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_territorybase_createdby"); + this.SetRelatedEntities("lk_territorybase_createdby", null, value); + this.OnPropertyChanged("lk_territorybase_createdby"); + } + } + + /// + /// 1:N lk_territorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_territorybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_territorybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_territorybase_modifiedby"); + this.SetRelatedEntities("lk_territorybase_modifiedby", null, value); + this.OnPropertyChanged("lk_territorybase_modifiedby"); + } + } + + /// + /// 1:N lk_timezonedefinition_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_createdby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_createdby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_createdby"); + this.SetRelatedEntities("lk_timezonedefinition_createdby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_createdby"); + } + } + + /// + /// 1:N lk_timezonedefinition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_createdonbehalfby"); + this.SetRelatedEntities("lk_timezonedefinition_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_createdonbehalfby"); + } + } + + /// + /// 1:N lk_timezonedefinition_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_modifiedby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_modifiedby"); + this.SetRelatedEntities("lk_timezonedefinition_modifiedby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_modifiedby"); + } + } + + /// + /// 1:N lk_timezonedefinition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonedefinition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonedefinition_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonedefinition_modifiedonbehalfby"); + this.SetRelatedEntities("lk_timezonedefinition_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonedefinition_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_createdby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_createdby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_createdby"); + this.SetRelatedEntities("lk_timezonelocalizedname_createdby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_createdby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_createdonbehalfby"); + this.SetRelatedEntities("lk_timezonelocalizedname_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_createdonbehalfby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_modifiedby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_modifiedby"); + this.SetRelatedEntities("lk_timezonelocalizedname_modifiedby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_modifiedby"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_modifiedonbehalfby"); + this.SetRelatedEntities("lk_timezonelocalizedname_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_timezonerule_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_createdby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_createdby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_createdby"); + this.SetRelatedEntities("lk_timezonerule_createdby", null, value); + this.OnPropertyChanged("lk_timezonerule_createdby"); + } + } + + /// + /// 1:N lk_timezonerule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_createdonbehalfby"); + this.SetRelatedEntities("lk_timezonerule_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonerule_createdonbehalfby"); + } + } + + /// + /// 1:N lk_timezonerule_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_modifiedby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_modifiedby"); + this.SetRelatedEntities("lk_timezonerule_modifiedby", null, value); + this.OnPropertyChanged("lk_timezonerule_modifiedby"); + } + } + + /// + /// 1:N lk_timezonerule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_timezonerule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_timezonerule_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_modifiedonbehalfby"); + this.SetRelatedEntities("lk_timezonerule_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_timezonerule_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_tracelog_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdby")] + public System.Collections.Generic.IEnumerable lk_tracelog_createdby + { + get + { + return this.GetRelatedEntities("lk_tracelog_createdby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_createdby"); + this.SetRelatedEntities("lk_tracelog_createdby", null, value); + this.OnPropertyChanged("lk_tracelog_createdby"); + } + } + + /// + /// 1:N lk_tracelog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_tracelog_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_tracelog_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_createdonbehalfby"); + this.SetRelatedEntities("lk_tracelog_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_tracelog_createdonbehalfby"); + } + } + + /// + /// 1:N lk_tracelog_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedby")] + public System.Collections.Generic.IEnumerable lk_tracelog_modifiedby + { + get + { + return this.GetRelatedEntities("lk_tracelog_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_modifiedby"); + this.SetRelatedEntities("lk_tracelog_modifiedby", null, value); + this.OnPropertyChanged("lk_tracelog_modifiedby"); + } + } + + /// + /// 1:N lk_tracelog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_tracelog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_tracelog_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_tracelog_modifiedonbehalfby"); + this.SetRelatedEntities("lk_tracelog_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_tracelog_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_transactioncurrency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrency_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrency_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrency_createdonbehalfby"); + this.SetRelatedEntities("lk_transactioncurrency_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_transactioncurrency_createdonbehalfby"); + } + } + + /// + /// 1:N lk_transactioncurrency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrency_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrency_modifiedonbehalfby"); + this.SetRelatedEntities("lk_transactioncurrency_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_transactioncurrency_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_transactioncurrencybase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_createdby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrencybase_createdby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrencybase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrencybase_createdby"); + this.SetRelatedEntities("lk_transactioncurrencybase_createdby", null, value); + this.OnPropertyChanged("lk_transactioncurrencybase_createdby"); + } + } + + /// + /// 1:N lk_transactioncurrencybase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_transactioncurrencybase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_transactioncurrencybase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_transactioncurrencybase_modifiedby"); + this.SetRelatedEntities("lk_transactioncurrencybase_modifiedby", null, value); + this.OnPropertyChanged("lk_transactioncurrencybase_modifiedby"); + } + } + + /// + /// 1:N lk_transformationmapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_createdby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_createdby"); + this.SetRelatedEntities("lk_transformationmapping_createdby", null, value); + this.OnPropertyChanged("lk_transformationmapping_createdby"); + } + } + + /// + /// 1:N lk_transformationmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_createdonbehalfby"); + this.SetRelatedEntities("lk_transformationmapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationmapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_transformationmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_modifiedby"); + this.SetRelatedEntities("lk_transformationmapping_modifiedby", null, value); + this.OnPropertyChanged("lk_transformationmapping_modifiedby"); + } + } + + /// + /// 1:N lk_transformationmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationmapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationmapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_transformationmapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationmapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_createdby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_createdby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_createdby"); + this.SetRelatedEntities("lk_transformationparametermapping_createdby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_createdby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_createdonbehalfby"); + this.SetRelatedEntities("lk_transformationparametermapping_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_createdonbehalfby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_modifiedby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_modifiedby"); + this.SetRelatedEntities("lk_transformationparametermapping_modifiedby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_modifiedby"); + } + } + + /// + /// 1:N lk_transformationparametermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_transformationparametermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_transformationparametermapping_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_transformationparametermapping_modifiedonbehalfby"); + this.SetRelatedEntities("lk_transformationparametermapping_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_transformationparametermapping_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_uom_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uom_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uom_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uom_createdonbehalfby"); + this.SetRelatedEntities("lk_uom_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_uom_createdonbehalfby"); + } + } + + /// + /// 1:N lk_uom_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uom_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uom_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uom_modifiedonbehalfby"); + this.SetRelatedEntities("lk_uom_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_uom_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_uombase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_createdby")] + public System.Collections.Generic.IEnumerable lk_uombase_createdby + { + get + { + return this.GetRelatedEntities("lk_uombase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_uombase_createdby"); + this.SetRelatedEntities("lk_uombase_createdby", null, value); + this.OnPropertyChanged("lk_uombase_createdby"); + } + } + + /// + /// 1:N lk_uombase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_uombase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_uombase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_uombase_modifiedby"); + this.SetRelatedEntities("lk_uombase_modifiedby", null, value); + this.OnPropertyChanged("lk_uombase_modifiedby"); + } + } + + /// + /// 1:N lk_uomschedule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uomschedule_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uomschedule_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedule_createdonbehalfby"); + this.SetRelatedEntities("lk_uomschedule_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_uomschedule_createdonbehalfby"); + } + } + + /// + /// 1:N lk_uomschedule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_uomschedule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_uomschedule_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedule_modifiedonbehalfby"); + this.SetRelatedEntities("lk_uomschedule_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_uomschedule_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_uomschedulebase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_createdby")] + public System.Collections.Generic.IEnumerable lk_uomschedulebase_createdby + { + get + { + return this.GetRelatedEntities("lk_uomschedulebase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedulebase_createdby"); + this.SetRelatedEntities("lk_uomschedulebase_createdby", null, value); + this.OnPropertyChanged("lk_uomschedulebase_createdby"); + } + } + + /// + /// 1:N lk_uomschedulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_uomschedulebase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_uomschedulebase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_uomschedulebase_modifiedby"); + this.SetRelatedEntities("lk_uomschedulebase_modifiedby", null, value); + this.OnPropertyChanged("lk_uomschedulebase_modifiedby"); + } + } + + /// + /// 1:N lk_userform_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_createdby")] + public System.Collections.Generic.IEnumerable lk_userform_createdby + { + get + { + return this.GetRelatedEntities("lk_userform_createdby", null); + } + set + { + this.OnPropertyChanging("lk_userform_createdby"); + this.SetRelatedEntities("lk_userform_createdby", null, value); + this.OnPropertyChanged("lk_userform_createdby"); + } + } + + /// + /// 1:N lk_userform_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_modifiedby")] + public System.Collections.Generic.IEnumerable lk_userform_modifiedby + { + get + { + return this.GetRelatedEntities("lk_userform_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_userform_modifiedby"); + this.SetRelatedEntities("lk_userform_modifiedby", null, value); + this.OnPropertyChanged("lk_userform_modifiedby"); + } + } + + /// + /// 1:N lk_userformbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userformbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userformbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userformbase_createdonbehalfby"); + this.SetRelatedEntities("lk_userformbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_userformbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_userformbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userformbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userformbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userformbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_userformbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_userformbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_userquery_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdby")] + public System.Collections.Generic.IEnumerable lk_userquery_createdby + { + get + { + return this.GetRelatedEntities("lk_userquery_createdby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_createdby"); + this.SetRelatedEntities("lk_userquery_createdby", null, value); + this.OnPropertyChanged("lk_userquery_createdby"); + } + } + + /// + /// 1:N lk_userquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userquery_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userquery_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_createdonbehalfby"); + this.SetRelatedEntities("lk_userquery_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_userquery_createdonbehalfby"); + } + } + + /// + /// 1:N lk_userquery_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedby")] + public System.Collections.Generic.IEnumerable lk_userquery_modifiedby + { + get + { + return this.GetRelatedEntities("lk_userquery_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_modifiedby"); + this.SetRelatedEntities("lk_userquery_modifiedby", null, value); + this.OnPropertyChanged("lk_userquery_modifiedby"); + } + } + + /// + /// 1:N lk_userquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userquery_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userquery_modifiedonbehalfby"); + this.SetRelatedEntities("lk_userquery_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_userquery_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_userqueryvisualization_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_createdby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualization_createdby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualization_createdby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualization_createdby"); + this.SetRelatedEntities("lk_userqueryvisualization_createdby", null, value); + this.OnPropertyChanged("lk_userqueryvisualization_createdby"); + } + } + + /// + /// 1:N lk_userqueryvisualization_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_modifiedby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualization_modifiedby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualization_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualization_modifiedby"); + this.SetRelatedEntities("lk_userqueryvisualization_modifiedby", null, value); + this.OnPropertyChanged("lk_userqueryvisualization_modifiedby"); + } + } + + /// + /// 1:N lk_userqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualizationbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualizationbase_createdonbehalfby"); + this.SetRelatedEntities("lk_userqueryvisualizationbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_userqueryvisualizationbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_userqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_userqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_userqueryvisualizationbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_userqueryvisualizationbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_userqueryvisualizationbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_userqueryvisualizationbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_usersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_usersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_usersettings_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_usersettings_createdonbehalfby"); + this.SetRelatedEntities("lk_usersettings_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_usersettings_createdonbehalfby"); + } + } + + /// + /// 1:N lk_usersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_usersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_usersettings_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_usersettings_modifiedonbehalfby"); + this.SetRelatedEntities("lk_usersettings_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_usersettings_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_usersettingsbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_createdby")] + public System.Collections.Generic.IEnumerable lk_usersettingsbase_createdby + { + get + { + return this.GetRelatedEntities("lk_usersettingsbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_usersettingsbase_createdby"); + this.SetRelatedEntities("lk_usersettingsbase_createdby", null, value); + this.OnPropertyChanged("lk_usersettingsbase_createdby"); + } + } + + /// + /// 1:N lk_usersettingsbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_usersettingsbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_usersettingsbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_usersettingsbase_modifiedby"); + this.SetRelatedEntities("lk_usersettingsbase_modifiedby", null, value); + this.OnPropertyChanged("lk_usersettingsbase_modifiedby"); + } + } + + /// + /// 1:N lk_webresourcebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_webresourcebase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_webresourcebase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_webresourcebase_createdonbehalfby"); + this.SetRelatedEntities("lk_webresourcebase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_webresourcebase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_webresourcebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_webresourcebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_webresourcebase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_webresourcebase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_workflowlog_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_createdby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_createdby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_createdby"); + this.SetRelatedEntities("lk_workflowlog_createdby", null, value); + this.OnPropertyChanged("lk_workflowlog_createdby"); + } + } + + /// + /// 1:N lk_workflowlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_createdonbehalfby"); + this.SetRelatedEntities("lk_workflowlog_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_workflowlog_createdonbehalfby"); + } + } + + /// + /// 1:N lk_workflowlog_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_modifiedby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_modifiedby"); + this.SetRelatedEntities("lk_workflowlog_modifiedby", null, value); + this.OnPropertyChanged("lk_workflowlog_modifiedby"); + } + } + + /// + /// 1:N lk_workflowlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_workflowlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_workflowlog_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_modifiedonbehalfby"); + this.SetRelatedEntities("lk_workflowlog_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_workflowlog_modifiedonbehalfby"); + } + } + + /// + /// 1:N mailbox_regarding_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_regarding_systemuser")] + public System.Collections.Generic.IEnumerable mailbox_regarding_systemuser + { + get + { + return this.GetRelatedEntities("mailbox_regarding_systemuser", null); + } + set + { + this.OnPropertyChanging("mailbox_regarding_systemuser"); + this.SetRelatedEntities("mailbox_regarding_systemuser", null, value); + this.OnPropertyChanged("mailbox_regarding_systemuser"); + } + } + + /// + /// 1:N modifiedby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_attributemap")] + public System.Collections.Generic.IEnumerable modifiedby_attributemap + { + get + { + return this.GetRelatedEntities("modifiedby_attributemap", null); + } + set + { + this.OnPropertyChanging("modifiedby_attributemap"); + this.SetRelatedEntities("modifiedby_attributemap", null, value); + this.OnPropertyChanged("modifiedby_attributemap"); + } + } + + /// + /// 1:N modifiedby_connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection")] + public System.Collections.Generic.IEnumerable modifiedby_connection + { + get + { + return this.GetRelatedEntities("modifiedby_connection", null); + } + set + { + this.OnPropertyChanging("modifiedby_connection"); + this.SetRelatedEntities("modifiedby_connection", null, value); + this.OnPropertyChanged("modifiedby_connection"); + } + } + + /// + /// 1:N modifiedby_connection_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_connection_role")] + public System.Collections.Generic.IEnumerable modifiedby_connection_role + { + get + { + return this.GetRelatedEntities("modifiedby_connection_role", null); + } + set + { + this.OnPropertyChanging("modifiedby_connection_role"); + this.SetRelatedEntities("modifiedby_connection_role", null, value); + this.OnPropertyChanged("modifiedby_connection_role"); + } + } + + /// + /// 1:N modifiedby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_customer_relationship")] + public System.Collections.Generic.IEnumerable modifiedby_customer_relationship + { + get + { + return this.GetRelatedEntities("modifiedby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("modifiedby_customer_relationship"); + this.SetRelatedEntities("modifiedby_customer_relationship", null, value); + this.OnPropertyChanged("modifiedby_customer_relationship"); + } + } + + /// + /// 1:N modifiedby_entitymap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_entitymap")] + public System.Collections.Generic.IEnumerable modifiedby_entitymap + { + get + { + return this.GetRelatedEntities("modifiedby_entitymap", null); + } + set + { + this.OnPropertyChanging("modifiedby_entitymap"); + this.SetRelatedEntities("modifiedby_entitymap", null, value); + this.OnPropertyChanged("modifiedby_entitymap"); + } + } + + /// + /// 1:N modifiedby_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] + public System.Collections.Generic.IEnumerable modifiedby_pluginassembly + { + get + { + return this.GetRelatedEntities("modifiedby_pluginassembly", null); + } + set + { + this.OnPropertyChanging("modifiedby_pluginassembly"); + this.SetRelatedEntities("modifiedby_pluginassembly", null, value); + this.OnPropertyChanged("modifiedby_pluginassembly"); + } + } + + /// + /// 1:N modifiedby_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] + public System.Collections.Generic.IEnumerable modifiedby_plugintype + { + get + { + return this.GetRelatedEntities("modifiedby_plugintype", null); + } + set + { + this.OnPropertyChanging("modifiedby_plugintype"); + this.SetRelatedEntities("modifiedby_plugintype", null, value); + this.OnPropertyChanged("modifiedby_plugintype"); + } + } + + /// + /// 1:N modifiedby_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintypestatistic")] + public System.Collections.Generic.IEnumerable modifiedby_plugintypestatistic + { + get + { + return this.GetRelatedEntities("modifiedby_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("modifiedby_plugintypestatistic"); + this.SetRelatedEntities("modifiedby_plugintypestatistic", null, value); + this.OnPropertyChanged("modifiedby_plugintypestatistic"); + } + } + + /// + /// 1:N modifiedby_relationship_role + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role")] + public System.Collections.Generic.IEnumerable modifiedby_relationship_role + { + get + { + return this.GetRelatedEntities("modifiedby_relationship_role", null); + } + set + { + this.OnPropertyChanging("modifiedby_relationship_role"); + this.SetRelatedEntities("modifiedby_relationship_role", null, value); + this.OnPropertyChanged("modifiedby_relationship_role"); + } + } + + /// + /// 1:N modifiedby_relationship_role_map + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_relationship_role_map")] + public System.Collections.Generic.IEnumerable modifiedby_relationship_role_map + { + get + { + return this.GetRelatedEntities("modifiedby_relationship_role_map", null); + } + set + { + this.OnPropertyChanging("modifiedby_relationship_role_map"); + this.SetRelatedEntities("modifiedby_relationship_role_map", null, value); + this.OnPropertyChanged("modifiedby_relationship_role_map"); + } + } + + /// + /// 1:N modifiedby_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessage + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessage", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessage"); + this.SetRelatedEntities("modifiedby_sdkmessage", null, value); + this.OnPropertyChanged("modifiedby_sdkmessage"); + } + } + + /// + /// 1:N modifiedby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagefilter"); + this.SetRelatedEntities("modifiedby_sdkmessagefilter", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagefilter"); + } + } + + /// + /// 1:N modifiedby_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagepair")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagepair + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagepair"); + this.SetRelatedEntities("modifiedby_sdkmessagepair", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagepair"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstep"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepsecureconfig")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// 1:N modifiedby_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequest")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagerequest + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagerequest"); + this.SetRelatedEntities("modifiedby_sdkmessagerequest", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagerequest"); + } + } + + /// + /// 1:N modifiedby_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagerequestfield")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagerequestfield"); + this.SetRelatedEntities("modifiedby_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagerequestfield"); + } + } + + /// + /// 1:N modifiedby_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponse")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageresponse + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageresponse"); + this.SetRelatedEntities("modifiedby_sdkmessageresponse", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageresponse"); + } + } + + /// + /// 1:N modifiedby_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageresponsefield")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageresponsefield"); + this.SetRelatedEntities("modifiedby_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageresponsefield"); + } + } + + /// + /// 1:N modifiedby_serviceendpoint + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_serviceendpoint")] + public System.Collections.Generic.IEnumerable modifiedby_serviceendpoint + { + get + { + return this.GetRelatedEntities("modifiedby_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("modifiedby_serviceendpoint"); + this.SetRelatedEntities("modifiedby_serviceendpoint", null, value); + this.OnPropertyChanged("modifiedby_serviceendpoint"); + } + } + + /// + /// 1:N modifiedonbehalfby_attributemap + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_attributemap")] + public System.Collections.Generic.IEnumerable modifiedonbehalfby_attributemap + { + get + { + return this.GetRelatedEntities("modifiedonbehalfby_attributemap", null); + } + set + { + this.OnPropertyChanging("modifiedonbehalfby_attributemap"); + this.SetRelatedEntities("modifiedonbehalfby_attributemap", null, value); + this.OnPropertyChanged("modifiedonbehalfby_attributemap"); + } + } + + /// + /// 1:N modifiedonbehalfby_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedonbehalfby_customer_relationship")] + public System.Collections.Generic.IEnumerable modifiedonbehalfby_customer_relationship + { + get + { + return this.GetRelatedEntities("modifiedonbehalfby_customer_relationship", null); + } + set + { + this.OnPropertyChanging("modifiedonbehalfby_customer_relationship"); + this.SetRelatedEntities("modifiedonbehalfby_customer_relationship", null, value); + this.OnPropertyChanged("modifiedonbehalfby_customer_relationship"); + } + } + + /// + /// 1:N msdyn_systemuser_wallsavedqueryusersettings_userid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_systemuser_wallsavedqueryusersettings_userid")] + public System.Collections.Generic.IEnumerable msdyn_systemuser_wallsavedqueryusersettings_userid + { + get + { + return this.GetRelatedEntities("msdyn_systemuser_wallsavedqueryusersettings_userid", null); + } + set + { + this.OnPropertyChanging("msdyn_systemuser_wallsavedqueryusersettings_userid"); + this.SetRelatedEntities("msdyn_systemuser_wallsavedqueryusersettings_userid", null, value); + this.OnPropertyChanged("msdyn_systemuser_wallsavedqueryusersettings_userid"); + } + } + + /// + /// 1:N opportunity_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_owning_user")] + public System.Collections.Generic.IEnumerable opportunity_owning_user + { + get + { + return this.GetRelatedEntities("opportunity_owning_user", null); + } + set + { + this.OnPropertyChanging("opportunity_owning_user"); + this.SetRelatedEntities("opportunity_owning_user", null, value); + this.OnPropertyChanged("opportunity_owning_user"); + } + } + + /// + /// 1:N OwnerMapping_SystemUser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwnerMapping_SystemUser")] + public System.Collections.Generic.IEnumerable OwnerMapping_SystemUser + { + get + { + return this.GetRelatedEntities("OwnerMapping_SystemUser", null); + } + set + { + this.OnPropertyChanging("OwnerMapping_SystemUser"); + this.SetRelatedEntities("OwnerMapping_SystemUser", null, value); + this.OnPropertyChanged("OwnerMapping_SystemUser"); + } + } + + /// + /// 1:N queue_primary_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_primary_user")] + public System.Collections.Generic.IEnumerable queue_primary_user + { + get + { + return this.GetRelatedEntities("queue_primary_user", null); + } + set + { + this.OnPropertyChanging("queue_primary_user"); + this.SetRelatedEntities("queue_primary_user", null, value); + this.OnPropertyChanged("queue_primary_user"); + } + } + + /// + /// 1:N system_user_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_accounts")] + public System.Collections.Generic.IEnumerable system_user_accounts + { + get + { + return this.GetRelatedEntities("system_user_accounts", null); + } + set + { + this.OnPropertyChanging("system_user_accounts"); + this.SetRelatedEntities("system_user_accounts", null, value); + this.OnPropertyChanged("system_user_accounts"); + } + } + + /// + /// 1:N system_user_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_activity_parties")] + public System.Collections.Generic.IEnumerable system_user_activity_parties + { + get + { + return this.GetRelatedEntities("system_user_activity_parties", null); + } + set + { + this.OnPropertyChanging("system_user_activity_parties"); + this.SetRelatedEntities("system_user_activity_parties", null, value); + this.OnPropertyChanged("system_user_activity_parties"); + } + } + + /// + /// 1:N system_user_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_asyncoperation")] + public System.Collections.Generic.IEnumerable system_user_asyncoperation + { + get + { + return this.GetRelatedEntities("system_user_asyncoperation", null); + } + set + { + this.OnPropertyChanging("system_user_asyncoperation"); + this.SetRelatedEntities("system_user_asyncoperation", null, value); + this.OnPropertyChanged("system_user_asyncoperation"); + } + } + + /// + /// 1:N system_user_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_contacts")] + public System.Collections.Generic.IEnumerable system_user_contacts + { + get + { + return this.GetRelatedEntities("system_user_contacts", null); + } + set + { + this.OnPropertyChanging("system_user_contacts"); + this.SetRelatedEntities("system_user_contacts", null, value); + this.OnPropertyChanged("system_user_contacts"); + } + } + + /// + /// 1:N system_user_email_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_email_templates")] + public System.Collections.Generic.IEnumerable system_user_email_templates + { + get + { + return this.GetRelatedEntities("system_user_email_templates", null); + } + set + { + this.OnPropertyChanging("system_user_email_templates"); + this.SetRelatedEntities("system_user_email_templates", null, value); + this.OnPropertyChanged("system_user_email_templates"); + } + } + + /// + /// 1:N system_user_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_incidents")] + public System.Collections.Generic.IEnumerable system_user_incidents + { + get + { + return this.GetRelatedEntities("system_user_incidents", null); + } + set + { + this.OnPropertyChanging("system_user_incidents"); + this.SetRelatedEntities("system_user_incidents", null, value); + this.OnPropertyChanged("system_user_incidents"); + } + } + + /// + /// 1:N system_user_invoicedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoicedetail")] + public System.Collections.Generic.IEnumerable system_user_invoicedetail + { + get + { + return this.GetRelatedEntities("system_user_invoicedetail", null); + } + set + { + this.OnPropertyChanging("system_user_invoicedetail"); + this.SetRelatedEntities("system_user_invoicedetail", null, value); + this.OnPropertyChanged("system_user_invoicedetail"); + } + } + + /// + /// 1:N system_user_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_invoices")] + public System.Collections.Generic.IEnumerable system_user_invoices + { + get + { + return this.GetRelatedEntities("system_user_invoices", null); + } + set + { + this.OnPropertyChanging("system_user_invoices"); + this.SetRelatedEntities("system_user_invoices", null, value); + this.OnPropertyChanged("system_user_invoices"); + } + } + + /// + /// 1:N system_user_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_orders")] + public System.Collections.Generic.IEnumerable system_user_orders + { + get + { + return this.GetRelatedEntities("system_user_orders", null); + } + set + { + this.OnPropertyChanging("system_user_orders"); + this.SetRelatedEntities("system_user_orders", null, value); + this.OnPropertyChanged("system_user_orders"); + } + } + + /// + /// 1:N system_user_quotedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotedetail")] + public System.Collections.Generic.IEnumerable system_user_quotedetail + { + get + { + return this.GetRelatedEntities("system_user_quotedetail", null); + } + set + { + this.OnPropertyChanging("system_user_quotedetail"); + this.SetRelatedEntities("system_user_quotedetail", null, value); + this.OnPropertyChanged("system_user_quotedetail"); + } + } + + /// + /// 1:N system_user_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_quotes")] + public System.Collections.Generic.IEnumerable system_user_quotes + { + get + { + return this.GetRelatedEntities("system_user_quotes", null); + } + set + { + this.OnPropertyChanging("system_user_quotes"); + this.SetRelatedEntities("system_user_quotes", null, value); + this.OnPropertyChanged("system_user_quotes"); + } + } + + /// + /// 1:N system_user_sales_literature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_sales_literature")] + public System.Collections.Generic.IEnumerable system_user_sales_literature + { + get + { + return this.GetRelatedEntities("system_user_sales_literature", null); + } + set + { + this.OnPropertyChanging("system_user_sales_literature"); + this.SetRelatedEntities("system_user_sales_literature", null, value); + this.OnPropertyChanged("system_user_sales_literature"); + } + } + + /// + /// 1:N system_user_salesorderdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_salesorderdetail")] + public System.Collections.Generic.IEnumerable system_user_salesorderdetail + { + get + { + return this.GetRelatedEntities("system_user_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("system_user_salesorderdetail"); + this.SetRelatedEntities("system_user_salesorderdetail", null, value); + this.OnPropertyChanged("system_user_salesorderdetail"); + } + } + + /// + /// 1:N system_user_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_appointments")] + public System.Collections.Generic.IEnumerable system_user_service_appointments + { + get + { + return this.GetRelatedEntities("system_user_service_appointments", null); + } + set + { + this.OnPropertyChanging("system_user_service_appointments"); + this.SetRelatedEntities("system_user_service_appointments", null, value); + this.OnPropertyChanged("system_user_service_appointments"); + } + } + + /// + /// 1:N system_user_service_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_service_contracts")] + public System.Collections.Generic.IEnumerable system_user_service_contracts + { + get + { + return this.GetRelatedEntities("system_user_service_contracts", null); + } + set + { + this.OnPropertyChanging("system_user_service_contracts"); + this.SetRelatedEntities("system_user_service_contracts", null, value); + this.OnPropertyChanged("system_user_service_contracts"); + } + } + + /// + /// 1:N system_user_territories + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_territories")] + public System.Collections.Generic.IEnumerable system_user_territories + { + get + { + return this.GetRelatedEntities("system_user_territories", null); + } + set + { + this.OnPropertyChanging("system_user_territories"); + this.SetRelatedEntities("system_user_territories", null, value); + this.OnPropertyChanged("system_user_territories"); + } + } + + /// + /// 1:N system_user_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_workflow")] + public System.Collections.Generic.IEnumerable system_user_workflow + { + get + { + return this.GetRelatedEntities("system_user_workflow", null); + } + set + { + this.OnPropertyChanging("system_user_workflow"); + this.SetRelatedEntities("system_user_workflow", null, value); + this.OnPropertyChanged("system_user_workflow"); + } + } + + /// + /// 1:N SystemUser_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_AsyncOperations")] + public System.Collections.Generic.IEnumerable SystemUser_AsyncOperations + { + get + { + return this.GetRelatedEntities("SystemUser_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemUser_AsyncOperations"); + this.SetRelatedEntities("SystemUser_AsyncOperations", null, value); + this.OnPropertyChanged("SystemUser_AsyncOperations"); + } + } + + /// + /// 1:N SystemUser_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable SystemUser_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("SystemUser_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("SystemUser_BulkDeleteFailures"); + this.SetRelatedEntities("SystemUser_BulkDeleteFailures", null, value); + this.OnPropertyChanged("SystemUser_BulkDeleteFailures"); + } + } + + /// + /// 1:N SystemUser_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Campaigns")] + public System.Collections.Generic.IEnumerable SystemUser_Campaigns + { + get + { + return this.GetRelatedEntities("SystemUser_Campaigns", null); + } + set + { + this.OnPropertyChanging("SystemUser_Campaigns"); + this.SetRelatedEntities("SystemUser_Campaigns", null, value); + this.OnPropertyChanged("SystemUser_Campaigns"); + } + } + + /// + /// 1:N systemuser_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections1")] + public System.Collections.Generic.IEnumerable systemuser_connections1 + { + get + { + return this.GetRelatedEntities("systemuser_connections1", null); + } + set + { + this.OnPropertyChanging("systemuser_connections1"); + this.SetRelatedEntities("systemuser_connections1", null, value); + this.OnPropertyChanged("systemuser_connections1"); + } + } + + /// + /// 1:N systemuser_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_connections2")] + public System.Collections.Generic.IEnumerable systemuser_connections2 + { + get + { + return this.GetRelatedEntities("systemuser_connections2", null); + } + set + { + this.OnPropertyChanging("systemuser_connections2"); + this.SetRelatedEntities("systemuser_connections2", null, value); + this.OnPropertyChanged("systemuser_connections2"); + } + } + + /// + /// 1:N SystemUser_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable SystemUser_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("SystemUser_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("SystemUser_DuplicateBaseRecord"); + this.SetRelatedEntities("SystemUser_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("SystemUser_DuplicateBaseRecord"); + } + } + + /// + /// 1:N SystemUser_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable SystemUser_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("SystemUser_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("SystemUser_DuplicateMatchingRecord"); + this.SetRelatedEntities("SystemUser_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("SystemUser_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N SystemUser_DuplicateRules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateRules")] + public System.Collections.Generic.IEnumerable SystemUser_DuplicateRules + { + get + { + return this.GetRelatedEntities("SystemUser_DuplicateRules", null); + } + set + { + this.OnPropertyChanging("SystemUser_DuplicateRules"); + this.SetRelatedEntities("SystemUser_DuplicateRules", null, value); + this.OnPropertyChanged("SystemUser_DuplicateRules"); + } + } + + /// + /// 1:N SystemUser_ImportFiles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportFiles")] + public System.Collections.Generic.IEnumerable SystemUser_ImportFiles + { + get + { + return this.GetRelatedEntities("SystemUser_ImportFiles", null); + } + set + { + this.OnPropertyChanging("SystemUser_ImportFiles"); + this.SetRelatedEntities("SystemUser_ImportFiles", null, value); + this.OnPropertyChanged("SystemUser_ImportFiles"); + } + } + + /// + /// 1:N SystemUser_ImportLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportLogs")] + public System.Collections.Generic.IEnumerable SystemUser_ImportLogs + { + get + { + return this.GetRelatedEntities("SystemUser_ImportLogs", null); + } + set + { + this.OnPropertyChanging("SystemUser_ImportLogs"); + this.SetRelatedEntities("SystemUser_ImportLogs", null, value); + this.OnPropertyChanged("SystemUser_ImportLogs"); + } + } + + /// + /// 1:N SystemUser_ImportMaps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ImportMaps")] + public System.Collections.Generic.IEnumerable SystemUser_ImportMaps + { + get + { + return this.GetRelatedEntities("SystemUser_ImportMaps", null); + } + set + { + this.OnPropertyChanging("SystemUser_ImportMaps"); + this.SetRelatedEntities("SystemUser_ImportMaps", null, value); + this.OnPropertyChanged("SystemUser_ImportMaps"); + } + } + + /// + /// 1:N SystemUser_Imports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_Imports")] + public System.Collections.Generic.IEnumerable SystemUser_Imports + { + get + { + return this.GetRelatedEntities("SystemUser_Imports", null); + } + set + { + this.OnPropertyChanging("SystemUser_Imports"); + this.SetRelatedEntities("SystemUser_Imports", null, value); + this.OnPropertyChanged("SystemUser_Imports"); + } + } + + /// + /// 1:N systemuser_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_PostFollows")] + public System.Collections.Generic.IEnumerable systemuser_PostFollows + { + get + { + return this.GetRelatedEntities("systemuser_PostFollows", null); + } + set + { + this.OnPropertyChanging("systemuser_PostFollows"); + this.SetRelatedEntities("systemuser_PostFollows", null, value); + this.OnPropertyChanged("systemuser_PostFollows"); + } + } + + /// + /// 1:N systemuser_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable systemuser_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("systemuser_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess"); + this.SetRelatedEntities("systemuser_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess"); + } + } + + /// + /// 1:N systemuser_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_principalobjectattributeaccess_principalid")] + public System.Collections.Generic.IEnumerable systemuser_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntities("systemuser_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("systemuser_principalobjectattributeaccess_principalid"); + this.SetRelatedEntities("systemuser_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("systemuser_principalobjectattributeaccess_principalid"); + } + } + + /// + /// 1:N SystemUser_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_ProcessSessions")] + public System.Collections.Generic.IEnumerable SystemUser_ProcessSessions + { + get + { + return this.GetRelatedEntities("SystemUser_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("SystemUser_ProcessSessions"); + this.SetRelatedEntities("SystemUser_ProcessSessions", null, value); + this.OnPropertyChanged("SystemUser_ProcessSessions"); + } + } + + /// + /// 1:N systemuser_resources + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_resources")] + public System.Collections.Generic.IEnumerable systemuser_resources + { + get + { + return this.GetRelatedEntities("systemuser_resources", null); + } + set + { + this.OnPropertyChanging("systemuser_resources"); + this.SetRelatedEntities("systemuser_resources", null, value); + this.OnPropertyChanged("systemuser_resources"); + } + } + + /// + /// 1:N user_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_accounts")] + public System.Collections.Generic.IEnumerable user_accounts + { + get + { + return this.GetRelatedEntities("user_accounts", null); + } + set + { + this.OnPropertyChanging("user_accounts"); + this.SetRelatedEntities("user_accounts", null, value); + this.OnPropertyChanged("user_accounts"); + } + } + + /// + /// 1:N user_activity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_activity")] + public System.Collections.Generic.IEnumerable user_activity + { + get + { + return this.GetRelatedEntities("user_activity", null); + } + set + { + this.OnPropertyChanging("user_activity"); + this.SetRelatedEntities("user_activity", null, value); + this.OnPropertyChanged("user_activity"); + } + } + + /// + /// 1:N user_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_appointment")] + public System.Collections.Generic.IEnumerable user_appointment + { + get + { + return this.GetRelatedEntities("user_appointment", null); + } + set + { + this.OnPropertyChanging("user_appointment"); + this.SetRelatedEntities("user_appointment", null, value); + this.OnPropertyChanged("user_appointment"); + } + } + + /// + /// 1:N user_BulkOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_BulkOperation")] + public System.Collections.Generic.IEnumerable user_BulkOperation + { + get + { + return this.GetRelatedEntities("user_BulkOperation", null); + } + set + { + this.OnPropertyChanging("user_BulkOperation"); + this.SetRelatedEntities("user_BulkOperation", null, value); + this.OnPropertyChanged("user_BulkOperation"); + } + } + + /// + /// 1:N user_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignactivity")] + public System.Collections.Generic.IEnumerable user_campaignactivity + { + get + { + return this.GetRelatedEntities("user_campaignactivity", null); + } + set + { + this.OnPropertyChanging("user_campaignactivity"); + this.SetRelatedEntities("user_campaignactivity", null, value); + this.OnPropertyChanged("user_campaignactivity"); + } + } + + /// + /// 1:N user_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_campaignresponse")] + public System.Collections.Generic.IEnumerable user_campaignresponse + { + get + { + return this.GetRelatedEntities("user_campaignresponse", null); + } + set + { + this.OnPropertyChanging("user_campaignresponse"); + this.SetRelatedEntities("user_campaignresponse", null, value); + this.OnPropertyChanged("user_campaignresponse"); + } + } + + /// + /// 1:N user_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable user_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("user_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("user_customer_opportunity_roles"); + this.SetRelatedEntities("user_customer_opportunity_roles", null, value); + this.OnPropertyChanged("user_customer_opportunity_roles"); + } + } + + /// + /// 1:N user_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customer_relationship")] + public System.Collections.Generic.IEnumerable user_customer_relationship + { + get + { + return this.GetRelatedEntities("user_customer_relationship", null); + } + set + { + this.OnPropertyChanging("user_customer_relationship"); + this.SetRelatedEntities("user_customer_relationship", null, value); + this.OnPropertyChanged("user_customer_relationship"); + } + } + + /// + /// 1:N user_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_email")] + public System.Collections.Generic.IEnumerable user_email + { + get + { + return this.GetRelatedEntities("user_email", null); + } + set + { + this.OnPropertyChanging("user_email"); + this.SetRelatedEntities("user_email", null, value); + this.OnPropertyChanged("user_email"); + } + } + + /// + /// 1:N user_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_exchangesyncidmapping")] + public System.Collections.Generic.IEnumerable user_exchangesyncidmapping + { + get + { + return this.GetRelatedEntities("user_exchangesyncidmapping", null); + } + set + { + this.OnPropertyChanging("user_exchangesyncidmapping"); + this.SetRelatedEntities("user_exchangesyncidmapping", null, value); + this.OnPropertyChanged("user_exchangesyncidmapping"); + } + } + + /// + /// 1:N user_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_fax")] + public System.Collections.Generic.IEnumerable user_fax + { + get + { + return this.GetRelatedEntities("user_fax", null); + } + set + { + this.OnPropertyChanging("user_fax"); + this.SetRelatedEntities("user_fax", null, value); + this.OnPropertyChanged("user_fax"); + } + } + + /// + /// 1:N user_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal")] + public System.Collections.Generic.IEnumerable user_goal + { + get + { + return this.GetRelatedEntities("user_goal", null); + } + set + { + this.OnPropertyChanging("user_goal"); + this.SetRelatedEntities("user_goal", null, value); + this.OnPropertyChanged("user_goal"); + } + } + + /// + /// 1:N user_goal_goalowner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_goal_goalowner")] + public System.Collections.Generic.IEnumerable user_goal_goalowner + { + get + { + return this.GetRelatedEntities("user_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("user_goal_goalowner"); + this.SetRelatedEntities("user_goal_goalowner", null, value); + this.OnPropertyChanged("user_goal_goalowner"); + } + } + + /// + /// 1:N user_incidentresolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_incidentresolution")] + public System.Collections.Generic.IEnumerable user_incidentresolution + { + get + { + return this.GetRelatedEntities("user_incidentresolution", null); + } + set + { + this.OnPropertyChanging("user_incidentresolution"); + this.SetRelatedEntities("user_incidentresolution", null, value); + this.OnPropertyChanged("user_incidentresolution"); + } + } + + /// + /// 1:N user_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_letter")] + public System.Collections.Generic.IEnumerable user_letter + { + get + { + return this.GetRelatedEntities("user_letter", null); + } + set + { + this.OnPropertyChanging("user_letter"); + this.SetRelatedEntities("user_letter", null, value); + this.OnPropertyChanged("user_letter"); + } + } + + /// + /// 1:N user_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_list")] + public System.Collections.Generic.IEnumerable user_list + { + get + { + return this.GetRelatedEntities("user_list", null); + } + set + { + this.OnPropertyChanging("user_list"); + this.SetRelatedEntities("user_list", null, value); + this.OnPropertyChanged("user_list"); + } + } + + /// + /// 1:N user_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_mailbox")] + public System.Collections.Generic.IEnumerable user_mailbox + { + get + { + return this.GetRelatedEntities("user_mailbox", null); + } + set + { + this.OnPropertyChanging("user_mailbox"); + this.SetRelatedEntities("user_mailbox", null, value); + this.OnPropertyChanged("user_mailbox"); + } + } + + /// + /// 1:N user_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_postalbum")] + public System.Collections.Generic.IEnumerable user_msdyn_postalbum + { + get + { + return this.GetRelatedEntities("user_msdyn_postalbum", null); + } + set + { + this.OnPropertyChanging("user_msdyn_postalbum"); + this.SetRelatedEntities("user_msdyn_postalbum", null, value); + this.OnPropertyChanged("user_msdyn_postalbum"); + } + } + + /// + /// 1:N user_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable user_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("user_msdyn_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("user_msdyn_wallsavedqueryusersettings"); + this.SetRelatedEntities("user_msdyn_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("user_msdyn_wallsavedqueryusersettings"); + } + } + + /// + /// 1:N user_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_opportunityclose")] + public System.Collections.Generic.IEnumerable user_opportunityclose + { + get + { + return this.GetRelatedEntities("user_opportunityclose", null); + } + set + { + this.OnPropertyChanging("user_opportunityclose"); + this.SetRelatedEntities("user_opportunityclose", null, value); + this.OnPropertyChanged("user_opportunityclose"); + } + } + + /// + /// 1:N user_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_orderclose")] + public System.Collections.Generic.IEnumerable user_orderclose + { + get + { + return this.GetRelatedEntities("user_orderclose", null); + } + set + { + this.OnPropertyChanging("user_orderclose"); + this.SetRelatedEntities("user_orderclose", null, value); + this.OnPropertyChanged("user_orderclose"); + } + } + + /// + /// 1:N user_owner_postfollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_owner_postfollows")] + public System.Collections.Generic.IEnumerable user_owner_postfollows + { + get + { + return this.GetRelatedEntities("user_owner_postfollows", null); + } + set + { + this.OnPropertyChanging("user_owner_postfollows"); + this.SetRelatedEntities("user_owner_postfollows", null, value); + this.OnPropertyChanged("user_owner_postfollows"); + } + } + + /// + /// 1:N user_parent_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referenceduser_parent_user + { + get + { + return this.GetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referenceduser_parent_user"); + this.SetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referenceduser_parent_user"); + } + } + + /// + /// 1:N user_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_phonecall")] + public System.Collections.Generic.IEnumerable user_phonecall + { + get + { + return this.GetRelatedEntities("user_phonecall", null); + } + set + { + this.OnPropertyChanging("user_phonecall"); + this.SetRelatedEntities("user_phonecall", null, value); + this.OnPropertyChanged("user_phonecall"); + } + } + + /// + /// 1:N user_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_quoteclose")] + public System.Collections.Generic.IEnumerable user_quoteclose + { + get + { + return this.GetRelatedEntities("user_quoteclose", null); + } + set + { + this.OnPropertyChanging("user_quoteclose"); + this.SetRelatedEntities("user_quoteclose", null, value); + this.OnPropertyChanged("user_quoteclose"); + } + } + + /// + /// 1:N user_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable user_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("user_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("user_recurringappointmentmaster"); + this.SetRelatedEntities("user_recurringappointmentmaster", null, value); + this.OnPropertyChanged("user_recurringappointmentmaster"); + } + } + + /// + /// 1:N user_settings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_settings")] + public System.Collections.Generic.IEnumerable user_settings + { + get + { + return this.GetRelatedEntities("user_settings", null); + } + set + { + this.OnPropertyChanging("user_settings"); + this.SetRelatedEntities("user_settings", null, value); + this.OnPropertyChanged("user_settings"); + } + } + + /// + /// 1:N user_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable user_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("user_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("user_sharepointdocumentlocation"); + this.SetRelatedEntities("user_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("user_sharepointdocumentlocation"); + } + } + + /// + /// 1:N user_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_sharepointsite")] + public System.Collections.Generic.IEnumerable user_sharepointsite + { + get + { + return this.GetRelatedEntities("user_sharepointsite", null); + } + set + { + this.OnPropertyChanging("user_sharepointsite"); + this.SetRelatedEntities("user_sharepointsite", null, value); + this.OnPropertyChanged("user_sharepointsite"); + } + } + + /// + /// 1:N user_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_task")] + public System.Collections.Generic.IEnumerable user_task + { + get + { + return this.GetRelatedEntities("user_task", null); + } + set + { + this.OnPropertyChanging("user_task"); + this.SetRelatedEntities("user_task", null, value); + this.OnPropertyChanged("user_task"); + } + } + + /// + /// 1:N user_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userform")] + public System.Collections.Generic.IEnumerable user_userform + { + get + { + return this.GetRelatedEntities("user_userform", null); + } + set + { + this.OnPropertyChanging("user_userform"); + this.SetRelatedEntities("user_userform", null, value); + this.OnPropertyChanged("user_userform"); + } + } + + /// + /// 1:N user_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userquery")] + public System.Collections.Generic.IEnumerable user_userquery + { + get + { + return this.GetRelatedEntities("user_userquery", null); + } + set + { + this.OnPropertyChanging("user_userquery"); + this.SetRelatedEntities("user_userquery", null, value); + this.OnPropertyChanged("user_userquery"); + } + } + + /// + /// 1:N user_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable user_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("user_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("user_userqueryvisualizations"); + this.SetRelatedEntities("user_userqueryvisualizations", null, value); + this.OnPropertyChanged("user_userqueryvisualizations"); + } + } + + /// + /// 1:N userentityinstancedata_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_owning_user")] + public System.Collections.Generic.IEnumerable userentityinstancedata_owning_user + { + get + { + return this.GetRelatedEntities("userentityinstancedata_owning_user", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_owning_user"); + this.SetRelatedEntities("userentityinstancedata_owning_user", null, value); + this.OnPropertyChanged("userentityinstancedata_owning_user"); + } + } + + /// + /// 1:N userentityinstancedata_systemuser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_systemuser")] + public System.Collections.Generic.IEnumerable userentityinstancedata_systemuser + { + get + { + return this.GetRelatedEntities("userentityinstancedata_systemuser", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_systemuser"); + this.SetRelatedEntities("userentityinstancedata_systemuser", null, value); + this.OnPropertyChanged("userentityinstancedata_systemuser"); + } + } + + /// + /// 1:N userentityuisettings_owning_user + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_owning_user")] + public System.Collections.Generic.IEnumerable userentityuisettings_owning_user + { + get + { + return this.GetRelatedEntities("userentityuisettings_owning_user", null); + } + set + { + this.OnPropertyChanging("userentityuisettings_owning_user"); + this.SetRelatedEntities("userentityuisettings_owning_user", null, value); + this.OnPropertyChanged("userentityuisettings_owning_user"); + } + } + + /// + /// 1:N webresource_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_createdby")] + public System.Collections.Generic.IEnumerable webresource_createdby + { + get + { + return this.GetRelatedEntities("webresource_createdby", null); + } + set + { + this.OnPropertyChanging("webresource_createdby"); + this.SetRelatedEntities("webresource_createdby", null, value); + this.OnPropertyChanged("webresource_createdby"); + } + } + + /// + /// 1:N webresource_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_modifiedby")] + public System.Collections.Generic.IEnumerable webresource_modifiedby + { + get + { + return this.GetRelatedEntities("webresource_modifiedby", null); + } + set + { + this.OnPropertyChanging("webresource_modifiedby"); + this.SetRelatedEntities("webresource_modifiedby", null, value); + this.OnPropertyChanged("webresource_modifiedby"); + } + } + + /// + /// 1:N workflow_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdby")] + public System.Collections.Generic.IEnumerable workflow_createdby + { + get + { + return this.GetRelatedEntities("workflow_createdby", null); + } + set + { + this.OnPropertyChanging("workflow_createdby"); + this.SetRelatedEntities("workflow_createdby", null, value); + this.OnPropertyChanged("workflow_createdby"); + } + } + + /// + /// 1:N workflow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_createdonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_createdonbehalfby"); + this.SetRelatedEntities("workflow_createdonbehalfby", null, value); + this.OnPropertyChanged("workflow_createdonbehalfby"); + } + } + + /// + /// 1:N workflow_dependency_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdby")] + public System.Collections.Generic.IEnumerable workflow_dependency_createdby + { + get + { + return this.GetRelatedEntities("workflow_dependency_createdby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_createdby"); + this.SetRelatedEntities("workflow_dependency_createdby", null, value); + this.OnPropertyChanged("workflow_dependency_createdby"); + } + } + + /// + /// 1:N workflow_dependency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_dependency_createdonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_dependency_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_createdonbehalfby"); + this.SetRelatedEntities("workflow_dependency_createdonbehalfby", null, value); + this.OnPropertyChanged("workflow_dependency_createdonbehalfby"); + } + } + + /// + /// 1:N workflow_dependency_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedby")] + public System.Collections.Generic.IEnumerable workflow_dependency_modifiedby + { + get + { + return this.GetRelatedEntities("workflow_dependency_modifiedby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_modifiedby"); + this.SetRelatedEntities("workflow_dependency_modifiedby", null, value); + this.OnPropertyChanged("workflow_dependency_modifiedby"); + } + } + + /// + /// 1:N workflow_dependency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_dependency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_dependency_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_dependency_modifiedonbehalfby"); + this.SetRelatedEntities("workflow_dependency_modifiedonbehalfby", null, value); + this.OnPropertyChanged("workflow_dependency_modifiedonbehalfby"); + } + } + + /// + /// 1:N workflow_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedby")] + public System.Collections.Generic.IEnumerable workflow_modifiedby + { + get + { + return this.GetRelatedEntities("workflow_modifiedby", null); + } + set + { + this.OnPropertyChanging("workflow_modifiedby"); + this.SetRelatedEntities("workflow_modifiedby", null, value); + this.OnPropertyChanged("workflow_modifiedby"); + } + } + + /// + /// 1:N workflow_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable workflow_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("workflow_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("workflow_modifiedonbehalfby"); + this.SetRelatedEntities("workflow_modifiedonbehalfby", null, value); + this.OnPropertyChanged("workflow_modifiedonbehalfby"); + } + } + + /// + /// N:N systemuserprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserprofiles_association")] + public System.Collections.Generic.IEnumerable systemuserprofiles_association + { + get + { + return this.GetRelatedEntities("systemuserprofiles_association", null); + } + set + { + this.OnPropertyChanging("systemuserprofiles_association"); + this.SetRelatedEntities("systemuserprofiles_association", null, value); + this.OnPropertyChanged("systemuserprofiles_association"); + } + } + + /// + /// N:N systemuserroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserroles_association")] + public System.Collections.Generic.IEnumerable systemuserroles_association + { + get + { + return this.GetRelatedEntities("systemuserroles_association", null); + } + set + { + this.OnPropertyChanging("systemuserroles_association"); + this.SetRelatedEntities("systemuserroles_association", null, value); + this.OnPropertyChanged("systemuserroles_association"); + } + } + + /// + /// N:N teammembership_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] + public System.Collections.Generic.IEnumerable teammembership_association + { + get + { + return this.GetRelatedEntities("teammembership_association", null); + } + set + { + this.OnPropertyChanging("teammembership_association"); + this.SetRelatedEntities("teammembership_association", null, value); + this.OnPropertyChanged("teammembership_association"); + } + } + + /// + /// N:1 business_unit_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_system_users")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_system_users + { + get + { + return this.GetRelatedEntity("business_unit_system_users", null); + } + set + { + this.OnPropertyChanging("business_unit_system_users"); + this.SetRelatedEntity("business_unit_system_users", null, value); + this.OnPropertyChanged("business_unit_system_users"); + } + } + + /// + /// N:1 calendar_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("calendar_system_users")] + public Xrm.Framework.CI.Common.Entities.Calendar calendar_system_users + { + get + { + return this.GetRelatedEntity("calendar_system_users", null); + } + set + { + this.OnPropertyChanging("calendar_system_users"); + this.SetRelatedEntity("calendar_system_users", null, value); + this.OnPropertyChanged("calendar_system_users"); + } + } + + /// + /// N:1 lk_systemuser_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuser_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuser_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuser_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuserbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuserbase_createdby + { + get + { + return this.GetRelatedEntity("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuserbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinglk_systemuserbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 organization_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_system_users")] + public Xrm.Framework.CI.Common.Entities.Organization organization_system_users + { + get + { + return this.GetRelatedEntity("organization_system_users", null); + } + } + + /// + /// N:1 processstage_systemusers + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_systemusers")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_systemusers + { + get + { + return this.GetRelatedEntity("processstage_systemusers", null); + } + set + { + this.OnPropertyChanging("processstage_systemusers"); + this.SetRelatedEntity("processstage_systemusers", null, value); + this.OnPropertyChanged("processstage_systemusers"); + } + } + + /// + /// N:1 queue_system_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_system_user")] + public Xrm.Framework.CI.Common.Entities.Queue queue_system_user + { + get + { + return this.GetRelatedEntity("queue_system_user", null); + } + set + { + this.OnPropertyChanging("queue_system_user"); + this.SetRelatedEntity("queue_system_user", null, value); + this.OnPropertyChanged("queue_system_user"); + } + } + + /// + /// N:1 site_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("site_system_users")] + public Xrm.Framework.CI.Common.Entities.Site site_system_users + { + get + { + return this.GetRelatedEntity("site_system_users", null); + } + set + { + this.OnPropertyChanging("site_system_users"); + this.SetRelatedEntity("site_system_users", null, value); + this.OnPropertyChanged("site_system_users"); + } + } + + /// + /// N:1 systemuser_defaultmailbox_mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuser_defaultmailbox_mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox systemuser_defaultmailbox_mailbox + { + get + { + return this.GetRelatedEntity("systemuser_defaultmailbox_mailbox", null); + } + } + + /// + /// N:1 territory_system_users + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_system_users")] + public Xrm.Framework.CI.Common.Entities.Territory territory_system_users + { + get + { + return this.GetRelatedEntity("territory_system_users", null); + } + set + { + this.OnPropertyChanging("territory_system_users"); + this.SetRelatedEntity("territory_system_users", null, value); + this.OnPropertyChanged("territory_system_users"); + } + } + + /// + /// N:1 TransactionCurrency_SystemUser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SystemUser")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_SystemUser + { + get + { + return this.GetRelatedEntity("TransactionCurrency_SystemUser", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SystemUser"); + this.SetRelatedEntity("TransactionCurrency_SystemUser", null, value); + this.OnPropertyChanged("TransactionCurrency_SystemUser"); + } + } + + /// + /// N:1 user_parent_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.SystemUser Referencinguser_parent_user + { + get + { + return this.GetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinguser_parent_user"); + this.SetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinguser_parent_user"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuserlicenses")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUserLicenses : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUserLicenses() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuserlicenses"; + + public const int EntityTypeCode = 13; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licenseid")] + public System.Nullable LicenseId + { + get + { + return this.GetAttributeValue>("licenseid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// Unique identifier of the user licenses. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserlicenseid")] + public System.Nullable SystemUserLicenseId + { + get + { + return this.GetAttributeValue>("systemuserlicenseid"); + } + set + { + this.OnPropertyChanging("SystemUserLicenseId"); + this.SetAttributeValue("systemuserlicenseid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserLicenseId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserlicenseid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserLicenseId = value; + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuserprofiles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUserProfiles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUserProfiles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuserprofiles"; + + public const int EntityTypeCode = 1202; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public System.Nullable FieldSecurityProfileId + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserprofileid")] + public System.Nullable SystemUserProfileId + { + get + { + return this.GetAttributeValue>("systemuserprofileid"); + } + set + { + this.OnPropertyChanging("SystemUserProfileId"); + this.SetAttributeValue("systemuserprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserProfileId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N systemuserprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserprofiles_association")] + public System.Collections.Generic.IEnumerable systemuserprofiles_association + { + get + { + return this.GetRelatedEntities("systemuserprofiles_association", null); + } + set + { + this.OnPropertyChanging("systemuserprofiles_association"); + this.SetRelatedEntities("systemuserprofiles_association", null, value); + this.OnPropertyChanged("systemuserprofiles_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuserroles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class SystemUserRoles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public SystemUserRoles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuserroles"; + + public const int EntityTypeCode = 15; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserroleid")] + public System.Nullable SystemUserRoleId + { + get + { + return this.GetAttributeValue>("systemuserroleid"); + } + set + { + this.OnPropertyChanging("SystemUserRoleId"); + this.SetAttributeValue("systemuserroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserRoleId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N systemuserroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("systemuserroles_association")] + public System.Collections.Generic.IEnumerable systemuserroles_association + { + get + { + return this.GetRelatedEntities("systemuserroles_association", null); + } + set + { + this.OnPropertyChanging("systemuserroles_association"); + this.SetRelatedEntities("systemuserroles_association", null, value); + this.OnPropertyChanged("systemuserroles_association"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum TaskState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Generic activity representing work needed to be done. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("task")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Task : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Task() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "task"; + + public const int EntityTypeCode = 4212; + + 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 task. + /// + [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"); + } + } + + /// + /// Type the number of minutes spent on the task. The duration is used in reporting. + /// + [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"); + } + } + + /// + /// Enter the actual end date and time of the task. By default, it displays when the activity was completed or canceled. + /// + [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"); + } + } + + /// + /// Enter the actual start date and time for the task. By default, it displays when the task was created. + /// + [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"); + } + } + + /// + /// Type a category to identify the task type, such as lead gathering or customer follow up, to tie the task to a business group or function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the task. + /// + [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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information which specifies whether the task 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"); + } + } + + /// + /// 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 which specifies if the task 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"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the record owner's business unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team that owns the task. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user that owns the task. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the percentage complete value for the task to track tasks to completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("percentcomplete")] + public System.Nullable PercentComplete + { + get + { + return this.GetAttributeValue>("percentcomplete"); + } + set + { + this.OnPropertyChanging("PercentComplete"); + this.SetAttributeValue("percentcomplete", value); + this.OnPropertyChanged("PercentComplete"); + } + } + + /// + /// 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"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the object with which the task 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"); + } + } + + /// + /// Scheduled duration of the task, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Enter the expected due date and time. + /// + [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"); + } + } + + /// + /// Choose the service that is associated with this activity. + /// + [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"); + } + } + + /// + /// 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 task is open, completed, or canceled. Completed and canceled tasks are read-only and can't be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.TaskState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.TaskState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the task'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"); + } + } + + /// + /// Type a subcategory to identify the task type and relate the activity to a specific product, sales region, business group, or other function. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Type a short description about the objective or primary topic of the task. + /// + [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("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 task. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N task_activity_parties + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_activity_parties")] + public System.Collections.Generic.IEnumerable task_activity_parties + { + get + { + return this.GetRelatedEntities("task_activity_parties", null); + } + set + { + this.OnPropertyChanging("task_activity_parties"); + this.SetRelatedEntities("task_activity_parties", null, value); + this.OnPropertyChanged("task_activity_parties"); + } + } + + /// + /// 1:N Task_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_Annotation")] + public System.Collections.Generic.IEnumerable Task_Annotation + { + get + { + return this.GetRelatedEntities("Task_Annotation", null); + } + set + { + this.OnPropertyChanging("Task_Annotation"); + this.SetRelatedEntities("Task_Annotation", null, value); + this.OnPropertyChanged("Task_Annotation"); + } + } + + /// + /// 1:N Task_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_AsyncOperations")] + public System.Collections.Generic.IEnumerable Task_AsyncOperations + { + get + { + return this.GetRelatedEntities("Task_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Task_AsyncOperations"); + this.SetRelatedEntities("Task_AsyncOperations", null, value); + this.OnPropertyChanged("Task_AsyncOperations"); + } + } + + /// + /// 1:N Task_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Task_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Task_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Task_BulkDeleteFailures"); + this.SetRelatedEntities("Task_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Task_BulkDeleteFailures"); + } + } + + /// + /// 1:N task_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections1")] + public System.Collections.Generic.IEnumerable task_connections1 + { + get + { + return this.GetRelatedEntities("task_connections1", null); + } + set + { + this.OnPropertyChanging("task_connections1"); + this.SetRelatedEntities("task_connections1", null, value); + this.OnPropertyChanged("task_connections1"); + } + } + + /// + /// 1:N task_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_connections2")] + public System.Collections.Generic.IEnumerable task_connections2 + { + get + { + return this.GetRelatedEntities("task_connections2", null); + } + set + { + this.OnPropertyChanging("task_connections2"); + this.SetRelatedEntities("task_connections2", null, value); + this.OnPropertyChanged("task_connections2"); + } + } + + /// + /// 1:N Task_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Task_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Task_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Task_DuplicateBaseRecord"); + this.SetRelatedEntities("Task_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Task_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Task_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Task_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Task_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Task_DuplicateMatchingRecord"); + this.SetRelatedEntities("Task_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Task_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N task_PostFollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_PostFollows")] + public System.Collections.Generic.IEnumerable task_PostFollows + { + get + { + return this.GetRelatedEntities("task_PostFollows", null); + } + set + { + this.OnPropertyChanging("task_PostFollows"); + this.SetRelatedEntities("task_PostFollows", null, value); + this.OnPropertyChanged("task_PostFollows"); + } + } + + /// + /// 1:N task_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("task_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable task_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("task_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("task_principalobjectattributeaccess"); + this.SetRelatedEntities("task_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("task_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Task_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_ProcessSessions")] + public System.Collections.Generic.IEnumerable Task_ProcessSessions + { + get + { + return this.GetRelatedEntities("Task_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Task_ProcessSessions"); + this.SetRelatedEntities("Task_ProcessSessions", null, value); + this.OnPropertyChanged("Task_ProcessSessions"); + } + } + + /// + /// 1:N Task_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_QueueItem")] + public System.Collections.Generic.IEnumerable Task_QueueItem + { + get + { + return this.GetRelatedEntities("Task_QueueItem", null); + } + set + { + this.OnPropertyChanging("Task_QueueItem"); + this.SetRelatedEntities("Task_QueueItem", null, value); + this.OnPropertyChanged("Task_QueueItem"); + } + } + + /// + /// 1:N userentityinstancedata_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_task")] + public System.Collections.Generic.IEnumerable userentityinstancedata_task + { + get + { + return this.GetRelatedEntities("userentityinstancedata_task", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_task"); + this.SetRelatedEntities("userentityinstancedata_task", null, value); + this.OnPropertyChanged("userentityinstancedata_task"); + } + } + + /// + /// N:1 Account_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_Tasks")] + public Xrm.Framework.CI.Common.Entities.Account Account_Tasks + { + get + { + return this.GetRelatedEntity("Account_Tasks", null); + } + set + { + this.OnPropertyChanging("Account_Tasks"); + this.SetRelatedEntity("Account_Tasks", null, value); + this.OnPropertyChanged("Account_Tasks"); + } + } + + /// + /// N:1 activity_pointer_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("activity_pointer_task")] + public Xrm.Framework.CI.Common.Entities.ActivityPointer activity_pointer_task + { + get + { + return this.GetRelatedEntity("activity_pointer_task", null); + } + set + { + this.OnPropertyChanging("activity_pointer_task"); + this.SetRelatedEntity("activity_pointer_task", null, value); + this.OnPropertyChanged("activity_pointer_task"); + } + } + + /// + /// N:1 business_unit_task_activities + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_task_activities")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_task_activities + { + get + { + return this.GetRelatedEntity("business_unit_task_activities", null); + } + } + + /// + /// N:1 Campaign_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_Tasks")] + public Xrm.Framework.CI.Common.Entities.Campaign Campaign_Tasks + { + get + { + return this.GetRelatedEntity("Campaign_Tasks", null); + } + set + { + this.OnPropertyChanging("Campaign_Tasks"); + this.SetRelatedEntity("Campaign_Tasks", null, value); + this.OnPropertyChanged("Campaign_Tasks"); + } + } + + /// + /// N:1 CampaignActivity_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignActivity_Tasks")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity CampaignActivity_Tasks + { + get + { + return this.GetRelatedEntity("CampaignActivity_Tasks", null); + } + set + { + this.OnPropertyChanging("CampaignActivity_Tasks"); + this.SetRelatedEntity("CampaignActivity_Tasks", null, value); + this.OnPropertyChanged("CampaignActivity_Tasks"); + } + } + + /// + /// N:1 Contact_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_Tasks")] + public Xrm.Framework.CI.Common.Entities.Contact Contact_Tasks + { + get + { + return this.GetRelatedEntity("Contact_Tasks", null); + } + set + { + this.OnPropertyChanging("Contact_Tasks"); + this.SetRelatedEntity("Contact_Tasks", null, value); + this.OnPropertyChanged("Contact_Tasks"); + } + } + + /// + /// N:1 Contract_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_Tasks")] + public Xrm.Framework.CI.Common.Entities.Contract Contract_Tasks + { + get + { + return this.GetRelatedEntity("Contract_Tasks", null); + } + set + { + this.OnPropertyChanging("Contract_Tasks"); + this.SetRelatedEntity("Contract_Tasks", null, value); + this.OnPropertyChanged("Contract_Tasks"); + } + } + + /// + /// N:1 Incident_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_Tasks")] + public Xrm.Framework.CI.Common.Entities.Incident Incident_Tasks + { + get + { + return this.GetRelatedEntity("Incident_Tasks", null); + } + set + { + this.OnPropertyChanging("Incident_Tasks"); + this.SetRelatedEntity("Incident_Tasks", null, value); + this.OnPropertyChanged("Incident_Tasks"); + } + } + + /// + /// N:1 Invoice_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Invoice_Tasks")] + public Xrm.Framework.CI.Common.Entities.Invoice Invoice_Tasks + { + get + { + return this.GetRelatedEntity("Invoice_Tasks", null); + } + set + { + this.OnPropertyChanging("Invoice_Tasks"); + this.SetRelatedEntity("Invoice_Tasks", null, value); + this.OnPropertyChanged("Invoice_Tasks"); + } + } + + /// + /// N:1 Lead_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_Tasks")] + public Xrm.Framework.CI.Common.Entities.Lead Lead_Tasks + { + get + { + return this.GetRelatedEntity("Lead_Tasks", null); + } + set + { + this.OnPropertyChanging("Lead_Tasks"); + this.SetRelatedEntity("Lead_Tasks", null, value); + this.OnPropertyChanged("Lead_Tasks"); + } + } + + /// + /// N:1 lk_task_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_createdby + { + get + { + return this.GetRelatedEntity("lk_task_createdby", null); + } + } + + /// + /// N:1 lk_task_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_task_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_task_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_modifiedby + { + get + { + return this.GetRelatedEntity("lk_task_modifiedby", null); + } + } + + /// + /// N:1 lk_task_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_task_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_task_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_task_modifiedonbehalfby", null); + } + } + + /// + /// N:1 msdyn_postalbum_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_Tasks")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_Tasks + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_Tasks", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_Tasks"); + this.SetRelatedEntity("msdyn_postalbum_Tasks", null, value); + this.OnPropertyChanged("msdyn_postalbum_Tasks"); + } + } + + /// + /// N:1 Opportunity_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_Tasks")] + public Xrm.Framework.CI.Common.Entities.Opportunity Opportunity_Tasks + { + get + { + return this.GetRelatedEntity("Opportunity_Tasks", null); + } + set + { + this.OnPropertyChanging("Opportunity_Tasks"); + this.SetRelatedEntity("Opportunity_Tasks", null, value); + this.OnPropertyChanged("Opportunity_Tasks"); + } + } + + /// + /// N:1 processstage_tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_tasks")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_tasks + { + get + { + return this.GetRelatedEntity("processstage_tasks", null); + } + set + { + this.OnPropertyChanging("processstage_tasks"); + this.SetRelatedEntity("processstage_tasks", null, value); + this.OnPropertyChanged("processstage_tasks"); + } + } + + /// + /// N:1 Quote_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_Tasks")] + public Xrm.Framework.CI.Common.Entities.Quote Quote_Tasks + { + get + { + return this.GetRelatedEntity("Quote_Tasks", null); + } + set + { + this.OnPropertyChanging("Quote_Tasks"); + this.SetRelatedEntity("Quote_Tasks", null, value); + this.OnPropertyChanged("Quote_Tasks"); + } + } + + /// + /// N:1 SalesOrder_Tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SalesOrder_Tasks")] + public Xrm.Framework.CI.Common.Entities.SalesOrder SalesOrder_Tasks + { + get + { + return this.GetRelatedEntity("SalesOrder_Tasks", null); + } + set + { + this.OnPropertyChanging("SalesOrder_Tasks"); + this.SetRelatedEntity("SalesOrder_Tasks", null, value); + this.OnPropertyChanged("SalesOrder_Tasks"); + } + } + + /// + /// N:1 service_tasks + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("service_tasks")] + public Xrm.Framework.CI.Common.Entities.Service service_tasks + { + get + { + return this.GetRelatedEntity("service_tasks", null); + } + set + { + this.OnPropertyChanging("service_tasks"); + this.SetRelatedEntity("service_tasks", null, value); + this.OnPropertyChanged("service_tasks"); + } + } + + /// + /// N:1 team_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_task")] + public Xrm.Framework.CI.Common.Entities.Team team_task + { + get + { + return this.GetRelatedEntity("team_task", null); + } + } + + /// + /// N:1 TransactionCurrency_Task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Task")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Task + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Task", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Task"); + this.SetRelatedEntity("TransactionCurrency_Task", null, value); + this.OnPropertyChanged("TransactionCurrency_Task"); + } + } + + /// + /// N:1 user_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_task")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_task + { + get + { + return this.GetRelatedEntity("user_task", null); + } + } + } + + /// + /// Collection of system users that routinely collaborate. Teams can be used to simplify record sharing and provide team members with common access to organization data when team members belong to different Business Units. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("team")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Team : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Team() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "team"; + + public const int EntityTypeCode = 9; + + 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 primary responsible for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("administratorid")] + public Microsoft.Xrm.Sdk.EntityReference AdministratorId + { + get + { + return this.GetAttributeValue("administratorid"); + } + set + { + this.OnPropertyChanging("AdministratorId"); + this.SetAttributeValue("administratorid", value); + this.OnPropertyChanged("AdministratorId"); + } + } + + /// + /// Unique identifier of the business unit with which the team is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Unique identifier of the user who created the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the team 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 team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Exchange rate for the currency associated with the team with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Information about whether the team is a default business unit team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + } + + /// + /// Unique identifier of the user who last modified the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the team 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 team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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 ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the default queue for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Choose the record that the team relates to. + /// + [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 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"); + } + } + + /// + /// Select whether the team will be managed by the system. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemmanaged")] + public System.Nullable SystemManaged + { + get + { + return this.GetAttributeValue>("systemmanaged"); + } + } + + /// + /// Unique identifier for the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + set + { + this.OnPropertyChanging("TeamId"); + this.SetAttributeValue("teamid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamId = value; + } + } + + /// + /// Shows the team template that is associated with the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + public Microsoft.Xrm.Sdk.EntityReference TeamTemplateId + { + get + { + return this.GetAttributeValue("teamtemplateid"); + } + set + { + this.OnPropertyChanging("TeamTemplateId"); + this.SetAttributeValue("teamtemplateid", value); + this.OnPropertyChanged("TeamTemplateId"); + } + } + + /// + /// Select the team type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtype")] + public Microsoft.Xrm.Sdk.OptionSetValue TeamType + { + get + { + return this.GetAttributeValue("teamtype"); + } + set + { + this.OnPropertyChanging("TeamType"); + this.SetAttributeValue("teamtype", value); + this.OnPropertyChanged("TeamType"); + } + } + + /// + /// Unique identifier of the currency associated with the team. + /// + [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"); + } + } + + /// + /// Version number of the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Pronunciation of the full name of the team, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yominame")] + public string YomiName + { + get + { + return this.GetAttributeValue("yominame"); + } + set + { + this.OnPropertyChanging("YomiName"); + this.SetAttributeValue("yominame", value); + this.OnPropertyChanged("YomiName"); + } + } + + /// + /// 1:N ImportFile_Team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ImportFile_Team")] + public System.Collections.Generic.IEnumerable ImportFile_Team + { + get + { + return this.GetRelatedEntities("ImportFile_Team", null); + } + set + { + this.OnPropertyChanging("ImportFile_Team"); + this.SetRelatedEntities("ImportFile_Team", null, value); + this.OnPropertyChanged("ImportFile_Team"); + } + } + + /// + /// 1:N lead_owning_team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lead_owning_team")] + public System.Collections.Generic.IEnumerable lead_owning_team + { + get + { + return this.GetRelatedEntities("lead_owning_team", null); + } + set + { + this.OnPropertyChanging("lead_owning_team"); + this.SetRelatedEntities("lead_owning_team", null, value); + this.OnPropertyChanged("lead_owning_team"); + } + } + + /// + /// 1:N OwningTeam_postfollows + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("OwningTeam_postfollows")] + public System.Collections.Generic.IEnumerable OwningTeam_postfollows + { + get + { + return this.GetRelatedEntities("OwningTeam_postfollows", null); + } + set + { + this.OnPropertyChanging("OwningTeam_postfollows"); + this.SetRelatedEntities("OwningTeam_postfollows", null, value); + this.OnPropertyChanged("OwningTeam_postfollows"); + } + } + + /// + /// 1:N team_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_accounts")] + public System.Collections.Generic.IEnumerable team_accounts + { + get + { + return this.GetRelatedEntities("team_accounts", null); + } + set + { + this.OnPropertyChanging("team_accounts"); + this.SetRelatedEntities("team_accounts", null, value); + this.OnPropertyChanged("team_accounts"); + } + } + + /// + /// 1:N team_activity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_activity")] + public System.Collections.Generic.IEnumerable team_activity + { + get + { + return this.GetRelatedEntities("team_activity", null); + } + set + { + this.OnPropertyChanging("team_activity"); + this.SetRelatedEntities("team_activity", null, value); + this.OnPropertyChanged("team_activity"); + } + } + + /// + /// 1:N team_annotations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_annotations")] + public System.Collections.Generic.IEnumerable team_annotations + { + get + { + return this.GetRelatedEntities("team_annotations", null); + } + set + { + this.OnPropertyChanging("team_annotations"); + this.SetRelatedEntities("team_annotations", null, value); + this.OnPropertyChanged("team_annotations"); + } + } + + /// + /// 1:N team_appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_appointment")] + public System.Collections.Generic.IEnumerable team_appointment + { + get + { + return this.GetRelatedEntities("team_appointment", null); + } + set + { + this.OnPropertyChanging("team_appointment"); + this.SetRelatedEntities("team_appointment", null, value); + this.OnPropertyChanged("team_appointment"); + } + } + + /// + /// 1:N team_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_asyncoperation")] + public System.Collections.Generic.IEnumerable team_asyncoperation + { + get + { + return this.GetRelatedEntities("team_asyncoperation", null); + } + set + { + this.OnPropertyChanging("team_asyncoperation"); + this.SetRelatedEntities("team_asyncoperation", null, value); + this.OnPropertyChanged("team_asyncoperation"); + } + } + + /// + /// 1:N Team_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_AsyncOperations")] + public System.Collections.Generic.IEnumerable Team_AsyncOperations + { + get + { + return this.GetRelatedEntities("Team_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Team_AsyncOperations"); + this.SetRelatedEntities("Team_AsyncOperations", null, value); + this.OnPropertyChanged("Team_AsyncOperations"); + } + } + + /// + /// 1:N Team_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Team_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Team_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Team_BulkDeleteFailures"); + this.SetRelatedEntities("Team_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Team_BulkDeleteFailures"); + } + } + + /// + /// 1:N team_BulkOperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_BulkOperation")] + public System.Collections.Generic.IEnumerable team_BulkOperation + { + get + { + return this.GetRelatedEntities("team_BulkOperation", null); + } + set + { + this.OnPropertyChanging("team_BulkOperation"); + this.SetRelatedEntities("team_BulkOperation", null, value); + this.OnPropertyChanged("team_BulkOperation"); + } + } + + /// + /// 1:N team_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignactivity")] + public System.Collections.Generic.IEnumerable team_campaignactivity + { + get + { + return this.GetRelatedEntities("team_campaignactivity", null); + } + set + { + this.OnPropertyChanging("team_campaignactivity"); + this.SetRelatedEntities("team_campaignactivity", null, value); + this.OnPropertyChanged("team_campaignactivity"); + } + } + + /// + /// 1:N team_campaignresponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_campaignresponse")] + public System.Collections.Generic.IEnumerable team_campaignresponse + { + get + { + return this.GetRelatedEntities("team_campaignresponse", null); + } + set + { + this.OnPropertyChanging("team_campaignresponse"); + this.SetRelatedEntities("team_campaignresponse", null, value); + this.OnPropertyChanged("team_campaignresponse"); + } + } + + /// + /// 1:N team_Campaigns + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Campaigns")] + public System.Collections.Generic.IEnumerable team_Campaigns + { + get + { + return this.GetRelatedEntities("team_Campaigns", null); + } + set + { + this.OnPropertyChanging("team_Campaigns"); + this.SetRelatedEntities("team_Campaigns", null, value); + this.OnPropertyChanged("team_Campaigns"); + } + } + + /// + /// 1:N team_connections1 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections1")] + public System.Collections.Generic.IEnumerable team_connections1 + { + get + { + return this.GetRelatedEntities("team_connections1", null); + } + set + { + this.OnPropertyChanging("team_connections1"); + this.SetRelatedEntities("team_connections1", null, value); + this.OnPropertyChanged("team_connections1"); + } + } + + /// + /// 1:N team_connections2 + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_connections2")] + public System.Collections.Generic.IEnumerable team_connections2 + { + get + { + return this.GetRelatedEntities("team_connections2", null); + } + set + { + this.OnPropertyChanging("team_connections2"); + this.SetRelatedEntities("team_connections2", null, value); + this.OnPropertyChanged("team_connections2"); + } + } + + /// + /// 1:N team_contacts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_contacts")] + public System.Collections.Generic.IEnumerable team_contacts + { + get + { + return this.GetRelatedEntities("team_contacts", null); + } + set + { + this.OnPropertyChanging("team_contacts"); + this.SetRelatedEntities("team_contacts", null, value); + this.OnPropertyChanged("team_contacts"); + } + } + + /// + /// 1:N team_customer_opportunity_roles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_opportunity_roles")] + public System.Collections.Generic.IEnumerable team_customer_opportunity_roles + { + get + { + return this.GetRelatedEntities("team_customer_opportunity_roles", null); + } + set + { + this.OnPropertyChanging("team_customer_opportunity_roles"); + this.SetRelatedEntities("team_customer_opportunity_roles", null, value); + this.OnPropertyChanged("team_customer_opportunity_roles"); + } + } + + /// + /// 1:N team_customer_relationship + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_customer_relationship")] + public System.Collections.Generic.IEnumerable team_customer_relationship + { + get + { + return this.GetRelatedEntities("team_customer_relationship", null); + } + set + { + this.OnPropertyChanging("team_customer_relationship"); + this.SetRelatedEntities("team_customer_relationship", null, value); + this.OnPropertyChanged("team_customer_relationship"); + } + } + + /// + /// 1:N Team_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Team_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Team_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Team_DuplicateBaseRecord"); + this.SetRelatedEntities("Team_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Team_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Team_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Team_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Team_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Team_DuplicateMatchingRecord"); + this.SetRelatedEntities("Team_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Team_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N team_DuplicateRules + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_DuplicateRules")] + public System.Collections.Generic.IEnumerable team_DuplicateRules + { + get + { + return this.GetRelatedEntities("team_DuplicateRules", null); + } + set + { + this.OnPropertyChanging("team_DuplicateRules"); + this.SetRelatedEntities("team_DuplicateRules", null, value); + this.OnPropertyChanged("team_DuplicateRules"); + } + } + + /// + /// 1:N team_email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email")] + public System.Collections.Generic.IEnumerable team_email + { + get + { + return this.GetRelatedEntities("team_email", null); + } + set + { + this.OnPropertyChanging("team_email"); + this.SetRelatedEntities("team_email", null, value); + this.OnPropertyChanged("team_email"); + } + } + + /// + /// 1:N team_email_templates + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email_templates")] + public System.Collections.Generic.IEnumerable team_email_templates + { + get + { + return this.GetRelatedEntities("team_email_templates", null); + } + set + { + this.OnPropertyChanging("team_email_templates"); + this.SetRelatedEntities("team_email_templates", null, value); + this.OnPropertyChanged("team_email_templates"); + } + } + + /// + /// 1:N team_emailserverprofile + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_emailserverprofile")] + public System.Collections.Generic.IEnumerable team_emailserverprofile + { + get + { + return this.GetRelatedEntities("team_emailserverprofile", null); + } + set + { + this.OnPropertyChanging("team_emailserverprofile"); + this.SetRelatedEntities("team_emailserverprofile", null, value); + this.OnPropertyChanged("team_emailserverprofile"); + } + } + + /// + /// 1:N team_exchangesyncidmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_exchangesyncidmapping")] + public System.Collections.Generic.IEnumerable team_exchangesyncidmapping + { + get + { + return this.GetRelatedEntities("team_exchangesyncidmapping", null); + } + set + { + this.OnPropertyChanging("team_exchangesyncidmapping"); + this.SetRelatedEntities("team_exchangesyncidmapping", null, value); + this.OnPropertyChanged("team_exchangesyncidmapping"); + } + } + + /// + /// 1:N team_fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_fax")] + public System.Collections.Generic.IEnumerable team_fax + { + get + { + return this.GetRelatedEntities("team_fax", null); + } + set + { + this.OnPropertyChanging("team_fax"); + this.SetRelatedEntities("team_fax", null, value); + this.OnPropertyChanged("team_fax"); + } + } + + /// + /// 1:N team_goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal")] + public System.Collections.Generic.IEnumerable team_goal + { + get + { + return this.GetRelatedEntities("team_goal", null); + } + set + { + this.OnPropertyChanging("team_goal"); + this.SetRelatedEntities("team_goal", null, value); + this.OnPropertyChanged("team_goal"); + } + } + + /// + /// 1:N team_goal_goalowner + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goal_goalowner")] + public System.Collections.Generic.IEnumerable team_goal_goalowner + { + get + { + return this.GetRelatedEntities("team_goal_goalowner", null); + } + set + { + this.OnPropertyChanging("team_goal_goalowner"); + this.SetRelatedEntities("team_goal_goalowner", null, value); + this.OnPropertyChanged("team_goal_goalowner"); + } + } + + /// + /// 1:N team_goalrollupquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_goalrollupquery")] + public System.Collections.Generic.IEnumerable team_goalrollupquery + { + get + { + return this.GetRelatedEntities("team_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("team_goalrollupquery"); + this.SetRelatedEntities("team_goalrollupquery", null, value); + this.OnPropertyChanged("team_goalrollupquery"); + } + } + + /// + /// 1:N team_ImportFiles + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportFiles")] + public System.Collections.Generic.IEnumerable team_ImportFiles + { + get + { + return this.GetRelatedEntities("team_ImportFiles", null); + } + set + { + this.OnPropertyChanging("team_ImportFiles"); + this.SetRelatedEntities("team_ImportFiles", null, value); + this.OnPropertyChanged("team_ImportFiles"); + } + } + + /// + /// 1:N team_ImportLogs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportLogs")] + public System.Collections.Generic.IEnumerable team_ImportLogs + { + get + { + return this.GetRelatedEntities("team_ImportLogs", null); + } + set + { + this.OnPropertyChanging("team_ImportLogs"); + this.SetRelatedEntities("team_ImportLogs", null, value); + this.OnPropertyChanged("team_ImportLogs"); + } + } + + /// + /// 1:N team_ImportMaps + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_ImportMaps")] + public System.Collections.Generic.IEnumerable team_ImportMaps + { + get + { + return this.GetRelatedEntities("team_ImportMaps", null); + } + set + { + this.OnPropertyChanging("team_ImportMaps"); + this.SetRelatedEntities("team_ImportMaps", null, value); + this.OnPropertyChanged("team_ImportMaps"); + } + } + + /// + /// 1:N team_Imports + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_Imports")] + public System.Collections.Generic.IEnumerable team_Imports + { + get + { + return this.GetRelatedEntities("team_Imports", null); + } + set + { + this.OnPropertyChanging("team_Imports"); + this.SetRelatedEntities("team_Imports", null, value); + this.OnPropertyChanged("team_Imports"); + } + } + + /// + /// 1:N team_incidentresolution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidentresolution")] + public System.Collections.Generic.IEnumerable team_incidentresolution + { + get + { + return this.GetRelatedEntities("team_incidentresolution", null); + } + set + { + this.OnPropertyChanging("team_incidentresolution"); + this.SetRelatedEntities("team_incidentresolution", null, value); + this.OnPropertyChanged("team_incidentresolution"); + } + } + + /// + /// 1:N team_incidents + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_incidents")] + public System.Collections.Generic.IEnumerable team_incidents + { + get + { + return this.GetRelatedEntities("team_incidents", null); + } + set + { + this.OnPropertyChanging("team_incidents"); + this.SetRelatedEntities("team_incidents", null, value); + this.OnPropertyChanged("team_incidents"); + } + } + + /// + /// 1:N team_invoices + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_invoices")] + public System.Collections.Generic.IEnumerable team_invoices + { + get + { + return this.GetRelatedEntities("team_invoices", null); + } + set + { + this.OnPropertyChanging("team_invoices"); + this.SetRelatedEntities("team_invoices", null, value); + this.OnPropertyChanged("team_invoices"); + } + } + + /// + /// 1:N team_letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_letter")] + public System.Collections.Generic.IEnumerable team_letter + { + get + { + return this.GetRelatedEntities("team_letter", null); + } + set + { + this.OnPropertyChanging("team_letter"); + this.SetRelatedEntities("team_letter", null, value); + this.OnPropertyChanged("team_letter"); + } + } + + /// + /// 1:N team_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_list")] + public System.Collections.Generic.IEnumerable team_list + { + get + { + return this.GetRelatedEntities("team_list", null); + } + set + { + this.OnPropertyChanging("team_list"); + this.SetRelatedEntities("team_list", null, value); + this.OnPropertyChanged("team_list"); + } + } + + /// + /// 1:N team_mailbox + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_mailbox")] + public System.Collections.Generic.IEnumerable team_mailbox + { + get + { + return this.GetRelatedEntities("team_mailbox", null); + } + set + { + this.OnPropertyChanging("team_mailbox"); + this.SetRelatedEntities("team_mailbox", null, value); + this.OnPropertyChanged("team_mailbox"); + } + } + + /// + /// 1:N team_msdyn_postalbum + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_postalbum")] + public System.Collections.Generic.IEnumerable team_msdyn_postalbum + { + get + { + return this.GetRelatedEntities("team_msdyn_postalbum", null); + } + set + { + this.OnPropertyChanging("team_msdyn_postalbum"); + this.SetRelatedEntities("team_msdyn_postalbum", null, value); + this.OnPropertyChanged("team_msdyn_postalbum"); + } + } + + /// + /// 1:N team_msdyn_wallsavedqueryusersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_wallsavedqueryusersettings")] + public System.Collections.Generic.IEnumerable team_msdyn_wallsavedqueryusersettings + { + get + { + return this.GetRelatedEntities("team_msdyn_wallsavedqueryusersettings", null); + } + set + { + this.OnPropertyChanging("team_msdyn_wallsavedqueryusersettings"); + this.SetRelatedEntities("team_msdyn_wallsavedqueryusersettings", null, value); + this.OnPropertyChanged("team_msdyn_wallsavedqueryusersettings"); + } + } + + /// + /// 1:N team_opportunities + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunities")] + public System.Collections.Generic.IEnumerable team_opportunities + { + get + { + return this.GetRelatedEntities("team_opportunities", null); + } + set + { + this.OnPropertyChanging("team_opportunities"); + this.SetRelatedEntities("team_opportunities", null, value); + this.OnPropertyChanged("team_opportunities"); + } + } + + /// + /// 1:N team_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_opportunityclose")] + public System.Collections.Generic.IEnumerable team_opportunityclose + { + get + { + return this.GetRelatedEntities("team_opportunityclose", null); + } + set + { + this.OnPropertyChanging("team_opportunityclose"); + this.SetRelatedEntities("team_opportunityclose", null, value); + this.OnPropertyChanged("team_opportunityclose"); + } + } + + /// + /// 1:N team_orderclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orderclose")] + public System.Collections.Generic.IEnumerable team_orderclose + { + get + { + return this.GetRelatedEntities("team_orderclose", null); + } + set + { + this.OnPropertyChanging("team_orderclose"); + this.SetRelatedEntities("team_orderclose", null, value); + this.OnPropertyChanged("team_orderclose"); + } + } + + /// + /// 1:N team_orders + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_orders")] + public System.Collections.Generic.IEnumerable team_orders + { + get + { + return this.GetRelatedEntities("team_orders", null); + } + set + { + this.OnPropertyChanging("team_orders"); + this.SetRelatedEntities("team_orders", null, value); + this.OnPropertyChanged("team_orders"); + } + } + + /// + /// 1:N team_phonecall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_phonecall")] + public System.Collections.Generic.IEnumerable team_phonecall + { + get + { + return this.GetRelatedEntities("team_phonecall", null); + } + set + { + this.OnPropertyChanging("team_phonecall"); + this.SetRelatedEntities("team_phonecall", null, value); + this.OnPropertyChanged("team_phonecall"); + } + } + + /// + /// 1:N team_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable team_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("team_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess"); + this.SetRelatedEntities("team_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess"); + } + } + + /// + /// 1:N team_principalobjectattributeaccess_principalid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_principalobjectattributeaccess_principalid")] + public System.Collections.Generic.IEnumerable team_principalobjectattributeaccess_principalid + { + get + { + return this.GetRelatedEntities("team_principalobjectattributeaccess_principalid", null); + } + set + { + this.OnPropertyChanging("team_principalobjectattributeaccess_principalid"); + this.SetRelatedEntities("team_principalobjectattributeaccess_principalid", null, value); + this.OnPropertyChanged("team_principalobjectattributeaccess_principalid"); + } + } + + /// + /// 1:N team_processsession + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_processsession")] + public System.Collections.Generic.IEnumerable team_processsession + { + get + { + return this.GetRelatedEntities("team_processsession", null); + } + set + { + this.OnPropertyChanging("team_processsession"); + this.SetRelatedEntities("team_processsession", null, value); + this.OnPropertyChanged("team_processsession"); + } + } + + /// + /// 1:N Team_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_ProcessSessions")] + public System.Collections.Generic.IEnumerable Team_ProcessSessions + { + get + { + return this.GetRelatedEntities("Team_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Team_ProcessSessions"); + this.SetRelatedEntities("Team_ProcessSessions", null, value); + this.OnPropertyChanged("Team_ProcessSessions"); + } + } + + /// + /// 1:N team_queueitembase_workerid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_queueitembase_workerid")] + public System.Collections.Generic.IEnumerable team_queueitembase_workerid + { + get + { + return this.GetRelatedEntities("team_queueitembase_workerid", null); + } + set + { + this.OnPropertyChanging("team_queueitembase_workerid"); + this.SetRelatedEntities("team_queueitembase_workerid", null, value); + this.OnPropertyChanged("team_queueitembase_workerid"); + } + } + + /// + /// 1:N team_quoteclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quoteclose")] + public System.Collections.Generic.IEnumerable team_quoteclose + { + get + { + return this.GetRelatedEntities("team_quoteclose", null); + } + set + { + this.OnPropertyChanging("team_quoteclose"); + this.SetRelatedEntities("team_quoteclose", null, value); + this.OnPropertyChanged("team_quoteclose"); + } + } + + /// + /// 1:N team_quotes + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_quotes")] + public System.Collections.Generic.IEnumerable team_quotes + { + get + { + return this.GetRelatedEntities("team_quotes", null); + } + set + { + this.OnPropertyChanging("team_quotes"); + this.SetRelatedEntities("team_quotes", null, value); + this.OnPropertyChanged("team_quotes"); + } + } + + /// + /// 1:N team_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_recurringappointmentmaster")] + public System.Collections.Generic.IEnumerable team_recurringappointmentmaster + { + get + { + return this.GetRelatedEntities("team_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("team_recurringappointmentmaster"); + this.SetRelatedEntities("team_recurringappointmentmaster", null, value); + this.OnPropertyChanged("team_recurringappointmentmaster"); + } + } + + /// + /// 1:N team_resource_groups + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_groups")] + public System.Collections.Generic.IEnumerable team_resource_groups + { + get + { + return this.GetRelatedEntities("team_resource_groups", null); + } + set + { + this.OnPropertyChanging("team_resource_groups"); + this.SetRelatedEntities("team_resource_groups", null, value); + this.OnPropertyChanged("team_resource_groups"); + } + } + + /// + /// 1:N team_resource_specs + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_resource_specs")] + public System.Collections.Generic.IEnumerable team_resource_specs + { + get + { + return this.GetRelatedEntities("team_resource_specs", null); + } + set + { + this.OnPropertyChanging("team_resource_specs"); + this.SetRelatedEntities("team_resource_specs", null, value); + this.OnPropertyChanged("team_resource_specs"); + } + } + + /// + /// 1:N team_service_appointments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_appointments")] + public System.Collections.Generic.IEnumerable team_service_appointments + { + get + { + return this.GetRelatedEntities("team_service_appointments", null); + } + set + { + this.OnPropertyChanging("team_service_appointments"); + this.SetRelatedEntities("team_service_appointments", null, value); + this.OnPropertyChanged("team_service_appointments"); + } + } + + /// + /// 1:N team_service_contracts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_service_contracts")] + public System.Collections.Generic.IEnumerable team_service_contracts + { + get + { + return this.GetRelatedEntities("team_service_contracts", null); + } + set + { + this.OnPropertyChanging("team_service_contracts"); + this.SetRelatedEntities("team_service_contracts", null, value); + this.OnPropertyChanged("team_service_contracts"); + } + } + + /// + /// 1:N team_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointdocumentlocation")] + public System.Collections.Generic.IEnumerable team_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntities("team_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("team_sharepointdocumentlocation"); + this.SetRelatedEntities("team_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("team_sharepointdocumentlocation"); + } + } + + /// + /// 1:N team_sharepointsite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_sharepointsite")] + public System.Collections.Generic.IEnumerable team_sharepointsite + { + get + { + return this.GetRelatedEntities("team_sharepointsite", null); + } + set + { + this.OnPropertyChanging("team_sharepointsite"); + this.SetRelatedEntities("team_sharepointsite", null, value); + this.OnPropertyChanged("team_sharepointsite"); + } + } + + /// + /// 1:N team_task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_task")] + public System.Collections.Generic.IEnumerable team_task + { + get + { + return this.GetRelatedEntities("team_task", null); + } + set + { + this.OnPropertyChanging("team_task"); + this.SetRelatedEntities("team_task", null, value); + this.OnPropertyChanged("team_task"); + } + } + + /// + /// 1:N team_userentityinstancedata + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityinstancedata")] + public System.Collections.Generic.IEnumerable team_userentityinstancedata + { + get + { + return this.GetRelatedEntities("team_userentityinstancedata", null); + } + set + { + this.OnPropertyChanging("team_userentityinstancedata"); + this.SetRelatedEntities("team_userentityinstancedata", null, value); + this.OnPropertyChanged("team_userentityinstancedata"); + } + } + + /// + /// 1:N team_userentityuisettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityuisettings")] + public System.Collections.Generic.IEnumerable team_userentityuisettings + { + get + { + return this.GetRelatedEntities("team_userentityuisettings", null); + } + set + { + this.OnPropertyChanging("team_userentityuisettings"); + this.SetRelatedEntities("team_userentityuisettings", null, value); + this.OnPropertyChanged("team_userentityuisettings"); + } + } + + /// + /// 1:N team_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userform")] + public System.Collections.Generic.IEnumerable team_userform + { + get + { + return this.GetRelatedEntities("team_userform", null); + } + set + { + this.OnPropertyChanging("team_userform"); + this.SetRelatedEntities("team_userform", null, value); + this.OnPropertyChanged("team_userform"); + } + } + + /// + /// 1:N team_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userquery")] + public System.Collections.Generic.IEnumerable team_userquery + { + get + { + return this.GetRelatedEntities("team_userquery", null); + } + set + { + this.OnPropertyChanging("team_userquery"); + this.SetRelatedEntities("team_userquery", null, value); + this.OnPropertyChanged("team_userquery"); + } + } + + /// + /// 1:N team_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable team_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("team_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("team_userqueryvisualizations"); + this.SetRelatedEntities("team_userqueryvisualizations", null, value); + this.OnPropertyChanged("team_userqueryvisualizations"); + } + } + + /// + /// 1:N team_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflow")] + public System.Collections.Generic.IEnumerable team_workflow + { + get + { + return this.GetRelatedEntities("team_workflow", null); + } + set + { + this.OnPropertyChanging("team_workflow"); + this.SetRelatedEntities("team_workflow", null, value); + this.OnPropertyChanged("team_workflow"); + } + } + + /// + /// 1:N team_workflowlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflowlog")] + public System.Collections.Generic.IEnumerable team_workflowlog + { + get + { + return this.GetRelatedEntities("team_workflowlog", null); + } + set + { + this.OnPropertyChanging("team_workflowlog"); + this.SetRelatedEntities("team_workflowlog", null, value); + this.OnPropertyChanged("team_workflowlog"); + } + } + + /// + /// 1:N userentityinstancedata_team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_team")] + public System.Collections.Generic.IEnumerable userentityinstancedata_team + { + get + { + return this.GetRelatedEntities("userentityinstancedata_team", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_team"); + this.SetRelatedEntities("userentityinstancedata_team", null, value); + this.OnPropertyChanged("userentityinstancedata_team"); + } + } + + /// + /// N:N teammembership_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] + public System.Collections.Generic.IEnumerable teammembership_association + { + get + { + return this.GetRelatedEntities("teammembership_association", null); + } + set + { + this.OnPropertyChanging("teammembership_association"); + this.SetRelatedEntities("teammembership_association", null, value); + this.OnPropertyChanged("teammembership_association"); + } + } + + /// + /// N:N teamprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamprofiles_association")] + public System.Collections.Generic.IEnumerable teamprofiles_association + { + get + { + return this.GetRelatedEntities("teamprofiles_association", null); + } + set + { + this.OnPropertyChanging("teamprofiles_association"); + this.SetRelatedEntities("teamprofiles_association", null, value); + this.OnPropertyChanged("teamprofiles_association"); + } + } + + /// + /// N:N teamroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamroles_association")] + public System.Collections.Generic.IEnumerable teamroles_association + { + get + { + return this.GetRelatedEntities("teamroles_association", null); + } + set + { + this.OnPropertyChanging("teamroles_association"); + this.SetRelatedEntities("teamroles_association", null, value); + this.OnPropertyChanged("teamroles_association"); + } + } + + /// + /// N:1 business_unit_teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_teams")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_teams + { + get + { + return this.GetRelatedEntity("business_unit_teams", null); + } + set + { + this.OnPropertyChanging("business_unit_teams"); + this.SetRelatedEntity("business_unit_teams", null, value); + this.OnPropertyChanged("business_unit_teams"); + } + } + + /// + /// N:1 lk_team_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_team_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_team_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_team_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_team_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_team_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_teambase_administratorid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("administratorid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_administratorid")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teambase_administratorid + { + get + { + return this.GetRelatedEntity("lk_teambase_administratorid", null); + } + set + { + this.OnPropertyChanging("lk_teambase_administratorid"); + this.SetRelatedEntity("lk_teambase_administratorid", null, value); + this.OnPropertyChanged("lk_teambase_administratorid"); + } + } + + /// + /// N:1 lk_teambase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teambase_createdby + { + get + { + return this.GetRelatedEntity("lk_teambase_createdby", null); + } + } + + /// + /// N:1 lk_teambase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teambase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_teambase_modifiedby", null); + } + } + + /// + /// N:1 opportunity_Teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("opportunity_Teams")] + public Xrm.Framework.CI.Common.Entities.Opportunity opportunity_Teams + { + get + { + return this.GetRelatedEntity("opportunity_Teams", null); + } + set + { + this.OnPropertyChanging("opportunity_Teams"); + this.SetRelatedEntity("opportunity_Teams", null, value); + this.OnPropertyChanged("opportunity_Teams"); + } + } + + /// + /// N:1 organization_teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_teams")] + public Xrm.Framework.CI.Common.Entities.Organization organization_teams + { + get + { + return this.GetRelatedEntity("organization_teams", null); + } + } + + /// + /// N:1 processstage_teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("processstage_teams")] + public Xrm.Framework.CI.Common.Entities.ProcessStage processstage_teams + { + get + { + return this.GetRelatedEntity("processstage_teams", null); + } + set + { + this.OnPropertyChanging("processstage_teams"); + this.SetRelatedEntity("processstage_teams", null, value); + this.OnPropertyChanged("processstage_teams"); + } + } + + /// + /// N:1 queue_team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("queue_team")] + public Xrm.Framework.CI.Common.Entities.Queue queue_team + { + get + { + return this.GetRelatedEntity("queue_team", null); + } + set + { + this.OnPropertyChanging("queue_team"); + this.SetRelatedEntity("queue_team", null, value); + this.OnPropertyChanged("queue_team"); + } + } + + /// + /// N:1 teamtemplate_Teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamtemplate_Teams")] + public Xrm.Framework.CI.Common.Entities.TeamTemplate teamtemplate_Teams + { + get + { + return this.GetRelatedEntity("teamtemplate_Teams", null); + } + set + { + this.OnPropertyChanging("teamtemplate_Teams"); + this.SetRelatedEntity("teamtemplate_Teams", null, value); + this.OnPropertyChanged("teamtemplate_Teams"); + } + } + + /// + /// N:1 TransactionCurrency_Team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Team")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Team + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Team", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Team"); + this.SetRelatedEntity("TransactionCurrency_Team", null, value); + this.OnPropertyChanged("TransactionCurrency_Team"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teammembership")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamMembership : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamMembership() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teammembership"; + + public const int EntityTypeCode = 23; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + } + + /// + /// Unique identifier of the team membership. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teammembershipid")] + public System.Nullable TeamMembershipId + { + get + { + return this.GetAttributeValue>("teammembershipid"); + } + set + { + this.OnPropertyChanging("TeamMembershipId"); + this.SetAttributeValue("teammembershipid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamMembershipId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teammembershipid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamMembershipId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_teammembership + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_teammembership")] + public System.Collections.Generic.IEnumerable userentityinstancedata_teammembership + { + get + { + return this.GetRelatedEntities("userentityinstancedata_teammembership", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_teammembership"); + this.SetRelatedEntities("userentityinstancedata_teammembership", null, value); + this.OnPropertyChanged("userentityinstancedata_teammembership"); + } + } + + /// + /// N:N teammembership_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] + public System.Collections.Generic.IEnumerable teammembership_association + { + get + { + return this.GetRelatedEntities("teammembership_association", null); + } + set + { + this.OnPropertyChanging("teammembership_association"); + this.SetRelatedEntities("teammembership_association", null, value); + this.OnPropertyChanged("teammembership_association"); + } + } + } + + /// + /// Team Profiles + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teamprofiles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamProfiles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamProfiles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teamprofiles"; + + public const int EntityTypeCode = 1203; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fieldsecurityprofileid")] + public System.Nullable FieldSecurityProfileId + { + get + { + return this.GetAttributeValue>("fieldsecurityprofileid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamprofileid")] + public System.Nullable TeamProfileId + { + get + { + return this.GetAttributeValue>("teamprofileid"); + } + set + { + this.OnPropertyChanging("TeamProfileId"); + this.SetAttributeValue("teamprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamProfileId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamprofileid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamProfileId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N teamprofiles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamprofiles_association")] + public System.Collections.Generic.IEnumerable teamprofiles_association + { + get + { + return this.GetRelatedEntities("teamprofiles_association", null); + } + set + { + this.OnPropertyChanging("teamprofiles_association"); + this.SetRelatedEntities("teamprofiles_association", null, value); + this.OnPropertyChanged("teamprofiles_association"); + } + } + } + + /// + /// + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teamroles")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamRoles : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamRoles() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teamroles"; + + public const int EntityTypeCode = 40; + + 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)); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("roleid")] + public System.Nullable RoleId + { + get + { + return this.GetAttributeValue>("roleid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] + public System.Nullable TeamId + { + get + { + return this.GetAttributeValue>("teamid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamroleid")] + public System.Nullable TeamRoleId + { + get + { + return this.GetAttributeValue>("teamroleid"); + } + set + { + this.OnPropertyChanging("TeamRoleId"); + this.SetAttributeValue("teamroleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamRoleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamroleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamRoleId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:N teamroles_association + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamroles_association")] + public System.Collections.Generic.IEnumerable teamroles_association + { + get + { + return this.GetRelatedEntities("teamroles_association", null); + } + set + { + this.OnPropertyChanging("teamroles_association"); + this.SetRelatedEntities("teamroles_association", null, value); + this.OnPropertyChanged("teamroles_association"); + } + } + } + + /// + /// Team template for an entity enabled for automatically created access teams. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("teamtemplate")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TeamTemplate : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TeamTemplate() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "teamtemplate"; + + public const int EntityTypeCode = 92; + + 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 team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the team template 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 team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default access rights mask for the access teams associated with entity instances. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultaccessrightsmask")] + public System.Nullable DefaultAccessRightsMask + { + get + { + return this.GetAttributeValue>("defaultaccessrightsmask"); + } + set + { + this.OnPropertyChanging("DefaultAccessRightsMask"); + this.SetAttributeValue("defaultaccessrightsmask", value); + this.OnPropertyChanged("DefaultAccessRightsMask"); + } + } + + /// + /// Type additional information that describes the team. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Information about whether this team template is user-defined or system-defined. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issystem")] + public System.Nullable IsSystem + { + get + { + return this.GetAttributeValue>("issystem"); + } + } + + /// + /// Unique identifier of the user who last modified the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the team template was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Object type code of entity which is enabled for access teams + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + public System.Nullable TeamTemplateId + { + get + { + return this.GetAttributeValue>("teamtemplateid"); + } + set + { + this.OnPropertyChanging("TeamTemplateId"); + this.SetAttributeValue("teamtemplateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TeamTemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TeamTemplateId = value; + } + } + + /// + /// Type the name of the team template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplatename")] + public string TeamTemplateName + { + get + { + return this.GetAttributeValue("teamtemplatename"); + } + set + { + this.OnPropertyChanging("TeamTemplateName"); + this.SetAttributeValue("teamtemplatename", value); + this.OnPropertyChanged("TeamTemplateName"); + } + } + + /// + /// 1:N teamtemplate_Teams + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teamtemplate_Teams")] + public System.Collections.Generic.IEnumerable teamtemplate_Teams + { + get + { + return this.GetRelatedEntities("teamtemplate_Teams", null); + } + set + { + this.OnPropertyChanging("teamtemplate_Teams"); + this.SetRelatedEntities("teamtemplate_Teams", null, value); + this.OnPropertyChanged("teamtemplate_Teams"); + } + } + + /// + /// N:1 lk_teamtemplate_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_createdby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_createdby", null); + } + } + + /// + /// N:1 lk_teamtemplate_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_teamtemplate_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_modifiedby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_modifiedby", null); + } + } + + /// + /// N:1 lk_teamtemplate_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teamtemplate_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_teamtemplate_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_teamtemplate_modifiedonbehalfby", null); + } + } + } + + /// + /// Template for an email message that contains the standard attributes of an email message. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("template")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Template : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Template() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "template"; + + public const int EntityTypeCode = 2010; + + 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)); + } + } + + /// + /// Body text of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("body")] + public string Body + { + get + { + return this.GetAttributeValue("body"); + } + set + { + this.OnPropertyChanging("Body"); + this.SetAttributeValue("body", value); + this.OnPropertyChanged("Body"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the email template 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 template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("generationtypecode")] + public System.Nullable GenerationTypeCode + { + get + { + return this.GetAttributeValue>("generationtypecode"); + } + set + { + this.OnPropertyChanging("GenerationTypeCode"); + this.SetAttributeValue("generationtypecode", value); + this.OnPropertyChanged("GenerationTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about whether the template is personal or is available to all users. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispersonal")] + public System.Nullable IsPersonal + { + get + { + return this.GetAttributeValue>("ispersonal"); + } + set + { + this.OnPropertyChanging("IsPersonal"); + this.SetAttributeValue("ispersonal", value); + this.OnPropertyChanged("IsPersonal"); + } + } + + /// + /// Language of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// MIME type of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mimetype")] + public string MimeType + { + get + { + return this.GetAttributeValue("mimetype"); + } + set + { + this.OnPropertyChanging("MimeType"); + this.SetAttributeValue("mimetype", value); + this.OnPropertyChanged("MimeType"); + } + } + + /// + /// Unique identifier of the user who last modified the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the email template 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 template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the template for the email 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 template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// XML data for the body of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentationxml")] + public string PresentationXml + { + get + { + return this.GetAttributeValue("presentationxml"); + } + set + { + this.OnPropertyChanging("PresentationXml"); + this.SetAttributeValue("presentationxml", value); + this.OnPropertyChanged("PresentationXml"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Subject associated with the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// XML data for the subject of the email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectpresentationxml")] + public string SubjectPresentationXml + { + get + { + return this.GetAttributeValue("subjectpresentationxml"); + } + set + { + this.OnPropertyChanging("SubjectPresentationXml"); + this.SetAttributeValue("subjectpresentationxml", value); + this.OnPropertyChanged("SubjectPresentationXml"); + } + } + + /// + /// Unique identifier of the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templateid")] + public System.Nullable TemplateId + { + get + { + return this.GetAttributeValue>("templateid"); + } + set + { + this.OnPropertyChanging("TemplateId"); + this.SetAttributeValue("templateid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TemplateId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templateid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TemplateId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templateidunique")] + public System.Nullable TemplateIdUnique + { + get + { + return this.GetAttributeValue>("templateidunique"); + } + } + + /// + /// Type of email template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatetypecode")] + public string TemplateTypeCode + { + get + { + return this.GetAttributeValue("templatetypecode"); + } + set + { + this.OnPropertyChanging("TemplateTypeCode"); + this.SetAttributeValue("templatetypecode", value); + this.OnPropertyChanged("TemplateTypeCode"); + } + } + + /// + /// Title of the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Version number of the template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N template_activity_mime_attachments + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("template_activity_mime_attachments")] + public System.Collections.Generic.IEnumerable template_activity_mime_attachments + { + get + { + return this.GetRelatedEntities("template_activity_mime_attachments", null); + } + set + { + this.OnPropertyChanging("template_activity_mime_attachments"); + this.SetRelatedEntities("template_activity_mime_attachments", null, value); + this.OnPropertyChanged("template_activity_mime_attachments"); + } + } + + /// + /// 1:N Template_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_AsyncOperations")] + public System.Collections.Generic.IEnumerable Template_AsyncOperations + { + get + { + return this.GetRelatedEntities("Template_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Template_AsyncOperations"); + this.SetRelatedEntities("Template_AsyncOperations", null, value); + this.OnPropertyChanged("Template_AsyncOperations"); + } + } + + /// + /// 1:N Template_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Template_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Template_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Template_BulkDeleteFailures"); + this.SetRelatedEntities("Template_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Template_BulkDeleteFailures"); + } + } + + /// + /// 1:N Template_Organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_Organization")] + public System.Collections.Generic.IEnumerable Template_Organization + { + get + { + return this.GetRelatedEntities("Template_Organization", null); + } + set + { + this.OnPropertyChanging("Template_Organization"); + this.SetRelatedEntities("Template_Organization", null, value); + this.OnPropertyChanged("Template_Organization"); + } + } + + /// + /// 1:N Template_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Template_ProcessSessions")] + public System.Collections.Generic.IEnumerable Template_ProcessSessions + { + get + { + return this.GetRelatedEntities("Template_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Template_ProcessSessions"); + this.SetRelatedEntities("Template_ProcessSessions", null, value); + this.OnPropertyChanged("Template_ProcessSessions"); + } + } + + /// + /// 1:N userentityinstancedata_template + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_template")] + public System.Collections.Generic.IEnumerable userentityinstancedata_template + { + get + { + return this.GetRelatedEntities("userentityinstancedata_template", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_template"); + this.SetRelatedEntities("userentityinstancedata_template", null, value); + this.OnPropertyChanged("userentityinstancedata_template"); + } + } + + /// + /// N:1 business_unit_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_templates")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_templates + { + get + { + return this.GetRelatedEntity("business_unit_templates", null); + } + } + + /// + /// N:1 lk_templatebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_createdby + { + get + { + return this.GetRelatedEntity("lk_templatebase_createdby", null); + } + } + + /// + /// N:1 lk_templatebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_templatebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_templatebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_templatebase_modifiedby", null); + } + } + + /// + /// N:1 lk_templatebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_templatebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_templatebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_templatebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 system_user_email_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_email_templates")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_email_templates + { + get + { + return this.GetRelatedEntity("system_user_email_templates", null); + } + } + + /// + /// N:1 team_email_templates + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_email_templates")] + public Xrm.Framework.CI.Common.Entities.Team team_email_templates + { + get + { + return this.GetRelatedEntity("team_email_templates", null); + } + } + } + + /// + /// Territory represents sales regions. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("territory")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Territory : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Territory() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "territory"; + + public const int EntityTypeCode = 2013; + + 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 territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the territory 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 territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the territory. + /// + [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 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the territory with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the manager of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managerid")] + public Microsoft.Xrm.Sdk.EntityReference ManagerId + { + get + { + return this.GetAttributeValue("managerid"); + } + set + { + this.OnPropertyChanging("ManagerId"); + this.SetAttributeValue("managerid", value); + this.OnPropertyChanged("ManagerId"); + } + } + + /// + /// Unique identifier of the user who last modified the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the territory 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 territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the territory. + /// + [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"); + } + } + + /// + /// Unique identifier of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public System.Nullable TerritoryId + { + get + { + return this.GetAttributeValue>("territoryid"); + } + set + { + this.OnPropertyChanging("TerritoryId"); + this.SetAttributeValue("territoryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TerritoryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TerritoryId = value; + } + } + + /// + /// Unique identifier of the currency associated with the territory. + /// + [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"); + } + } + + /// + /// Version number of the territory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N territory_accounts + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_accounts")] + public System.Collections.Generic.IEnumerable territory_accounts + { + get + { + return this.GetRelatedEntities("territory_accounts", null); + } + set + { + this.OnPropertyChanging("territory_accounts"); + this.SetRelatedEntities("territory_accounts", null, value); + this.OnPropertyChanged("territory_accounts"); + } + } + + /// + /// 1:N Territory_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_AsyncOperations")] + public System.Collections.Generic.IEnumerable Territory_AsyncOperations + { + get + { + return this.GetRelatedEntities("Territory_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("Territory_AsyncOperations"); + this.SetRelatedEntities("Territory_AsyncOperations", null, value); + this.OnPropertyChanged("Territory_AsyncOperations"); + } + } + + /// + /// 1:N Territory_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable Territory_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("Territory_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("Territory_BulkDeleteFailures"); + this.SetRelatedEntities("Territory_BulkDeleteFailures", null, value); + this.OnPropertyChanged("Territory_BulkDeleteFailures"); + } + } + + /// + /// 1:N Territory_DuplicateBaseRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateBaseRecord")] + public System.Collections.Generic.IEnumerable Territory_DuplicateBaseRecord + { + get + { + return this.GetRelatedEntities("Territory_DuplicateBaseRecord", null); + } + set + { + this.OnPropertyChanging("Territory_DuplicateBaseRecord"); + this.SetRelatedEntities("Territory_DuplicateBaseRecord", null, value); + this.OnPropertyChanged("Territory_DuplicateBaseRecord"); + } + } + + /// + /// 1:N Territory_DuplicateMatchingRecord + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateMatchingRecord")] + public System.Collections.Generic.IEnumerable Territory_DuplicateMatchingRecord + { + get + { + return this.GetRelatedEntities("Territory_DuplicateMatchingRecord", null); + } + set + { + this.OnPropertyChanging("Territory_DuplicateMatchingRecord"); + this.SetRelatedEntities("Territory_DuplicateMatchingRecord", null, value); + this.OnPropertyChanged("Territory_DuplicateMatchingRecord"); + } + } + + /// + /// 1:N territory_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_principalobjectattributeaccess")] + public System.Collections.Generic.IEnumerable territory_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntities("territory_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("territory_principalobjectattributeaccess"); + this.SetRelatedEntities("territory_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("territory_principalobjectattributeaccess"); + } + } + + /// + /// 1:N Territory_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_ProcessSessions")] + public System.Collections.Generic.IEnumerable Territory_ProcessSessions + { + get + { + return this.GetRelatedEntities("Territory_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("Territory_ProcessSessions"); + this.SetRelatedEntities("Territory_ProcessSessions", null, value); + this.OnPropertyChanged("Territory_ProcessSessions"); + } + } + + /// + /// 1:N territory_system_users + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("territory_system_users")] + public System.Collections.Generic.IEnumerable territory_system_users + { + get + { + return this.GetRelatedEntities("territory_system_users", null); + } + set + { + this.OnPropertyChanging("territory_system_users"); + this.SetRelatedEntities("territory_system_users", null, value); + this.OnPropertyChanged("territory_system_users"); + } + } + + /// + /// 1:N userentityinstancedata_territory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_territory")] + public System.Collections.Generic.IEnumerable userentityinstancedata_territory + { + get + { + return this.GetRelatedEntities("userentityinstancedata_territory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_territory"); + this.SetRelatedEntities("userentityinstancedata_territory", null, value); + this.OnPropertyChanged("userentityinstancedata_territory"); + } + } + + /// + /// N:1 lk_territory_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territory_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_territory_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_territory_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territory_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territory_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_territory_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_territorybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territorybase_createdby + { + get + { + return this.GetRelatedEntity("lk_territorybase_createdby", null); + } + } + + /// + /// N:1 lk_territorybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_territorybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_territorybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_territorybase_modifiedby", null); + } + } + + /// + /// N:1 organization_territories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_territories")] + public Xrm.Framework.CI.Common.Entities.Organization organization_territories + { + get + { + return this.GetRelatedEntity("organization_territories", null); + } + } + + /// + /// N:1 system_user_territories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managerid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_territories")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_territories + { + get + { + return this.GetRelatedEntity("system_user_territories", null); + } + set + { + this.OnPropertyChanging("system_user_territories"); + this.SetRelatedEntity("system_user_territories", null, value); + this.OnPropertyChanged("system_user_territories"); + } + } + + /// + /// N:1 TransactionCurrency_Territory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Territory")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency TransactionCurrency_Territory + { + get + { + return this.GetRelatedEntity("TransactionCurrency_Territory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Territory"); + this.SetRelatedEntity("TransactionCurrency_Territory", null, value); + this.OnPropertyChanged("TransactionCurrency_Territory"); + } + } + } + + /// + /// Time zone definition, including name and time zone code. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("timezonedefinition")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TimeZoneDefinition : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TimeZoneDefinition() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "timezonedefinition"; + + public const int EntityTypeCode = 4810; + + 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)); + } + } + + /// + /// Base time bias of the time zone. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bias")] + public System.Nullable Bias + { + get + { + return this.GetAttributeValue>("bias"); + } + set + { + this.OnPropertyChanging("Bias"); + this.SetAttributeValue("bias", value); + this.OnPropertyChanged("Bias"); + } + } + + /// + /// Unique identifier of the user who created the time zone record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the time zone 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 timezonedefinition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Time zone name for the daylight time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightname")] + public string DaylightName + { + get + { + return this.GetAttributeValue("daylightname"); + } + set + { + this.OnPropertyChanging("DaylightName"); + this.SetAttributeValue("daylightname", value); + this.OnPropertyChanged("DaylightName"); + } + } + + /// + /// Unique identifier of the user who last modified the time zone record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the time zone 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 timezonedefinition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the time zone definition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Order an entry for a time zone definition is retired. 0 for the latest entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retiredorder")] + public System.Nullable RetiredOrder + { + get + { + return this.GetAttributeValue>("retiredorder"); + } + set + { + this.OnPropertyChanging("RetiredOrder"); + this.SetAttributeValue("retiredorder", value); + this.OnPropertyChanged("RetiredOrder"); + } + } + + /// + /// Time zone name for the standard time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardname")] + public string StandardName + { + get + { + return this.GetAttributeValue("standardname"); + } + set + { + this.OnPropertyChanging("StandardName"); + this.SetAttributeValue("standardname", value); + this.OnPropertyChanged("StandardName"); + } + } + + /// + /// Time zone identification code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// Unique identifier of the time zone record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public System.Nullable TimeZoneDefinitionId + { + get + { + return this.GetAttributeValue>("timezonedefinitionid"); + } + set + { + this.OnPropertyChanging("TimeZoneDefinitionId"); + this.SetAttributeValue("timezonedefinitionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TimeZoneDefinitionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TimeZoneDefinitionId = value; + } + } + + /// + /// Display name for the time zone in the Microsoft Windows registry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userinterfacename")] + public string UserInterfaceName + { + get + { + return this.GetAttributeValue("userinterfacename"); + } + set + { + this.OnPropertyChanging("UserInterfaceName"); + this.SetAttributeValue("userinterfacename", value); + this.OnPropertyChanged("UserInterfaceName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N lk_timezonelocalizedname_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_timezonedefinitionid")] + public System.Collections.Generic.IEnumerable lk_timezonelocalizedname_timezonedefinitionid + { + get + { + return this.GetRelatedEntities("lk_timezonelocalizedname_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_timezonedefinitionid"); + this.SetRelatedEntities("lk_timezonelocalizedname_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_timezonedefinitionid"); + } + } + + /// + /// 1:N lk_timezonerule_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_timezonedefinitionid")] + public System.Collections.Generic.IEnumerable lk_timezonerule_timezonedefinitionid + { + get + { + return this.GetRelatedEntities("lk_timezonerule_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_timezonedefinitionid"); + this.SetRelatedEntities("lk_timezonerule_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonerule_timezonedefinitionid"); + } + } + + /// + /// 1:N userentityinstancedata_timezonedefinition + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonedefinition")] + public System.Collections.Generic.IEnumerable userentityinstancedata_timezonedefinition + { + get + { + return this.GetRelatedEntities("userentityinstancedata_timezonedefinition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonedefinition"); + this.SetRelatedEntities("userentityinstancedata_timezonedefinition", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonedefinition"); + } + } + + /// + /// N:1 lk_timezonedefinition_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_createdby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_createdby", null); + } + } + + /// + /// N:1 lk_timezonedefinition_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonedefinition_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_modifiedby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_modifiedby", null); + } + } + + /// + /// N:1 lk_timezonedefinition_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonedefinition_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonedefinition_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonedefinition_modifiedonbehalfby", null); + } + } + } + + /// + /// Localized name of the time zone. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("timezonelocalizedname")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TimeZoneLocalizedName : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TimeZoneLocalizedName() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "timezonelocalizedname"; + + public const int EntityTypeCode = 4812; + + 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 timezonelocalizedname. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the culture that the UI names are encoded in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cultureid")] + public System.Nullable CultureId + { + get + { + return this.GetAttributeValue>("cultureid"); + } + set + { + this.OnPropertyChanging("CultureId"); + this.SetAttributeValue("cultureid", value); + this.OnPropertyChanged("CultureId"); + } + } + + /// + /// Name of the time zone for the daylight time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightname")] + public string DaylightName + { + get + { + return this.GetAttributeValue("daylightname"); + } + set + { + this.OnPropertyChanging("DaylightName"); + this.SetAttributeValue("daylightname", value); + this.OnPropertyChanged("DaylightName"); + } + } + + /// + /// Unique identifier of the user who last modified the time zone localized name. + /// + [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 last modified the timezonelocalizedname. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the time zone localized name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Name of the time zone for the standard time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardname")] + public string StandardName + { + get + { + return this.GetAttributeValue("standardname"); + } + set + { + this.OnPropertyChanging("StandardName"); + this.SetAttributeValue("standardname", value); + this.OnPropertyChanged("StandardName"); + } + } + + /// + /// Unique identifier of time zone definition entity instances. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public Microsoft.Xrm.Sdk.EntityReference TimeZoneDefinitionId + { + get + { + return this.GetAttributeValue("timezonedefinitionid"); + } + set + { + this.OnPropertyChanging("TimeZoneDefinitionId"); + this.SetAttributeValue("timezonedefinitionid", value); + this.OnPropertyChanged("TimeZoneDefinitionId"); + } + } + + /// + /// Unique identifier of entity instances. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonelocalizednameid")] + public System.Nullable TimeZoneLocalizedNameId + { + get + { + return this.GetAttributeValue>("timezonelocalizednameid"); + } + set + { + this.OnPropertyChanging("TimeZoneLocalizedNameId"); + this.SetAttributeValue("timezonelocalizednameid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TimeZoneLocalizedNameId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonelocalizednameid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TimeZoneLocalizedNameId = value; + } + } + + /// + /// Unique display name for the time zone in the Microsoft Windows registry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userinterfacename")] + public string UserInterfaceName + { + get + { + return this.GetAttributeValue("userinterfacename"); + } + set + { + this.OnPropertyChanging("UserInterfaceName"); + this.SetAttributeValue("userinterfacename", value); + this.OnPropertyChanged("UserInterfaceName"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_timezonelocalizedname + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonelocalizedname")] + public System.Collections.Generic.IEnumerable userentityinstancedata_timezonelocalizedname + { + get + { + return this.GetRelatedEntities("userentityinstancedata_timezonelocalizedname", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonelocalizedname"); + this.SetRelatedEntities("userentityinstancedata_timezonelocalizedname", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonelocalizedname"); + } + } + + /// + /// N:1 lk_timezonelocalizedname_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_createdby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_createdby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_modifiedby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_modifiedby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonelocalizedname_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonelocalizedname_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonelocalizedname_timezonedefinitionid")] + public Xrm.Framework.CI.Common.Entities.TimeZoneDefinition lk_timezonelocalizedname_timezonedefinitionid + { + get + { + return this.GetRelatedEntity("lk_timezonelocalizedname_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonelocalizedname_timezonedefinitionid"); + this.SetRelatedEntity("lk_timezonelocalizedname_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonelocalizedname_timezonedefinitionid"); + } + } + } + + /// + /// Definition for time conversion between local time and Coordinated Universal Time (UTC) for a particular time zone at a particular time period. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("timezonerule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TimeZoneRule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TimeZoneRule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "timezonerule"; + + public const int EntityTypeCode = 4811; + + 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)); + } + } + + /// + /// Base time bias of the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bias")] + public System.Nullable Bias + { + get + { + return this.GetAttributeValue>("bias"); + } + set + { + this.OnPropertyChanging("Bias"); + this.SetAttributeValue("bias", value); + this.OnPropertyChanged("Bias"); + } + } + + /// + /// Unique identifier of the user who created the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the time zone rule 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 timezonerule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Time bias in addition to the base bias for daylight savings time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightbias")] + public System.Nullable DaylightBias + { + get + { + return this.GetAttributeValue>("daylightbias"); + } + set + { + this.OnPropertyChanging("DaylightBias"); + this.SetAttributeValue("daylightbias", value); + this.OnPropertyChanged("DaylightBias"); + } + } + + /// + /// Day of the month when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightday")] + public System.Nullable DaylightDay + { + get + { + return this.GetAttributeValue>("daylightday"); + } + set + { + this.OnPropertyChanging("DaylightDay"); + this.SetAttributeValue("daylightday", value); + this.OnPropertyChanged("DaylightDay"); + } + } + + /// + /// Day of the week when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightdayofweek")] + public System.Nullable DaylightDayOfWeek + { + get + { + return this.GetAttributeValue>("daylightdayofweek"); + } + set + { + this.OnPropertyChanging("DaylightDayOfWeek"); + this.SetAttributeValue("daylightdayofweek", value); + this.OnPropertyChanged("DaylightDayOfWeek"); + } + } + + /// + /// Hour of the day when daylight savings time starts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylighthour")] + public System.Nullable DaylightHour + { + get + { + return this.GetAttributeValue>("daylighthour"); + } + set + { + this.OnPropertyChanging("DaylightHour"); + this.SetAttributeValue("daylighthour", value); + this.OnPropertyChanged("DaylightHour"); + } + } + + /// + /// Minute of the hour when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightminute")] + public System.Nullable DaylightMinute + { + get + { + return this.GetAttributeValue>("daylightminute"); + } + set + { + this.OnPropertyChanging("DaylightMinute"); + this.SetAttributeValue("daylightminute", value); + this.OnPropertyChanged("DaylightMinute"); + } + } + + /// + /// Month when daylight savings time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightmonth")] + public System.Nullable DaylightMonth + { + get + { + return this.GetAttributeValue>("daylightmonth"); + } + set + { + this.OnPropertyChanging("DaylightMonth"); + this.SetAttributeValue("daylightmonth", value); + this.OnPropertyChanged("DaylightMonth"); + } + } + + /// + /// Second of the minute when daylight savings time starts + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightsecond")] + public System.Nullable DaylightSecond + { + get + { + return this.GetAttributeValue>("daylightsecond"); + } + set + { + this.OnPropertyChanging("DaylightSecond"); + this.SetAttributeValue("daylightsecond", value); + this.OnPropertyChanged("DaylightSecond"); + } + } + + /// + /// Year when daylight savings times starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("daylightyear")] + public System.Nullable DaylightYear + { + get + { + return this.GetAttributeValue>("daylightyear"); + } + set + { + this.OnPropertyChanging("DaylightYear"); + this.SetAttributeValue("daylightyear", value); + this.OnPropertyChanged("DaylightYear"); + } + } + + /// + /// Time that this rule takes effect, in local time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivedatetime")] + public System.Nullable EffectiveDateTime + { + get + { + return this.GetAttributeValue>("effectivedatetime"); + } + set + { + this.OnPropertyChanging("EffectiveDateTime"); + this.SetAttributeValue("effectivedatetime", value); + this.OnPropertyChanged("EffectiveDateTime"); + } + } + + /// + /// Unique identifier of the user who last modified the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the time zone rule 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 timezonerule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Time bias in addition to the base bias for standard time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardbias")] + public System.Nullable StandardBias + { + get + { + return this.GetAttributeValue>("standardbias"); + } + set + { + this.OnPropertyChanging("StandardBias"); + this.SetAttributeValue("standardbias", value); + this.OnPropertyChanged("StandardBias"); + } + } + + /// + /// Day of the month when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardday")] + public System.Nullable StandardDay + { + get + { + return this.GetAttributeValue>("standardday"); + } + set + { + this.OnPropertyChanging("StandardDay"); + this.SetAttributeValue("standardday", value); + this.OnPropertyChanged("StandardDay"); + } + } + + /// + /// Day of the week when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standarddayofweek")] + public System.Nullable StandardDayOfWeek + { + get + { + return this.GetAttributeValue>("standarddayofweek"); + } + set + { + this.OnPropertyChanging("StandardDayOfWeek"); + this.SetAttributeValue("standarddayofweek", value); + this.OnPropertyChanged("StandardDayOfWeek"); + } + } + + /// + /// Hour of the day when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardhour")] + public System.Nullable StandardHour + { + get + { + return this.GetAttributeValue>("standardhour"); + } + set + { + this.OnPropertyChanging("StandardHour"); + this.SetAttributeValue("standardhour", value); + this.OnPropertyChanged("StandardHour"); + } + } + + /// + /// Minute of the hour when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardminute")] + public System.Nullable StandardMinute + { + get + { + return this.GetAttributeValue>("standardminute"); + } + set + { + this.OnPropertyChanging("StandardMinute"); + this.SetAttributeValue("standardminute", value); + this.OnPropertyChanged("StandardMinute"); + } + } + + /// + /// Month when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardmonth")] + public System.Nullable StandardMonth + { + get + { + return this.GetAttributeValue>("standardmonth"); + } + set + { + this.OnPropertyChanging("StandardMonth"); + this.SetAttributeValue("standardmonth", value); + this.OnPropertyChanged("StandardMonth"); + } + } + + /// + /// Second of the Minute when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardsecond")] + public System.Nullable StandardSecond + { + get + { + return this.GetAttributeValue>("standardsecond"); + } + set + { + this.OnPropertyChanging("StandardSecond"); + this.SetAttributeValue("standardsecond", value); + this.OnPropertyChanged("StandardSecond"); + } + } + + /// + /// Year when standard time starts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardyear")] + public System.Nullable StandardYear + { + get + { + return this.GetAttributeValue>("standardyear"); + } + set + { + this.OnPropertyChanging("StandardYear"); + this.SetAttributeValue("standardyear", value); + this.OnPropertyChanged("StandardYear"); + } + } + + /// + /// Unique identifier of the time zone definition. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + public Microsoft.Xrm.Sdk.EntityReference TimeZoneDefinitionId + { + get + { + return this.GetAttributeValue("timezonedefinitionid"); + } + set + { + this.OnPropertyChanging("TimeZoneDefinitionId"); + this.SetAttributeValue("timezonedefinitionid", value); + this.OnPropertyChanged("TimeZoneDefinitionId"); + } + } + + /// + /// Unique identifier of the time zone rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleid")] + public System.Nullable TimeZoneRuleId + { + get + { + return this.GetAttributeValue>("timezoneruleid"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleId"); + this.SetAttributeValue("timezoneruleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TimeZoneRuleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TimeZoneRuleId = value; + } + } + + /// + /// 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"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_timezonerule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonerule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_timezonerule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_timezonerule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonerule"); + this.SetRelatedEntities("userentityinstancedata_timezonerule", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonerule"); + } + } + + /// + /// N:1 lk_timezonerule_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_createdby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_createdby", null); + } + } + + /// + /// N:1 lk_timezonerule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonerule_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_modifiedby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_modifiedby", null); + } + } + + /// + /// N:1 lk_timezonerule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_timezonerule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_timezonerule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_timezonerule_timezonedefinitionid + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedefinitionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_timezonerule_timezonedefinitionid")] + public Xrm.Framework.CI.Common.Entities.TimeZoneDefinition lk_timezonerule_timezonedefinitionid + { + get + { + return this.GetRelatedEntity("lk_timezonerule_timezonedefinitionid", null); + } + set + { + this.OnPropertyChanging("lk_timezonerule_timezonedefinitionid"); + this.SetRelatedEntity("lk_timezonerule_timezonedefinitionid", null, value); + this.OnPropertyChanged("lk_timezonerule_timezonedefinitionid"); + } + } + } + + /// + /// A trace log. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("tracelog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TraceLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TraceLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "tracelog"; + + public const int EntityTypeCode = 8050; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Indicates if this trace log can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public System.Nullable CanBeDeleted + { + get + { + return this.GetAttributeValue>("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// Indicates the collation level + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("collationlevel")] + public System.Nullable CollationLevel + { + get + { + return this.GetAttributeValue>("collationlevel"); + } + set + { + this.OnPropertyChanging("CollationLevel"); + this.SetAttributeValue("collationlevel", value); + this.OnPropertyChanged("CollationLevel"); + } + } + + /// + /// Unique identifier of the user who created the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the trace 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 trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Tells if this traceLog is created uniquely(only one) for the associated entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isunique")] + public System.Nullable IsUnique + { + get + { + return this.GetAttributeValue>("isunique"); + } + set + { + this.OnPropertyChanging("IsUnique"); + this.SetAttributeValue("isunique", value); + this.OnPropertyChanged("IsUnique"); + } + } + + /// + /// Information about the trace level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("level")] + public Microsoft.Xrm.Sdk.OptionSetValue Level + { + get + { + return this.GetAttributeValue("level"); + } + set + { + this.OnPropertyChanging("Level"); + this.SetAttributeValue("level", value); + this.OnPropertyChanged("Level"); + } + } + + /// + /// Unique identifier of the user who modified the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the trace 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 trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Indicates the parent ID of the trace log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parenttracelogid")] + public Microsoft.Xrm.Sdk.EntityReference ParentTraceLogId + { + get + { + return this.GetAttributeValue("parenttracelogid"); + } + set + { + this.OnPropertyChanging("ParentTraceLogId"); + this.SetAttributeValue("parenttracelogid", value); + this.OnPropertyChanged("ParentTraceLogId"); + } + } + + /// + /// Unique identifier of the object the trace is regarding. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the user or team who owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectownerid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwnerId + { + get + { + return this.GetAttributeValue("regardingobjectownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the regarding object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectowningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectOwningBusinessUnit + { + get + { + return this.GetAttributeValue("regardingobjectowningbusinessunit"); + } + } + + /// + /// Text of the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("text")] + public string Text + { + get + { + return this.GetAttributeValue("text"); + } + set + { + this.OnPropertyChanging("Text"); + this.SetAttributeValue("text", value); + this.OnPropertyChanged("Text"); + } + } + + /// + /// 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"); + } + } + + /// + /// XML representation of the trace actions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traceactionxml")] + public string TraceActionXml + { + get + { + return this.GetAttributeValue("traceactionxml"); + } + set + { + this.OnPropertyChanging("TraceActionXml"); + this.SetAttributeValue("traceactionxml", value); + this.OnPropertyChanged("TraceActionXml"); + } + } + + /// + /// Trace code for the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracecode")] + public System.Nullable TraceCode + { + get + { + return this.GetAttributeValue>("tracecode"); + } + set + { + this.OnPropertyChanging("TraceCode"); + this.SetAttributeValue("tracecode", value); + this.OnPropertyChanged("TraceCode"); + } + } + + /// + /// XML representation of the trace details. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracedetailxml")] + public string TraceDetailXml + { + get + { + return this.GetAttributeValue("tracedetailxml"); + } + set + { + this.OnPropertyChanging("TraceDetailXml"); + this.SetAttributeValue("tracedetailxml", value); + this.OnPropertyChanged("TraceDetailXml"); + } + } + + /// + /// Unique identifier of the trace. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracelogid")] + public System.Nullable TraceLogId + { + get + { + return this.GetAttributeValue>("tracelogid"); + } + set + { + this.OnPropertyChanging("TraceLogId"); + this.SetAttributeValue("tracelogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TraceLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tracelogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TraceLogId = value; + } + } + + /// + /// Stores the hash of the entity object associated with this tracelog. Hash is computed using the object type code and its id. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traceparameterhash")] + public System.Nullable TraceParameterHash + { + get + { + return this.GetAttributeValue>("traceparameterhash"); + } + } + + /// + /// XML representation of the trace parameters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traceparameterxml")] + public string TraceParameterXml + { + get + { + return this.GetAttributeValue("traceparameterxml"); + } + set + { + this.OnPropertyChanging("TraceParameterXml"); + this.SetAttributeValue("traceparameterxml", value); + this.OnPropertyChanged("TraceParameterXml"); + } + } + + /// + /// Time zone code that was in use when the trace 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"); + } + } + + /// + /// 1:N tracelog_parent_tracelog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedtracelog_parent_tracelog + { + get + { + return this.GetRelatedEntities("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedtracelog_parent_tracelog"); + this.SetRelatedEntities("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedtracelog_parent_tracelog"); + } + } + + /// + /// N:1 lk_tracelog_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_createdby + { + get + { + return this.GetRelatedEntity("lk_tracelog_createdby", null); + } + } + + /// + /// N:1 lk_tracelog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_tracelog_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_tracelog_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_modifiedby + { + get + { + return this.GetRelatedEntity("lk_tracelog_modifiedby", null); + } + } + + /// + /// N:1 lk_tracelog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_tracelog_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_tracelog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_tracelog_modifiedonbehalfby", null); + } + } + + /// + /// N:1 organization_tracelog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_tracelog")] + public Xrm.Framework.CI.Common.Entities.Organization organization_tracelog + { + get + { + return this.GetRelatedEntity("organization_tracelog", null); + } + } + + /// + /// N:1 tracelog_EmailServerProfile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_EmailServerProfile")] + public Xrm.Framework.CI.Common.Entities.EmailServerProfile tracelog_EmailServerProfile + { + get + { + return this.GetRelatedEntity("tracelog_EmailServerProfile", null); + } + set + { + this.OnPropertyChanging("tracelog_EmailServerProfile"); + this.SetRelatedEntity("tracelog_EmailServerProfile", null, value); + this.OnPropertyChanged("tracelog_EmailServerProfile"); + } + } + + /// + /// N:1 tracelog_Mailbox + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_Mailbox")] + public Xrm.Framework.CI.Common.Entities.Mailbox tracelog_Mailbox + { + get + { + return this.GetRelatedEntity("tracelog_Mailbox", null); + } + set + { + this.OnPropertyChanging("tracelog_Mailbox"); + this.SetRelatedEntity("tracelog_Mailbox", null, value); + this.OnPropertyChanged("tracelog_Mailbox"); + } + } + + /// + /// N:1 tracelog_parent_tracelog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parenttracelogid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.TraceLog Referencingtracelog_parent_tracelog + { + get + { + return this.GetRelatedEntity("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingtracelog_parent_tracelog"); + this.SetRelatedEntity("tracelog_parent_tracelog", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingtracelog_parent_tracelog"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum TransactionCurrencyState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Currency in which a financial transaction is carried out. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("transactioncurrency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TransactionCurrency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TransactionCurrency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "transactioncurrency"; + + public const int EntityTypeCode = 9105; + + 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 transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the transaction currency 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 transactioncurrency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Name of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyname")] + public string CurrencyName + { + get + { + return this.GetAttributeValue("currencyname"); + } + set + { + this.OnPropertyChanging("CurrencyName"); + this.SetAttributeValue("currencyname", value); + this.OnPropertyChanged("CurrencyName"); + } + } + + /// + /// Number of decimal places that can be used for currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyprecision")] + public System.Nullable CurrencyPrecision + { + get + { + return this.GetAttributeValue>("currencyprecision"); + } + set + { + this.OnPropertyChanging("CurrencyPrecision"); + this.SetAttributeValue("currencyprecision", value); + this.OnPropertyChanged("CurrencyPrecision"); + } + } + + /// + /// Symbol for the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencysymbol")] + public string CurrencySymbol + { + get + { + return this.GetAttributeValue("currencysymbol"); + } + set + { + this.OnPropertyChanging("CurrencySymbol"); + this.SetAttributeValue("currencysymbol", value); + this.OnPropertyChanged("CurrencySymbol"); + } + } + + /// + /// 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"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate between the transaction currency and the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + set + { + this.OnPropertyChanging("ExchangeRate"); + this.SetAttributeValue("exchangerate", value); + this.OnPropertyChanged("ExchangeRate"); + } + } + + /// + /// 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"); + } + } + + /// + /// ISO currency code for the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isocurrencycode")] + public string ISOCurrencyCode + { + get + { + return this.GetAttributeValue("isocurrencycode"); + } + set + { + this.OnPropertyChanging("ISOCurrencyCode"); + this.SetAttributeValue("isocurrencycode", value); + this.OnPropertyChanged("ISOCurrencyCode"); + } + } + + /// + /// Unique identifier of the user who last modified the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the transaction currency 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 transactioncurrency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the transaction currency. + /// + [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"); + } + } + + /// + /// Status of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.TransactionCurrencyState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.TransactionCurrencyState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the transaction currency. + /// + [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"); + } + } + + /// + /// Unique identifier of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public System.Nullable TransactionCurrencyId + { + get + { + return this.GetAttributeValue>("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TransactionCurrencyId = value; + } + } + + /// + /// Version number of the transaction currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N basecurrency_organization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("basecurrency_organization")] + public System.Collections.Generic.IEnumerable basecurrency_organization + { + get + { + return this.GetRelatedEntities("basecurrency_organization", null); + } + set + { + this.OnPropertyChanging("basecurrency_organization"); + this.SetRelatedEntities("basecurrency_organization", null, value); + this.OnPropertyChanged("basecurrency_organization"); + } + } + + /// + /// 1:N transactioncurrency_account + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_account")] + public System.Collections.Generic.IEnumerable transactioncurrency_account + { + get + { + return this.GetRelatedEntities("transactioncurrency_account", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_account"); + this.SetRelatedEntities("transactioncurrency_account", null, value); + this.OnPropertyChanged("transactioncurrency_account"); + } + } + + /// + /// 1:N TransactionCurrency_ActivityPointer + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ActivityPointer")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ActivityPointer + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ActivityPointer", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ActivityPointer"); + this.SetRelatedEntities("TransactionCurrency_ActivityPointer", null, value); + this.OnPropertyChanged("TransactionCurrency_ActivityPointer"); + } + } + + /// + /// 1:N transactioncurrency_annualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_annualfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_annualfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_annualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_annualfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_annualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_annualfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_Appointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Appointment")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Appointment + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Appointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Appointment"); + this.SetRelatedEntities("TransactionCurrency_Appointment", null, value); + this.OnPropertyChanged("TransactionCurrency_Appointment"); + } + } + + /// + /// 1:N TransactionCurrency_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_AsyncOperations")] + public System.Collections.Generic.IEnumerable TransactionCurrency_AsyncOperations + { + get + { + return this.GetRelatedEntities("TransactionCurrency_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_AsyncOperations"); + this.SetRelatedEntities("TransactionCurrency_AsyncOperations", null, value); + this.OnPropertyChanged("TransactionCurrency_AsyncOperations"); + } + } + + /// + /// 1:N TransactionCurrency_BusinessUnit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_BusinessUnit")] + public System.Collections.Generic.IEnumerable TransactionCurrency_BusinessUnit + { + get + { + return this.GetRelatedEntities("TransactionCurrency_BusinessUnit", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_BusinessUnit"); + this.SetRelatedEntities("TransactionCurrency_BusinessUnit", null, value); + this.OnPropertyChanged("TransactionCurrency_BusinessUnit"); + } + } + + /// + /// 1:N transactioncurrency_campaign + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaign")] + public System.Collections.Generic.IEnumerable transactioncurrency_campaign + { + get + { + return this.GetRelatedEntities("transactioncurrency_campaign", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_campaign"); + this.SetRelatedEntities("transactioncurrency_campaign", null, value); + this.OnPropertyChanged("transactioncurrency_campaign"); + } + } + + /// + /// 1:N transactioncurrency_campaignactivity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_campaignactivity")] + public System.Collections.Generic.IEnumerable transactioncurrency_campaignactivity + { + get + { + return this.GetRelatedEntities("transactioncurrency_campaignactivity", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_campaignactivity"); + this.SetRelatedEntities("transactioncurrency_campaignactivity", null, value); + this.OnPropertyChanged("transactioncurrency_campaignactivity"); + } + } + + /// + /// 1:N TransactionCurrency_CampaignResponse + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CampaignResponse")] + public System.Collections.Generic.IEnumerable TransactionCurrency_CampaignResponse + { + get + { + return this.GetRelatedEntities("TransactionCurrency_CampaignResponse", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CampaignResponse"); + this.SetRelatedEntities("TransactionCurrency_CampaignResponse", null, value); + this.OnPropertyChanged("TransactionCurrency_CampaignResponse"); + } + } + + /// + /// 1:N transactioncurrency_competitor + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_competitor")] + public System.Collections.Generic.IEnumerable transactioncurrency_competitor + { + get + { + return this.GetRelatedEntities("transactioncurrency_competitor", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_competitor"); + this.SetRelatedEntities("transactioncurrency_competitor", null, value); + this.OnPropertyChanged("transactioncurrency_competitor"); + } + } + + /// + /// 1:N TransactionCurrency_Connection + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Connection")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Connection + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Connection", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Connection"); + this.SetRelatedEntities("TransactionCurrency_Connection", null, value); + this.OnPropertyChanged("TransactionCurrency_Connection"); + } + } + + /// + /// 1:N transactioncurrency_contact + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contact")] + public System.Collections.Generic.IEnumerable transactioncurrency_contact + { + get + { + return this.GetRelatedEntities("transactioncurrency_contact", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contact"); + this.SetRelatedEntities("transactioncurrency_contact", null, value); + this.OnPropertyChanged("transactioncurrency_contact"); + } + } + + /// + /// 1:N transactioncurrency_contract + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contract")] + public System.Collections.Generic.IEnumerable transactioncurrency_contract + { + get + { + return this.GetRelatedEntities("transactioncurrency_contract", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contract"); + this.SetRelatedEntities("transactioncurrency_contract", null, value); + this.OnPropertyChanged("transactioncurrency_contract"); + } + } + + /// + /// 1:N transactioncurrency_contractdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_contractdetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_contractdetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_contractdetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_contractdetail"); + this.SetRelatedEntities("transactioncurrency_contractdetail", null, value); + this.OnPropertyChanged("transactioncurrency_contractdetail"); + } + } + + /// + /// 1:N TransactionCurrency_CustomerAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_CustomerAddress")] + public System.Collections.Generic.IEnumerable TransactionCurrency_CustomerAddress + { + get + { + return this.GetRelatedEntities("TransactionCurrency_CustomerAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_CustomerAddress"); + this.SetRelatedEntities("TransactionCurrency_CustomerAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_CustomerAddress"); + } + } + + /// + /// 1:N transactioncurrency_discount + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discount")] + public System.Collections.Generic.IEnumerable transactioncurrency_discount + { + get + { + return this.GetRelatedEntities("transactioncurrency_discount", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_discount"); + this.SetRelatedEntities("transactioncurrency_discount", null, value); + this.OnPropertyChanged("transactioncurrency_discount"); + } + } + + /// + /// 1:N transactioncurrency_discounttype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_discounttype")] + public System.Collections.Generic.IEnumerable transactioncurrency_discounttype + { + get + { + return this.GetRelatedEntities("transactioncurrency_discounttype", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_discounttype"); + this.SetRelatedEntities("transactioncurrency_discounttype", null, value); + this.OnPropertyChanged("transactioncurrency_discounttype"); + } + } + + /// + /// 1:N TransactionCurrency_Email + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Email")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Email + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Email", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Email"); + this.SetRelatedEntities("TransactionCurrency_Email", null, value); + this.OnPropertyChanged("TransactionCurrency_Email"); + } + } + + /// + /// 1:N TransactionCurrency_Equipment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Equipment")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Equipment + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Equipment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Equipment"); + this.SetRelatedEntities("TransactionCurrency_Equipment", null, value); + this.OnPropertyChanged("TransactionCurrency_Equipment"); + } + } + + /// + /// 1:N TransactionCurrency_Fax + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Fax")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Fax + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Fax", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Fax"); + this.SetRelatedEntities("TransactionCurrency_Fax", null, value); + this.OnPropertyChanged("TransactionCurrency_Fax"); + } + } + + /// + /// 1:N transactioncurrency_fixedmonthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_fixedmonthlyfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_fixedmonthlyfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_fixedmonthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_fixedmonthlyfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_fixedmonthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_fixedmonthlyfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_Goal + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Goal")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Goal + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Goal", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Goal"); + this.SetRelatedEntities("TransactionCurrency_Goal", null, value); + this.OnPropertyChanged("TransactionCurrency_Goal"); + } + } + + /// + /// 1:N TransactionCurrency_Incident + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Incident")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Incident + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Incident", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Incident"); + this.SetRelatedEntities("TransactionCurrency_Incident", null, value); + this.OnPropertyChanged("TransactionCurrency_Incident"); + } + } + + /// + /// 1:N transactioncurrency_invoice + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoice")] + public System.Collections.Generic.IEnumerable transactioncurrency_invoice + { + get + { + return this.GetRelatedEntities("transactioncurrency_invoice", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_invoice"); + this.SetRelatedEntities("transactioncurrency_invoice", null, value); + this.OnPropertyChanged("transactioncurrency_invoice"); + } + } + + /// + /// 1:N transactioncurrency_invoicedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_invoicedetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_invoicedetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_invoicedetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_invoicedetail"); + this.SetRelatedEntities("transactioncurrency_invoicedetail", null, value); + this.OnPropertyChanged("transactioncurrency_invoicedetail"); + } + } + + /// + /// 1:N TransactionCurrency_KbArticle + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_KbArticle")] + public System.Collections.Generic.IEnumerable TransactionCurrency_KbArticle + { + get + { + return this.GetRelatedEntities("TransactionCurrency_KbArticle", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_KbArticle"); + this.SetRelatedEntities("TransactionCurrency_KbArticle", null, value); + this.OnPropertyChanged("TransactionCurrency_KbArticle"); + } + } + + /// + /// 1:N transactioncurrency_lead + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_lead")] + public System.Collections.Generic.IEnumerable transactioncurrency_lead + { + get + { + return this.GetRelatedEntities("transactioncurrency_lead", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_lead"); + this.SetRelatedEntities("transactioncurrency_lead", null, value); + this.OnPropertyChanged("transactioncurrency_lead"); + } + } + + /// + /// 1:N TransactionCurrency_LeadAddress + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_LeadAddress")] + public System.Collections.Generic.IEnumerable TransactionCurrency_LeadAddress + { + get + { + return this.GetRelatedEntities("TransactionCurrency_LeadAddress", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_LeadAddress"); + this.SetRelatedEntities("TransactionCurrency_LeadAddress", null, value); + this.OnPropertyChanged("TransactionCurrency_LeadAddress"); + } + } + + /// + /// 1:N TransactionCurrency_Letter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Letter")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Letter + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Letter", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Letter"); + this.SetRelatedEntities("TransactionCurrency_Letter", null, value); + this.OnPropertyChanged("TransactionCurrency_Letter"); + } + } + + /// + /// 1:N transactioncurrency_list + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_list")] + public System.Collections.Generic.IEnumerable transactioncurrency_list + { + get + { + return this.GetRelatedEntities("transactioncurrency_list", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_list"); + this.SetRelatedEntities("transactioncurrency_list", null, value); + this.OnPropertyChanged("transactioncurrency_list"); + } + } + + /// + /// 1:N TransactionCurrency_MailMergeTemplate + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_MailMergeTemplate")] + public System.Collections.Generic.IEnumerable TransactionCurrency_MailMergeTemplate + { + get + { + return this.GetRelatedEntities("TransactionCurrency_MailMergeTemplate", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_MailMergeTemplate"); + this.SetRelatedEntities("TransactionCurrency_MailMergeTemplate", null, value); + this.OnPropertyChanged("TransactionCurrency_MailMergeTemplate"); + } + } + + /// + /// 1:N transactioncurrency_monthlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_monthlyfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_monthlyfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_monthlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_monthlyfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_monthlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_monthlyfiscalcalendar"); + } + } + + /// + /// 1:N transactioncurrency_opportunity + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunity")] + public System.Collections.Generic.IEnumerable transactioncurrency_opportunity + { + get + { + return this.GetRelatedEntities("transactioncurrency_opportunity", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunity"); + this.SetRelatedEntities("transactioncurrency_opportunity", null, value); + this.OnPropertyChanged("transactioncurrency_opportunity"); + } + } + + /// + /// 1:N transactioncurrency_opportunityclose + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityclose")] + public System.Collections.Generic.IEnumerable transactioncurrency_opportunityclose + { + get + { + return this.GetRelatedEntities("transactioncurrency_opportunityclose", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunityclose"); + this.SetRelatedEntities("transactioncurrency_opportunityclose", null, value); + this.OnPropertyChanged("transactioncurrency_opportunityclose"); + } + } + + /// + /// 1:N transactioncurrency_opportunityproduct + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_opportunityproduct")] + public System.Collections.Generic.IEnumerable transactioncurrency_opportunityproduct + { + get + { + return this.GetRelatedEntities("transactioncurrency_opportunityproduct", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_opportunityproduct"); + this.SetRelatedEntities("transactioncurrency_opportunityproduct", null, value); + this.OnPropertyChanged("transactioncurrency_opportunityproduct"); + } + } + + /// + /// 1:N TransactionCurrency_PhoneCall + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_PhoneCall")] + public System.Collections.Generic.IEnumerable TransactionCurrency_PhoneCall + { + get + { + return this.GetRelatedEntities("TransactionCurrency_PhoneCall", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_PhoneCall"); + this.SetRelatedEntities("TransactionCurrency_PhoneCall", null, value); + this.OnPropertyChanged("TransactionCurrency_PhoneCall"); + } + } + + /// + /// 1:N transactioncurrency_pricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_pricelevel")] + public System.Collections.Generic.IEnumerable transactioncurrency_pricelevel + { + get + { + return this.GetRelatedEntities("transactioncurrency_pricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_pricelevel"); + this.SetRelatedEntities("transactioncurrency_pricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_pricelevel"); + } + } + + /// + /// 1:N TransactionCurrency_ProcessSessions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ProcessSessions")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ProcessSessions + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ProcessSessions", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ProcessSessions"); + this.SetRelatedEntities("TransactionCurrency_ProcessSessions", null, value); + this.OnPropertyChanged("TransactionCurrency_ProcessSessions"); + } + } + + /// + /// 1:N transactioncurrency_product + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_product")] + public System.Collections.Generic.IEnumerable transactioncurrency_product + { + get + { + return this.GetRelatedEntities("transactioncurrency_product", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_product"); + this.SetRelatedEntities("transactioncurrency_product", null, value); + this.OnPropertyChanged("transactioncurrency_product"); + } + } + + /// + /// 1:N transactioncurrency_productpricelevel + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_productpricelevel")] + public System.Collections.Generic.IEnumerable transactioncurrency_productpricelevel + { + get + { + return this.GetRelatedEntities("transactioncurrency_productpricelevel", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_productpricelevel"); + this.SetRelatedEntities("transactioncurrency_productpricelevel", null, value); + this.OnPropertyChanged("transactioncurrency_productpricelevel"); + } + } + + /// + /// 1:N transactioncurrency_quarterlyfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quarterlyfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_quarterlyfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_quarterlyfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quarterlyfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_quarterlyfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_quarterlyfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_Queue + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Queue")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Queue + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Queue", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Queue"); + this.SetRelatedEntities("TransactionCurrency_Queue", null, value); + this.OnPropertyChanged("TransactionCurrency_Queue"); + } + } + + /// + /// 1:N TransactionCurrency_QueueItem + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_QueueItem")] + public System.Collections.Generic.IEnumerable TransactionCurrency_QueueItem + { + get + { + return this.GetRelatedEntities("TransactionCurrency_QueueItem", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_QueueItem"); + this.SetRelatedEntities("TransactionCurrency_QueueItem", null, value); + this.OnPropertyChanged("TransactionCurrency_QueueItem"); + } + } + + /// + /// 1:N transactioncurrency_quote + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quote")] + public System.Collections.Generic.IEnumerable transactioncurrency_quote + { + get + { + return this.GetRelatedEntities("transactioncurrency_quote", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quote"); + this.SetRelatedEntities("transactioncurrency_quote", null, value); + this.OnPropertyChanged("transactioncurrency_quote"); + } + } + + /// + /// 1:N transactioncurrency_quotedetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_quotedetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_quotedetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_quotedetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_quotedetail"); + this.SetRelatedEntities("transactioncurrency_quotedetail", null, value); + this.OnPropertyChanged("transactioncurrency_quotedetail"); + } + } + + /// + /// 1:N TransactionCurrency_RecurringAppointmentMaster + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_RecurringAppointmentMaster")] + public System.Collections.Generic.IEnumerable TransactionCurrency_RecurringAppointmentMaster + { + get + { + return this.GetRelatedEntities("TransactionCurrency_RecurringAppointmentMaster", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_RecurringAppointmentMaster"); + this.SetRelatedEntities("TransactionCurrency_RecurringAppointmentMaster", null, value); + this.OnPropertyChanged("TransactionCurrency_RecurringAppointmentMaster"); + } + } + + /// + /// 1:N TransactionCurrency_ReportCategory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ReportCategory")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ReportCategory + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ReportCategory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ReportCategory"); + this.SetRelatedEntities("TransactionCurrency_ReportCategory", null, value); + this.OnPropertyChanged("TransactionCurrency_ReportCategory"); + } + } + + /// + /// 1:N TransactionCurrency_SalesLiterature + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SalesLiterature")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SalesLiterature + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SalesLiterature", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SalesLiterature"); + this.SetRelatedEntities("TransactionCurrency_SalesLiterature", null, value); + this.OnPropertyChanged("TransactionCurrency_SalesLiterature"); + } + } + + /// + /// 1:N transactioncurrency_salesorder + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorder")] + public System.Collections.Generic.IEnumerable transactioncurrency_salesorder + { + get + { + return this.GetRelatedEntities("transactioncurrency_salesorder", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_salesorder"); + this.SetRelatedEntities("transactioncurrency_salesorder", null, value); + this.OnPropertyChanged("transactioncurrency_salesorder"); + } + } + + /// + /// 1:N transactioncurrency_salesorderdetail + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_salesorderdetail")] + public System.Collections.Generic.IEnumerable transactioncurrency_salesorderdetail + { + get + { + return this.GetRelatedEntities("transactioncurrency_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_salesorderdetail"); + this.SetRelatedEntities("transactioncurrency_salesorderdetail", null, value); + this.OnPropertyChanged("transactioncurrency_salesorderdetail"); + } + } + + /// + /// 1:N transactioncurrency_semiannualfiscalcalendar + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_semiannualfiscalcalendar")] + public System.Collections.Generic.IEnumerable transactioncurrency_semiannualfiscalcalendar + { + get + { + return this.GetRelatedEntities("transactioncurrency_semiannualfiscalcalendar", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_semiannualfiscalcalendar"); + this.SetRelatedEntities("transactioncurrency_semiannualfiscalcalendar", null, value); + this.OnPropertyChanged("transactioncurrency_semiannualfiscalcalendar"); + } + } + + /// + /// 1:N TransactionCurrency_ServiceAppointment + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_ServiceAppointment")] + public System.Collections.Generic.IEnumerable TransactionCurrency_ServiceAppointment + { + get + { + return this.GetRelatedEntities("TransactionCurrency_ServiceAppointment", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_ServiceAppointment"); + this.SetRelatedEntities("TransactionCurrency_ServiceAppointment", null, value); + this.OnPropertyChanged("TransactionCurrency_ServiceAppointment"); + } + } + + /// + /// 1:N TransactionCurrency_SharePointDocumentLocation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointDocumentLocation")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SharePointDocumentLocation + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SharePointDocumentLocation", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SharePointDocumentLocation"); + this.SetRelatedEntities("TransactionCurrency_SharePointDocumentLocation", null, value); + this.OnPropertyChanged("TransactionCurrency_SharePointDocumentLocation"); + } + } + + /// + /// 1:N TransactionCurrency_SharePointSite + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SharePointSite")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SharePointSite + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SharePointSite", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SharePointSite"); + this.SetRelatedEntities("TransactionCurrency_SharePointSite", null, value); + this.OnPropertyChanged("TransactionCurrency_SharePointSite"); + } + } + + /// + /// 1:N TransactionCurrency_SystemUser + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_SystemUser")] + public System.Collections.Generic.IEnumerable TransactionCurrency_SystemUser + { + get + { + return this.GetRelatedEntities("TransactionCurrency_SystemUser", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_SystemUser"); + this.SetRelatedEntities("TransactionCurrency_SystemUser", null, value); + this.OnPropertyChanged("TransactionCurrency_SystemUser"); + } + } + + /// + /// 1:N TransactionCurrency_Task + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Task")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Task + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Task", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Task"); + this.SetRelatedEntities("TransactionCurrency_Task", null, value); + this.OnPropertyChanged("TransactionCurrency_Task"); + } + } + + /// + /// 1:N TransactionCurrency_Team + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Team")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Team + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Team", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Team"); + this.SetRelatedEntities("TransactionCurrency_Team", null, value); + this.OnPropertyChanged("TransactionCurrency_Team"); + } + } + + /// + /// 1:N TransactionCurrency_Territory + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_Territory")] + public System.Collections.Generic.IEnumerable TransactionCurrency_Territory + { + get + { + return this.GetRelatedEntities("TransactionCurrency_Territory", null); + } + set + { + this.OnPropertyChanging("TransactionCurrency_Territory"); + this.SetRelatedEntities("TransactionCurrency_Territory", null, value); + this.OnPropertyChanged("TransactionCurrency_Territory"); + } + } + + /// + /// 1:N transactioncurrency_usersettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_usersettings")] + public System.Collections.Generic.IEnumerable transactioncurrency_usersettings + { + get + { + return this.GetRelatedEntities("transactioncurrency_usersettings", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_usersettings"); + this.SetRelatedEntities("transactioncurrency_usersettings", null, value); + this.OnPropertyChanged("transactioncurrency_usersettings"); + } + } + + /// + /// 1:N userentityinstancedata_transactioncurrency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transactioncurrency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_transactioncurrency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_transactioncurrency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transactioncurrency"); + this.SetRelatedEntities("userentityinstancedata_transactioncurrency", null, value); + this.OnPropertyChanged("userentityinstancedata_transactioncurrency"); + } + } + + /// + /// N:1 lk_transactioncurrency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrency_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrency_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_transactioncurrency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrency_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrency_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_transactioncurrencybase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrencybase_createdby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrencybase_createdby", null); + } + } + + /// + /// N:1 lk_transactioncurrencybase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transactioncurrencybase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transactioncurrencybase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_transactioncurrencybase_modifiedby", null); + } + } + + /// + /// N:1 organization_transactioncurrencies + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_transactioncurrencies")] + public Xrm.Framework.CI.Common.Entities.Organization organization_transactioncurrencies + { + get + { + return this.GetRelatedEntity("organization_transactioncurrencies", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum TransformationMappingState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + } + + /// + /// In a data map, maps the transformation of source attributes to Microsoft Dynamics CRM attributes. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("transformationmapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TransformationMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TransformationMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "transformationmapping"; + + public const int EntityTypeCode = 4426; + + 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 transformation mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the transformation mapping 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 transformationmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unique identifier of the associated data map. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + public Microsoft.Xrm.Sdk.EntityReference ImportMapId + { + get + { + return this.GetAttributeValue("importmapid"); + } + set + { + this.OnPropertyChanging("ImportMapId"); + this.SetAttributeValue("importmapid", value); + this.OnPropertyChanged("ImportMapId"); + } + } + + /// + /// Unique identifier of the user who last modified the mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the transformation mapping 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 transformationmapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information about whether the transformation mapping needs to be processed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProcessCode + { + get + { + return this.GetAttributeValue("processcode"); + } + set + { + this.OnPropertyChanging("ProcessCode"); + this.SetAttributeValue("processcode", value); + this.OnPropertyChanged("ProcessCode"); + } + } + + /// + /// Name of the source entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourceentityname")] + public string SourceEntityName + { + get + { + return this.GetAttributeValue("sourceentityname"); + } + set + { + this.OnPropertyChanging("SourceEntityName"); + this.SetAttributeValue("sourceentityname", value); + this.OnPropertyChanged("SourceEntityName"); + } + } + + /// + /// Status of the transformation mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.TransformationMappingState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.TransformationMappingState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the transformation mapping. + /// + [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"); + } + } + + /// + /// Name of the Microsoft Dynamics CRM entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("targetentityname")] + public string TargetEntityName + { + get + { + return this.GetAttributeValue("targetentityname"); + } + set + { + this.OnPropertyChanging("TargetEntityName"); + this.SetAttributeValue("targetentityname", value); + this.OnPropertyChanged("TargetEntityName"); + } + } + + /// + /// Unique identifier of the transformation mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + public System.Nullable TransformationMappingId + { + get + { + return this.GetAttributeValue>("transformationmappingid"); + } + set + { + this.OnPropertyChanging("TransformationMappingId"); + this.SetAttributeValue("transformationmappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TransformationMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TransformationMappingId = value; + } + } + + /// + /// Type of transformation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationtypename")] + public string TransformationTypeName + { + get + { + return this.GetAttributeValue("transformationtypename"); + } + set + { + this.OnPropertyChanging("TransformationTypeName"); + this.SetAttributeValue("transformationtypename", value); + this.OnPropertyChanged("TransformationTypeName"); + } + } + + /// + /// 1:N TransformationParameterMapping_TransformationMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationParameterMapping_TransformationMapping")] + public System.Collections.Generic.IEnumerable TransformationParameterMapping_TransformationMapping + { + get + { + return this.GetRelatedEntities("TransformationParameterMapping_TransformationMapping", null); + } + set + { + this.OnPropertyChanging("TransformationParameterMapping_TransformationMapping"); + this.SetRelatedEntities("TransformationParameterMapping_TransformationMapping", null, value); + this.OnPropertyChanged("TransformationParameterMapping_TransformationMapping"); + } + } + + /// + /// 1:N userentityinstancedata_transformationmapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationmapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_transformationmapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_transformationmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationmapping"); + this.SetRelatedEntities("userentityinstancedata_transformationmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationmapping"); + } + } + + /// + /// N:1 lk_transformationmapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_createdby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_createdby", null); + } + } + + /// + /// N:1 lk_transformationmapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_transformationmapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_modifiedby", null); + } + } + + /// + /// N:1 lk_transformationmapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationmapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationmapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationmapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 TransformationMapping_ImportMap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importmapid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationMapping_ImportMap")] + public Xrm.Framework.CI.Common.Entities.ImportMap TransformationMapping_ImportMap + { + get + { + return this.GetRelatedEntity("TransformationMapping_ImportMap", null); + } + set + { + this.OnPropertyChanging("TransformationMapping_ImportMap"); + this.SetRelatedEntity("TransformationMapping_ImportMap", null, value); + this.OnPropertyChanged("TransformationMapping_ImportMap"); + } + } + } + + /// + /// In a data map, defines parameters for a transformation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("transformationparametermapping")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class TransformationParameterMapping : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public TransformationParameterMapping() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "transformationparametermapping"; + + public const int EntityTypeCode = 4427; + + 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 parameter mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the transformation parameter mapping 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 transformationparametermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Transformation data for transformation parameter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// Data type of the transformation parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datatypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue DataTypeCode + { + get + { + return this.GetAttributeValue("datatypecode"); + } + set + { + this.OnPropertyChanging("DataTypeCode"); + this.SetAttributeValue("datatypecode", value); + this.OnPropertyChanged("DataTypeCode"); + } + } + + /// + /// Unique identifier of the user who last modified the transformation parameter mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the transformation parameter mapping 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 transformationparametermapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Index of the array if the input parameter is an array. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parameterarrayindex")] + public System.Nullable ParameterArrayIndex + { + get + { + return this.GetAttributeValue>("parameterarrayindex"); + } + set + { + this.OnPropertyChanging("ParameterArrayIndex"); + this.SetAttributeValue("parameterarrayindex", value); + this.OnPropertyChanged("ParameterArrayIndex"); + } + } + + /// + /// Parameter sequence number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametersequence")] + public System.Nullable ParameterSequence + { + get + { + return this.GetAttributeValue>("parametersequence"); + } + set + { + this.OnPropertyChanging("ParameterSequence"); + this.SetAttributeValue("parametersequence", value); + this.OnPropertyChanged("ParameterSequence"); + } + } + + /// + /// Type of transformation parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametertypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ParameterTypeCode + { + get + { + return this.GetAttributeValue("parametertypecode"); + } + set + { + this.OnPropertyChanging("ParameterTypeCode"); + this.SetAttributeValue("parametertypecode", value); + this.OnPropertyChanged("ParameterTypeCode"); + } + } + + /// + /// Unique identifier of the transformation with which the parameter is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + public Microsoft.Xrm.Sdk.EntityReference TransformationMappingId + { + get + { + return this.GetAttributeValue("transformationmappingid"); + } + set + { + this.OnPropertyChanging("TransformationMappingId"); + this.SetAttributeValue("transformationmappingid", value); + this.OnPropertyChanged("TransformationMappingId"); + } + } + + /// + /// Unique identifier of the transformation parameter mapping. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + public System.Nullable TransformationParameterMappingId + { + get + { + return this.GetAttributeValue>("transformationparametermappingid"); + } + set + { + this.OnPropertyChanging("TransformationParameterMappingId"); + this.SetAttributeValue("transformationparametermappingid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("TransformationParameterMappingId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationparametermappingid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.TransformationParameterMappingId = value; + } + } + + /// + /// 1:N LookUpMapping_TransformationParameterMapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("LookUpMapping_TransformationParameterMapping")] + public System.Collections.Generic.IEnumerable LookUpMapping_TransformationParameterMapping + { + get + { + return this.GetRelatedEntities("LookUpMapping_TransformationParameterMapping", null); + } + set + { + this.OnPropertyChanging("LookUpMapping_TransformationParameterMapping"); + this.SetRelatedEntities("LookUpMapping_TransformationParameterMapping", null, value); + this.OnPropertyChanged("LookUpMapping_TransformationParameterMapping"); + } + } + + /// + /// 1:N userentityinstancedata_transformationparametermapping + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationparametermapping")] + public System.Collections.Generic.IEnumerable userentityinstancedata_transformationparametermapping + { + get + { + return this.GetRelatedEntities("userentityinstancedata_transformationparametermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationparametermapping"); + this.SetRelatedEntities("userentityinstancedata_transformationparametermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationparametermapping"); + } + } + + /// + /// N:1 lk_transformationparametermapping_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_createdby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_createdby", null); + } + } + + /// + /// N:1 lk_transformationparametermapping_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_transformationparametermapping_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_modifiedby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_modifiedby", null); + } + } + + /// + /// N:1 lk_transformationparametermapping_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_transformationparametermapping_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_transformationparametermapping_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_transformationparametermapping_modifiedonbehalfby", null); + } + } + + /// + /// N:1 TransformationParameterMapping_TransformationMapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transformationmappingid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransformationParameterMapping_TransformationMapping")] + public Xrm.Framework.CI.Common.Entities.TransformationMapping TransformationParameterMapping_TransformationMapping + { + get + { + return this.GetRelatedEntity("TransformationParameterMapping_TransformationMapping", null); + } + set + { + this.OnPropertyChanging("TransformationParameterMapping_TransformationMapping"); + this.SetRelatedEntity("TransformationParameterMapping_TransformationMapping", null, value); + this.OnPropertyChanged("TransformationParameterMapping_TransformationMapping"); + } + } + } + + /// + /// Unit of measure. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("uom")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UoM : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UoM() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "uom"; + + public const int EntityTypeCode = 1055; + + 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)); + } + } + + /// + /// Choose the base or primary unit on which the unit is based. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseuom")] + public Microsoft.Xrm.Sdk.EntityReference BaseUoM + { + get + { + return this.GetAttributeValue("baseuom"); + } + set + { + this.OnPropertyChanging("BaseUoM"); + this.SetAttributeValue("baseuom", value); + this.OnPropertyChanged("BaseUoM"); + } + } + + /// + /// Unique identifier of the user who created the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the unit 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 uom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// 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"); + } + } + + /// + /// Tells whether the unit is the base unit for the associated unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isschedulebaseuom")] + public System.Nullable IsScheduleBaseUoM + { + get + { + return this.GetAttributeValue>("isschedulebaseuom"); + } + } + + /// + /// Unique identifier of the user who last modified the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the unit 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 uom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Type a descriptive title or name for the unit of measure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the unit of measure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable 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"); + } + } + + /// + /// Unit quantity for the product. + /// + [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"); + } + } + + /// + /// Unique identifier of the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + public System.Nullable UoMId + { + get + { + return this.GetAttributeValue>("uomid"); + } + set + { + this.OnPropertyChanging("UoMId"); + this.SetAttributeValue("uomid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UoMId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UoMId = value; + } + } + + /// + /// Choose the ID of the unit group that the unit is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference UoMScheduleId + { + get + { + return this.GetAttributeValue("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + this.OnPropertyChanged("UoMScheduleId"); + } + } + + /// + /// Version number of the unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N unit_of_measurement_base_unit + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedunit_of_measurement_base_unit + { + get + { + return this.GetRelatedEntities("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedunit_of_measurement_base_unit"); + this.SetRelatedEntities("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedunit_of_measurement_base_unit"); + } + } + + /// + /// 1:N unit_of_measurement_contract_line_items + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_contract_line_items")] + public System.Collections.Generic.IEnumerable unit_of_measurement_contract_line_items + { + get + { + return this.GetRelatedEntities("unit_of_measurement_contract_line_items", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_contract_line_items"); + this.SetRelatedEntities("unit_of_measurement_contract_line_items", null, value); + this.OnPropertyChanged("unit_of_measurement_contract_line_items"); + } + } + + /// + /// 1:N unit_of_measurement_invoice_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_invoice_details")] + public System.Collections.Generic.IEnumerable unit_of_measurement_invoice_details + { + get + { + return this.GetRelatedEntities("unit_of_measurement_invoice_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_invoice_details"); + this.SetRelatedEntities("unit_of_measurement_invoice_details", null, value); + this.OnPropertyChanged("unit_of_measurement_invoice_details"); + } + } + + /// + /// 1:N unit_of_measurement_opportunity_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_opportunity_products")] + public System.Collections.Generic.IEnumerable unit_of_measurement_opportunity_products + { + get + { + return this.GetRelatedEntities("unit_of_measurement_opportunity_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_opportunity_products"); + this.SetRelatedEntities("unit_of_measurement_opportunity_products", null, value); + this.OnPropertyChanged("unit_of_measurement_opportunity_products"); + } + } + + /// + /// 1:N unit_of_measurement_order_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_order_details")] + public System.Collections.Generic.IEnumerable unit_of_measurement_order_details + { + get + { + return this.GetRelatedEntities("unit_of_measurement_order_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_order_details"); + this.SetRelatedEntities("unit_of_measurement_order_details", null, value); + this.OnPropertyChanged("unit_of_measurement_order_details"); + } + } + + /// + /// 1:N unit_of_measurement_product_price_levels + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_product_price_levels")] + public System.Collections.Generic.IEnumerable unit_of_measurement_product_price_levels + { + get + { + return this.GetRelatedEntities("unit_of_measurement_product_price_levels", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_product_price_levels"); + this.SetRelatedEntities("unit_of_measurement_product_price_levels", null, value); + this.OnPropertyChanged("unit_of_measurement_product_price_levels"); + } + } + + /// + /// 1:N unit_of_measurement_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_products")] + public System.Collections.Generic.IEnumerable unit_of_measurement_products + { + get + { + return this.GetRelatedEntities("unit_of_measurement_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_products"); + this.SetRelatedEntities("unit_of_measurement_products", null, value); + this.OnPropertyChanged("unit_of_measurement_products"); + } + } + + /// + /// 1:N unit_of_measurement_quote_details + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_quote_details")] + public System.Collections.Generic.IEnumerable unit_of_measurement_quote_details + { + get + { + return this.GetRelatedEntities("unit_of_measurement_quote_details", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_quote_details"); + this.SetRelatedEntities("unit_of_measurement_quote_details", null, value); + this.OnPropertyChanged("unit_of_measurement_quote_details"); + } + } + + /// + /// 1:N UoM_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_AsyncOperations")] + public System.Collections.Generic.IEnumerable UoM_AsyncOperations + { + get + { + return this.GetRelatedEntities("UoM_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoM_AsyncOperations"); + this.SetRelatedEntities("UoM_AsyncOperations", null, value); + this.OnPropertyChanged("UoM_AsyncOperations"); + } + } + + /// + /// 1:N UoM_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoM_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UoM_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UoM_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UoM_BulkDeleteFailures"); + this.SetRelatedEntities("UoM_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UoM_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_uom + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uom")] + public System.Collections.Generic.IEnumerable userentityinstancedata_uom + { + get + { + return this.GetRelatedEntities("userentityinstancedata_uom", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uom"); + this.SetRelatedEntities("userentityinstancedata_uom", null, value); + this.OnPropertyChanged("userentityinstancedata_uom"); + } + } + + /// + /// N:1 lk_uom_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uom_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uom_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_uom_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uom_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uom_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uom_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_uombase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uombase_createdby + { + get + { + return this.GetRelatedEntity("lk_uombase_createdby", null); + } + } + + /// + /// N:1 lk_uombase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uombase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uombase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_uombase_modifiedby", null); + } + } + + /// + /// N:1 unit_of_measure_schedule_conversions + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_conversions")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule unit_of_measure_schedule_conversions + { + get + { + return this.GetRelatedEntity("unit_of_measure_schedule_conversions", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_conversions"); + this.SetRelatedEntity("unit_of_measure_schedule_conversions", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_conversions"); + } + } + + /// + /// N:1 unit_of_measurement_base_unit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseuom")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.UoM Referencingunit_of_measurement_base_unit + { + get + { + return this.GetRelatedEntity("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencingunit_of_measurement_base_unit"); + this.SetRelatedEntity("unit_of_measurement_base_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencingunit_of_measurement_base_unit"); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum UoMScheduleState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Grouping of units. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("uomschedule")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UoMSchedule : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UoMSchedule() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "uomschedule"; + + public const int EntityTypeCode = 1056; + + 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)); + } + } + + /// + /// Name of the base unit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseuomname")] + public string BaseUoMName + { + get + { + return this.GetAttributeValue("baseuomname"); + } + set + { + this.OnPropertyChanging("BaseUoMName"); + this.SetAttributeValue("baseuomname", value); + this.OnPropertyChanged("BaseUoMName"); + } + } + + /// + /// Unique identifier of the user who created the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the unit group 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 uomschedule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the user who last modified the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the unit group 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 uomschedule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the unit group. + /// + [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"); + } + } + + /// + /// Status of the Unit Group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.UoMScheduleState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.UoMScheduleState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Reason for the status of the Unit Group. + /// + [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"); + } + } + + /// + /// Unique identifier for the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public System.Nullable UoMScheduleId + { + get + { + return this.GetAttributeValue>("uomscheduleid"); + } + set + { + this.OnPropertyChanging("UoMScheduleId"); + this.SetAttributeValue("uomscheduleid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UoMScheduleId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomscheduleid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UoMScheduleId = value; + } + } + + /// + /// Version number of the unit group. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N contract_detail_unit_of_measure_schedule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("contract_detail_unit_of_measure_schedule")] + public System.Collections.Generic.IEnumerable contract_detail_unit_of_measure_schedule + { + get + { + return this.GetRelatedEntities("contract_detail_unit_of_measure_schedule", null); + } + set + { + this.OnPropertyChanging("contract_detail_unit_of_measure_schedule"); + this.SetRelatedEntities("contract_detail_unit_of_measure_schedule", null, value); + this.OnPropertyChanged("contract_detail_unit_of_measure_schedule"); + } + } + + /// + /// 1:N unit_of_measure_schedule_conversions + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_conversions")] + public System.Collections.Generic.IEnumerable unit_of_measure_schedule_conversions + { + get + { + return this.GetRelatedEntities("unit_of_measure_schedule_conversions", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_conversions"); + this.SetRelatedEntities("unit_of_measure_schedule_conversions", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_conversions"); + } + } + + /// + /// 1:N unit_of_measure_schedule_product_price_level + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measure_schedule_product_price_level")] + public System.Collections.Generic.IEnumerable unit_of_measure_schedule_product_price_level + { + get + { + return this.GetRelatedEntities("unit_of_measure_schedule_product_price_level", null); + } + set + { + this.OnPropertyChanging("unit_of_measure_schedule_product_price_level"); + this.SetRelatedEntities("unit_of_measure_schedule_product_price_level", null, value); + this.OnPropertyChanged("unit_of_measure_schedule_product_price_level"); + } + } + + /// + /// 1:N unit_of_measurement_schedule_products + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("unit_of_measurement_schedule_products")] + public System.Collections.Generic.IEnumerable unit_of_measurement_schedule_products + { + get + { + return this.GetRelatedEntities("unit_of_measurement_schedule_products", null); + } + set + { + this.OnPropertyChanging("unit_of_measurement_schedule_products"); + this.SetRelatedEntities("unit_of_measurement_schedule_products", null, value); + this.OnPropertyChanged("unit_of_measurement_schedule_products"); + } + } + + /// + /// 1:N UoMSchedule_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_AsyncOperations")] + public System.Collections.Generic.IEnumerable UoMSchedule_AsyncOperations + { + get + { + return this.GetRelatedEntities("UoMSchedule_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UoMSchedule_AsyncOperations"); + this.SetRelatedEntities("UoMSchedule_AsyncOperations", null, value); + this.OnPropertyChanged("UoMSchedule_AsyncOperations"); + } + } + + /// + /// 1:N UoMSchedule_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UoMSchedule_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UoMSchedule_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UoMSchedule_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UoMSchedule_BulkDeleteFailures"); + this.SetRelatedEntities("UoMSchedule_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UoMSchedule_BulkDeleteFailures"); + } + } + + /// + /// 1:N userentityinstancedata_uomschedule + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uomschedule")] + public System.Collections.Generic.IEnumerable userentityinstancedata_uomschedule + { + get + { + return this.GetRelatedEntities("userentityinstancedata_uomschedule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uomschedule"); + this.SetRelatedEntities("userentityinstancedata_uomschedule", null, value); + this.OnPropertyChanged("userentityinstancedata_uomschedule"); + } + } + + /// + /// N:1 lk_uomschedule_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedule_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uomschedule_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_uomschedule_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedule_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedule_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_uomschedule_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_uomschedulebase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedulebase_createdby + { + get + { + return this.GetRelatedEntity("lk_uomschedulebase_createdby", null); + } + } + + /// + /// N:1 lk_uomschedulebase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_uomschedulebase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_uomschedulebase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_uomschedulebase_modifiedby", null); + } + } + + /// + /// N:1 organization_uof_schedules + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("organization_uof_schedules")] + public Xrm.Framework.CI.Common.Entities.Organization organization_uof_schedules + { + get + { + return this.GetRelatedEntity("organization_uof_schedules", null); + } + } + } + + /// + /// Per User item instance data + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userentityinstancedata")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserEntityInstanceData : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserEntityInstanceData() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userentityinstancedata"; + + public const int EntityTypeCode = 2501; + + 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)); + } + } + + /// + /// Common end date + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("commonend")] + public System.Nullable CommonEnd + { + get + { + return this.GetAttributeValue>("commonend"); + } + set + { + this.OnPropertyChanging("CommonEnd"); + this.SetAttributeValue("commonend", value); + this.OnPropertyChanged("CommonEnd"); + } + } + + /// + /// Common start date + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("commonstart")] + public System.Nullable CommonStart + { + get + { + return this.GetAttributeValue>("commonstart"); + } + set + { + this.OnPropertyChanging("CommonStart"); + this.SetAttributeValue("commonstart", value); + this.OnPropertyChanged("CommonStart"); + } + } + + /// + /// Due Date + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duedate")] + public System.Nullable DueDate + { + get + { + return this.GetAttributeValue>("duedate"); + } + set + { + this.OnPropertyChanging("DueDate"); + this.SetAttributeValue("duedate", value); + this.OnPropertyChanged("DueDate"); + } + } + + /// + /// Flag due by + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("flagdueby")] + public System.Nullable FlagDueBy + { + get + { + return this.GetAttributeValue>("flagdueby"); + } + set + { + this.OnPropertyChanging("FlagDueBy"); + this.SetAttributeValue("flagdueby", value); + this.OnPropertyChanged("FlagDueBy"); + } + } + + /// + /// Flag request + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("flagrequest")] + public string FlagRequest + { + get + { + return this.GetAttributeValue("flagrequest"); + } + set + { + this.OnPropertyChanging("FlagRequest"); + this.SetAttributeValue("flagrequest", value); + this.OnPropertyChanged("FlagRequest"); + } + } + + /// + /// Flag status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("flagstatus")] + public System.Nullable FlagStatus + { + get + { + return this.GetAttributeValue>("flagstatus"); + } + set + { + this.OnPropertyChanging("FlagStatus"); + this.SetAttributeValue("flagstatus", value); + this.OnPropertyChanged("FlagStatus"); + } + } + + /// + /// Unique identifier of the source record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public Microsoft.Xrm.Sdk.EntityReference ObjectId + { + get + { + return this.GetAttributeValue("objectid"); + } + set + { + this.OnPropertyChanging("ObjectId"); + this.SetAttributeValue("objectid", value); + this.OnPropertyChanged("ObjectId"); + } + } + + /// + /// Object Type Code + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user or team who owns the user entity instance data. + /// + [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 this. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Personal categories + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalcategories")] + public string PersonalCategories + { + get + { + return this.GetAttributeValue("personalcategories"); + } + set + { + this.OnPropertyChanging("PersonalCategories"); + this.SetAttributeValue("personalcategories", value); + this.OnPropertyChanged("PersonalCategories"); + } + } + + /// + /// Indicates whether a reminder is set on this object. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reminderset")] + public System.Nullable ReminderSet + { + get + { + return this.GetAttributeValue>("reminderset"); + } + set + { + this.OnPropertyChanging("ReminderSet"); + this.SetAttributeValue("reminderset", value); + this.OnPropertyChanged("ReminderSet"); + } + } + + /// + /// Reminder time + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("remindertime")] + public System.Nullable ReminderTime + { + get + { + return this.GetAttributeValue>("remindertime"); + } + set + { + this.OnPropertyChanging("ReminderTime"); + this.SetAttributeValue("remindertime", value); + this.OnPropertyChanged("ReminderTime"); + } + } + + /// + /// Start Time + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("starttime")] + public System.Nullable StartTime + { + get + { + return this.GetAttributeValue>("starttime"); + } + set + { + this.OnPropertyChanging("StartTime"); + this.SetAttributeValue("starttime", value); + this.OnPropertyChanged("StartTime"); + } + } + + /// + /// To Do item flags. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todoitemflags")] + public System.Nullable ToDoItemFlags + { + get + { + return this.GetAttributeValue>("todoitemflags"); + } + set + { + this.OnPropertyChanging("ToDoItemFlags"); + this.SetAttributeValue("todoitemflags", value); + this.OnPropertyChanged("ToDoItemFlags"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todoordinaldate")] + public System.Nullable ToDoOrdinalDate + { + get + { + return this.GetAttributeValue>("todoordinaldate"); + } + set + { + this.OnPropertyChanging("ToDoOrdinalDate"); + this.SetAttributeValue("todoordinaldate", value); + this.OnPropertyChanged("ToDoOrdinalDate"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todosubordinal")] + public string ToDoSubOrdinal + { + get + { + return this.GetAttributeValue("todosubordinal"); + } + set + { + this.OnPropertyChanging("ToDoSubOrdinal"); + this.SetAttributeValue("todosubordinal", value); + this.OnPropertyChanged("ToDoSubOrdinal"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("todotitle")] + public string ToDoTitle + { + get + { + return this.GetAttributeValue("todotitle"); + } + set + { + this.OnPropertyChanging("ToDoTitle"); + this.SetAttributeValue("todotitle", value); + this.OnPropertyChanged("ToDoTitle"); + } + } + + /// + /// Unique identifier user entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityinstancedataid")] + public System.Nullable UserEntityInstanceDataId + { + get + { + return this.GetAttributeValue>("userentityinstancedataid"); + } + set + { + this.OnPropertyChanging("UserEntityInstanceDataId"); + this.SetAttributeValue("userentityinstancedataid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserEntityInstanceDataId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityinstancedataid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserEntityInstanceDataId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 mailbox_userentityinstancedatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("mailbox_userentityinstancedatas")] + public Xrm.Framework.CI.Common.Entities.Mailbox mailbox_userentityinstancedatas + { + get + { + return this.GetRelatedEntity("mailbox_userentityinstancedatas", null); + } + set + { + this.OnPropertyChanging("mailbox_userentityinstancedatas"); + this.SetRelatedEntity("mailbox_userentityinstancedatas", null, value); + this.OnPropertyChanged("mailbox_userentityinstancedatas"); + } + } + + /// + /// N:1 msdyn_postalbum_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostAlbum msdyn_postalbum_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_postalbum_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postalbum_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_postalbum_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postalbum_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_postconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postconfig_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostConfig msdyn_postconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_postconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postconfig_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_postconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postconfig_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_postruleconfig_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postruleconfig_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_PostRuleConfig msdyn_postruleconfig_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_postruleconfig_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_postruleconfig_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_postruleconfig_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_postruleconfig_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_wallsavedquery_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedquery_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedquery msdyn_wallsavedquery_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedquery_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedquery_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_wallsavedquery_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedquery_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas")] + public Xrm.Framework.CI.Common.Entities.msdyn_wallsavedqueryusersettings msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas + { + get + { + return this.GetRelatedEntity("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null); + } + set + { + this.OnPropertyChanging("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + this.SetRelatedEntity("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas", null, value); + this.OnPropertyChanged("msdyn_wallsavedqueryusersettings_UserEntityInstanceDatas"); + } + } + + /// + /// N:1 team_userentityinstancedata + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityinstancedata")] + public Xrm.Framework.CI.Common.Entities.Team team_userentityinstancedata + { + get + { + return this.GetRelatedEntity("team_userentityinstancedata", null); + } + } + + /// + /// N:1 userentityinstancedata_account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_account")] + public Xrm.Framework.CI.Common.Entities.Account userentityinstancedata_account + { + get + { + return this.GetRelatedEntity("userentityinstancedata_account", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_account"); + this.SetRelatedEntity("userentityinstancedata_account", null, value); + this.OnPropertyChanged("userentityinstancedata_account"); + } + } + + /// + /// N:1 userentityinstancedata_activitymimeattachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activitymimeattachment")] + public Xrm.Framework.CI.Common.Entities.ActivityMimeAttachment userentityinstancedata_activitymimeattachment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_activitymimeattachment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activitymimeattachment"); + this.SetRelatedEntity("userentityinstancedata_activitymimeattachment", null, value); + this.OnPropertyChanged("userentityinstancedata_activitymimeattachment"); + } + } + + /// + /// N:1 userentityinstancedata_activityparty + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_activityparty")] + public Xrm.Framework.CI.Common.Entities.ActivityParty userentityinstancedata_activityparty + { + get + { + return this.GetRelatedEntity("userentityinstancedata_activityparty", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_activityparty"); + this.SetRelatedEntity("userentityinstancedata_activityparty", null, value); + this.OnPropertyChanged("userentityinstancedata_activityparty"); + } + } + + /// + /// N:1 userentityinstancedata_annotation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_annotation")] + public Xrm.Framework.CI.Common.Entities.Annotation userentityinstancedata_annotation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_annotation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_annotation"); + this.SetRelatedEntity("userentityinstancedata_annotation", null, value); + this.OnPropertyChanged("userentityinstancedata_annotation"); + } + } + + /// + /// N:1 userentityinstancedata_appointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_appointment")] + public Xrm.Framework.CI.Common.Entities.Appointment userentityinstancedata_appointment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_appointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_appointment"); + this.SetRelatedEntity("userentityinstancedata_appointment", null, value); + this.OnPropertyChanged("userentityinstancedata_appointment"); + } + } + + /// + /// N:1 userentityinstancedata_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_asyncoperation")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation userentityinstancedata_asyncoperation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_asyncoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_asyncoperation"); + this.SetRelatedEntity("userentityinstancedata_asyncoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_asyncoperation"); + } + } + + /// + /// N:1 userentityinstancedata_attributemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_attributemap")] + public Xrm.Framework.CI.Common.Entities.AttributeMap userentityinstancedata_attributemap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_attributemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_attributemap"); + this.SetRelatedEntity("userentityinstancedata_attributemap", null, value); + this.OnPropertyChanged("userentityinstancedata_attributemap"); + } + } + + /// + /// N:1 userentityinstancedata_audit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_audit")] + public Xrm.Framework.CI.Common.Entities.Audit userentityinstancedata_audit + { + get + { + return this.GetRelatedEntity("userentityinstancedata_audit", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_audit"); + this.SetRelatedEntity("userentityinstancedata_audit", null, value); + this.OnPropertyChanged("userentityinstancedata_audit"); + } + } + + /// + /// N:1 userentityinstancedata_bulkdeletefailure + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeletefailure")] + public Xrm.Framework.CI.Common.Entities.BulkDeleteFailure userentityinstancedata_bulkdeletefailure + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkdeletefailure", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeletefailure"); + this.SetRelatedEntity("userentityinstancedata_bulkdeletefailure", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeletefailure"); + } + } + + /// + /// N:1 userentityinstancedata_bulkdeleteoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkdeleteoperation")] + public Xrm.Framework.CI.Common.Entities.BulkDeleteOperation userentityinstancedata_bulkdeleteoperation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkdeleteoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkdeleteoperation"); + this.SetRelatedEntity("userentityinstancedata_bulkdeleteoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkdeleteoperation"); + } + } + + /// + /// N:1 userentityinstancedata_bulkoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperation")] + public Xrm.Framework.CI.Common.Entities.BulkOperation userentityinstancedata_bulkoperation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkoperation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperation"); + this.SetRelatedEntity("userentityinstancedata_bulkoperation", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperation"); + } + } + + /// + /// N:1 userentityinstancedata_bulkoperationlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_bulkoperationlog")] + public Xrm.Framework.CI.Common.Entities.BulkOperationLog userentityinstancedata_bulkoperationlog + { + get + { + return this.GetRelatedEntity("userentityinstancedata_bulkoperationlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_bulkoperationlog"); + this.SetRelatedEntity("userentityinstancedata_bulkoperationlog", null, value); + this.OnPropertyChanged("userentityinstancedata_bulkoperationlog"); + } + } + + /// + /// N:1 userentityinstancedata_businessunit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunit")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit userentityinstancedata_businessunit + { + get + { + return this.GetRelatedEntity("userentityinstancedata_businessunit", null); + } + } + + /// + /// N:1 userentityinstancedata_businessunitnewsarticle + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_businessunitnewsarticle")] + public Xrm.Framework.CI.Common.Entities.BusinessUnitNewsArticle userentityinstancedata_businessunitnewsarticle + { + get + { + return this.GetRelatedEntity("userentityinstancedata_businessunitnewsarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_businessunitnewsarticle"); + this.SetRelatedEntity("userentityinstancedata_businessunitnewsarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_businessunitnewsarticle"); + } + } + + /// + /// N:1 userentityinstancedata_calendar + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_calendar")] + public Xrm.Framework.CI.Common.Entities.Calendar userentityinstancedata_calendar + { + get + { + return this.GetRelatedEntity("userentityinstancedata_calendar", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_calendar"); + this.SetRelatedEntity("userentityinstancedata_calendar", null, value); + this.OnPropertyChanged("userentityinstancedata_calendar"); + } + } + + /// + /// N:1 userentityinstancedata_campaign + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaign")] + public Xrm.Framework.CI.Common.Entities.Campaign userentityinstancedata_campaign + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaign", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaign"); + this.SetRelatedEntity("userentityinstancedata_campaign", null, value); + this.OnPropertyChanged("userentityinstancedata_campaign"); + } + } + + /// + /// N:1 userentityinstancedata_campaignactivity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivity")] + public Xrm.Framework.CI.Common.Entities.CampaignActivity userentityinstancedata_campaignactivity + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignactivity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivity"); + this.SetRelatedEntity("userentityinstancedata_campaignactivity", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivity"); + } + } + + /// + /// N:1 userentityinstancedata_campaignactivityitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignactivityitem")] + public Xrm.Framework.CI.Common.Entities.CampaignActivityItem userentityinstancedata_campaignactivityitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignactivityitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignactivityitem"); + this.SetRelatedEntity("userentityinstancedata_campaignactivityitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignactivityitem"); + } + } + + /// + /// N:1 userentityinstancedata_campaignitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignitem")] + public Xrm.Framework.CI.Common.Entities.CampaignItem userentityinstancedata_campaignitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignitem"); + this.SetRelatedEntity("userentityinstancedata_campaignitem", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignitem"); + } + } + + /// + /// N:1 userentityinstancedata_campaignresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_campaignresponse")] + public Xrm.Framework.CI.Common.Entities.CampaignResponse userentityinstancedata_campaignresponse + { + get + { + return this.GetRelatedEntity("userentityinstancedata_campaignresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_campaignresponse"); + this.SetRelatedEntity("userentityinstancedata_campaignresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_campaignresponse"); + } + } + + /// + /// N:1 userentityinstancedata_columnmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_columnmapping")] + public Xrm.Framework.CI.Common.Entities.ColumnMapping userentityinstancedata_columnmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_columnmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_columnmapping"); + this.SetRelatedEntity("userentityinstancedata_columnmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_columnmapping"); + } + } + + /// + /// N:1 userentityinstancedata_competitor + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitor")] + public Xrm.Framework.CI.Common.Entities.Competitor userentityinstancedata_competitor + { + get + { + return this.GetRelatedEntity("userentityinstancedata_competitor", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitor"); + this.SetRelatedEntity("userentityinstancedata_competitor", null, value); + this.OnPropertyChanged("userentityinstancedata_competitor"); + } + } + + /// + /// N:1 userentityinstancedata_competitorproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorproduct")] + public Xrm.Framework.CI.Common.Entities.CompetitorProduct userentityinstancedata_competitorproduct + { + get + { + return this.GetRelatedEntity("userentityinstancedata_competitorproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorproduct"); + this.SetRelatedEntity("userentityinstancedata_competitorproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorproduct"); + } + } + + /// + /// N:1 userentityinstancedata_competitorsalesliterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_competitorsalesliterature")] + public Xrm.Framework.CI.Common.Entities.CompetitorSalesLiterature userentityinstancedata_competitorsalesliterature + { + get + { + return this.GetRelatedEntity("userentityinstancedata_competitorsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_competitorsalesliterature"); + this.SetRelatedEntity("userentityinstancedata_competitorsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_competitorsalesliterature"); + } + } + + /// + /// N:1 userentityinstancedata_connection + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connection")] + public Xrm.Framework.CI.Common.Entities.Connection userentityinstancedata_connection + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connection", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connection"); + this.SetRelatedEntity("userentityinstancedata_connection", null, value); + this.OnPropertyChanged("userentityinstancedata_connection"); + } + } + + /// + /// N:1 userentityinstancedata_connectionrole + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionrole")] + public Xrm.Framework.CI.Common.Entities.ConnectionRole userentityinstancedata_connectionrole + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connectionrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionrole"); + this.SetRelatedEntity("userentityinstancedata_connectionrole", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionrole"); + } + } + + /// + /// N:1 userentityinstancedata_connectionroleassociation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleassociation")] + public Xrm.Framework.CI.Common.Entities.ConnectionRoleAssociation userentityinstancedata_connectionroleassociation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connectionroleassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleassociation"); + this.SetRelatedEntity("userentityinstancedata_connectionroleassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleassociation"); + } + } + + /// + /// N:1 userentityinstancedata_connectionroleobjecttypecode + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_connectionroleobjecttypecode")] + public Xrm.Framework.CI.Common.Entities.ConnectionRoleObjectTypeCode userentityinstancedata_connectionroleobjecttypecode + { + get + { + return this.GetRelatedEntity("userentityinstancedata_connectionroleobjecttypecode", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_connectionroleobjecttypecode"); + this.SetRelatedEntity("userentityinstancedata_connectionroleobjecttypecode", null, value); + this.OnPropertyChanged("userentityinstancedata_connectionroleobjecttypecode"); + } + } + + /// + /// N:1 userentityinstancedata_constraintbasedgroup + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_constraintbasedgroup")] + public Xrm.Framework.CI.Common.Entities.ConstraintBasedGroup userentityinstancedata_constraintbasedgroup + { + get + { + return this.GetRelatedEntity("userentityinstancedata_constraintbasedgroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_constraintbasedgroup"); + this.SetRelatedEntity("userentityinstancedata_constraintbasedgroup", null, value); + this.OnPropertyChanged("userentityinstancedata_constraintbasedgroup"); + } + } + + /// + /// N:1 userentityinstancedata_contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contact")] + public Xrm.Framework.CI.Common.Entities.Contact userentityinstancedata_contact + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contact", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contact"); + this.SetRelatedEntity("userentityinstancedata_contact", null, value); + this.OnPropertyChanged("userentityinstancedata_contact"); + } + } + + /// + /// N:1 userentityinstancedata_contract + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contract")] + public Xrm.Framework.CI.Common.Entities.Contract userentityinstancedata_contract + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contract", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contract"); + this.SetRelatedEntity("userentityinstancedata_contract", null, value); + this.OnPropertyChanged("userentityinstancedata_contract"); + } + } + + /// + /// N:1 userentityinstancedata_contractdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contractdetail")] + public Xrm.Framework.CI.Common.Entities.ContractDetail userentityinstancedata_contractdetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contractdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contractdetail"); + this.SetRelatedEntity("userentityinstancedata_contractdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_contractdetail"); + } + } + + /// + /// N:1 userentityinstancedata_contracttemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_contracttemplate")] + public Xrm.Framework.CI.Common.Entities.ContractTemplate userentityinstancedata_contracttemplate + { + get + { + return this.GetRelatedEntity("userentityinstancedata_contracttemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_contracttemplate"); + this.SetRelatedEntity("userentityinstancedata_contracttemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_contracttemplate"); + } + } + + /// + /// N:1 userentityinstancedata_customeraddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeraddress")] + public Xrm.Framework.CI.Common.Entities.CustomerAddress userentityinstancedata_customeraddress + { + get + { + return this.GetRelatedEntity("userentityinstancedata_customeraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeraddress"); + this.SetRelatedEntity("userentityinstancedata_customeraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_customeraddress"); + } + } + + /// + /// N:1 userentityinstancedata_customeropportunityrole + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customeropportunityrole")] + public Xrm.Framework.CI.Common.Entities.CustomerOpportunityRole userentityinstancedata_customeropportunityrole + { + get + { + return this.GetRelatedEntity("userentityinstancedata_customeropportunityrole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customeropportunityrole"); + this.SetRelatedEntity("userentityinstancedata_customeropportunityrole", null, value); + this.OnPropertyChanged("userentityinstancedata_customeropportunityrole"); + } + } + + /// + /// N:1 userentityinstancedata_customerrelationship + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_customerrelationship")] + public Xrm.Framework.CI.Common.Entities.CustomerRelationship userentityinstancedata_customerrelationship + { + get + { + return this.GetRelatedEntity("userentityinstancedata_customerrelationship", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_customerrelationship"); + this.SetRelatedEntity("userentityinstancedata_customerrelationship", null, value); + this.OnPropertyChanged("userentityinstancedata_customerrelationship"); + } + } + + /// + /// N:1 userentityinstancedata_dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_dependency")] + public Xrm.Framework.CI.Common.Entities.Dependency userentityinstancedata_dependency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_dependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_dependency"); + this.SetRelatedEntity("userentityinstancedata_dependency", null, value); + this.OnPropertyChanged("userentityinstancedata_dependency"); + } + } + + /// + /// N:1 userentityinstancedata_discount + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discount")] + public Xrm.Framework.CI.Common.Entities.Discount userentityinstancedata_discount + { + get + { + return this.GetRelatedEntity("userentityinstancedata_discount", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discount"); + this.SetRelatedEntity("userentityinstancedata_discount", null, value); + this.OnPropertyChanged("userentityinstancedata_discount"); + } + } + + /// + /// N:1 userentityinstancedata_discounttype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_discounttype")] + public Xrm.Framework.CI.Common.Entities.DiscountType userentityinstancedata_discounttype + { + get + { + return this.GetRelatedEntity("userentityinstancedata_discounttype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_discounttype"); + this.SetRelatedEntity("userentityinstancedata_discounttype", null, value); + this.OnPropertyChanged("userentityinstancedata_discounttype"); + } + } + + /// + /// N:1 userentityinstancedata_displaystring + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_displaystring")] + public Xrm.Framework.CI.Common.Entities.DisplayString userentityinstancedata_displaystring + { + get + { + return this.GetRelatedEntity("userentityinstancedata_displaystring", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_displaystring"); + this.SetRelatedEntity("userentityinstancedata_displaystring", null, value); + this.OnPropertyChanged("userentityinstancedata_displaystring"); + } + } + + /// + /// N:1 userentityinstancedata_duplicaterecord + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterecord")] + public Xrm.Framework.CI.Common.Entities.DuplicateRecord userentityinstancedata_duplicaterecord + { + get + { + return this.GetRelatedEntity("userentityinstancedata_duplicaterecord", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterecord"); + this.SetRelatedEntity("userentityinstancedata_duplicaterecord", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterecord"); + } + } + + /// + /// N:1 userentityinstancedata_duplicaterule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterule")] + public Xrm.Framework.CI.Common.Entities.DuplicateRule userentityinstancedata_duplicaterule + { + get + { + return this.GetRelatedEntity("userentityinstancedata_duplicaterule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterule"); + this.SetRelatedEntity("userentityinstancedata_duplicaterule", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterule"); + } + } + + /// + /// N:1 userentityinstancedata_duplicaterulecondition + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterulecondition")] + public Xrm.Framework.CI.Common.Entities.DuplicateRuleCondition userentityinstancedata_duplicaterulecondition + { + get + { + return this.GetRelatedEntity("userentityinstancedata_duplicaterulecondition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_duplicaterulecondition"); + this.SetRelatedEntity("userentityinstancedata_duplicaterulecondition", null, value); + this.OnPropertyChanged("userentityinstancedata_duplicaterulecondition"); + } + } + + /// + /// N:1 userentityinstancedata_email + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_email")] + public Xrm.Framework.CI.Common.Entities.Email userentityinstancedata_email + { + get + { + return this.GetRelatedEntity("userentityinstancedata_email", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_email"); + this.SetRelatedEntity("userentityinstancedata_email", null, value); + this.OnPropertyChanged("userentityinstancedata_email"); + } + } + + /// + /// N:1 userentityinstancedata_entitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_entitymap")] + public Xrm.Framework.CI.Common.Entities.EntityMap userentityinstancedata_entitymap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_entitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_entitymap"); + this.SetRelatedEntity("userentityinstancedata_entitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_entitymap"); + } + } + + /// + /// N:1 userentityinstancedata_equipment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_equipment")] + public Xrm.Framework.CI.Common.Entities.Equipment userentityinstancedata_equipment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_equipment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_equipment"); + this.SetRelatedEntity("userentityinstancedata_equipment", null, value); + this.OnPropertyChanged("userentityinstancedata_equipment"); + } + } + + /// + /// N:1 userentityinstancedata_fax + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fax")] + public Xrm.Framework.CI.Common.Entities.Fax userentityinstancedata_fax + { + get + { + return this.GetRelatedEntity("userentityinstancedata_fax", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fax"); + this.SetRelatedEntity("userentityinstancedata_fax", null, value); + this.OnPropertyChanged("userentityinstancedata_fax"); + } + } + + /// + /// N:1 userentityinstancedata_fieldpermission + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldpermission")] + public Xrm.Framework.CI.Common.Entities.FieldPermission userentityinstancedata_fieldpermission + { + get + { + return this.GetRelatedEntity("userentityinstancedata_fieldpermission", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldpermission"); + this.SetRelatedEntity("userentityinstancedata_fieldpermission", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldpermission"); + } + } + + /// + /// N:1 userentityinstancedata_fieldsecurityprofile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_fieldsecurityprofile")] + public Xrm.Framework.CI.Common.Entities.FieldSecurityProfile userentityinstancedata_fieldsecurityprofile + { + get + { + return this.GetRelatedEntity("userentityinstancedata_fieldsecurityprofile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_fieldsecurityprofile"); + this.SetRelatedEntity("userentityinstancedata_fieldsecurityprofile", null, value); + this.OnPropertyChanged("userentityinstancedata_fieldsecurityprofile"); + } + } + + /// + /// N:1 userentityinstancedata_goal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goal")] + public Xrm.Framework.CI.Common.Entities.Goal userentityinstancedata_goal + { + get + { + return this.GetRelatedEntity("userentityinstancedata_goal", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goal"); + this.SetRelatedEntity("userentityinstancedata_goal", null, value); + this.OnPropertyChanged("userentityinstancedata_goal"); + } + } + + /// + /// N:1 userentityinstancedata_goalrollupquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_goalrollupquery")] + public Xrm.Framework.CI.Common.Entities.GoalRollupQuery userentityinstancedata_goalrollupquery + { + get + { + return this.GetRelatedEntity("userentityinstancedata_goalrollupquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_goalrollupquery"); + this.SetRelatedEntity("userentityinstancedata_goalrollupquery", null, value); + this.OnPropertyChanged("userentityinstancedata_goalrollupquery"); + } + } + + /// + /// N:1 userentityinstancedata_import + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_import")] + public Xrm.Framework.CI.Common.Entities.Import userentityinstancedata_import + { + get + { + return this.GetRelatedEntity("userentityinstancedata_import", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_import"); + this.SetRelatedEntity("userentityinstancedata_import", null, value); + this.OnPropertyChanged("userentityinstancedata_import"); + } + } + + /// + /// N:1 userentityinstancedata_importentitymapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importentitymapping")] + public Xrm.Framework.CI.Common.Entities.ImportEntityMapping userentityinstancedata_importentitymapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importentitymapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importentitymapping"); + this.SetRelatedEntity("userentityinstancedata_importentitymapping", null, value); + this.OnPropertyChanged("userentityinstancedata_importentitymapping"); + } + } + + /// + /// N:1 userentityinstancedata_importfile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importfile")] + public Xrm.Framework.CI.Common.Entities.ImportFile userentityinstancedata_importfile + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importfile", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importfile"); + this.SetRelatedEntity("userentityinstancedata_importfile", null, value); + this.OnPropertyChanged("userentityinstancedata_importfile"); + } + } + + /// + /// N:1 userentityinstancedata_importjob + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importjob")] + public Xrm.Framework.CI.Common.Entities.ImportJob userentityinstancedata_importjob + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importjob", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importjob"); + this.SetRelatedEntity("userentityinstancedata_importjob", null, value); + this.OnPropertyChanged("userentityinstancedata_importjob"); + } + } + + /// + /// N:1 userentityinstancedata_importlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importlog")] + public Xrm.Framework.CI.Common.Entities.ImportLog userentityinstancedata_importlog + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importlog"); + this.SetRelatedEntity("userentityinstancedata_importlog", null, value); + this.OnPropertyChanged("userentityinstancedata_importlog"); + } + } + + /// + /// N:1 userentityinstancedata_importmap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_importmap")] + public Xrm.Framework.CI.Common.Entities.ImportMap userentityinstancedata_importmap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_importmap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_importmap"); + this.SetRelatedEntity("userentityinstancedata_importmap", null, value); + this.OnPropertyChanged("userentityinstancedata_importmap"); + } + } + + /// + /// N:1 userentityinstancedata_incident + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incident")] + public Xrm.Framework.CI.Common.Entities.Incident userentityinstancedata_incident + { + get + { + return this.GetRelatedEntity("userentityinstancedata_incident", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incident"); + this.SetRelatedEntity("userentityinstancedata_incident", null, value); + this.OnPropertyChanged("userentityinstancedata_incident"); + } + } + + /// + /// N:1 userentityinstancedata_incidentresolution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_incidentresolution")] + public Xrm.Framework.CI.Common.Entities.IncidentResolution userentityinstancedata_incidentresolution + { + get + { + return this.GetRelatedEntity("userentityinstancedata_incidentresolution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_incidentresolution"); + this.SetRelatedEntity("userentityinstancedata_incidentresolution", null, value); + this.OnPropertyChanged("userentityinstancedata_incidentresolution"); + } + } + + /// + /// N:1 userentityinstancedata_invaliddependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invaliddependency")] + public Xrm.Framework.CI.Common.Entities.InvalidDependency userentityinstancedata_invaliddependency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_invaliddependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invaliddependency"); + this.SetRelatedEntity("userentityinstancedata_invaliddependency", null, value); + this.OnPropertyChanged("userentityinstancedata_invaliddependency"); + } + } + + /// + /// N:1 userentityinstancedata_invoice + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoice")] + public Xrm.Framework.CI.Common.Entities.Invoice userentityinstancedata_invoice + { + get + { + return this.GetRelatedEntity("userentityinstancedata_invoice", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoice"); + this.SetRelatedEntity("userentityinstancedata_invoice", null, value); + this.OnPropertyChanged("userentityinstancedata_invoice"); + } + } + + /// + /// N:1 userentityinstancedata_invoicedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_invoicedetail")] + public Xrm.Framework.CI.Common.Entities.InvoiceDetail userentityinstancedata_invoicedetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_invoicedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_invoicedetail"); + this.SetRelatedEntity("userentityinstancedata_invoicedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_invoicedetail"); + } + } + + /// + /// N:1 userentityinstancedata_isvconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_isvconfig")] + public Xrm.Framework.CI.Common.Entities.IsvConfig userentityinstancedata_isvconfig + { + get + { + return this.GetRelatedEntity("userentityinstancedata_isvconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_isvconfig"); + this.SetRelatedEntity("userentityinstancedata_isvconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_isvconfig"); + } + } + + /// + /// N:1 userentityinstancedata_kbarticle + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticle")] + public Xrm.Framework.CI.Common.Entities.KbArticle userentityinstancedata_kbarticle + { + get + { + return this.GetRelatedEntity("userentityinstancedata_kbarticle", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticle"); + this.SetRelatedEntity("userentityinstancedata_kbarticle", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticle"); + } + } + + /// + /// N:1 userentityinstancedata_kbarticlecomment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticlecomment")] + public Xrm.Framework.CI.Common.Entities.KbArticleComment userentityinstancedata_kbarticlecomment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_kbarticlecomment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticlecomment"); + this.SetRelatedEntity("userentityinstancedata_kbarticlecomment", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticlecomment"); + } + } + + /// + /// N:1 userentityinstancedata_kbarticletemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_kbarticletemplate")] + public Xrm.Framework.CI.Common.Entities.KbArticleTemplate userentityinstancedata_kbarticletemplate + { + get + { + return this.GetRelatedEntity("userentityinstancedata_kbarticletemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_kbarticletemplate"); + this.SetRelatedEntity("userentityinstancedata_kbarticletemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_kbarticletemplate"); + } + } + + /// + /// N:1 userentityinstancedata_lead + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lead")] + public Xrm.Framework.CI.Common.Entities.Lead userentityinstancedata_lead + { + get + { + return this.GetRelatedEntity("userentityinstancedata_lead", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lead"); + this.SetRelatedEntity("userentityinstancedata_lead", null, value); + this.OnPropertyChanged("userentityinstancedata_lead"); + } + } + + /// + /// N:1 userentityinstancedata_leadaddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadaddress")] + public Xrm.Framework.CI.Common.Entities.LeadAddress userentityinstancedata_leadaddress + { + get + { + return this.GetRelatedEntity("userentityinstancedata_leadaddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadaddress"); + this.SetRelatedEntity("userentityinstancedata_leadaddress", null, value); + this.OnPropertyChanged("userentityinstancedata_leadaddress"); + } + } + + /// + /// N:1 userentityinstancedata_leadproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_leadproduct")] + public Xrm.Framework.CI.Common.Entities.LeadProduct userentityinstancedata_leadproduct + { + get + { + return this.GetRelatedEntity("userentityinstancedata_leadproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_leadproduct"); + this.SetRelatedEntity("userentityinstancedata_leadproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_leadproduct"); + } + } + + /// + /// N:1 userentityinstancedata_letter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_letter")] + public Xrm.Framework.CI.Common.Entities.Letter userentityinstancedata_letter + { + get + { + return this.GetRelatedEntity("userentityinstancedata_letter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_letter"); + this.SetRelatedEntity("userentityinstancedata_letter", null, value); + this.OnPropertyChanged("userentityinstancedata_letter"); + } + } + + /// + /// N:1 userentityinstancedata_license + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_license")] + public Xrm.Framework.CI.Common.Entities.License userentityinstancedata_license + { + get + { + return this.GetRelatedEntity("userentityinstancedata_license", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_license"); + this.SetRelatedEntity("userentityinstancedata_license", null, value); + this.OnPropertyChanged("userentityinstancedata_license"); + } + } + + /// + /// N:1 userentityinstancedata_list + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_list")] + public Xrm.Framework.CI.Common.Entities.List userentityinstancedata_list + { + get + { + return this.GetRelatedEntity("userentityinstancedata_list", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_list"); + this.SetRelatedEntity("userentityinstancedata_list", null, value); + this.OnPropertyChanged("userentityinstancedata_list"); + } + } + + /// + /// N:1 userentityinstancedata_listmember + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_listmember")] + public Xrm.Framework.CI.Common.Entities.ListMember userentityinstancedata_listmember + { + get + { + return this.GetRelatedEntity("userentityinstancedata_listmember", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_listmember"); + this.SetRelatedEntity("userentityinstancedata_listmember", null, value); + this.OnPropertyChanged("userentityinstancedata_listmember"); + } + } + + /// + /// N:1 userentityinstancedata_lookupmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_lookupmapping")] + public Xrm.Framework.CI.Common.Entities.LookUpMapping userentityinstancedata_lookupmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_lookupmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_lookupmapping"); + this.SetRelatedEntity("userentityinstancedata_lookupmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_lookupmapping"); + } + } + + /// + /// N:1 userentityinstancedata_mailmergetemplate + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_mailmergetemplate")] + public Xrm.Framework.CI.Common.Entities.MailMergeTemplate userentityinstancedata_mailmergetemplate + { + get + { + return this.GetRelatedEntity("userentityinstancedata_mailmergetemplate", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_mailmergetemplate"); + this.SetRelatedEntity("userentityinstancedata_mailmergetemplate", null, value); + this.OnPropertyChanged("userentityinstancedata_mailmergetemplate"); + } + } + + /// + /// N:1 userentityinstancedata_metric + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_metric")] + public Xrm.Framework.CI.Common.Entities.Metric userentityinstancedata_metric + { + get + { + return this.GetRelatedEntity("userentityinstancedata_metric", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_metric"); + this.SetRelatedEntity("userentityinstancedata_metric", null, value); + this.OnPropertyChanged("userentityinstancedata_metric"); + } + } + + /// + /// N:1 userentityinstancedata_opportunity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunity")] + public Xrm.Framework.CI.Common.Entities.Opportunity userentityinstancedata_opportunity + { + get + { + return this.GetRelatedEntity("userentityinstancedata_opportunity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunity"); + this.SetRelatedEntity("userentityinstancedata_opportunity", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunity"); + } + } + + /// + /// N:1 userentityinstancedata_opportunityclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityclose")] + public Xrm.Framework.CI.Common.Entities.OpportunityClose userentityinstancedata_opportunityclose + { + get + { + return this.GetRelatedEntity("userentityinstancedata_opportunityclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityclose"); + this.SetRelatedEntity("userentityinstancedata_opportunityclose", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityclose"); + } + } + + /// + /// N:1 userentityinstancedata_opportunityproduct + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_opportunityproduct")] + public Xrm.Framework.CI.Common.Entities.OpportunityProduct userentityinstancedata_opportunityproduct + { + get + { + return this.GetRelatedEntity("userentityinstancedata_opportunityproduct", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_opportunityproduct"); + this.SetRelatedEntity("userentityinstancedata_opportunityproduct", null, value); + this.OnPropertyChanged("userentityinstancedata_opportunityproduct"); + } + } + + /// + /// N:1 userentityinstancedata_orderclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_orderclose")] + public Xrm.Framework.CI.Common.Entities.OrderClose userentityinstancedata_orderclose + { + get + { + return this.GetRelatedEntity("userentityinstancedata_orderclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_orderclose"); + this.SetRelatedEntity("userentityinstancedata_orderclose", null, value); + this.OnPropertyChanged("userentityinstancedata_orderclose"); + } + } + + /// + /// N:1 userentityinstancedata_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_organization")] + public Xrm.Framework.CI.Common.Entities.Organization userentityinstancedata_organization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_organization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_organization"); + this.SetRelatedEntity("userentityinstancedata_organization", null, value); + this.OnPropertyChanged("userentityinstancedata_organization"); + } + } + + /// + /// N:1 userentityinstancedata_ownermapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ownermapping")] + public Xrm.Framework.CI.Common.Entities.OwnerMapping userentityinstancedata_ownermapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_ownermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ownermapping"); + this.SetRelatedEntity("userentityinstancedata_ownermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_ownermapping"); + } + } + + /// + /// N:1 userentityinstancedata_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser userentityinstancedata_owning_user + { + get + { + return this.GetRelatedEntity("userentityinstancedata_owning_user", null); + } + } + + /// + /// N:1 userentityinstancedata_phonecall + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_phonecall")] + public Xrm.Framework.CI.Common.Entities.PhoneCall userentityinstancedata_phonecall + { + get + { + return this.GetRelatedEntity("userentityinstancedata_phonecall", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_phonecall"); + this.SetRelatedEntity("userentityinstancedata_phonecall", null, value); + this.OnPropertyChanged("userentityinstancedata_phonecall"); + } + } + + /// + /// N:1 userentityinstancedata_picklistmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_picklistmapping")] + public Xrm.Framework.CI.Common.Entities.PickListMapping userentityinstancedata_picklistmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_picklistmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_picklistmapping"); + this.SetRelatedEntity("userentityinstancedata_picklistmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_picklistmapping"); + } + } + + /// + /// N:1 userentityinstancedata_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pluginassembly")] + public Xrm.Framework.CI.Common.Entities.PluginAssembly userentityinstancedata_pluginassembly + { + get + { + return this.GetRelatedEntity("userentityinstancedata_pluginassembly", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pluginassembly"); + this.SetRelatedEntity("userentityinstancedata_pluginassembly", null, value); + this.OnPropertyChanged("userentityinstancedata_pluginassembly"); + } + } + + /// + /// N:1 userentityinstancedata_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintype")] + public Xrm.Framework.CI.Common.Entities.PluginType userentityinstancedata_plugintype + { + get + { + return this.GetRelatedEntity("userentityinstancedata_plugintype", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintype"); + this.SetRelatedEntity("userentityinstancedata_plugintype", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintype"); + } + } + + /// + /// N:1 userentityinstancedata_plugintypestatistic + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_plugintypestatistic")] + public Xrm.Framework.CI.Common.Entities.PluginTypeStatistic userentityinstancedata_plugintypestatistic + { + get + { + return this.GetRelatedEntity("userentityinstancedata_plugintypestatistic", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_plugintypestatistic"); + this.SetRelatedEntity("userentityinstancedata_plugintypestatistic", null, value); + this.OnPropertyChanged("userentityinstancedata_plugintypestatistic"); + } + } + + /// + /// N:1 userentityinstancedata_pricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_pricelevel")] + public Xrm.Framework.CI.Common.Entities.PriceLevel userentityinstancedata_pricelevel + { + get + { + return this.GetRelatedEntity("userentityinstancedata_pricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_pricelevel"); + this.SetRelatedEntity("userentityinstancedata_pricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_pricelevel"); + } + } + + /// + /// N:1 userentityinstancedata_principalentitymap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalentitymap")] + public Xrm.Framework.CI.Common.Entities.PrincipalEntityMap userentityinstancedata_principalentitymap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_principalentitymap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalentitymap"); + this.SetRelatedEntity("userentityinstancedata_principalentitymap", null, value); + this.OnPropertyChanged("userentityinstancedata_principalentitymap"); + } + } + + /// + /// N:1 userentityinstancedata_principalobjectattributeaccess + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_principalobjectattributeaccess")] + public Xrm.Framework.CI.Common.Entities.PrincipalObjectAttributeAccess userentityinstancedata_principalobjectattributeaccess + { + get + { + return this.GetRelatedEntity("userentityinstancedata_principalobjectattributeaccess", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_principalobjectattributeaccess"); + this.SetRelatedEntity("userentityinstancedata_principalobjectattributeaccess", null, value); + this.OnPropertyChanged("userentityinstancedata_principalobjectattributeaccess"); + } + } + + /// + /// N:1 userentityinstancedata_privilege + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_privilege")] + public Xrm.Framework.CI.Common.Entities.Privilege userentityinstancedata_privilege + { + get + { + return this.GetRelatedEntity("userentityinstancedata_privilege", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_privilege"); + this.SetRelatedEntity("userentityinstancedata_privilege", null, value); + this.OnPropertyChanged("userentityinstancedata_privilege"); + } + } + + /// + /// N:1 userentityinstancedata_processsession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_processsession")] + public Xrm.Framework.CI.Common.Entities.ProcessSession userentityinstancedata_processsession + { + get + { + return this.GetRelatedEntity("userentityinstancedata_processsession", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_processsession"); + this.SetRelatedEntity("userentityinstancedata_processsession", null, value); + this.OnPropertyChanged("userentityinstancedata_processsession"); + } + } + + /// + /// N:1 userentityinstancedata_product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_product")] + public Xrm.Framework.CI.Common.Entities.Product userentityinstancedata_product + { + get + { + return this.GetRelatedEntity("userentityinstancedata_product", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_product"); + this.SetRelatedEntity("userentityinstancedata_product", null, value); + this.OnPropertyChanged("userentityinstancedata_product"); + } + } + + /// + /// N:1 userentityinstancedata_productassociation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productassociation")] + public Xrm.Framework.CI.Common.Entities.ProductAssociation userentityinstancedata_productassociation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productassociation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productassociation"); + this.SetRelatedEntity("userentityinstancedata_productassociation", null, value); + this.OnPropertyChanged("userentityinstancedata_productassociation"); + } + } + + /// + /// N:1 userentityinstancedata_productpricelevel + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productpricelevel")] + public Xrm.Framework.CI.Common.Entities.ProductPriceLevel userentityinstancedata_productpricelevel + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productpricelevel", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productpricelevel"); + this.SetRelatedEntity("userentityinstancedata_productpricelevel", null, value); + this.OnPropertyChanged("userentityinstancedata_productpricelevel"); + } + } + + /// + /// N:1 userentityinstancedata_productsalesliterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsalesliterature")] + public Xrm.Framework.CI.Common.Entities.ProductSalesLiterature userentityinstancedata_productsalesliterature + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productsalesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsalesliterature"); + this.SetRelatedEntity("userentityinstancedata_productsalesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_productsalesliterature"); + } + } + + /// + /// N:1 userentityinstancedata_productsubstitute + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_productsubstitute")] + public Xrm.Framework.CI.Common.Entities.ProductSubstitute userentityinstancedata_productsubstitute + { + get + { + return this.GetRelatedEntity("userentityinstancedata_productsubstitute", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_productsubstitute"); + this.SetRelatedEntity("userentityinstancedata_productsubstitute", null, value); + this.OnPropertyChanged("userentityinstancedata_productsubstitute"); + } + } + + /// + /// N:1 userentityinstancedata_publisher + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisher")] + public Xrm.Framework.CI.Common.Entities.Publisher userentityinstancedata_publisher + { + get + { + return this.GetRelatedEntity("userentityinstancedata_publisher", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisher"); + this.SetRelatedEntity("userentityinstancedata_publisher", null, value); + this.OnPropertyChanged("userentityinstancedata_publisher"); + } + } + + /// + /// N:1 userentityinstancedata_publisheraddress + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_publisheraddress")] + public Xrm.Framework.CI.Common.Entities.PublisherAddress userentityinstancedata_publisheraddress + { + get + { + return this.GetRelatedEntity("userentityinstancedata_publisheraddress", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_publisheraddress"); + this.SetRelatedEntity("userentityinstancedata_publisheraddress", null, value); + this.OnPropertyChanged("userentityinstancedata_publisheraddress"); + } + } + + /// + /// N:1 userentityinstancedata_queue + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queue")] + public Xrm.Framework.CI.Common.Entities.Queue userentityinstancedata_queue + { + get + { + return this.GetRelatedEntity("userentityinstancedata_queue", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queue"); + this.SetRelatedEntity("userentityinstancedata_queue", null, value); + this.OnPropertyChanged("userentityinstancedata_queue"); + } + } + + /// + /// N:1 userentityinstancedata_queueitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_queueitem")] + public Xrm.Framework.CI.Common.Entities.QueueItem userentityinstancedata_queueitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_queueitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_queueitem"); + this.SetRelatedEntity("userentityinstancedata_queueitem", null, value); + this.OnPropertyChanged("userentityinstancedata_queueitem"); + } + } + + /// + /// N:1 userentityinstancedata_quote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quote")] + public Xrm.Framework.CI.Common.Entities.Quote userentityinstancedata_quote + { + get + { + return this.GetRelatedEntity("userentityinstancedata_quote", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quote"); + this.SetRelatedEntity("userentityinstancedata_quote", null, value); + this.OnPropertyChanged("userentityinstancedata_quote"); + } + } + + /// + /// N:1 userentityinstancedata_quoteclose + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quoteclose")] + public Xrm.Framework.CI.Common.Entities.QuoteClose userentityinstancedata_quoteclose + { + get + { + return this.GetRelatedEntity("userentityinstancedata_quoteclose", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quoteclose"); + this.SetRelatedEntity("userentityinstancedata_quoteclose", null, value); + this.OnPropertyChanged("userentityinstancedata_quoteclose"); + } + } + + /// + /// N:1 userentityinstancedata_quotedetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_quotedetail")] + public Xrm.Framework.CI.Common.Entities.QuoteDetail userentityinstancedata_quotedetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_quotedetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_quotedetail"); + this.SetRelatedEntity("userentityinstancedata_quotedetail", null, value); + this.OnPropertyChanged("userentityinstancedata_quotedetail"); + } + } + + /// + /// N:1 userentityinstancedata_recurringappointmentmaster + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_recurringappointmentmaster")] + public Xrm.Framework.CI.Common.Entities.RecurringAppointmentMaster userentityinstancedata_recurringappointmentmaster + { + get + { + return this.GetRelatedEntity("userentityinstancedata_recurringappointmentmaster", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_recurringappointmentmaster"); + this.SetRelatedEntity("userentityinstancedata_recurringappointmentmaster", null, value); + this.OnPropertyChanged("userentityinstancedata_recurringappointmentmaster"); + } + } + + /// + /// N:1 userentityinstancedata_relationshiprole + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprole")] + public Xrm.Framework.CI.Common.Entities.RelationshipRole userentityinstancedata_relationshiprole + { + get + { + return this.GetRelatedEntity("userentityinstancedata_relationshiprole", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprole"); + this.SetRelatedEntity("userentityinstancedata_relationshiprole", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprole"); + } + } + + /// + /// N:1 userentityinstancedata_relationshiprolemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_relationshiprolemap")] + public Xrm.Framework.CI.Common.Entities.RelationshipRoleMap userentityinstancedata_relationshiprolemap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_relationshiprolemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_relationshiprolemap"); + this.SetRelatedEntity("userentityinstancedata_relationshiprolemap", null, value); + this.OnPropertyChanged("userentityinstancedata_relationshiprolemap"); + } + } + + /// + /// N:1 userentityinstancedata_report + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_report")] + public Xrm.Framework.CI.Common.Entities.Report userentityinstancedata_report + { + get + { + return this.GetRelatedEntity("userentityinstancedata_report", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_report"); + this.SetRelatedEntity("userentityinstancedata_report", null, value); + this.OnPropertyChanged("userentityinstancedata_report"); + } + } + + /// + /// N:1 userentityinstancedata_reportcategory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportcategory")] + public Xrm.Framework.CI.Common.Entities.ReportCategory userentityinstancedata_reportcategory + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportcategory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportcategory"); + this.SetRelatedEntity("userentityinstancedata_reportcategory", null, value); + this.OnPropertyChanged("userentityinstancedata_reportcategory"); + } + } + + /// + /// N:1 userentityinstancedata_reportentity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportentity")] + public Xrm.Framework.CI.Common.Entities.ReportEntity userentityinstancedata_reportentity + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportentity", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportentity"); + this.SetRelatedEntity("userentityinstancedata_reportentity", null, value); + this.OnPropertyChanged("userentityinstancedata_reportentity"); + } + } + + /// + /// N:1 userentityinstancedata_reportlink + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportlink")] + public Xrm.Framework.CI.Common.Entities.ReportLink userentityinstancedata_reportlink + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportlink", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportlink"); + this.SetRelatedEntity("userentityinstancedata_reportlink", null, value); + this.OnPropertyChanged("userentityinstancedata_reportlink"); + } + } + + /// + /// N:1 userentityinstancedata_reportvisibility + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_reportvisibility")] + public Xrm.Framework.CI.Common.Entities.ReportVisibility userentityinstancedata_reportvisibility + { + get + { + return this.GetRelatedEntity("userentityinstancedata_reportvisibility", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_reportvisibility"); + this.SetRelatedEntity("userentityinstancedata_reportvisibility", null, value); + this.OnPropertyChanged("userentityinstancedata_reportvisibility"); + } + } + + /// + /// N:1 userentityinstancedata_resource + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resource")] + public Xrm.Framework.CI.Common.Entities.Resource userentityinstancedata_resource + { + get + { + return this.GetRelatedEntity("userentityinstancedata_resource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resource"); + this.SetRelatedEntity("userentityinstancedata_resource", null, value); + this.OnPropertyChanged("userentityinstancedata_resource"); + } + } + + /// + /// N:1 userentityinstancedata_resourcegroup + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcegroup")] + public Xrm.Framework.CI.Common.Entities.ResourceGroup userentityinstancedata_resourcegroup + { + get + { + return this.GetRelatedEntity("userentityinstancedata_resourcegroup", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcegroup"); + this.SetRelatedEntity("userentityinstancedata_resourcegroup", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcegroup"); + } + } + + /// + /// N:1 userentityinstancedata_resourcespec + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_resourcespec")] + public Xrm.Framework.CI.Common.Entities.ResourceSpec userentityinstancedata_resourcespec + { + get + { + return this.GetRelatedEntity("userentityinstancedata_resourcespec", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_resourcespec"); + this.SetRelatedEntity("userentityinstancedata_resourcespec", null, value); + this.OnPropertyChanged("userentityinstancedata_resourcespec"); + } + } + + /// + /// N:1 userentityinstancedata_ribboncustomization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_ribboncustomization")] + public Xrm.Framework.CI.Common.Entities.RibbonCustomization userentityinstancedata_ribboncustomization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_ribboncustomization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_ribboncustomization"); + this.SetRelatedEntity("userentityinstancedata_ribboncustomization", null, value); + this.OnPropertyChanged("userentityinstancedata_ribboncustomization"); + } + } + + /// + /// N:1 userentityinstancedata_role + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_role")] + public Xrm.Framework.CI.Common.Entities.Role userentityinstancedata_role + { + get + { + return this.GetRelatedEntity("userentityinstancedata_role", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_role"); + this.SetRelatedEntity("userentityinstancedata_role", null, value); + this.OnPropertyChanged("userentityinstancedata_role"); + } + } + + /// + /// N:1 userentityinstancedata_rollupfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_rollupfield")] + public Xrm.Framework.CI.Common.Entities.RollupField userentityinstancedata_rollupfield + { + get + { + return this.GetRelatedEntity("userentityinstancedata_rollupfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_rollupfield"); + this.SetRelatedEntity("userentityinstancedata_rollupfield", null, value); + this.OnPropertyChanged("userentityinstancedata_rollupfield"); + } + } + + /// + /// N:1 userentityinstancedata_salesliterature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliterature")] + public Xrm.Framework.CI.Common.Entities.SalesLiterature userentityinstancedata_salesliterature + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesliterature", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliterature"); + this.SetRelatedEntity("userentityinstancedata_salesliterature", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliterature"); + } + } + + /// + /// N:1 userentityinstancedata_salesliteratureitem + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesliteratureitem")] + public Xrm.Framework.CI.Common.Entities.SalesLiteratureItem userentityinstancedata_salesliteratureitem + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesliteratureitem", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesliteratureitem"); + this.SetRelatedEntity("userentityinstancedata_salesliteratureitem", null, value); + this.OnPropertyChanged("userentityinstancedata_salesliteratureitem"); + } + } + + /// + /// N:1 userentityinstancedata_salesorder + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorder")] + public Xrm.Framework.CI.Common.Entities.SalesOrder userentityinstancedata_salesorder + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesorder", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorder"); + this.SetRelatedEntity("userentityinstancedata_salesorder", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorder"); + } + } + + /// + /// N:1 userentityinstancedata_salesorderdetail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_salesorderdetail")] + public Xrm.Framework.CI.Common.Entities.SalesOrderDetail userentityinstancedata_salesorderdetail + { + get + { + return this.GetRelatedEntity("userentityinstancedata_salesorderdetail", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_salesorderdetail"); + this.SetRelatedEntity("userentityinstancedata_salesorderdetail", null, value); + this.OnPropertyChanged("userentityinstancedata_salesorderdetail"); + } + } + + /// + /// N:1 userentityinstancedata_savedquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedquery")] + public Xrm.Framework.CI.Common.Entities.SavedQuery userentityinstancedata_savedquery + { + get + { + return this.GetRelatedEntity("userentityinstancedata_savedquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedquery"); + this.SetRelatedEntity("userentityinstancedata_savedquery", null, value); + this.OnPropertyChanged("userentityinstancedata_savedquery"); + } + } + + /// + /// N:1 userentityinstancedata_savedqueryvisualization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_savedqueryvisualization")] + public Xrm.Framework.CI.Common.Entities.SavedQueryVisualization userentityinstancedata_savedqueryvisualization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_savedqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_savedqueryvisualization"); + this.SetRelatedEntity("userentityinstancedata_savedqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_savedqueryvisualization"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessage")] + public Xrm.Framework.CI.Common.Entities.SdkMessage userentityinstancedata_sdkmessage + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessage"); + this.SetRelatedEntity("userentityinstancedata_sdkmessage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessage"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagefilter")] + public Xrm.Framework.CI.Common.Entities.SdkMessageFilter userentityinstancedata_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagefilter"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagefilter", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagefilter"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagepair + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagepair")] + public Xrm.Framework.CI.Common.Entities.SdkMessagePair userentityinstancedata_sdkmessagepair + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagepair", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagepair"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagepair", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagepair"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstep")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStep userentityinstancedata_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstep"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepimage")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepImage userentityinstancedata_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepimage"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepimage"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageprocessingstepsecureconfig + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageprocessingstepsecureconfig")] + public Xrm.Framework.CI.Common.Entities.SdkMessageProcessingStepSecureConfig userentityinstancedata_sdkmessageprocessingstepsecureconfig + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageprocessingstepsecureconfig", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageprocessingstepsecureconfig"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagerequest + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequest")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequest userentityinstancedata_sdkmessagerequest + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagerequest", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequest"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagerequest", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequest"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessagerequestfield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessagerequestfield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageRequestField userentityinstancedata_sdkmessagerequestfield + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessagerequestfield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessagerequestfield"); + this.SetRelatedEntity("userentityinstancedata_sdkmessagerequestfield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessagerequestfield"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageresponse + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponse")] + public Xrm.Framework.CI.Common.Entities.SdkMessageResponse userentityinstancedata_sdkmessageresponse + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageresponse", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponse"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageresponse", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponse"); + } + } + + /// + /// N:1 userentityinstancedata_sdkmessageresponsefield + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sdkmessageresponsefield")] + public Xrm.Framework.CI.Common.Entities.SdkMessageResponseField userentityinstancedata_sdkmessageresponsefield + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sdkmessageresponsefield", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sdkmessageresponsefield"); + this.SetRelatedEntity("userentityinstancedata_sdkmessageresponsefield", null, value); + this.OnPropertyChanged("userentityinstancedata_sdkmessageresponsefield"); + } + } + + /// + /// N:1 userentityinstancedata_service + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_service")] + public Xrm.Framework.CI.Common.Entities.Service userentityinstancedata_service + { + get + { + return this.GetRelatedEntity("userentityinstancedata_service", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_service"); + this.SetRelatedEntity("userentityinstancedata_service", null, value); + this.OnPropertyChanged("userentityinstancedata_service"); + } + } + + /// + /// N:1 userentityinstancedata_serviceappointment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceappointment")] + public Xrm.Framework.CI.Common.Entities.ServiceAppointment userentityinstancedata_serviceappointment + { + get + { + return this.GetRelatedEntity("userentityinstancedata_serviceappointment", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceappointment"); + this.SetRelatedEntity("userentityinstancedata_serviceappointment", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceappointment"); + } + } + + /// + /// N:1 userentityinstancedata_serviceendpoint + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_serviceendpoint")] + public Xrm.Framework.CI.Common.Entities.ServiceEndpoint userentityinstancedata_serviceendpoint + { + get + { + return this.GetRelatedEntity("userentityinstancedata_serviceendpoint", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_serviceendpoint"); + this.SetRelatedEntity("userentityinstancedata_serviceendpoint", null, value); + this.OnPropertyChanged("userentityinstancedata_serviceendpoint"); + } + } + + /// + /// N:1 userentityinstancedata_sharepointdocumentlocation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointdocumentlocation")] + public Xrm.Framework.CI.Common.Entities.SharePointDocumentLocation userentityinstancedata_sharepointdocumentlocation + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sharepointdocumentlocation", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointdocumentlocation"); + this.SetRelatedEntity("userentityinstancedata_sharepointdocumentlocation", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointdocumentlocation"); + } + } + + /// + /// N:1 userentityinstancedata_sharepointsite + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sharepointsite")] + public Xrm.Framework.CI.Common.Entities.SharePointSite userentityinstancedata_sharepointsite + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sharepointsite", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sharepointsite"); + this.SetRelatedEntity("userentityinstancedata_sharepointsite", null, value); + this.OnPropertyChanged("userentityinstancedata_sharepointsite"); + } + } + + /// + /// N:1 userentityinstancedata_site + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_site")] + public Xrm.Framework.CI.Common.Entities.Site userentityinstancedata_site + { + get + { + return this.GetRelatedEntity("userentityinstancedata_site", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_site"); + this.SetRelatedEntity("userentityinstancedata_site", null, value); + this.OnPropertyChanged("userentityinstancedata_site"); + } + } + + /// + /// N:1 userentityinstancedata_sitemap + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_sitemap")] + public Xrm.Framework.CI.Common.Entities.SiteMap userentityinstancedata_sitemap + { + get + { + return this.GetRelatedEntity("userentityinstancedata_sitemap", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_sitemap"); + this.SetRelatedEntity("userentityinstancedata_sitemap", null, value); + this.OnPropertyChanged("userentityinstancedata_sitemap"); + } + } + + /// + /// N:1 userentityinstancedata_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solution")] + public Xrm.Framework.CI.Common.Entities.Solution userentityinstancedata_solution + { + get + { + return this.GetRelatedEntity("userentityinstancedata_solution", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solution"); + this.SetRelatedEntity("userentityinstancedata_solution", null, value); + this.OnPropertyChanged("userentityinstancedata_solution"); + } + } + + /// + /// N:1 userentityinstancedata_solutioncomponent + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_solutioncomponent")] + public Xrm.Framework.CI.Common.Entities.SolutionComponent userentityinstancedata_solutioncomponent + { + get + { + return this.GetRelatedEntity("userentityinstancedata_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_solutioncomponent"); + this.SetRelatedEntity("userentityinstancedata_solutioncomponent", null, value); + this.OnPropertyChanged("userentityinstancedata_solutioncomponent"); + } + } + + /// + /// N:1 userentityinstancedata_subject + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subject")] + public Xrm.Framework.CI.Common.Entities.Subject userentityinstancedata_subject + { + get + { + return this.GetRelatedEntity("userentityinstancedata_subject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subject"); + this.SetRelatedEntity("userentityinstancedata_subject", null, value); + this.OnPropertyChanged("userentityinstancedata_subject"); + } + } + + /// + /// N:1 userentityinstancedata_subscriptionmanuallytrackedobject + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_subscriptionmanuallytrackedobject")] + public Xrm.Framework.CI.Common.Entities.SubscriptionManuallyTrackedObject userentityinstancedata_subscriptionmanuallytrackedobject + { + get + { + return this.GetRelatedEntity("userentityinstancedata_subscriptionmanuallytrackedobject", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_subscriptionmanuallytrackedobject"); + this.SetRelatedEntity("userentityinstancedata_subscriptionmanuallytrackedobject", null, value); + this.OnPropertyChanged("userentityinstancedata_subscriptionmanuallytrackedobject"); + } + } + + /// + /// N:1 userentityinstancedata_systemuser + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_systemuser")] + public Xrm.Framework.CI.Common.Entities.SystemUser userentityinstancedata_systemuser + { + get + { + return this.GetRelatedEntity("userentityinstancedata_systemuser", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_systemuser"); + this.SetRelatedEntity("userentityinstancedata_systemuser", null, value); + this.OnPropertyChanged("userentityinstancedata_systemuser"); + } + } + + /// + /// N:1 userentityinstancedata_task + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_task")] + public Xrm.Framework.CI.Common.Entities.Task userentityinstancedata_task + { + get + { + return this.GetRelatedEntity("userentityinstancedata_task", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_task"); + this.SetRelatedEntity("userentityinstancedata_task", null, value); + this.OnPropertyChanged("userentityinstancedata_task"); + } + } + + /// + /// N:1 userentityinstancedata_team + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_team")] + public Xrm.Framework.CI.Common.Entities.Team userentityinstancedata_team + { + get + { + return this.GetRelatedEntity("userentityinstancedata_team", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_team"); + this.SetRelatedEntity("userentityinstancedata_team", null, value); + this.OnPropertyChanged("userentityinstancedata_team"); + } + } + + /// + /// N:1 userentityinstancedata_teammembership + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_teammembership")] + public Xrm.Framework.CI.Common.Entities.TeamMembership userentityinstancedata_teammembership + { + get + { + return this.GetRelatedEntity("userentityinstancedata_teammembership", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_teammembership"); + this.SetRelatedEntity("userentityinstancedata_teammembership", null, value); + this.OnPropertyChanged("userentityinstancedata_teammembership"); + } + } + + /// + /// N:1 userentityinstancedata_template + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_template")] + public Xrm.Framework.CI.Common.Entities.Template userentityinstancedata_template + { + get + { + return this.GetRelatedEntity("userentityinstancedata_template", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_template"); + this.SetRelatedEntity("userentityinstancedata_template", null, value); + this.OnPropertyChanged("userentityinstancedata_template"); + } + } + + /// + /// N:1 userentityinstancedata_territory + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_territory")] + public Xrm.Framework.CI.Common.Entities.Territory userentityinstancedata_territory + { + get + { + return this.GetRelatedEntity("userentityinstancedata_territory", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_territory"); + this.SetRelatedEntity("userentityinstancedata_territory", null, value); + this.OnPropertyChanged("userentityinstancedata_territory"); + } + } + + /// + /// N:1 userentityinstancedata_timezonedefinition + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonedefinition")] + public Xrm.Framework.CI.Common.Entities.TimeZoneDefinition userentityinstancedata_timezonedefinition + { + get + { + return this.GetRelatedEntity("userentityinstancedata_timezonedefinition", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonedefinition"); + this.SetRelatedEntity("userentityinstancedata_timezonedefinition", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonedefinition"); + } + } + + /// + /// N:1 userentityinstancedata_timezonelocalizedname + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonelocalizedname")] + public Xrm.Framework.CI.Common.Entities.TimeZoneLocalizedName userentityinstancedata_timezonelocalizedname + { + get + { + return this.GetRelatedEntity("userentityinstancedata_timezonelocalizedname", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonelocalizedname"); + this.SetRelatedEntity("userentityinstancedata_timezonelocalizedname", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonelocalizedname"); + } + } + + /// + /// N:1 userentityinstancedata_timezonerule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_timezonerule")] + public Xrm.Framework.CI.Common.Entities.TimeZoneRule userentityinstancedata_timezonerule + { + get + { + return this.GetRelatedEntity("userentityinstancedata_timezonerule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_timezonerule"); + this.SetRelatedEntity("userentityinstancedata_timezonerule", null, value); + this.OnPropertyChanged("userentityinstancedata_timezonerule"); + } + } + + /// + /// N:1 userentityinstancedata_transactioncurrency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transactioncurrency")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency userentityinstancedata_transactioncurrency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_transactioncurrency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transactioncurrency"); + this.SetRelatedEntity("userentityinstancedata_transactioncurrency", null, value); + this.OnPropertyChanged("userentityinstancedata_transactioncurrency"); + } + } + + /// + /// N:1 userentityinstancedata_transformationmapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationmapping")] + public Xrm.Framework.CI.Common.Entities.TransformationMapping userentityinstancedata_transformationmapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_transformationmapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationmapping"); + this.SetRelatedEntity("userentityinstancedata_transformationmapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationmapping"); + } + } + + /// + /// N:1 userentityinstancedata_transformationparametermapping + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_transformationparametermapping")] + public Xrm.Framework.CI.Common.Entities.TransformationParameterMapping userentityinstancedata_transformationparametermapping + { + get + { + return this.GetRelatedEntity("userentityinstancedata_transformationparametermapping", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_transformationparametermapping"); + this.SetRelatedEntity("userentityinstancedata_transformationparametermapping", null, value); + this.OnPropertyChanged("userentityinstancedata_transformationparametermapping"); + } + } + + /// + /// N:1 userentityinstancedata_uom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uom")] + public Xrm.Framework.CI.Common.Entities.UoM userentityinstancedata_uom + { + get + { + return this.GetRelatedEntity("userentityinstancedata_uom", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uom"); + this.SetRelatedEntity("userentityinstancedata_uom", null, value); + this.OnPropertyChanged("userentityinstancedata_uom"); + } + } + + /// + /// N:1 userentityinstancedata_uomschedule + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_uomschedule")] + public Xrm.Framework.CI.Common.Entities.UoMSchedule userentityinstancedata_uomschedule + { + get + { + return this.GetRelatedEntity("userentityinstancedata_uomschedule", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_uomschedule"); + this.SetRelatedEntity("userentityinstancedata_uomschedule", null, value); + this.OnPropertyChanged("userentityinstancedata_uomschedule"); + } + } + + /// + /// N:1 userentityinstancedata_userentityuisettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userentityuisettings")] + public Xrm.Framework.CI.Common.Entities.UserEntityUISettings userentityinstancedata_userentityuisettings + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userentityuisettings", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userentityuisettings"); + this.SetRelatedEntity("userentityinstancedata_userentityuisettings", null, value); + this.OnPropertyChanged("userentityinstancedata_userentityuisettings"); + } + } + + /// + /// N:1 userentityinstancedata_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userform")] + public Xrm.Framework.CI.Common.Entities.UserForm userentityinstancedata_userform + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userform", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userform"); + this.SetRelatedEntity("userentityinstancedata_userform", null, value); + this.OnPropertyChanged("userentityinstancedata_userform"); + } + } + + /// + /// N:1 userentityinstancedata_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userquery")] + public Xrm.Framework.CI.Common.Entities.UserQuery userentityinstancedata_userquery + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userquery"); + this.SetRelatedEntity("userentityinstancedata_userquery", null, value); + this.OnPropertyChanged("userentityinstancedata_userquery"); + } + } + + /// + /// N:1 userentityinstancedata_userqueryvisualization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userqueryvisualization")] + public Xrm.Framework.CI.Common.Entities.UserQueryVisualization userentityinstancedata_userqueryvisualization + { + get + { + return this.GetRelatedEntity("userentityinstancedata_userqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userqueryvisualization"); + this.SetRelatedEntity("userentityinstancedata_userqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_userqueryvisualization"); + } + } + + /// + /// N:1 userentityinstancedata_webresource + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_webresource")] + public Xrm.Framework.CI.Common.Entities.WebResource userentityinstancedata_webresource + { + get + { + return this.GetRelatedEntity("userentityinstancedata_webresource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_webresource"); + this.SetRelatedEntity("userentityinstancedata_webresource", null, value); + this.OnPropertyChanged("userentityinstancedata_webresource"); + } + } + + /// + /// N:1 userentityinstancedata_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflow")] + public Xrm.Framework.CI.Common.Entities.Workflow userentityinstancedata_workflow + { + get + { + return this.GetRelatedEntity("userentityinstancedata_workflow", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflow"); + this.SetRelatedEntity("userentityinstancedata_workflow", null, value); + this.OnPropertyChanged("userentityinstancedata_workflow"); + } + } + + /// + /// N:1 userentityinstancedata_workflowdependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowdependency")] + public Xrm.Framework.CI.Common.Entities.WorkflowDependency userentityinstancedata_workflowdependency + { + get + { + return this.GetRelatedEntity("userentityinstancedata_workflowdependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowdependency"); + this.SetRelatedEntity("userentityinstancedata_workflowdependency", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowdependency"); + } + } + + /// + /// N:1 userentityinstancedata_workflowlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowlog")] + public Xrm.Framework.CI.Common.Entities.WorkflowLog userentityinstancedata_workflowlog + { + get + { + return this.GetRelatedEntity("userentityinstancedata_workflowlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowlog"); + this.SetRelatedEntity("userentityinstancedata_workflowlog", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowlog"); + } + } + } + + /// + /// Stores user settings for entity views. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userentityuisettings")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserEntityUISettings : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserEntityUISettings() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userentityuisettings"; + + public const int EntityTypeCode = 2500; + + 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)); + } + } + + /// + /// Describes which entities are most recently inserted into email for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("insertintoemailmruxml")] + public string InsertIntoEmailMRUXml + { + get + { + return this.GetAttributeValue("insertintoemailmruxml"); + } + set + { + this.OnPropertyChanging("InsertIntoEmailMRUXml"); + this.SetAttributeValue("insertintoemailmruxml", value); + this.OnPropertyChanged("InsertIntoEmailMRUXml"); + } + } + + /// + /// Describes which forms are most recently viewed for this entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastviewedformxml")] + public string LastViewedFormXml + { + get + { + return this.GetAttributeValue("lastviewedformxml"); + } + set + { + this.OnPropertyChanging("LastViewedFormXml"); + this.SetAttributeValue("lastviewedformxml", value); + this.OnPropertyChanged("LastViewedFormXml"); + } + } + + /// + /// List of most recently used lookup references for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lookupmruxml")] + public string LookupMRUXml + { + get + { + return this.GetAttributeValue("lookupmruxml"); + } + set + { + this.OnPropertyChanging("LookupMRUXml"); + this.SetAttributeValue("lookupmruxml", value); + this.OnPropertyChanged("LookupMRUXml"); + } + } + + /// + /// Describes which tabs are most recently used for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mruxml")] + public string MRUXml + { + get + { + return this.GetAttributeValue("mruxml"); + } + set + { + this.OnPropertyChanging("MRUXml"); + this.SetAttributeValue("mruxml", value); + this.OnPropertyChanged("MRUXml"); + } + } + + /// + /// Object Type Code + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public System.Nullable ObjectTypeCode + { + get + { + return this.GetAttributeValue>("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// Unique identifier of the user or team who owns the settings. + /// + [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 this. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Describes the reading pane formatting of this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("readingpanexml")] + public string ReadingPaneXml + { + get + { + return this.GetAttributeValue("readingpanexml"); + } + set + { + this.OnPropertyChanging("ReadingPaneXml"); + this.SetAttributeValue("readingpanexml", value); + this.OnPropertyChanged("ReadingPaneXml"); + } + } + + /// + /// Describes which objects are most recently viewed for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recentlyviewedxml")] + public string RecentlyViewedXml + { + get + { + return this.GetAttributeValue("recentlyviewedxml"); + } + set + { + this.OnPropertyChanging("RecentlyViewedXml"); + this.SetAttributeValue("recentlyviewedxml", value); + this.OnPropertyChanged("RecentlyViewedXml"); + } + } + + /// + /// Determines whether a record type is exposed in the Outlook Address Book + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showinaddressbook")] + public System.Nullable ShowInAddressBook + { + get + { + return this.GetAttributeValue>("showinaddressbook"); + } + set + { + this.OnPropertyChanging("ShowInAddressBook"); + this.SetAttributeValue("showinaddressbook", value); + this.OnPropertyChanged("ShowInAddressBook"); + } + } + + /// + /// Describes the tab ordering for this entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("taborderxml")] + public string TabOrderXml + { + get + { + return this.GetAttributeValue("taborderxml"); + } + set + { + this.OnPropertyChanging("TabOrderXml"); + this.SetAttributeValue("taborderxml", value); + this.OnPropertyChanged("TabOrderXml"); + } + } + + /// + /// Unique identifier user entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityuisettingsid")] + public System.Nullable UserEntityUISettingsId + { + get + { + return this.GetAttributeValue>("userentityuisettingsid"); + } + set + { + this.OnPropertyChanging("UserEntityUISettingsId"); + this.SetAttributeValue("userentityuisettingsid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserEntityUISettingsId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userentityuisettingsid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserEntityUISettingsId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_userentityuisettings + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userentityuisettings")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userentityuisettings + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userentityuisettings", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userentityuisettings"); + this.SetRelatedEntities("userentityinstancedata_userentityuisettings", null, value); + this.OnPropertyChanged("userentityinstancedata_userentityuisettings"); + } + } + + /// + /// N:1 team_userentityuisettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userentityuisettings")] + public Xrm.Framework.CI.Common.Entities.Team team_userentityuisettings + { + get + { + return this.GetRelatedEntity("team_userentityuisettings", null); + } + } + + /// + /// N:1 userentityuisettings_businessunit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_businessunit")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit userentityuisettings_businessunit + { + get + { + return this.GetRelatedEntity("userentityuisettings_businessunit", null); + } + } + + /// + /// N:1 userentityuisettings_owning_user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityuisettings_owning_user")] + public Xrm.Framework.CI.Common.Entities.SystemUser userentityuisettings_owning_user + { + get + { + return this.GetRelatedEntity("userentityuisettings_owning_user", null); + } + } + } + + /// + /// User-owned dashboards. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userform")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserForm : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserForm() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userform"; + + public const int EntityTypeCode = 1031; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the form or dashboard, such as the filter criteria or intended audience. + /// + [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 XML representation of the layout of the form or dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("formxml")] + public string FormXml + { + get + { + return this.GetAttributeValue("formxml"); + } + set + { + this.OnPropertyChanging("FormXml"); + this.SetAttributeValue("formxml", value); + this.OnPropertyChanged("FormXml"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the form or dashboard. + /// + [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 record type (entity) code that the form applies to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objecttypecode")] + public string ObjectTypeCode + { + get + { + return this.GetAttributeValue("objecttypecode"); + } + set + { + this.OnPropertyChanging("ObjectTypeCode"); + this.SetAttributeValue("objecttypecode", value); + this.OnPropertyChanged("ObjectTypeCode"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the form type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// Unique identifier of the user dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userformid")] + public System.Nullable UserFormId + { + get + { + return this.GetAttributeValue>("userformid"); + } + set + { + this.OnPropertyChanging("UserFormId"); + this.SetAttributeValue("userformid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserFormId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userformid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserFormId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_userform + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userform")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userform + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userform", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userform"); + this.SetRelatedEntities("userentityinstancedata_userform", null, value); + this.OnPropertyChanged("userentityinstancedata_userform"); + } + } + + /// + /// 1:N UserForm_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_AsyncOperations")] + public System.Collections.Generic.IEnumerable UserForm_AsyncOperations + { + get + { + return this.GetRelatedEntities("UserForm_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserForm_AsyncOperations"); + this.SetRelatedEntities("UserForm_AsyncOperations", null, value); + this.OnPropertyChanged("UserForm_AsyncOperations"); + } + } + + /// + /// 1:N UserForm_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserForm_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UserForm_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UserForm_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UserForm_BulkDeleteFailures"); + this.SetRelatedEntities("UserForm_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UserForm_BulkDeleteFailures"); + } + } + + /// + /// N:1 business_unit_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userform")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_userform + { + get + { + return this.GetRelatedEntity("business_unit_userform", null); + } + } + + /// + /// N:1 lk_userform_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userform_createdby + { + get + { + return this.GetRelatedEntity("lk_userform_createdby", null); + } + } + + /// + /// N:1 lk_userform_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userform_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userform_modifiedby + { + get + { + return this.GetRelatedEntity("lk_userform_modifiedby", null); + } + } + + /// + /// N:1 lk_userformbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userformbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userformbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_userformbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userformbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userformbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userformbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userform")] + public Xrm.Framework.CI.Common.Entities.Team team_userform + { + get + { + return this.GetRelatedEntity("team_userform", null); + } + } + + /// + /// N:1 user_userform + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userform")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_userform + { + get + { + return this.GetRelatedEntity("user_userform", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum UserQueryState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Saved database query that is owned by a user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userquery")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserQuery : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserQuery() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userquery"; + + public const int EntityTypeCode = 4230; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type the column name that will be used to group the results from the data collected across multiple records from a user view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("advancedgroupby")] + public string AdvancedGroupBy + { + get + { + return this.GetAttributeValue("advancedgroupby"); + } + set + { + this.OnPropertyChanging("AdvancedGroupBy"); + this.SetAttributeValue("advancedgroupby", value); + this.OnPropertyChanged("AdvancedGroupBy"); + } + } + + /// + /// Shows the columns and sorting criteria for the saved view, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("columnsetxml")] + public string ColumnSetXml + { + get + { + return this.GetAttributeValue("columnsetxml"); + } + set + { + this.OnPropertyChanging("ColumnSetXml"); + this.SetAttributeValue("columnsetxml", value); + this.OnPropertyChanged("ColumnSetXml"); + } + } + + /// + /// Type information about how the items in the user view are formatted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("conditionalformatting")] + public string ConditionalFormatting + { + get + { + return this.GetAttributeValue("conditionalformatting"); + } + set + { + this.OnPropertyChanging("ConditionalFormatting"); + this.SetAttributeValue("conditionalformatting", value); + this.OnPropertyChanged("ConditionalFormatting"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Type additional information to describe the saved view, such as the filter criteria or intended results set. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Contains the Fetch XML query that defines the entities and attributes included in the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fetchxml")] + public string FetchXml + { + get + { + return this.GetAttributeValue("fetchxml"); + } + set + { + this.OnPropertyChanging("FetchXml"); + this.SetAttributeValue("fetchxml", value); + this.OnPropertyChanged("FetchXml"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("layoutxml")] + public string LayoutXml + { + get + { + return this.GetAttributeValue("layoutxml"); + } + set + { + this.OnPropertyChanging("LayoutXml"); + this.SetAttributeValue("layoutxml", value); + this.OnPropertyChanged("LayoutXml"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns this saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the ID of the saved query that the record was created from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentqueryid")] + public Microsoft.Xrm.Sdk.EntityReference ParentQueryId + { + get + { + return this.GetAttributeValue("parentqueryid"); + } + set + { + this.OnPropertyChanging("ParentQueryId"); + this.SetAttributeValue("parentqueryid", value); + this.OnPropertyChanged("ParentQueryId"); + } + } + + /// + /// Shows the code for the query type to indicate whether the saved view is an address book filter, advanced search, or other view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("querytype")] + public System.Nullable QueryType + { + get + { + return this.GetAttributeValue>("querytype"); + } + set + { + this.OnPropertyChanging("QueryType"); + this.SetAttributeValue("querytype", value); + this.OnPropertyChanged("QueryType"); + } + } + + /// + /// Type of entity that the saved view displays. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("returnedtypecode")] + public string ReturnedTypeCode + { + get + { + return this.GetAttributeValue("returnedtypecode"); + } + set + { + this.OnPropertyChanging("ReturnedTypeCode"); + this.SetAttributeValue("returnedtypecode", value); + this.OnPropertyChanged("ReturnedTypeCode"); + } + } + + /// + /// Shows whether the saved view 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 ((Xrm.Framework.CI.Common.Entities.UserQueryState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.UserQueryState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Select the item's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + } + + /// + /// Unique identifier of the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryid")] + public System.Nullable UserQueryId + { + get + { + return this.GetAttributeValue>("userqueryid"); + } + set + { + this.OnPropertyChanging("UserQueryId"); + this.SetAttributeValue("userqueryid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserQueryId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserQueryId = value; + } + } + + /// + /// Version number of the saved view. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N userentityinstancedata_userquery + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userquery")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userquery + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userquery", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userquery"); + this.SetRelatedEntities("userentityinstancedata_userquery", null, value); + this.OnPropertyChanged("userentityinstancedata_userquery"); + } + } + + /// + /// 1:N UserQuery_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_AsyncOperations")] + public System.Collections.Generic.IEnumerable UserQuery_AsyncOperations + { + get + { + return this.GetRelatedEntities("UserQuery_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("UserQuery_AsyncOperations"); + this.SetRelatedEntities("UserQuery_AsyncOperations", null, value); + this.OnPropertyChanged("UserQuery_AsyncOperations"); + } + } + + /// + /// 1:N UserQuery_BulkDeleteFailures + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("UserQuery_BulkDeleteFailures")] + public System.Collections.Generic.IEnumerable UserQuery_BulkDeleteFailures + { + get + { + return this.GetRelatedEntities("UserQuery_BulkDeleteFailures", null); + } + set + { + this.OnPropertyChanging("UserQuery_BulkDeleteFailures"); + this.SetRelatedEntities("UserQuery_BulkDeleteFailures", null, value); + this.OnPropertyChanged("UserQuery_BulkDeleteFailures"); + } + } + + /// + /// N:1 business_unit_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userquery")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_userquery + { + get + { + return this.GetRelatedEntity("business_unit_userquery", null); + } + } + + /// + /// N:1 lk_userquery_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_createdby + { + get + { + return this.GetRelatedEntity("lk_userquery_createdby", null); + } + } + + /// + /// N:1 lk_userquery_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userquery_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_userquery_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_modifiedby + { + get + { + return this.GetRelatedEntity("lk_userquery_modifiedby", null); + } + } + + /// + /// N:1 lk_userquery_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userquery_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userquery_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userquery_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userquery")] + public Xrm.Framework.CI.Common.Entities.Team team_userquery + { + get + { + return this.GetRelatedEntity("team_userquery", null); + } + } + + /// + /// N:1 user_userquery + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userquery")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_userquery + { + get + { + return this.GetRelatedEntity("user_userquery", null); + } + } + } + + /// + /// Chart attached to an entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("userqueryvisualization")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserQueryVisualization : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserQueryVisualization() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "userqueryvisualization"; + + public const int EntityTypeCode = 1112; + + 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"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM 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"); + } + } + + /// + /// Shows the fields that are used to display data in a chart, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datadescription")] + public string DataDescription + { + get + { + return this.GetAttributeValue("datadescription"); + } + set + { + this.OnPropertyChanging("DataDescription"); + this.SetAttributeValue("datadescription", value); + this.OnPropertyChanged("DataDescription"); + } + } + + /// + /// Type additional information to describe the chart, such as the filter criteria or intended audience. + /// + [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 chart is the default chart for the view that it is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] + public System.Nullable IsDefault + { + get + { + return this.GetAttributeValue>("isdefault"); + } + set + { + this.OnPropertyChanging("IsDefault"); + this.SetAttributeValue("isdefault", value); + this.OnPropertyChanged("IsDefault"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// 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 CRM 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"); + } + } + + /// + /// Type a descriptive name for the chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// 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"); + } + } + + /// + /// 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 user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the team who owns the user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Contains the chart's formatting details and presentation properties, stored in XML format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("presentationdescription")] + public string PresentationDescription + { + get + { + return this.GetAttributeValue("presentationdescription"); + } + set + { + this.OnPropertyChanging("PresentationDescription"); + this.SetAttributeValue("presentationdescription", value); + this.OnPropertyChanged("PresentationDescription"); + } + } + + /// + /// Type of entity which the user chart is attached. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytypecode")] + public string PrimaryEntityTypeCode + { + get + { + return this.GetAttributeValue("primaryentitytypecode"); + } + set + { + this.OnPropertyChanging("PrimaryEntityTypeCode"); + this.SetAttributeValue("primaryentitytypecode", value); + this.OnPropertyChanged("PrimaryEntityTypeCode"); + } + } + + /// + /// Unique identifier of the user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryvisualizationid")] + public System.Nullable UserQueryVisualizationId + { + get + { + return this.GetAttributeValue>("userqueryvisualizationid"); + } + set + { + this.OnPropertyChanging("UserQueryVisualizationId"); + this.SetAttributeValue("userqueryvisualizationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("UserQueryVisualizationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userqueryvisualizationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.UserQueryVisualizationId = value; + } + } + + /// + /// Version number of the user chart. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Shows the web resource that will be displayed in the chart to the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public Microsoft.Xrm.Sdk.EntityReference WebResourceId + { + get + { + return this.GetAttributeValue("webresourceid"); + } + set + { + this.OnPropertyChanging("WebResourceId"); + this.SetAttributeValue("webresourceid", value); + this.OnPropertyChanged("WebResourceId"); + } + } + + /// + /// 1:N userentityinstancedata_userqueryvisualization + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_userqueryvisualization")] + public System.Collections.Generic.IEnumerable userentityinstancedata_userqueryvisualization + { + get + { + return this.GetRelatedEntities("userentityinstancedata_userqueryvisualization", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_userqueryvisualization"); + this.SetRelatedEntities("userentityinstancedata_userqueryvisualization", null, value); + this.OnPropertyChanged("userentityinstancedata_userqueryvisualization"); + } + } + + /// + /// N:1 business_unit_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("business_unit_userqueryvisualizations", null); + } + } + + /// + /// N:1 lk_userqueryvisualization_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualization_createdby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualization_createdby", null); + } + } + + /// + /// N:1 lk_userqueryvisualization_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualization_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualization_modifiedby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualization_modifiedby", null); + } + } + + /// + /// N:1 lk_userqueryvisualizationbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualizationbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualizationbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_userqueryvisualizationbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_userqueryvisualizationbase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_userqueryvisualizationbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_userqueryvisualizationbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 team_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.Team team_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("team_userqueryvisualizations", null); + } + } + + /// + /// N:1 user_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("user_userqueryvisualizations", null); + } + } + + /// + /// N:1 webresource_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_userqueryvisualizations")] + public Xrm.Framework.CI.Common.Entities.WebResource webresource_userqueryvisualizations + { + get + { + return this.GetRelatedEntity("webresource_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_userqueryvisualizations"); + this.SetRelatedEntity("webresource_userqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_userqueryvisualizations"); + } + } + } + + /// + /// User's preferred settings. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("usersettings")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class UserSettings : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public UserSettings() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "usersettings"; + + public const int EntityTypeCode = 150; + + 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)); + } + } + + /// + /// Normal polling frequency used for address book synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("addressbooksyncinterval")] + public System.Nullable AddressBookSyncInterval + { + get + { + return this.GetAttributeValue>("addressbooksyncinterval"); + } + set + { + this.OnPropertyChanging("AddressBookSyncInterval"); + this.SetAttributeValue("addressbooksyncinterval", value); + this.OnPropertyChanged("AddressBookSyncInterval"); + } + } + + /// + /// Default mode, such as simple or detailed, for advanced find. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("advancedfindstartupmode")] + public System.Nullable AdvancedFindStartupMode + { + get + { + return this.GetAttributeValue>("advancedfindstartupmode"); + } + set + { + this.OnPropertyChanging("AdvancedFindStartupMode"); + this.SetAttributeValue("advancedfindstartupmode", value); + this.OnPropertyChanged("AdvancedFindStartupMode"); + } + } + + /// + /// Indicates whether a user wants to specify email credentials. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowemailcredentials")] + [System.ObsoleteAttribute()] + public System.Nullable AllowEmailCredentials + { + get + { + return this.GetAttributeValue>("allowemailcredentials"); + } + } + + /// + /// AM designator to use in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("amdesignator")] + public string AMDesignator + { + get + { + return this.GetAttributeValue("amdesignator"); + } + set + { + this.OnPropertyChanging("AMDesignator"); + this.SetAttributeValue("amdesignator", value); + this.OnPropertyChanged("AMDesignator"); + } + } + + /// + /// Auto-create contact on client promote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autocreatecontactonpromote")] + public System.Nullable AutoCreateContactOnPromote + { + get + { + return this.GetAttributeValue>("autocreatecontactonpromote"); + } + set + { + this.OnPropertyChanging("AutoCreateContactOnPromote"); + this.SetAttributeValue("autocreatecontactonpromote", value); + this.OnPropertyChanged("AutoCreateContactOnPromote"); + } + } + + /// + /// Unique identifier of the business unit with which the user is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public System.Nullable BusinessUnitId + { + get + { + return this.GetAttributeValue>("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Calendar type for the system. Set to Gregorian US by default. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendartype")] + public System.Nullable CalendarType + { + get + { + return this.GetAttributeValue>("calendartype"); + } + set + { + this.OnPropertyChanging("CalendarType"); + this.SetAttributeValue("calendartype", value); + this.OnPropertyChanged("CalendarType"); + } + } + + /// + /// Unique identifier of the user who created the user settings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the user settings object 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 usersettings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Number of decimal places that can be used for currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencydecimalprecision")] + [System.ObsoleteAttribute()] + public System.Nullable CurrencyDecimalPrecision + { + get + { + return this.GetAttributeValue>("currencydecimalprecision"); + } + set + { + this.OnPropertyChanging("CurrencyDecimalPrecision"); + this.SetAttributeValue("currencydecimalprecision", value); + this.OnPropertyChanged("CurrencyDecimalPrecision"); + } + } + + /// + /// Information about how currency symbols are placed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencyformatcode")] + public System.Nullable CurrencyFormatCode + { + get + { + return this.GetAttributeValue>("currencyformatcode"); + } + set + { + this.OnPropertyChanging("CurrencyFormatCode"); + this.SetAttributeValue("currencyformatcode", value); + this.OnPropertyChanged("CurrencyFormatCode"); + } + } + + /// + /// Symbol used for currency in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currencysymbol")] + public string CurrencySymbol + { + get + { + return this.GetAttributeValue("currencysymbol"); + } + set + { + this.OnPropertyChanging("CurrencySymbol"); + this.SetAttributeValue("currencysymbol", value); + this.OnPropertyChanged("CurrencySymbol"); + } + } + + /// + /// Information that specifies the level of data validation in excel worksheets exported in a format suitable for import. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datavalidationmodeforexporttoexcel")] + public Microsoft.Xrm.Sdk.OptionSetValue DataValidationModeForExportToExcel + { + get + { + return this.GetAttributeValue("datavalidationmodeforexporttoexcel"); + } + set + { + this.OnPropertyChanging("DataValidationModeForExportToExcel"); + this.SetAttributeValue("datavalidationmodeforexporttoexcel", value); + this.OnPropertyChanged("DataValidationModeForExportToExcel"); + } + } + + /// + /// Information about how the date is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatcode")] + public System.Nullable DateFormatCode + { + get + { + return this.GetAttributeValue>("dateformatcode"); + } + set + { + this.OnPropertyChanging("DateFormatCode"); + this.SetAttributeValue("dateformatcode", value); + this.OnPropertyChanged("DateFormatCode"); + } + } + + /// + /// String showing how the date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateformatstring")] + public string DateFormatString + { + get + { + return this.GetAttributeValue("dateformatstring"); + } + set + { + this.OnPropertyChanging("DateFormatString"); + this.SetAttributeValue("dateformatstring", value); + this.OnPropertyChanged("DateFormatString"); + } + } + + /// + /// Character used to separate the month, the day, and the year in dates in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dateseparator")] + public string DateSeparator + { + get + { + return this.GetAttributeValue("dateseparator"); + } + set + { + this.OnPropertyChanging("DateSeparator"); + this.SetAttributeValue("dateseparator", value); + this.OnPropertyChanged("DateSeparator"); + } + } + + /// + /// Symbol used for decimal in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("decimalsymbol")] + public string DecimalSymbol + { + get + { + return this.GetAttributeValue("decimalsymbol"); + } + set + { + this.OnPropertyChanging("DecimalSymbol"); + this.SetAttributeValue("decimalsymbol", value); + this.OnPropertyChanged("DecimalSymbol"); + } + } + + /// + /// Default calendar view for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultcalendarview")] + public System.Nullable DefaultCalendarView + { + get + { + return this.GetAttributeValue>("defaultcalendarview"); + } + set + { + this.OnPropertyChanging("DefaultCalendarView"); + this.SetAttributeValue("defaultcalendarview", value); + this.OnPropertyChanged("DefaultCalendarView"); + } + } + + /// + /// Text area to enter default country code. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultcountrycode")] + public string DefaultCountryCode + { + get + { + return this.GetAttributeValue("defaultcountrycode"); + } + set + { + this.OnPropertyChanging("DefaultCountryCode"); + this.SetAttributeValue("defaultcountrycode", value); + this.OnPropertyChanged("DefaultCountryCode"); + } + } + + /// + /// Unique identifier of the default dashboard. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultdashboardid")] + public System.Nullable DefaultDashboardId + { + get + { + return this.GetAttributeValue>("defaultdashboardid"); + } + set + { + this.OnPropertyChanging("DefaultDashboardId"); + this.SetAttributeValue("defaultdashboardid", value); + this.OnPropertyChanged("DefaultDashboardId"); + } + } + + /// + /// Email password. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailpassword")] + [System.ObsoleteAttribute()] + public string EmailPassword + { + get + { + return this.GetAttributeValue("emailpassword"); + } + } + + /// + /// Email user name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailusername")] + [System.ObsoleteAttribute()] + public string EmailUsername + { + get + { + return this.GetAttributeValue("emailusername"); + } + } + + /// + /// Indicates the form mode to be used. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityformmode")] + public Microsoft.Xrm.Sdk.OptionSetValue EntityFormMode + { + get + { + return this.GetAttributeValue("entityformmode"); + } + set + { + this.OnPropertyChanging("EntityFormMode"); + this.SetAttributeValue("entityformmode", value); + this.OnPropertyChanged("EntityFormMode"); + } + } + + /// + /// Order in which names are to be displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullnameconventioncode")] + public System.Nullable FullNameConventionCode + { + get + { + return this.GetAttributeValue>("fullnameconventioncode"); + } + set + { + this.OnPropertyChanging("FullNameConventionCode"); + this.SetAttributeValue("fullnameconventioncode", value); + this.OnPropertyChanged("FullNameConventionCode"); + } + } + + /// + /// Information that specifies whether the Get Started pane in lists is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("getstartedpanecontentenabled")] + public System.Nullable GetStartedPaneContentEnabled + { + get + { + return this.GetAttributeValue>("getstartedpanecontentenabled"); + } + set + { + this.OnPropertyChanging("GetStartedPaneContentEnabled"); + this.SetAttributeValue("getstartedpanecontentenabled", value); + this.OnPropertyChanged("GetStartedPaneContentEnabled"); + } + } + + /// + /// Unique identifier of the Help language. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("helplanguageid")] + public System.Nullable HelpLanguageId + { + get + { + return this.GetAttributeValue>("helplanguageid"); + } + set + { + this.OnPropertyChanging("HelpLanguageId"); + this.SetAttributeValue("helplanguageid", value); + this.OnPropertyChanged("HelpLanguageId"); + } + } + + /// + /// Web site home page for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homepagearea")] + public string HomepageArea + { + get + { + return this.GetAttributeValue("homepagearea"); + } + set + { + this.OnPropertyChanging("HomepageArea"); + this.SetAttributeValue("homepagearea", value); + this.OnPropertyChanged("HomepageArea"); + } + } + + /// + /// Configuration of the home page layout. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homepagelayout")] + public string HomepageLayout + { + get + { + return this.GetAttributeValue("homepagelayout"); + } + set + { + this.OnPropertyChanging("HomepageLayout"); + this.SetAttributeValue("homepagelayout", value); + this.OnPropertyChanged("HomepageLayout"); + } + } + + /// + /// Web site page for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homepagesubarea")] + public string HomepageSubarea + { + get + { + return this.GetAttributeValue("homepagesubarea"); + } + set + { + this.OnPropertyChanging("HomepageSubarea"); + this.SetAttributeValue("homepagesubarea", value); + this.OnPropertyChanged("HomepageSubarea"); + } + } + + /// + /// Information that specifies whether a user account is to ignore unsolicited email (deprecated). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ignoreunsolicitedemail")] + public System.Nullable IgnoreUnsolicitedEmail + { + get + { + return this.GetAttributeValue>("ignoreunsolicitedemail"); + } + set + { + this.OnPropertyChanging("IgnoreUnsolicitedEmail"); + this.SetAttributeValue("ignoreunsolicitedemail", value); + this.OnPropertyChanged("IgnoreUnsolicitedEmail"); + } + } + + /// + /// Incoming email filtering method. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemailfilteringmethod")] + public Microsoft.Xrm.Sdk.OptionSetValue IncomingEmailFilteringMethod + { + get + { + return this.GetAttributeValue("incomingemailfilteringmethod"); + } + set + { + this.OnPropertyChanging("IncomingEmailFilteringMethod"); + this.SetAttributeValue("incomingemailfilteringmethod", value); + this.OnPropertyChanged("IncomingEmailFilteringMethod"); + } + } + + /// + /// Enable or disable country code selection . + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefaultcountrycodecheckenabled")] + public System.Nullable IsDefaultCountryCodeCheckEnabled + { + get + { + return this.GetAttributeValue>("isdefaultcountrycodecheckenabled"); + } + set + { + this.OnPropertyChanging("IsDefaultCountryCodeCheckEnabled"); + this.SetAttributeValue("isdefaultcountrycodecheckenabled", value); + this.OnPropertyChanged("IsDefaultCountryCodeCheckEnabled"); + } + } + + /// + /// Indicates if duplicate detection is enabled when going online. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isduplicatedetectionenabledwhengoingonline")] + public System.Nullable IsDuplicateDetectionEnabledWhenGoingOnline + { + get + { + return this.GetAttributeValue>("isduplicatedetectionenabledwhengoingonline"); + } + set + { + this.OnPropertyChanging("IsDuplicateDetectionEnabledWhenGoingOnline"); + this.SetAttributeValue("isduplicatedetectionenabledwhengoingonline", value); + this.OnPropertyChanged("IsDuplicateDetectionEnabledWhenGoingOnline"); + } + } + + /// + /// Indicates if send as other user privilege is enabled or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issendasallowed")] + public System.Nullable IsSendAsAllowed + { + get + { + return this.GetAttributeValue>("issendasallowed"); + } + set + { + this.OnPropertyChanging("IsSendAsAllowed"); + this.SetAttributeValue("issendasallowed", value); + this.OnPropertyChanged("IsSendAsAllowed"); + } + } + + /// + /// Shows the last time when the traces were read from the database. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastalertsviewedtime")] + public System.Nullable LastAlertsViewedTime + { + get + { + return this.GetAttributeValue>("lastalertsviewedtime"); + } + set + { + this.OnPropertyChanging("LastAlertsViewedTime"); + this.SetAttributeValue("lastalertsviewedtime", value); + this.OnPropertyChanged("LastAlertsViewedTime"); + } + } + + /// + /// Unique identifier of the user locale. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("localeid")] + public System.Nullable LocaleId + { + get + { + return this.GetAttributeValue>("localeid"); + } + set + { + this.OnPropertyChanging("LocaleId"); + this.SetAttributeValue("localeid", value); + this.OnPropertyChanged("LocaleId"); + } + } + + /// + /// Information that specifies how Long Date is displayed throughout Microsoft CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("longdateformatcode")] + public System.Nullable LongDateFormatCode + { + get + { + return this.GetAttributeValue>("longdateformatcode"); + } + set + { + this.OnPropertyChanging("LongDateFormatCode"); + this.SetAttributeValue("longdateformatcode", value); + this.OnPropertyChanged("LongDateFormatCode"); + } + } + + /// + /// Unique identifier of the user who last modified the user settings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the user settings object 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 usersettings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Information that specifies how negative currency numbers are displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativecurrencyformatcode")] + public System.Nullable NegativeCurrencyFormatCode + { + get + { + return this.GetAttributeValue>("negativecurrencyformatcode"); + } + set + { + this.OnPropertyChanging("NegativeCurrencyFormatCode"); + this.SetAttributeValue("negativecurrencyformatcode", value); + this.OnPropertyChanged("NegativeCurrencyFormatCode"); + } + } + + /// + /// Information that specifies how negative numbers are displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("negativeformatcode")] + public System.Nullable NegativeFormatCode + { + get + { + return this.GetAttributeValue>("negativeformatcode"); + } + set + { + this.OnPropertyChanging("NegativeFormatCode"); + this.SetAttributeValue("negativeformatcode", value); + this.OnPropertyChanged("NegativeFormatCode"); + } + } + + /// + /// Next tracking number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nexttrackingnumber")] + public System.Nullable NextTrackingNumber + { + get + { + return this.GetAttributeValue>("nexttrackingnumber"); + } + set + { + this.OnPropertyChanging("NextTrackingNumber"); + this.SetAttributeValue("nexttrackingnumber", value); + this.OnPropertyChanged("NextTrackingNumber"); + } + } + + /// + /// Information that specifies how numbers are grouped in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numbergroupformat")] + public string NumberGroupFormat + { + get + { + return this.GetAttributeValue("numbergroupformat"); + } + set + { + this.OnPropertyChanging("NumberGroupFormat"); + this.SetAttributeValue("numbergroupformat", value); + this.OnPropertyChanged("NumberGroupFormat"); + } + } + + /// + /// Symbol used for number separation in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberseparator")] + public string NumberSeparator + { + get + { + return this.GetAttributeValue("numberseparator"); + } + set + { + this.OnPropertyChanging("NumberSeparator"); + this.SetAttributeValue("numberseparator", value); + this.OnPropertyChanged("NumberSeparator"); + } + } + + /// + /// Normal polling frequency used for background offline synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("offlinesyncinterval")] + public System.Nullable OfflineSyncInterval + { + get + { + return this.GetAttributeValue>("offlinesyncinterval"); + } + set + { + this.OnPropertyChanging("OfflineSyncInterval"); + this.SetAttributeValue("offlinesyncinterval", value); + this.OnPropertyChanged("OfflineSyncInterval"); + } + } + + /// + /// Normal polling frequency used for record synchronization in Microsoft Office Outlook. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outlooksyncinterval")] + public System.Nullable OutlookSyncInterval + { + get + { + return this.GetAttributeValue>("outlooksyncinterval"); + } + set + { + this.OnPropertyChanging("OutlookSyncInterval"); + this.SetAttributeValue("outlooksyncinterval", value); + this.OnPropertyChanged("OutlookSyncInterval"); + } + } + + /// + /// Information that specifies how many items to list on a page in list views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paginglimit")] + public System.Nullable PagingLimit + { + get + { + return this.GetAttributeValue>("paginglimit"); + } + set + { + this.OnPropertyChanging("PagingLimit"); + this.SetAttributeValue("paginglimit", value); + this.OnPropertyChanged("PagingLimit"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalizationsettings")] + public string PersonalizationSettings + { + get + { + return this.GetAttributeValue("personalizationsettings"); + } + set + { + this.OnPropertyChanging("PersonalizationSettings"); + this.SetAttributeValue("personalizationsettings", value); + this.OnPropertyChanged("PersonalizationSettings"); + } + } + + /// + /// PM designator to use in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pmdesignator")] + public string PMDesignator + { + get + { + return this.GetAttributeValue("pmdesignator"); + } + set + { + this.OnPropertyChanging("PMDesignator"); + this.SetAttributeValue("pmdesignator", value); + this.OnPropertyChanged("PMDesignator"); + } + } + + /// + /// Number of decimal places that can be used for prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingdecimalprecision")] + [System.ObsoleteAttribute()] + public System.Nullable PricingDecimalPrecision + { + get + { + return this.GetAttributeValue>("pricingdecimalprecision"); + } + set + { + this.OnPropertyChanging("PricingDecimalPrecision"); + this.SetAttributeValue("pricingdecimalprecision", value); + this.OnPropertyChanged("PricingDecimalPrecision"); + } + } + + /// + /// Picklist for selecting the user preference for reporting scripting errors. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("reportscripterrors")] + public Microsoft.Xrm.Sdk.OptionSetValue ReportScriptErrors + { + get + { + return this.GetAttributeValue("reportscripterrors"); + } + set + { + this.OnPropertyChanging("ReportScriptErrors"); + this.SetAttributeValue("reportscripterrors", value); + this.OnPropertyChanged("ReportScriptErrors"); + } + } + + /// + /// Information that specifies whether to display the week number in calendar displays in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("showweeknumber")] + public System.Nullable ShowWeekNumber + { + get + { + return this.GetAttributeValue>("showweeknumber"); + } + set + { + this.OnPropertyChanging("ShowWeekNumber"); + this.SetAttributeValue("showweeknumber", value); + this.OnPropertyChanged("ShowWeekNumber"); + } + } + + /// + /// Indicates if the company field in Microsoft Office Outlook items are set during Outlook synchronization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("synccontactcompany")] + public System.Nullable SyncContactCompany + { + get + { + return this.GetAttributeValue>("synccontactcompany"); + } + set + { + this.OnPropertyChanging("SyncContactCompany"); + this.SetAttributeValue("synccontactcompany", value); + this.OnPropertyChanged("SyncContactCompany"); + } + } + + /// + /// Unique identifier of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SystemUserId = value; + } + } + + /// + /// Information that specifies how the time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatcode")] + public System.Nullable TimeFormatCode + { + get + { + return this.GetAttributeValue>("timeformatcode"); + } + set + { + this.OnPropertyChanging("TimeFormatCode"); + this.SetAttributeValue("timeformatcode", value); + this.OnPropertyChanged("TimeFormatCode"); + } + } + + /// + /// Text for how time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeformatstring")] + public string TimeFormatString + { + get + { + return this.GetAttributeValue("timeformatstring"); + } + set + { + this.OnPropertyChanging("TimeFormatString"); + this.SetAttributeValue("timeformatstring", value); + this.OnPropertyChanged("TimeFormatString"); + } + } + + /// + /// Text for how time is displayed in Microsoft Dynamics CRM. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timeseparator")] + public string TimeSeparator + { + get + { + return this.GetAttributeValue("timeseparator"); + } + set + { + this.OnPropertyChanging("TimeSeparator"); + this.SetAttributeValue("timeseparator", value); + this.OnPropertyChanged("TimeSeparator"); + } + } + + /// + /// Local time zone adjustment for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonebias")] + public System.Nullable TimeZoneBias + { + get + { + return this.GetAttributeValue>("timezonebias"); + } + set + { + this.OnPropertyChanging("TimeZoneBias"); + this.SetAttributeValue("timezonebias", value); + this.OnPropertyChanged("TimeZoneBias"); + } + } + + /// + /// Local time zone for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonecode")] + public System.Nullable TimeZoneCode + { + get + { + return this.GetAttributeValue>("timezonecode"); + } + set + { + this.OnPropertyChanging("TimeZoneCode"); + this.SetAttributeValue("timezonecode", value); + this.OnPropertyChanged("TimeZoneCode"); + } + } + + /// + /// Local time zone daylight adjustment for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightbias")] + public System.Nullable TimeZoneDaylightBias + { + get + { + return this.GetAttributeValue>("timezonedaylightbias"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightBias"); + this.SetAttributeValue("timezonedaylightbias", value); + this.OnPropertyChanged("TimeZoneDaylightBias"); + } + } + + /// + /// Local time zone daylight day for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightday")] + public System.Nullable TimeZoneDaylightDay + { + get + { + return this.GetAttributeValue>("timezonedaylightday"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightDay"); + this.SetAttributeValue("timezonedaylightday", value); + this.OnPropertyChanged("TimeZoneDaylightDay"); + } + } + + /// + /// Local time zone daylight day of week for the user. System calculated based on the time zone selected in Options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightdayofweek")] + public System.Nullable TimeZoneDaylightDayOfWeek + { + get + { + return this.GetAttributeValue>("timezonedaylightdayofweek"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightDayOfWeek"); + this.SetAttributeValue("timezonedaylightdayofweek", value); + this.OnPropertyChanged("TimeZoneDaylightDayOfWeek"); + } + } + + /// + /// Local time zone daylight hour for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylighthour")] + public System.Nullable TimeZoneDaylightHour + { + get + { + return this.GetAttributeValue>("timezonedaylighthour"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightHour"); + this.SetAttributeValue("timezonedaylighthour", value); + this.OnPropertyChanged("TimeZoneDaylightHour"); + } + } + + /// + /// Local time zone daylight minute for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightminute")] + public System.Nullable TimeZoneDaylightMinute + { + get + { + return this.GetAttributeValue>("timezonedaylightminute"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightMinute"); + this.SetAttributeValue("timezonedaylightminute", value); + this.OnPropertyChanged("TimeZoneDaylightMinute"); + } + } + + /// + /// Local time zone daylight month for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightmonth")] + public System.Nullable TimeZoneDaylightMonth + { + get + { + return this.GetAttributeValue>("timezonedaylightmonth"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightMonth"); + this.SetAttributeValue("timezonedaylightmonth", value); + this.OnPropertyChanged("TimeZoneDaylightMonth"); + } + } + + /// + /// Local time zone daylight second for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightsecond")] + public System.Nullable TimeZoneDaylightSecond + { + get + { + return this.GetAttributeValue>("timezonedaylightsecond"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightSecond"); + this.SetAttributeValue("timezonedaylightsecond", value); + this.OnPropertyChanged("TimeZoneDaylightSecond"); + } + } + + /// + /// Local time zone daylight year for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonedaylightyear")] + public System.Nullable TimeZoneDaylightYear + { + get + { + return this.GetAttributeValue>("timezonedaylightyear"); + } + set + { + this.OnPropertyChanging("TimeZoneDaylightYear"); + this.SetAttributeValue("timezonedaylightyear", value); + this.OnPropertyChanged("TimeZoneDaylightYear"); + } + } + + /// + /// Local time zone standard time bias for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardbias")] + public System.Nullable TimeZoneStandardBias + { + get + { + return this.GetAttributeValue>("timezonestandardbias"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardBias"); + this.SetAttributeValue("timezonestandardbias", value); + this.OnPropertyChanged("TimeZoneStandardBias"); + } + } + + /// + /// Local time zone standard day for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardday")] + public System.Nullable TimeZoneStandardDay + { + get + { + return this.GetAttributeValue>("timezonestandardday"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardDay"); + this.SetAttributeValue("timezonestandardday", value); + this.OnPropertyChanged("TimeZoneStandardDay"); + } + } + + /// + /// Local time zone standard day of week for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandarddayofweek")] + public System.Nullable TimeZoneStandardDayOfWeek + { + get + { + return this.GetAttributeValue>("timezonestandarddayofweek"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardDayOfWeek"); + this.SetAttributeValue("timezonestandarddayofweek", value); + this.OnPropertyChanged("TimeZoneStandardDayOfWeek"); + } + } + + /// + /// Local time zone standard hour for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardhour")] + public System.Nullable TimeZoneStandardHour + { + get + { + return this.GetAttributeValue>("timezonestandardhour"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardHour"); + this.SetAttributeValue("timezonestandardhour", value); + this.OnPropertyChanged("TimeZoneStandardHour"); + } + } + + /// + /// Local time zone standard minute for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardminute")] + public System.Nullable TimeZoneStandardMinute + { + get + { + return this.GetAttributeValue>("timezonestandardminute"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardMinute"); + this.SetAttributeValue("timezonestandardminute", value); + this.OnPropertyChanged("TimeZoneStandardMinute"); + } + } + + /// + /// Local time zone standard month for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardmonth")] + public System.Nullable TimeZoneStandardMonth + { + get + { + return this.GetAttributeValue>("timezonestandardmonth"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardMonth"); + this.SetAttributeValue("timezonestandardmonth", value); + this.OnPropertyChanged("TimeZoneStandardMonth"); + } + } + + /// + /// Local time zone standard second for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardsecond")] + public System.Nullable TimeZoneStandardSecond + { + get + { + return this.GetAttributeValue>("timezonestandardsecond"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardSecond"); + this.SetAttributeValue("timezonestandardsecond", value); + this.OnPropertyChanged("TimeZoneStandardSecond"); + } + } + + /// + /// Local time zone standard year for the user. System calculated based on the time zone selected. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezonestandardyear")] + public System.Nullable TimeZoneStandardYear + { + get + { + return this.GetAttributeValue>("timezonestandardyear"); + } + set + { + this.OnPropertyChanging("TimeZoneStandardYear"); + this.SetAttributeValue("timezonestandardyear", value); + this.OnPropertyChanged("TimeZoneStandardYear"); + } + } + + /// + /// Tracking token ID. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("trackingtokenid")] + public System.Nullable TrackingTokenId + { + get + { + return this.GetAttributeValue>("trackingtokenid"); + } + set + { + this.OnPropertyChanging("TrackingTokenId"); + this.SetAttributeValue("trackingtokenid", value); + this.OnPropertyChanged("TrackingTokenId"); + } + } + + /// + /// Unique identifier of the default currency of the user. + /// + [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"); + } + } + + /// + /// Unique identifier of the language in which to view the user interface (UI). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uilanguageid")] + public System.Nullable UILanguageId + { + get + { + return this.GetAttributeValue>("uilanguageid"); + } + set + { + this.OnPropertyChanging("UILanguageId"); + this.SetAttributeValue("uilanguageid", value); + this.OnPropertyChanged("UILanguageId"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM appointment form within Microsoft Office Outlook for creating new appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformforappointment")] + public System.Nullable UseCrmFormForAppointment + { + get + { + return this.GetAttributeValue>("usecrmformforappointment"); + } + set + { + this.OnPropertyChanging("UseCrmFormForAppointment"); + this.SetAttributeValue("usecrmformforappointment", value); + this.OnPropertyChanged("UseCrmFormForAppointment"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM contact form within Microsoft Office Outlook for creating new contacts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformforcontact")] + public System.Nullable UseCrmFormForContact + { + get + { + return this.GetAttributeValue>("usecrmformforcontact"); + } + set + { + this.OnPropertyChanging("UseCrmFormForContact"); + this.SetAttributeValue("usecrmformforcontact", value); + this.OnPropertyChanged("UseCrmFormForContact"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM email form within Microsoft Office Outlook for creating new emails. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformforemail")] + public System.Nullable UseCrmFormForEmail + { + get + { + return this.GetAttributeValue>("usecrmformforemail"); + } + set + { + this.OnPropertyChanging("UseCrmFormForEmail"); + this.SetAttributeValue("usecrmformforemail", value); + this.OnPropertyChanged("UseCrmFormForEmail"); + } + } + + /// + /// Indicates whether to use the Microsoft Dynamics CRM task form within Microsoft Office Outlook for creating new tasks. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("usecrmformfortask")] + public System.Nullable UseCrmFormForTask + { + get + { + return this.GetAttributeValue>("usecrmformfortask"); + } + set + { + this.OnPropertyChanging("UseCrmFormForTask"); + this.SetAttributeValue("usecrmformfortask", value); + this.OnPropertyChanged("UseCrmFormForTask"); + } + } + + /// + /// Indicates whether image strips are used to render images. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("useimagestrips")] + public System.Nullable UseImageStrips + { + get + { + return this.GetAttributeValue>("useimagestrips"); + } + set + { + this.OnPropertyChanging("UseImageStrips"); + this.SetAttributeValue("useimagestrips", value); + this.OnPropertyChanged("UseImageStrips"); + } + } + + /// + /// Specifies user profile ids in comma separated list. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userprofile")] + public string UserProfile + { + get + { + return this.GetAttributeValue("userprofile"); + } + set + { + this.OnPropertyChanging("UserProfile"); + this.SetAttributeValue("userprofile", value); + this.OnPropertyChanged("UserProfile"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// The layout of the visualization pane. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("visualizationpanelayout")] + public Microsoft.Xrm.Sdk.OptionSetValue VisualizationPaneLayout + { + get + { + return this.GetAttributeValue("visualizationpanelayout"); + } + set + { + this.OnPropertyChanging("VisualizationPaneLayout"); + this.SetAttributeValue("visualizationpanelayout", value); + this.OnPropertyChanged("VisualizationPaneLayout"); + } + } + + /// + /// Workday start time for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workdaystarttime")] + public string WorkdayStartTime + { + get + { + return this.GetAttributeValue("workdaystarttime"); + } + set + { + this.OnPropertyChanging("WorkdayStartTime"); + this.SetAttributeValue("workdaystarttime", value); + this.OnPropertyChanged("WorkdayStartTime"); + } + } + + /// + /// Workday stop time for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workdaystoptime")] + public string WorkdayStopTime + { + get + { + return this.GetAttributeValue("workdaystoptime"); + } + set + { + this.OnPropertyChanging("WorkdayStopTime"); + this.SetAttributeValue("workdaystoptime", value); + this.OnPropertyChanged("WorkdayStopTime"); + } + } + + /// + /// N:1 business_unit_user_settings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_user_settings")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_user_settings + { + get + { + return this.GetRelatedEntity("business_unit_user_settings", null); + } + set + { + this.OnPropertyChanging("business_unit_user_settings"); + this.SetRelatedEntity("business_unit_user_settings", null, value); + this.OnPropertyChanged("business_unit_user_settings"); + } + } + + /// + /// N:1 lk_usersettings_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettings_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_usersettings_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_usersettings_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettings_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettings_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_usersettings_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_usersettingsbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettingsbase_createdby + { + get + { + return this.GetRelatedEntity("lk_usersettingsbase_createdby", null); + } + } + + /// + /// N:1 lk_usersettingsbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_usersettingsbase_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_usersettingsbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_usersettingsbase_modifiedby", null); + } + } + + /// + /// N:1 transactioncurrency_usersettings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("transactioncurrency_usersettings")] + public Xrm.Framework.CI.Common.Entities.TransactionCurrency transactioncurrency_usersettings + { + get + { + return this.GetRelatedEntity("transactioncurrency_usersettings", null); + } + set + { + this.OnPropertyChanging("transactioncurrency_usersettings"); + this.SetRelatedEntity("transactioncurrency_usersettings", null, value); + this.OnPropertyChanged("transactioncurrency_usersettings"); + } + } + + /// + /// N:1 user_settings + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_settings")] + public Xrm.Framework.CI.Common.Entities.SystemUser user_settings + { + get + { + return this.GetRelatedEntity("user_settings", null); + } + set + { + this.OnPropertyChanging("user_settings"); + this.SetRelatedEntity("user_settings", null, value); + this.OnPropertyChanged("user_settings"); + } + } + } + + /// + /// Data equivalent to files used in Web development. Web resources provide client-side components that are used to provide custom user interface elements. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("webresource")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class WebResource : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public WebResource() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "webresource"; + + public const int EntityTypeCode = 9333; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information that specifies whether this component can be deleted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty CanBeDeleted + { + get + { + return this.GetAttributeValue("canbedeleted"); + } + set + { + this.OnPropertyChanging("CanBeDeleted"); + this.SetAttributeValue("canbedeleted", value); + this.OnPropertyChanged("CanBeDeleted"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Bytes of the web resource, in Base64 format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Unique identifier of the user who created the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the web resource 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 web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Display name of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayname")] + public string DisplayName + { + get + { + return this.GetAttributeValue("displayname"); + } + set + { + this.OnPropertyChanging("DisplayName"); + this.SetAttributeValue("displayname", value); + this.OnPropertyChanged("DisplayName"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Language of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Unique identifier of the user who last modified the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the web resource was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization associated with the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Silverlight runtime version number required by a silverlight web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("silverlightversion")] + public string SilverlightVersion + { + get + { + return this.GetAttributeValue("silverlightversion"); + } + set + { + this.OnPropertyChanging("SilverlightVersion"); + this.SetAttributeValue("silverlightversion", value); + this.OnPropertyChanged("SilverlightVersion"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Unique identifier of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public System.Nullable WebResourceId + { + get + { + return this.GetAttributeValue>("webresourceid"); + } + set + { + this.OnPropertyChanging("WebResourceId"); + this.SetAttributeValue("webresourceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WebResourceId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WebResourceId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceidunique")] + public System.Nullable WebResourceIdUnique + { + get + { + return this.GetAttributeValue>("webresourceidunique"); + } + } + + /// + /// Drop-down list for selecting the type of the web resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourcetype")] + public Microsoft.Xrm.Sdk.OptionSetValue WebResourceType + { + get + { + return this.GetAttributeValue("webresourcetype"); + } + set + { + this.OnPropertyChanging("WebResourceType"); + this.SetAttributeValue("webresourcetype", value); + this.OnPropertyChanged("WebResourceType"); + } + } + + /// + /// 1:N solution_configuration_webresource + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_configuration_webresource")] + public System.Collections.Generic.IEnumerable solution_configuration_webresource + { + get + { + return this.GetRelatedEntities("solution_configuration_webresource", null); + } + set + { + this.OnPropertyChanging("solution_configuration_webresource"); + this.SetRelatedEntities("solution_configuration_webresource", null, value); + this.OnPropertyChanged("solution_configuration_webresource"); + } + } + + /// + /// 1:N userentityinstancedata_webresource + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_webresource")] + public System.Collections.Generic.IEnumerable userentityinstancedata_webresource + { + get + { + return this.GetRelatedEntities("userentityinstancedata_webresource", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_webresource"); + this.SetRelatedEntities("userentityinstancedata_webresource", null, value); + this.OnPropertyChanged("userentityinstancedata_webresource"); + } + } + + /// + /// 1:N webresource_savedqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_savedqueryvisualizations")] + public System.Collections.Generic.IEnumerable webresource_savedqueryvisualizations + { + get + { + return this.GetRelatedEntities("webresource_savedqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_savedqueryvisualizations"); + this.SetRelatedEntities("webresource_savedqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_savedqueryvisualizations"); + } + } + + /// + /// 1:N webresource_userqueryvisualizations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_userqueryvisualizations")] + public System.Collections.Generic.IEnumerable webresource_userqueryvisualizations + { + get + { + return this.GetRelatedEntities("webresource_userqueryvisualizations", null); + } + set + { + this.OnPropertyChanging("webresource_userqueryvisualizations"); + this.SetRelatedEntities("webresource_userqueryvisualizations", null, value); + this.OnPropertyChanged("webresource_userqueryvisualizations"); + } + } + + /// + /// N:1 lk_webresourcebase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_webresourcebase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_webresourcebase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_webresourcebase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_webresourcebase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_webresourcebase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 webresource_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser webresource_createdby + { + get + { + return this.GetRelatedEntity("webresource_createdby", null); + } + } + + /// + /// N:1 webresource_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser webresource_modifiedby + { + get + { + return this.GetRelatedEntity("webresource_modifiedby", null); + } + } + + /// + /// N:1 webresource_organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_organization")] + public Xrm.Framework.CI.Common.Entities.Organization webresource_organization + { + get + { + return this.GetRelatedEntity("webresource_organization", null); + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public enum WorkflowState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Activated = 1, + } + + /// + /// Set of logical rules that define the steps necessary to automate a specific business process, task, or set of actions to be performed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("workflow")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class Workflow : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public Workflow() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "workflow"; + + public const int EntityTypeCode = 4703; + + 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 latest activation record for the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeworkflowid")] + public Microsoft.Xrm.Sdk.EntityReference ActiveWorkflowId + { + get + { + return this.GetAttributeValue("activeworkflowid"); + } + } + + /// + /// Indicates whether the asynchronous system job is automatically deleted on completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodelete")] + public System.Nullable AsyncAutoDelete + { + get + { + return this.GetAttributeValue>("asyncautodelete"); + } + set + { + this.OnPropertyChanging("AsyncAutoDelete"); + this.SetAttributeValue("asyncautodelete", value); + this.OnPropertyChanged("AsyncAutoDelete"); + } + } + + /// + /// Category of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public Microsoft.Xrm.Sdk.OptionSetValue Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Business logic converted into client data + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("clientdata")] + public string ClientData + { + get + { + return this.GetAttributeValue("clientdata"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public Microsoft.Xrm.Sdk.OptionSetValue ComponentState + { + get + { + return this.GetAttributeValue("componentstate"); + } + } + + /// + /// Unique identifier of the user who created the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the process 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 process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Stage of the process when triggered on Create. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createstage")] + public Microsoft.Xrm.Sdk.OptionSetValue CreateStage + { + get + { + return this.GetAttributeValue("createstage"); + } + set + { + this.OnPropertyChanging("CreateStage"); + this.SetAttributeValue("createstage", value); + this.OnPropertyChanged("CreateStage"); + } + } + + /// + /// Stage of the process when triggered on Delete. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletestage")] + public Microsoft.Xrm.Sdk.OptionSetValue DeleteStage + { + get + { + return this.GetAttributeValue("deletestage"); + } + set + { + this.OnPropertyChanging("DeleteStage"); + this.SetAttributeValue("deletestage", value); + this.OnPropertyChanged("DeleteStage"); + } + } + + /// + /// Description of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Input parameters to the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inputparameters")] + public string InputParameters + { + get + { + return this.GetAttributeValue("inputparameters"); + } + set + { + this.OnPropertyChanging("InputParameters"); + this.SetAttributeValue("inputparameters", value); + this.OnPropertyChanged("InputParameters"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Indicates whether the process was created using the Microsoft Dynamics CRM Web application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscrmuiworkflow")] + public System.Nullable IsCrmUIWorkflow + { + get + { + return this.GetAttributeValue>("iscrmuiworkflow"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the custom operation is automatically transacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("istransacted")] + public System.Nullable IsTransacted + { + get + { + return this.GetAttributeValue>("istransacted"); + } + set + { + this.OnPropertyChanging("IsTransacted"); + this.SetAttributeValue("istransacted", value); + this.OnPropertyChanged("IsTransacted"); + } + } + + /// + /// Language of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] + public System.Nullable LanguageCode + { + get + { + return this.GetAttributeValue>("languagecode"); + } + set + { + this.OnPropertyChanging("LanguageCode"); + this.SetAttributeValue("languagecode", value); + this.OnPropertyChanged("LanguageCode"); + } + } + + /// + /// Shows the mode of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mode")] + public Microsoft.Xrm.Sdk.OptionSetValue Mode + { + get + { + return this.GetAttributeValue("mode"); + } + set + { + this.OnPropertyChanging("Mode"); + this.SetAttributeValue("mode", value); + this.OnPropertyChanged("Mode"); + } + } + + /// + /// Unique identifier of the user who last modified the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the process 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 process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Indicates whether the process is able to run as an on-demand process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ondemand")] + public System.Nullable OnDemand + { + get + { + return this.GetAttributeValue>("ondemand"); + } + set + { + this.OnPropertyChanging("OnDemand"); + this.SetAttributeValue("ondemand", value); + this.OnPropertyChanged("OnDemand"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the user or team who owns the process. + /// + [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 process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the definition for process activation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentworkflowid")] + public Microsoft.Xrm.Sdk.EntityReference ParentWorkflowId + { + get + { + return this.GetAttributeValue("parentworkflowid"); + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + } + + /// + /// Primary entity for the process. The process can be associated for one or more SDK operations defined on the primary entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentity")] + public string PrimaryEntity + { + get + { + return this.GetAttributeValue("primaryentity"); + } + set + { + this.OnPropertyChanging("PrimaryEntity"); + this.SetAttributeValue("primaryentity", value); + this.OnPropertyChanged("PrimaryEntity"); + } + } + + /// + /// Type the business process flow order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processorder")] + public System.Nullable ProcessOrder + { + get + { + return this.GetAttributeValue>("processorder"); + } + set + { + this.OnPropertyChanging("ProcessOrder"); + this.SetAttributeValue("processorder", value); + this.OnPropertyChanged("ProcessOrder"); + } + } + + /// + /// Contains the role assignment for the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processroleassignment")] + public string ProcessRoleAssignment + { + get + { + return this.GetAttributeValue("processroleassignment"); + } + set + { + this.OnPropertyChanging("ProcessRoleAssignment"); + this.SetAttributeValue("processroleassignment", value); + this.OnPropertyChanged("ProcessRoleAssignment"); + } + } + + /// + /// Indicates the rank for order of execution for the synchronous workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// Specifies the system user account under which a workflow executes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("runas")] + public Microsoft.Xrm.Sdk.OptionSetValue RunAs + { + get + { + return this.GetAttributeValue("runas"); + } + set + { + this.OnPropertyChanging("RunAs"); + this.SetAttributeValue("runas", value); + this.OnPropertyChanged("RunAs"); + } + } + + /// + /// Scope of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scope")] + public Microsoft.Xrm.Sdk.OptionSetValue Scope + { + get + { + return this.GetAttributeValue("scope"); + } + set + { + this.OnPropertyChanging("Scope"); + this.SetAttributeValue("scope", value); + this.OnPropertyChanged("Scope"); + } + } + + /// + /// Unique identifier of the SDK Message associated with this workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((Xrm.Framework.CI.Common.Entities.WorkflowState)(System.Enum.ToObject(typeof(Xrm.Framework.CI.Common.Entities.WorkflowState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Additional information about status of the process. + /// + [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"); + } + } + + /// + /// Indicates whether the process can be included in other processes as a child process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subprocess")] + public System.Nullable Subprocess + { + get + { + return this.GetAttributeValue>("subprocess"); + } + set + { + this.OnPropertyChanging("Subprocess"); + this.SetAttributeValue("subprocess", value); + this.OnPropertyChanged("Subprocess"); + } + } + + /// + /// Select whether synchronous workflow failures will be saved to log files. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("syncworkflowlogonfailure")] + public System.Nullable SyncWorkflowLogOnFailure + { + get + { + return this.GetAttributeValue>("syncworkflowlogonfailure"); + } + set + { + this.OnPropertyChanging("SyncWorkflowLogOnFailure"); + this.SetAttributeValue("syncworkflowlogonfailure", value); + this.OnPropertyChanged("SyncWorkflowLogOnFailure"); + } + } + + /// + /// Indicates whether the process will be triggered when the primary entity is created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("triggeroncreate")] + public System.Nullable TriggerOnCreate + { + get + { + return this.GetAttributeValue>("triggeroncreate"); + } + set + { + this.OnPropertyChanging("TriggerOnCreate"); + this.SetAttributeValue("triggeroncreate", value); + this.OnPropertyChanged("TriggerOnCreate"); + } + } + + /// + /// Indicates whether the process will be triggered on deletion of the primary entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("triggerondelete")] + public System.Nullable TriggerOnDelete + { + get + { + return this.GetAttributeValue>("triggerondelete"); + } + set + { + this.OnPropertyChanging("TriggerOnDelete"); + this.SetAttributeValue("triggerondelete", value); + this.OnPropertyChanged("TriggerOnDelete"); + } + } + + /// + /// Attributes that trigger the process when updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("triggeronupdateattributelist")] + public string TriggerOnUpdateAttributeList + { + get + { + return this.GetAttributeValue("triggeronupdateattributelist"); + } + set + { + this.OnPropertyChanging("TriggerOnUpdateAttributeList"); + this.SetAttributeValue("triggeronupdateattributelist", value); + this.OnPropertyChanged("TriggerOnUpdateAttributeList"); + } + } + + /// + /// Type of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// Type a name for the custom operation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// Select the stage a process will be triggered on update. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("updatestage")] + public Microsoft.Xrm.Sdk.OptionSetValue UpdateStage + { + get + { + return this.GetAttributeValue("updatestage"); + } + set + { + this.OnPropertyChanging("UpdateStage"); + this.SetAttributeValue("updatestage", value); + this.OnPropertyChanged("UpdateStage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Unique identifier of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + public System.Nullable WorkflowId + { + get + { + return this.GetAttributeValue>("workflowid"); + } + set + { + this.OnPropertyChanging("WorkflowId"); + this.SetAttributeValue("workflowid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WorkflowId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WorkflowId = value; + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowidunique")] + public System.Nullable WorkflowIdUnique + { + get + { + return this.GetAttributeValue>("workflowidunique"); + } + } + + /// + /// XAML that defines the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("xaml")] + public string Xaml + { + get + { + return this.GetAttributeValue("xaml"); + } + set + { + this.OnPropertyChanging("Xaml"); + this.SetAttributeValue("xaml", value); + this.OnPropertyChanged("Xaml"); + } + } + + /// + /// 1:N lk_asyncoperation_workflowactivationid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_workflowactivationid")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_workflowactivationid + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_workflowactivationid", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_workflowactivationid"); + this.SetRelatedEntities("lk_asyncoperation_workflowactivationid", null, value); + this.OnPropertyChanged("lk_asyncoperation_workflowactivationid"); + } + } + + /// + /// 1:N lk_processsession_processid + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_processsession_processid")] + public System.Collections.Generic.IEnumerable lk_processsession_processid + { + get + { + return this.GetRelatedEntities("lk_processsession_processid", null); + } + set + { + this.OnPropertyChanging("lk_processsession_processid"); + this.SetRelatedEntities("lk_processsession_processid", null, value); + this.OnPropertyChanged("lk_processsession_processid"); + } + } + + /// + /// 1:N process_processstage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processstage")] + public System.Collections.Generic.IEnumerable process_processstage + { + get + { + return this.GetRelatedEntities("process_processstage", null); + } + set + { + this.OnPropertyChanging("process_processstage"); + this.SetRelatedEntities("process_processstage", null, value); + this.OnPropertyChanged("process_processstage"); + } + } + + /// + /// 1:N process_processtrigger + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("process_processtrigger")] + public System.Collections.Generic.IEnumerable process_processtrigger + { + get + { + return this.GetRelatedEntities("process_processtrigger", null); + } + set + { + this.OnPropertyChanging("process_processtrigger"); + this.SetRelatedEntities("process_processtrigger", null, value); + this.OnPropertyChanged("process_processtrigger"); + } + } + + /// + /// 1:N userentityinstancedata_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflow")] + public System.Collections.Generic.IEnumerable userentityinstancedata_workflow + { + get + { + return this.GetRelatedEntities("userentityinstancedata_workflow", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflow"); + this.SetRelatedEntities("userentityinstancedata_workflow", null, value); + this.OnPropertyChanged("userentityinstancedata_workflow"); + } + } + + /// + /// 1:N workflow_active_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedworkflow_active_workflow + { + get + { + return this.GetRelatedEntities("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedworkflow_active_workflow"); + this.SetRelatedEntities("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedworkflow_active_workflow"); + } + } + + /// + /// 1:N Workflow_Annotation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Workflow_Annotation")] + public System.Collections.Generic.IEnumerable Workflow_Annotation + { + get + { + return this.GetRelatedEntities("Workflow_Annotation", null); + } + set + { + this.OnPropertyChanging("Workflow_Annotation"); + this.SetRelatedEntities("Workflow_Annotation", null, value); + this.OnPropertyChanged("Workflow_Annotation"); + } + } + + /// + /// 1:N workflow_dependencies + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependencies")] + public System.Collections.Generic.IEnumerable workflow_dependencies + { + get + { + return this.GetRelatedEntities("workflow_dependencies", null); + } + set + { + this.OnPropertyChanging("workflow_dependencies"); + this.SetRelatedEntities("workflow_dependencies", null, value); + this.OnPropertyChanged("workflow_dependencies"); + } + } + + /// + /// 1:N workflow_parent_workflow + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedworkflow_parent_workflow + { + get + { + return this.GetRelatedEntities("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedworkflow_parent_workflow"); + this.SetRelatedEntities("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedworkflow_parent_workflow"); + } + } + + /// + /// N:1 business_unit_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflow")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_workflow + { + get + { + return this.GetRelatedEntity("business_unit_workflow", null); + } + } + + /// + /// N:1 system_user_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_workflow")] + public Xrm.Framework.CI.Common.Entities.SystemUser system_user_workflow + { + get + { + return this.GetRelatedEntity("system_user_workflow", null); + } + } + + /// + /// N:1 team_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflow")] + public Xrm.Framework.CI.Common.Entities.Team team_workflow + { + get + { + return this.GetRelatedEntity("team_workflow", null); + } + } + + /// + /// N:1 workflow_active_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activeworkflowid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Workflow Referencingworkflow_active_workflow + { + get + { + return this.GetRelatedEntity("workflow_active_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 workflow_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_createdby + { + get + { + return this.GetRelatedEntity("workflow_createdby", null); + } + } + + /// + /// N:1 workflow_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_createdonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_createdonbehalfby", null); + } + } + + /// + /// N:1 workflow_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_modifiedby + { + get + { + return this.GetRelatedEntity("workflow_modifiedby", null); + } + } + + /// + /// N:1 workflow_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_modifiedonbehalfby", null); + } + } + + /// + /// N:1 workflow_parent_workflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentworkflowid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public Xrm.Framework.CI.Common.Entities.Workflow Referencingworkflow_parent_workflow + { + get + { + return this.GetRelatedEntity("workflow_parent_workflow", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + } + + /// + /// Dependencies for a process. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("workflowdependency")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class WorkflowDependency : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public WorkflowDependency() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "workflowdependency"; + + public const int EntityTypeCode = 4704; + + 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 process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the process dependency 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 process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Name of the entity used in the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customentityname")] + public string CustomEntityName + { + get + { + return this.GetAttributeValue("customentityname"); + } + set + { + this.OnPropertyChanging("CustomEntityName"); + this.SetAttributeValue("customentityname", value); + this.OnPropertyChanged("CustomEntityName"); + } + } + + /// + /// Name of the attribute used in the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentattributename")] + public string DependentAttributeName + { + get + { + return this.GetAttributeValue("dependentattributename"); + } + set + { + this.OnPropertyChanging("DependentAttributeName"); + this.SetAttributeValue("dependentattributename", value); + this.OnPropertyChanged("DependentAttributeName"); + } + } + + /// + /// Name of the entity used in the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependententityname")] + public string DependentEntityName + { + get + { + return this.GetAttributeValue("dependententityname"); + } + set + { + this.OnPropertyChanging("DependentEntityName"); + this.SetAttributeValue("dependententityname", value); + this.OnPropertyChanged("DependentEntityName"); + } + } + + /// + /// Comma-separated list of attributes that will be passed to process instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityattributes")] + public string EntityAttributes + { + get + { + return this.GetAttributeValue("entityattributes"); + } + set + { + this.OnPropertyChanging("EntityAttributes"); + this.SetAttributeValue("entityattributes", value); + this.OnPropertyChanged("EntityAttributes"); + } + } + + /// + /// Unique identifier of the user who last modified the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the process dependency 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 process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the parent workflow instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public System.Nullable OwningBusinessUnit + { + get + { + return this.GetAttributeValue>("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the user who owns the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public System.Nullable OwningUser + { + get + { + return this.GetAttributeValue>("owninguser"); + } + } + + /// + /// Name of the process parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametername")] + public string ParameterName + { + get + { + return this.GetAttributeValue("parametername"); + } + set + { + this.OnPropertyChanging("ParameterName"); + this.SetAttributeValue("parametername", value); + this.OnPropertyChanged("ParameterName"); + } + } + + /// + /// Fully qualified name of the CLR type of the local parameter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parametertype")] + public string ParameterType + { + get + { + return this.GetAttributeValue("parametertype"); + } + set + { + this.OnPropertyChanging("ParameterType"); + this.SetAttributeValue("parametertype", value); + this.OnPropertyChanged("ParameterType"); + } + } + + /// + /// Attribute of the primary entity that specifies related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedattributename")] + public string RelatedAttributeName + { + get + { + return this.GetAttributeValue("relatedattributename"); + } + set + { + this.OnPropertyChanging("RelatedAttributeName"); + this.SetAttributeValue("relatedattributename", value); + this.OnPropertyChanged("RelatedAttributeName"); + } + } + + /// + /// Name of the related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedentityname")] + public string RelatedEntityName + { + get + { + return this.GetAttributeValue("relatedentityname"); + } + set + { + this.OnPropertyChanging("RelatedEntityName"); + this.SetAttributeValue("relatedentityname", value); + this.OnPropertyChanged("RelatedEntityName"); + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Type of the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] + public Microsoft.Xrm.Sdk.OptionSetValue Type + { + get + { + return this.GetAttributeValue("type"); + } + set + { + this.OnPropertyChanging("Type"); + this.SetAttributeValue("type", value); + this.OnPropertyChanged("Type"); + } + } + + /// + /// Unique identifier of the process dependency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowdependencyid")] + public System.Nullable WorkflowDependencyId + { + get + { + return this.GetAttributeValue>("workflowdependencyid"); + } + set + { + this.OnPropertyChanging("WorkflowDependencyId"); + this.SetAttributeValue("workflowdependencyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WorkflowDependencyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowdependencyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WorkflowDependencyId = value; + } + } + + /// + /// Unique identifier of the process with which the dependency is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + public Microsoft.Xrm.Sdk.EntityReference WorkflowId + { + get + { + return this.GetAttributeValue("workflowid"); + } + set + { + this.OnPropertyChanging("WorkflowId"); + this.SetAttributeValue("workflowid", value); + this.OnPropertyChanged("WorkflowId"); + } + } + + /// + /// 1:N userentityinstancedata_workflowdependency + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowdependency")] + public System.Collections.Generic.IEnumerable userentityinstancedata_workflowdependency + { + get + { + return this.GetRelatedEntities("userentityinstancedata_workflowdependency", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowdependency"); + this.SetRelatedEntities("userentityinstancedata_workflowdependency", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowdependency"); + } + } + + /// + /// N:1 sdkmessageid_workflow_dependency + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_workflow_dependency")] + public Xrm.Framework.CI.Common.Entities.SdkMessage sdkmessageid_workflow_dependency + { + get + { + return this.GetRelatedEntity("sdkmessageid_workflow_dependency", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_workflow_dependency"); + this.SetRelatedEntity("sdkmessageid_workflow_dependency", null, value); + this.OnPropertyChanged("sdkmessageid_workflow_dependency"); + } + } + + /// + /// N:1 workflow_dependencies + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependencies")] + public Xrm.Framework.CI.Common.Entities.Workflow workflow_dependencies + { + get + { + return this.GetRelatedEntity("workflow_dependencies", null); + } + set + { + this.OnPropertyChanging("workflow_dependencies"); + this.SetRelatedEntity("workflow_dependencies", null, value); + this.OnPropertyChanged("workflow_dependencies"); + } + } + + /// + /// N:1 workflow_dependency_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_createdby + { + get + { + return this.GetRelatedEntity("workflow_dependency_createdby", null); + } + } + + /// + /// N:1 workflow_dependency_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_createdonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_dependency_createdonbehalfby", null); + } + } + + /// + /// N:1 workflow_dependency_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_modifiedby + { + get + { + return this.GetRelatedEntity("workflow_dependency_modifiedby", null); + } + } + + /// + /// N:1 workflow_dependency_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("workflow_dependency_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser workflow_dependency_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("workflow_dependency_modifiedonbehalfby", null); + } + } + } + + /// + /// Log used to track process execution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("workflowlog")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class WorkflowLog : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Default Constructor. + /// + public WorkflowLog() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "workflowlog"; + + public const int EntityTypeCode = 4706; + + 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)); + } + } + + /// + /// Name of the activity which the process step is currently processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityname")] + public string ActivityName + { + get + { + return this.GetAttributeValue("activityname"); + } + set + { + this.OnPropertyChanging("ActivityName"); + this.SetAttributeValue("activityname", value); + this.OnPropertyChanged("ActivityName"); + } + } + + /// + /// Unique identifier of the parent record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId + { + get + { + return this.GetAttributeValue("asyncoperationid"); + } + set + { + this.OnPropertyChanging("AsyncOperationId"); + this.SetAttributeValue("asyncoperationid", value); + this.OnPropertyChanged("AsyncOperationId"); + } + } + + /// + /// Unique identifier of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childworkflowinstanceid")] + public Microsoft.Xrm.Sdk.EntityReference ChildWorkflowInstanceId + { + get + { + return this.GetAttributeValue("childworkflowinstanceid"); + } + set + { + this.OnPropertyChanging("ChildWorkflowInstanceId"); + this.SetAttributeValue("childworkflowinstanceid", value); + this.OnPropertyChanged("ChildWorkflowInstanceId"); + } + } + + /// + /// Date and time when the operation was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + set + { + this.OnPropertyChanging("CompletedOn"); + this.SetAttributeValue("completedon", value); + this.OnPropertyChanged("CompletedOn"); + } + } + + /// + /// Unique identifier of the user who created the process log entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the process log entry 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 process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the process step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Error code related to process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + set + { + this.OnPropertyChanging("ErrorCode"); + this.SetAttributeValue("errorcode", value); + this.OnPropertyChanged("ErrorCode"); + } + } + + /// + /// String specifying the result of an interaction activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("interactionactivityresult")] + public string InteractionActivityResult + { + get + { + return this.GetAttributeValue("interactionactivityresult"); + } + set + { + this.OnPropertyChanging("InteractionActivityResult"); + this.SetAttributeValue("interactionactivityresult", value); + this.OnPropertyChanged("InteractionActivityResult"); + } + } + + /// + /// Message related to process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + set + { + this.OnPropertyChanging("Message"); + this.SetAttributeValue("message", value); + this.OnPropertyChanged("Message"); + } + } + + /// + /// Unique identifier of the user who last modified the process log entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the process log entry 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 process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the user or team who owns the process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + } + + /// + /// Unique identifier of the business unit that owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the process log. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Unique identifier of the associated record. + /// + [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"); + } + } + + /// + /// Name of the process stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagename")] + public string StageName + { + get + { + return this.GetAttributeValue("stagename"); + } + set + { + this.OnPropertyChanging("StageName"); + this.SetAttributeValue("stagename", value); + this.OnPropertyChanged("StageName"); + } + } + + /// + /// Status of the process step for which process log record has been created: In Progress, Successfully Completed, or Failed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("status")] + public Microsoft.Xrm.Sdk.OptionSetValue Status + { + get + { + return this.GetAttributeValue("status"); + } + set + { + this.OnPropertyChanging("Status"); + this.SetAttributeValue("status", value); + this.OnPropertyChanged("Status"); + } + } + + /// + /// Name of the process step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stepname")] + public string StepName + { + get + { + return this.GetAttributeValue("stepname"); + } + set + { + this.OnPropertyChanging("StepName"); + this.SetAttributeValue("stepname", value); + this.OnPropertyChanged("StepName"); + } + } + + /// + /// Unique identifier of the process log entry. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowlogid")] + public System.Nullable WorkflowLogId + { + get + { + return this.GetAttributeValue>("workflowlogid"); + } + set + { + this.OnPropertyChanging("WorkflowLogId"); + this.SetAttributeValue("workflowlogid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("WorkflowLogId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowlogid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.WorkflowLogId = value; + } + } + + /// + /// 1:N userentityinstancedata_workflowlog + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_workflowlog")] + public System.Collections.Generic.IEnumerable userentityinstancedata_workflowlog + { + get + { + return this.GetRelatedEntities("userentityinstancedata_workflowlog", null); + } + set + { + this.OnPropertyChanging("userentityinstancedata_workflowlog"); + this.SetRelatedEntities("userentityinstancedata_workflowlog", null, value); + this.OnPropertyChanged("userentityinstancedata_workflowlog"); + } + } + + /// + /// N:1 business_unit_workflowlogs + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_workflowlogs")] + public Xrm.Framework.CI.Common.Entities.BusinessUnit business_unit_workflowlogs + { + get + { + return this.GetRelatedEntity("business_unit_workflowlogs", null); + } + } + + /// + /// N:1 lk_workflowlog_asyncoperation_childworkflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childworkflowinstanceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperation_childworkflow")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation lk_workflowlog_asyncoperation_childworkflow + { + get + { + return this.GetRelatedEntity("lk_workflowlog_asyncoperation_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperation_childworkflow"); + this.SetRelatedEntity("lk_workflowlog_asyncoperation_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperation_childworkflow"); + } + } + + /// + /// N:1 lk_workflowlog_asyncoperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_asyncoperations")] + public Xrm.Framework.CI.Common.Entities.AsyncOperation lk_workflowlog_asyncoperations + { + get + { + return this.GetRelatedEntity("lk_workflowlog_asyncoperations", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_asyncoperations"); + this.SetRelatedEntity("lk_workflowlog_asyncoperations", null, value); + this.OnPropertyChanged("lk_workflowlog_asyncoperations"); + } + } + + /// + /// N:1 lk_workflowlog_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_createdby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_createdby", null); + } + } + + /// + /// N:1 lk_workflowlog_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_createdonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_workflowlog_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_modifiedby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_modifiedby", null); + } + } + + /// + /// N:1 lk_workflowlog_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_modifiedonbehalfby")] + public Xrm.Framework.CI.Common.Entities.SystemUser lk_workflowlog_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_workflowlog_modifiedonbehalfby", null); + } + } + + /// + /// N:1 lk_workflowlog_processsession + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession")] + public Xrm.Framework.CI.Common.Entities.ProcessSession lk_workflowlog_processsession + { + get + { + return this.GetRelatedEntity("lk_workflowlog_processsession", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession"); + this.SetRelatedEntity("lk_workflowlog_processsession", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession"); + } + } + + /// + /// N:1 lk_workflowlog_processsession_childworkflow + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childworkflowinstanceid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_workflowlog_processsession_childworkflow")] + public Xrm.Framework.CI.Common.Entities.ProcessSession lk_workflowlog_processsession_childworkflow + { + get + { + return this.GetRelatedEntity("lk_workflowlog_processsession_childworkflow", null); + } + set + { + this.OnPropertyChanging("lk_workflowlog_processsession_childworkflow"); + this.SetRelatedEntity("lk_workflowlog_processsession_childworkflow", null, value); + this.OnPropertyChanged("lk_workflowlog_processsession_childworkflow"); + } + } + + /// + /// N:1 team_workflowlog + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_workflowlog")] + public Xrm.Framework.CI.Common.Entities.Team team_workflowlog + { + get + { + return this.GetRelatedEntity("team_workflowlog", null); + } + } + } + + /// + /// Represents a source of entities bound to a CRM service. It tracks and manages changes made to the retrieved entities. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "6.0.0000.0809")] + public partial class CIContext : Microsoft.Xrm.Sdk.Client.OrganizationServiceContext + { + + /// + /// Constructor. + /// + public CIContext(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 AccountLeadsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ActivityMimeAttachmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ActivityPartySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ActivityPointerSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AnnotationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AnnualFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AppointmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AsyncOperationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AttributeMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AuditSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkDeleteFailureSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkDeleteOperationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkOperationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BulkOperationLogSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BusinessUnitSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable BusinessUnitNewsArticleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignActivitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignActivityItemSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignItemSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CampaignResponseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ColumnMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CompetitorSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CompetitorProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CompetitorSalesLiteratureSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionRoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionRoleAssociationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConnectionRoleObjectTypeCodeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ConstraintBasedGroupSet + { + 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 ContactInvoicesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactLeadsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactOrdersSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactQuotesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContractSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContractDetailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContractTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CustomerAddressSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CustomerOpportunityRoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable CustomerRelationshipSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DependencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DiscountSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DiscountTypeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DisplayStringSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DuplicateRecordSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DuplicateRuleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DuplicateRuleConditionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EmailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EmailServerProfileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EntityMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable EquipmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ExchangeSyncIdMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FaxSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FieldPermissionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FieldSecurityProfileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable FixedMonthlyFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable GoalSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable GoalRollupQuerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportEntityMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportFileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportJobSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportLogSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ImportMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable IncidentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable IncidentResolutionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable InvalidDependencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable InvoiceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable InvoiceDetailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable IsvConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable KbArticleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable KbArticleCommentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable KbArticleTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadAddressSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadCompetitorsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LeadProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LetterSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LicenseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ListSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ListMemberSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable LookUpMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MailboxSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MailMergeTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MetricSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable MonthlyFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_PostAlbumSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_PostConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_PostRuleConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_wallsavedquerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable msdyn_wallsavedqueryusersettingsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunityCloseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunityCompetitorsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OpportunityProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OrderCloseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OrganizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OrganizationUISet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable OwnerMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PhoneCallSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PickListMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PluginAssemblySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PluginTypeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PluginTypeStatisticSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostCommentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostFollowSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PostLikeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PriceLevelSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PrincipalEntityMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PrincipalObjectAttributeAccessSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PrivilegeSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProcessSessionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProcessStageSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProcessTriggerSet + { + 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 ProductPriceLevelSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProductSalesLiteratureSet + { + 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 PublisherSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable PublisherAddressSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QuarterlyFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QueueSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QueueItemSet + { + 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 QuoteDetailSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RecurrenceRuleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RecurringAppointmentMasterSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RelationshipRoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RelationshipRoleMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportCategorySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportEntitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportLinkSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ReportVisibilitySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ResourceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ResourceGroupSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ResourceSpecSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RibbonCustomizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RoleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RolePrivilegesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RoleTemplatePrivilegesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable RollupFieldSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SalesLiteratureSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SalesLiteratureItemSet + { + 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(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SavedQuerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SavedQueryVisualizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageFilterSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessagePairSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageProcessingStepSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageProcessingStepImageSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageProcessingStepSecureConfigSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageRequestSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageRequestFieldSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageResponseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SdkMessageResponseFieldSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SemiAnnualFiscalCalendarSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceAppointmentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceContractContactsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ServiceEndpointSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SharePointDocumentLocationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SharePointSiteSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SiteSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SiteMapSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SolutionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SolutionComponentSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SubjectSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SubscriptionManuallyTrackedObjectSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemFormSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserLicensesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserProfilesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SystemUserRolesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TaskSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamMembershipSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamProfilesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamRolesSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TeamTemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TemplateSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TerritorySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TimeZoneDefinitionSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TimeZoneLocalizedNameSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TimeZoneRuleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TraceLogSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TransactionCurrencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TransformationMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable TransformationParameterMappingSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UoMSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UoMScheduleSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserEntityInstanceDataSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserEntityUISettingsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserFormSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserQuerySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserQueryVisualizationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable UserSettingsSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WebResourceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WorkflowSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WorkflowDependencySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable WorkflowLogSet + { + get + { + return this.CreateQuery(); + } + } + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/Enums.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/Enums.cs new file mode 100644 index 00000000..8632fcca --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/Enums.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + //public enum SolutionPackageType + //{ + // Unmanaged, + // Managed, + // Both + //} + //public enum AuthenticationType + //{ + // AD, + // Claims, + // IFD, + // Live, + // Office365 + //} + //public enum DeploymentRegion + //{ + // APAC, + // EMEA, + // NorthAmerica + //} + //public enum OnlineType + //{ + // Office365, + // LiveID + //} +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/ExportSolution.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/ExportSolution.cs new file mode 100644 index 00000000..30a27005 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/ExportSolution.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xrm.Sdk; +using Microsoft.Xrm.Sdk.Query; +using Microsoft.Crm.Sdk.Messages; +using System.IO; +using Xrm.Framework.CI.Common.Entities; + +namespace Xrm.Framework.CI.Common +{ + public class ExportSolution + { + #region Properties + + public IOrganizationService OrgService { get; private set; } + + #endregion + + #region Constructors + + public ExportSolution(IOrganizationService orgService) + { + OrgService = orgService; + } + + #endregion + + #region Methods + + public string Export(bool managed, + string outputFolder, + string solutionName, + bool exportAutoNumberingSettings, + bool exportCalendarSettings, + bool exportCustomizationSettings, + bool exportEmailTrackingSettings, + bool exportGeneralSettings, + bool exportIsvConfig, + bool exportMarketingSettings, + bool exportOutlookSynchronizationSettings, + bool exportRelationshipRoles) + { + StringBuilder solutionFile = new StringBuilder(); + Solution solution = null; + + using (CIContext context = new CIContext(OrgService)) + { + var query = from s in context.SolutionSet + where s.UniqueName == solutionName + select s; + + solution = query.FirstOrDefault(); + } + + if (solution == null) + { + throw new Exception(string.Format("Solution {0} could not be found", solutionName)); + } + else + { + solutionFile.Append(solutionName); + solutionFile.Append("_"); + + solutionFile.Append(solution.Version.Replace(".", "_")); + } + + if (managed) + { + solutionFile.Append("_managed"); + } + + solutionFile.Append(".zip"); + + ExportSolutionRequest req = new ExportSolutionRequest() + { + Managed = managed, + SolutionName = solutionName, + ExportAutoNumberingSettings = exportAutoNumberingSettings, + ExportCalendarSettings = exportCalendarSettings, + ExportCustomizationSettings = exportCustomizationSettings, + ExportEmailTrackingSettings = exportEmailTrackingSettings, + ExportGeneralSettings = exportGeneralSettings, + ExportIsvConfig = exportIsvConfig, + ExportMarketingSettings = exportMarketingSettings, + ExportOutlookSynchronizationSettings = exportOutlookSynchronizationSettings, + ExportRelationshipRoles = exportRelationshipRoles + }; + + ExportSolutionResponse res = OrgService.Execute(req) as ExportSolutionResponse; + + File.WriteAllBytes(outputFolder + "\\" + solutionFile.ToString(), res.ExportSolutionFile); + + return solutionFile.ToString(); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/SolutionDetails.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/SolutionDetails.cs new file mode 100644 index 00000000..c6a273b1 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/SolutionDetails.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; +using System.Xml.Linq; + +namespace Xrm.Framework.CI.Common +{ + public class SolutionDetails + { + #region Properties + + public string SolutionFile { get; private set; } + + public string SolutionName + { + get + { + XElement name = SolutionNode.Descendants("UniqueName").First(); + + if (name != null) + { + return name.Value; + } + else + { + throw new Exception(string.Format("UniqueName element not found")); + } + } + } + + public string SolutionVersion + { + get + { + XElement version = SolutionNode.Descendants("Version").First(); + + if (version != null) + { + return version.Value; + } + else + { + throw new Exception(string.Format("Version element not found")); + } + } + set + { + XElement version = SolutionNode.Descendants("Version").First(); + + if (version != null) + { + version.Value = value; + } + else + { + throw new Exception(string.Format("Version element not found")); + } + } + } + + private XElement SolutionNode { get; set; } + + #endregion + + #region Constructors + + private SolutionDetails(string solutionFile) + { + SolutionFile = solutionFile; + Init(); + } + + #endregion + + #region Factories + + public static SolutionDetails Create(string solutionFile) + { + return new SolutionDetails(solutionFile); + } + + #endregion + + #region Private Methods + + private void Init() + { + if (!File.Exists(SolutionFile)) + { + throw new Exception(string.Format("{0} does not exist.", SolutionFile)); + } + + SolutionNode = XElement.Load(SolutionFile); + } + + #endregion + + #region Public Methods + + public void Save() + { + SolutionNode.Save(SolutionFile); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/UpdateSolution.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/UpdateSolution.cs new file mode 100644 index 00000000..8d5b483d --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Common/UpdateSolution.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xrm.Sdk; +using Microsoft.Xrm.Sdk.Query; +using Xrm.Framework.CI.Common.Entities; + +namespace Xrm.Framework.CI.Common +{ + public class UpdateSolution + { + #region Properties + + public IOrganizationService OrgService { get; private set; } + + #endregion + + #region Constructors + + public UpdateSolution(IOrganizationService orgService) + { + OrgService = orgService; + } + + #endregion + + #region Methods + + public void Update(string solutionName, + string version) + { + Solution solution = null; + + using (CIContext context = new CIContext(OrgService)) + { + var query = from s in context.SolutionSet + where s.UniqueName == solutionName + select s; + + solution = query.FirstOrDefault(); + } + + if (solution == null) + { + throw new Exception(string.Format("Solution {0} could not be found", solutionName)); + } + else + { + Solution update = new Solution(); + update.Id = solution.Id; + update.Version = version; + OrgService.Update(update); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/CrmConnectionEditor.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/CrmConnectionEditor.cs new file mode 100644 index 00000000..6fb019cb --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/CrmConnectionEditor.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Drawing.Design; +using System.ComponentModel; +using Microsoft.Xrm.Client.Windows.Controls.ConnectionDialog; +using System.Windows.Forms.Design; +using System.Windows.Forms; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + public class CrmConnectionEditor : UITypeEditor + { + public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) + { + var editorService = (IWindowsFormsEditorService)provider.GetService( + typeof(IWindowsFormsEditorService) + ); + + if (editorService != null) + { + + ConnectionDialog dialog = new ConnectionDialog(); + + if (value != null) + { + dialog.ConnectionString = value.ToString(); + } + + bool? connected = dialog.ShowDialog(); + + if (connected.HasValue && connected.Value) + { + value = dialog.ConnectionString; + } + } + + return value; + } + + public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) + { + return UITypeEditorEditStyle.Modal; + } + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/CustomActivitiesAndExtensions.xml b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/CustomActivitiesAndExtensions.xml new file mode 100644 index 00000000..87b991a0 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/CustomActivitiesAndExtensions.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/ExportSolution.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/ExportSolution.cs new file mode 100644 index 00000000..74c9007a --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/ExportSolution.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Activities; +using Microsoft.Xrm.Client.Services; +using System.ComponentModel; +using Microsoft.TeamFoundation.Build.Client; +using Microsoft.Xrm.Client; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public sealed class ExportSolution : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument CrmConnectionString { get; set; } + + [RequiredArgument] + public InArgument UniqueSolutionName { get; set; } + + [RequiredArgument] + public InArgument OutputFolder { get; set; } + + [DefaultValue(false)] + public InArgument Managed { get; set; } + + [DefaultValue(false)] + public InArgument ExportAutoNumberingSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportCalendarSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportCustomizationSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportEmailTrackingSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportGeneralSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportIsvConfig { get; set; } + + [DefaultValue(false)] + public InArgument ExportMarketingSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportOutlookSynchronizationSettings { get; set; } + + [DefaultValue(false)] + public InArgument ExportRelationshipRoles { get; set; } + + public OutArgument OutputFile { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context)); + + using (OrganizationService orgService = new OrganizationService(connection)) + { + Common.ExportSolution export = new Common.ExportSolution(orgService); + + OutputFile.Set(context, export.Export(Managed.Get(context), + OutputFolder.Get(context), + UniqueSolutionName.Get(context), + ExportAutoNumberingSettings.Get(context), + ExportCalendarSettings.Get(context), + ExportCustomizationSettings.Get(context), + ExportEmailTrackingSettings.Get(context), + ExportGeneralSettings.Get(context), + ExportIsvConfig.Get(context), + ExportMarketingSettings.Get(context), + ExportOutlookSynchronizationSettings.Get(context), + ExportRelationshipRoles.Get(context))); + + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetConnectionAttributes.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetConnectionAttributes.cs new file mode 100644 index 00000000..4aed27a8 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetConnectionAttributes.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.TeamFoundation.Build.Client; +using System.Activities; +using Xrm.Framework.CI.Common; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public class GetConnectionAttributes : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument CrmConnectionString { get; set; } + + public OutArgument ConnectionAttributes { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + ConnectionAttributes.Set(context, CrmConnectionConverter.ConvertFromConnectionString(CrmConnectionString.Get(context))); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetSolutionDetails.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetSolutionDetails.cs new file mode 100644 index 00000000..fba00fe8 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetSolutionDetails.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Activities; +using Microsoft.TeamFoundation.Build.Client; +using Xrm.Framework.CI.Common.Entities; +using Microsoft.Xrm.Client; +using Microsoft.Xrm.Client.Services; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public class GetSolutionDetails : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument CrmConnectionString { get; set; } + + [RequiredArgument] + public InArgument UniqueSolutionName { get; set; } + + public OutArgument SolutionDetails { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context)); + + + using (OrganizationService service = new OrganizationService(connection)) + { + using (CIContext ciContext = new CIContext(service)) + { + var query = from s in ciContext.SolutionSet + where s.UniqueName == UniqueSolutionName.Get(context) + select s; + Solution solution = query.FirstOrDefault(); + + if (solution == null) + { + throw new Exception(string.Format("Solution {0} could not be found", UniqueSolutionName)); + } + + SolutionDetails.Set(context, solution); + } + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetSolutionDetailsFromFile.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetSolutionDetailsFromFile.cs new file mode 100644 index 00000000..f585688a --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/GetSolutionDetailsFromFile.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Activities; +using Microsoft.TeamFoundation.Build.Client; +using Xrm.Framework.CI.Common; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public class GetSolutionDetailsFromFile : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument SolutionFile { get; set; } + + public OutArgument SolutionVersion { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + SolutionDetails details = SolutionDetails.Create(SolutionFile.Get(context)); + + SolutionVersion.Set(context, details.SolutionVersion); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Properties/AssemblyInfo.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..25087e72 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Xrm.Framework.CI.TeamFoundation.Activities")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Wael Hamze")] +[assembly: AssemblyProduct("Xrm CI Framework")] +[assembly: AssemblyCopyright("Copyright © Wael Hamze 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ce16144e-08fd-4989-bcd4-a63ca3ed0926")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/PublishCustomizations.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/PublishCustomizations.cs new file mode 100644 index 00000000..ce0eb501 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/PublishCustomizations.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.TeamFoundation.Build.Client; +using System.Activities; +using Microsoft.Xrm.Client.Services; +using Microsoft.Crm.Sdk.Messages; +using Microsoft.Xrm.Client; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public class PublishCustomizations : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument CrmConnectionString { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context)); + + using (OrganizationService orgService = new OrganizationService(connection)) + { + PublishAllXmlRequest req = new PublishAllXmlRequest(); + orgService.Execute(req); + + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/UpdateSolution.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/UpdateSolution.cs new file mode 100644 index 00000000..d4b32e4b --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/UpdateSolution.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Activities; +using Microsoft.Xrm.Client.Services; +using Microsoft.TeamFoundation.Build.Client; +using Microsoft.Xrm.Client; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public sealed class UpdateSolution : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument CrmConnectionString { get; set; } + + [RequiredArgument] + public InArgument UniqueSolutionName { get; set; } + + [RequiredArgument] + public InArgument Version { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context)); + + using (OrganizationService orgService = new OrganizationService(connection)) + { + Common.UpdateSolution update = new Common.UpdateSolution(orgService); + + update.Update(UniqueSolutionName.Get(context), Version.Get(context)); + } + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/UpdateSolutionDetailsFile.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/UpdateSolutionDetailsFile.cs new file mode 100644 index 00000000..3de0faeb --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/UpdateSolutionDetailsFile.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Activities; +using Microsoft.TeamFoundation.Build.Client; +using Xrm.Framework.CI.Common; + +namespace Xrm.Framework.CI.TeamFoundation.Activities +{ + [BuildActivity(HostEnvironmentOption.Agent)] + public class UpdateSolutionDetailsFile : CodeActivity + { + #region Arguments + + [RequiredArgument] + public InArgument SolutionFile { get; set; } + + [RequiredArgument] + public InArgument SolutionVersion { get; set; } + + #endregion + + #region Execute + + protected override void Execute(CodeActivityContext context) + { + SolutionDetails details = SolutionDetails.Create(SolutionFile.Get(context)); + + details.SolutionVersion = SolutionVersion.Get(context); + + details.Save(); + } + + #endregion + } +} diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Xrm.Framework.CI.TeamFoundation.Activities.csproj b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Xrm.Framework.CI.TeamFoundation.Activities.csproj new file mode 100644 index 00000000..5db1f846 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Activities/Xrm.Framework.CI.TeamFoundation.Activities.csproj @@ -0,0 +1,111 @@ + + + + Debug + AnyCPU + 10.0 + 2.0 + {DAED0368-5FB3-48E2-B5A8-16C6491569EA} + {32f31d43-81cc-4c15-9de6-3fc5453562b6};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + Xrm.Framework.CI.TeamFoundation.Activities + Xrm.Framework.CI.TeamFoundation.Activities + v4.5 + + + 512 + SAK + SAK + SAK + SAK + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + true + + + ..\Lib\Keys\Xrm.Framework.CI.snk + + + + False + ..\Lib\CrmSdk\microsoft.crm.sdk.proxy.dll + + + + + ..\Lib\CrmSdk\microsoft.xrm.client.dll + + + ..\Lib\CrmSdk\microsoft.xrm.sdk.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Always + + + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/DynamicsCRM2013ReleaseTfvcTemplate.12.xaml b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/DynamicsCRM2013ReleaseTfvcTemplate.12.xaml new file mode 100644 index 00000000..ff393466 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/DynamicsCRM2013ReleaseTfvcTemplate.12.xaml @@ -0,0 +1,618 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TfsBuild.Process_1 + + + Microsoft.TeamFoundation.Client + Microsoft.Win32 + System.Collections.ObjectModel + System.Activities.XamlIntegration + System.Activities.Validation + System.Activities + System.Activities.Statements + System.Activities.Expressions + Microsoft.TeamFoundation + Microsoft.TeamFoundation.Build.Client + Microsoft.TeamFoundation.Build.Common + Microsoft.TeamFoundation.Build.Workflow + Microsoft.TeamFoundation.Build.Workflow.Activities + Microsoft.TeamFoundation.Build.Activities + Microsoft.TeamFoundation.Build.Activities.Core + Microsoft.TeamFoundation.Build.Activities.Git + Microsoft.TeamFoundation.Build.Activities.TeamFoundation + Microsoft.TeamFoundation.Build.Workflow.Tracking + Microsoft.TeamFoundation.TestImpact.BuildIntegration.BuildActivities + Microsoft.TeamFoundation.VersionControl.Client + Microsoft.TeamFoundation.VersionControl.Common + Microsoft.VisualBasic.Activities + System + System.Activities.Debugger + System.Collections.Generic + System.Linq + System.Windows.Markup + System.IO + Xrm.Framework.CI.TeamFoundation.Activities + TfsBuild + + + + + Microsoft.TeamFoundation.Client + mscorlib + System.Activities + Microsoft.TeamFoundation.Common + Microsoft.TeamFoundation.Build.Client + Microsoft.TeamFoundation.Build.Common + Microsoft.TeamFoundation.Build.Workflow + Microsoft.TeamFoundation.Build.Activities + Microsoft.TeamFoundation.TestImpact.BuildIntegration + Microsoft.TeamFoundation.VersionControl.Client + Microsoft.TeamFoundation.VersionControl.Common + System.Core + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + Xrm.Framework.CI.TeamFoundation.Activities + Xrm.Framework.CI.TeamFoundation.Templates + System + System.ServiceModel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [folderToSearch] + + + [Path.Combine(buildDirectory, If(ReleaseTokensFolderPath, String.Empty))] + + + + + + + + + + + + [fileToRename] + + + [tokenFile.Replace(".token", String.Empty)] + + + + [fileToRename] + [FileAttributes.Normal] + + + [tokenFile] + [fileToRename] + True + + + + + + + + + + + + + + + + + + + + + + + + + + + [ReleaseBuildBinPathObject] + + HKEY_LOCAL_MACHINE\Software\Microsoft\ReleaseManagement\12.0\Client\ + InstallDir + Value not found + + + + + + [ReleaseBuildBinPathObject] + + HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\ReleaseManagement\12.0\Client\ + InstallDir + PathNotFound + + + + + + + + + + + [ConfigurationsToRelease] + + + [ConfigurationsToBuild] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + d68BQzpcV2FlbFx4cm1kZXZmcmFtZXdvcmtcWHJtQ0lGcmFtZXdvcmtcU3JjXE1haW5cQ0lUb29sa2l0XENSTTIwMTNcVEZTMjAxM1xYcm0uRnJhbWV3b3JrLkNJXFhybS5GcmFtZXdvcmsuQ0kuVGVhbUZvdW5kYXRpb24uVGVtcGxhdGVzXER5bmFtaWNzQ1JNMjAxM1JlbGVhc2VUZnZjVGVtcGxhdGUuMTIueGFtbMoBAeEMAbARARYBwgcBlQsBFQGLFwHSFwEUAc0VAdQVARMB8h0B+B0BEgHzIAH5IAERAZ4eAcwgARABYgGeBwEPAZQVAa8VAQ4BzREB1RQBDQGXHQGdHQEMAbUMAbwMAQsBpCEB8SUBCgH9FQGEFgEJAaIYAfUcAQgB7xQB9hQBBwH2FwH8FwEGAZMMAZoMAQUBwR0Bxx0BBAHsFgHyFgEDAbYLAfULAQKLAgPqAw4CAQGMAgWMArIBAwHsAY0CBeUDGAIBBuYDBegDHQIBAowCRYwCWgMB7QGNAvABjQLMAgIBCY0CggGNAuMBAgEIjQLdAo0CiwMCAQeOAgeOAsUBAwHoAY8CB48C+QEDAeABkAIHkALhAQMB3AGRAgfkAxICAQrnAwfnA4EBAgEDjgKlAY4CqgEDAesBjgIzjgI4AwHqAY4CvQGOAsIBAwHpAY8CoAGPAqYBAwHnAY8CSY8CWAMB5QGPAugBjwL2AQMB4wGPAiqPAjwDAeEBkALBAZAC3gEDAd4BkAJ1kAJ7AwHdAZMCC88DFgIBFN8DC+IDFgIBENcDD9oDGgIBC5QCDZQC3wIDAdgBlQINlQLfBQMByAGWAg2mAhgDAa8BpwINpwLgAgMBqwGoAg2uAhgDAaIBrwINtQIYAwGZAbYCDckDGAIBKcoDDcoD4QICASXLAw3LA6cCAgEfzAMNzAPiAgIBG80DDc0D0QECARnOAw3OA64BAgEV4AMN4ANxAgES4QMN4QNLAgER2AMR2AO1AQIBDdkDEdkDgwECAQyUAsIBlALIAQMB2wGUAieUAogBAwHaAZQC0gGUAq4CAwHZAZUCuwOVAs4DAwHWAZUCggOVAogDAwHVAZUC1AWVAtwFAwHUAZUC7QSVAskFAwHTAZUC+wOVAt8EAwHSAZUCTZUC6AEDAdEBlQL/AZUCmAIDAc8BlQKYA5UCqgMDAc0BlQK7ApUCwQIDAcwBlQIplQI3AwHKAZUC5AOVAuoDAwHJAZwCD6QCFAMBtQGlAg+lAqAgAwGwAacCwgGnAsgBAwGuAacCJ6cCiQEDAa0BpwLSAacCrwIDAawBqQIPrQIUAwGjAbACD7QCFAMBmgG6Ag+6AqABAwGWAbsCD+sCFAIBc+wCD8gDFAIBKsoDxQHKA8sBAgEoygMnygOHAQIBJ8oD1QHKA7ACAgEmywOSAssDpAICASPLA37LA9ABAgEiywM7ywNUAgEgzAPFAcwDywECAR7MAyfMA4gBAgEdzAPVAcwDsQICARzNA0rNA5wBAgEazgOYAc4DqwECARfOA0vOA1ECARbgA2jgA24CARPYA2bYA3gCAQ6cAh2cAjMDAbYBngITogIeAwG4AaUCjR+lApMfAwG0AaUCKaUC3x4DAbMBpQKdH6UC7x8DAbEBqQIdqQI1AwGkAasCE6sCuAoDAaYBsAIdsAI4AwGbAbICE7IClw0DAZ0BugKLAboCnQEDAZcBuwIduwI1AgF0vQIT5gIeAgF56QIT6QK3AgIBduwCHewCLQIBK+4CE8MDHgIBMMYDE8YD+QECAS2fAhWfAtYBAwHDAaACFaAC7AEDAb4BoQIVoQLsAQMBuQGrAqQJqwKqCQMBqgGrAi2rAvUIAwGpAasCtAmrAocKAwGnAbICgwyyAokMAwGhAbICLbIC1AsDAaABsgKTDLIC5gwDAZ4BwwIVygIeAwGSAcsCFcsC6wEDAY0BzAIV5QIfAgF66QKVAekC0AECAXjpAm3pAowBAgF39QIV9QJvAgFw9gIVnwMgAgFMoAMVwgMfAgExxgNfxgOSAQIBL8YDN8YDVgIBLp8CtgGfAtMBAwHGAZ8ClgGfAq4BAwHEAaACxQGgAukBAwHBAaACngGgAr0BAwG/AaECxQGhAukBAwG8AaECngGhAr0BAwG6AcgCQMgCiQEDAZUBxQJBxQJRAwGTAcsClQHLAtIBAwGQAcsC2gHLAugBAwGOAcwClQHMAqMBAwGLAdECGeMCJAIBe/UCVvUCbAIBcfoCF4EDJgIBaoIDF40DHAIBYI4DF44DiQICAVuPAxePA4sBAgFYkAMXnQMcAgFPngMXngN7AgFNoANzoAOOAQIBSqUDGcADJAIBMtICG9kCJAMBhgHaAhvdAioDAYIB3gIb4gIqAgF8gANAgANPAgFv/gJA/gKEAQIBbvwCQ/wCXgIBbP8CQP8CSgIBa4IDJYIDpwECAWGEAxuLAyoCAWSOA8gBjgOGAgIBXo4DqgGOA8EBAgFcjwN1jwOIAQIBWZADJZADSwIBUJIDG5sDJgIBUp4Dcp4DeAIBTqYDG7cDMQIBO7gDG78DIAIBM9cCRtcCcQMBiQHUAkfUAlUDAYcB2wJE2wJSAwGEAdwCTdwCZAMBgwHfAkTfAk8DAYAB4AJE4AJSAgF+4QJF4QJJAgF9igNEigNQAgFpiANEiAOUAQIBaIYDR4YDYgIBZokDRIkDTgIBZZMDHZoDJgIBU6YDOqYDkwMCAUimA/IDpgPCBAIBR6YDygSmA+IEAgFFpgP0BKYDiwUCAUO0AyG0A+EBAgE/rAMhrANQAgE8uAMpuANMAgE0ugMfugOJAQIBOb0DH70D+AECATaYA0qYA2ECAVaVA0uVA2QCAVS0A220A3oCAUG0A0W0A2QCAUCsA0CsA00CAT26A1O6A4YBAgE6vQNrvQORAQIBOL0DQ70DYgIBNw== + + + + + + + + + + + + + + + + True + + + + + + + False + False + + + + + + + + True + False + + + + + + + + + + True + False + + + + + + + + + True + False + + + + + + + + + + True + + + + + + + + True + + + + + + + + + + False + False + + + + + + + + + + + + True + + + + + + + + + True + + + + + + + False + + + + + + + + + + + True + + + + + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/Properties/AssemblyInfo.cs b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..d574d1c9 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Xrm.Framework.CI.TeamFoundation.Templates")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Wael Hamze")] +[assembly: AssemblyProduct("Xrm CI Framework")] +[assembly: AssemblyCopyright("Copyright © Wael Hamze 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("70ae67e2-0f98-475c-a0dc-d69fae9fb185")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/Xrm.Framework.CI.TeamFoundation.Templates.csproj b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/Xrm.Framework.CI.TeamFoundation.Templates.csproj new file mode 100644 index 00000000..b55d9ab7 --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.TeamFoundation.Templates/Xrm.Framework.CI.TeamFoundation.Templates.csproj @@ -0,0 +1,96 @@ + + + + Debug + AnyCPU + 10.0 + 2.0 + {50092700-B59F-482E-8F43-8E6D822D7D33} + {32f31d43-81cc-4c15-9de6-3fc5453562b6};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + Xrm.Framework.CI.TeamFoundation.Templates + Xrm.Framework.CI.TeamFoundation.Templates + v4.5 + + + 512 + SAK + SAK + SAK + SAK + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + + + + + + + + ..\Lib\CrmSdk\microsoft.xrm.client.dll + + + ..\Lib\CrmSdk\microsoft.xrm.sdk.dll + + + + + + + + + + + + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + + + del "$(TargetDir)$(TargetName).*" +copy /Y "$(ProjectDir)\*.xaml" "$(TargetDir)" + + + \ No newline at end of file diff --git a/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.sln b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.sln new file mode 100644 index 00000000..b31f191d --- /dev/null +++ b/CRM2013/Xrm.Framework.CI/Xrm.Framework.CI.sln @@ -0,0 +1,67 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lib", "Lib", "{8F4CD5DA-429C-478E-BB2A-675CF6785C7E}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CrmSdk", "CrmSdk", "{0E5B82BF-CD4E-4378-B5AD-7A1901CE0A07}" + ProjectSection(SolutionItems) = preProject + Lib\CrmSdk\Microsoft.Crm.Sdk.Proxy.dll = Lib\CrmSdk\Microsoft.Crm.Sdk.Proxy.dll + Lib\CrmSdk\Microsoft.Crm.Sdk.Proxy.xml = Lib\CrmSdk\Microsoft.Crm.Sdk.Proxy.xml + Lib\CrmSdk\Microsoft.Xrm.Client.dll = Lib\CrmSdk\Microsoft.Xrm.Client.dll + Lib\CrmSdk\Microsoft.Xrm.Client.xml = Lib\CrmSdk\Microsoft.Xrm.Client.xml + Lib\CrmSdk\Microsoft.Xrm.Sdk.Deployment.dll = Lib\CrmSdk\Microsoft.Xrm.Sdk.Deployment.dll + Lib\CrmSdk\Microsoft.Xrm.Sdk.Deployment.xml = Lib\CrmSdk\Microsoft.Xrm.Sdk.Deployment.xml + Lib\CrmSdk\Microsoft.Xrm.Sdk.dll = Lib\CrmSdk\Microsoft.Xrm.Sdk.dll + Lib\CrmSdk\Microsoft.Xrm.Sdk.xml = Lib\CrmSdk\Microsoft.Xrm.Sdk.xml + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xrm.Framework.CI.PowerShell", "Xrm.Framework.CI.PowerShell\Xrm.Framework.CI.PowerShell.csproj", "{A4D91C99-EF3D-4ED4-A647-7902054F8854}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Keys", "Keys", "{C344F592-8D9F-4C00-B7C6-C04B2FF11AE6}" + ProjectSection(SolutionItems) = preProject + Lib\Keys\Xrm.Framework.CI.snk = Lib\Keys\Xrm.Framework.CI.snk + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{5BB9B263-BD22-4252-B72F-F8F2BAC05E58}" + ProjectSection(SolutionItems) = preProject + Build\PostBuild.ps1 = Build\PostBuild.ps1 + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Packages", "Packages", "{B4777BC5-D150-4B1E-98BD-3E18D6FB35EE}" + ProjectSection(SolutionItems) = preProject + Package.ps1 = Package.ps1 + Packages\readme.txt = Packages\readme.txt + Packages\xRMCIFramework_6.1.0.0.zip = Packages\xRMCIFramework_6.1.0.0.zip + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Debug|x86.ActiveCfg = Debug|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Release|Any CPU.Build.0 = Release|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {A4D91C99-EF3D-4ED4-A647-7902054F8854}.Release|x86.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {0E5B82BF-CD4E-4378-B5AD-7A1901CE0A07} = {8F4CD5DA-429C-478E-BB2A-675CF6785C7E} + {C344F592-8D9F-4C00-B7C6-C04B2FF11AE6} = {8F4CD5DA-429C-478E-BB2A-675CF6785C7E} + EndGlobalSection +EndGlobal